Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

routr

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

routr - npm Package Versions

23

3.0.1

Diff

Changelog

Source

3.0.1

  • [#114] fix handling of array like query params
redonkulus
published 3.0.0 •

Changelog

Source

3.0.0

Breaking Changes

  • [#110] routr uses native URLSearchParams instead of query-string to parse query strings. As a consequence, parsing ?foo will result in { foo: '' } as specified in the WHATWG spec instead of { foo: null } as query-string would do. Also, URLSearchParams is not available in older browsers (noticeably IE11). If you need to support them, you can either add a URLSearchParams polyfill or inject query-string when instantiating routr:
router = new Routr(routes, {
    queryLib: require('query-string'),
});
  • [#113] Updated path-to-regexp to its latest version
redonkulus
published 2.3.0 •

redonkulus
published 2.2.0 •

redonkulus
published 2.1.4 •

lingyan
published 2.1.2 •

lingyan
published 2.1.1 •

lingyan
published 2.1.0 •

Changelog

Source

2.1.0

  • [#37] Enhance makePath for routes with path array
lingyan
published 2.0.2 •

Changelog

Source

2.0.2

  • [#36] Bug fix: Add support for question marks in hash fragments
redonkulus
published 2.0.1 •

Changelog

Source

2.0.1

  • [#35] Fix decodeURIComponent of undefined bug
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc