9413e7d2fe1cd298f447c4e5b56083e20b851dcbb46a3c5aa4f84407a25b733d312a6244e279f6269ca566244f3eee0260b40592a396b06af0c3b57dcc19e3 1.2 KB

12345678910111213141516171819202122232425262728
  1. # Changelog
  2. ## v1.6.0
  3. - Recommend absolute paths for rewrite targets. Contributed by @helfi92.
  4. ## v1.5.0
  5. - Expose the HTTP request object in rewrite rules. Contributed by @VladShcherbin.
  6. ## v1.4.0
  7. - The `.` (DOT) rule should only check the last path element. Contributed by @ntkme.
  8. ## v1.3.0
  9. - Allow disabling of the `.` (DOT) rule via the `disableDotRule` option.
  10. ## v1.2.0
  11. - Support definition of custom HTML `Accept` header values. Contributed by @cgmartin.
  12. ## v1.1.0
  13. - Rewrite rules are now applied before the request URL is checked for dots.
  14. - Rewrite rules can be defined as functions to have greater control over the `dot rule`.
  15. ## v1.0.0
  16. This version introduces a fair amount of breaking changes. Specifically, instances of the historyApiFallback need to be created via the exported function. Previously, this was not necessary.
  17. - **Breaking:** Support multiple instances of the historyApiFallback middleware with different configurations.
  18. - **Breaking:** Loggers are configured per historyApiFallback middleware instance (see `README.md`).
  19. - The fallback index HTML file can be configured. Default is `/index.html`.
  20. - Additional rewrite rules can be defined via regular expressions.