Socket
Socket
Sign inDemoInstall

connect-history-api-fallback

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2Next

2.0.0

Diff

Changelog

Source

v2.0.0

  • Potentially breaking: Treat HTTP HEAD requests like HTTP GET requests. This one is potentially breaking and we therefore released a new major version to be on the safe side. Most projects should not encounter issues when upgrading to this version. Contributed by @awwit.
bripkens
published 1.6.0 •

Changelog

Source

v1.6.0

  • Recommend absolute paths for rewrite targets. Contributed by @helfi92.
bripkens
published 1.5.0 •

Changelog

Source

v1.5.0

  • Expose the HTTP request object in rewrite rules. Contributed by @VladShcherbin.
bripkens
published 1.4.0 •

Changelog

Source

v1.4.0

  • The . (DOT) rule should only check the last path element. Contributed by @ntkme.
bripkens
published 1.3.0 •

Changelog

Source

v1.3.0

  • Allow disabling of the . (DOT) rule via the disableDotRule option.
bripkens
published 1.2.0 •

Changelog

Source

v1.2.0

  • Support definition of custom HTML Accept header values. Contributed by @cgmartin.
bripkens
published 1.1.0 •

Changelog

Source

v1.1.0

  • Rewrite rules are now applied before the request URL is checked for dots.
  • Rewrite rules can be defined as functions to have greater control over the dot rule.
bripkens
published 1.0.0 •

Changelog

Source

v1.0.0

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.

  • Breaking: Support multiple instances of the historyApiFallback middleware with different configurations.
  • Breaking: Loggers are configured per historyApiFallback middleware instance (see README.md).
  • The fallback index HTML file can be configured. Default is /index.html.
  • Additional rewrite rules can be defined via regular expressions.
bripkens
published 0.0.5 •

bripkens
published 0.0.4 •

2Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc