Release notes
*Sourced from [path-to-regexp's releases](https://github.com/pillarjs/path-to-regexp/releases).*
> ## Remove Default Encode URI Component
> Not changes to path rules since 3.x, except support for nested RegEx parts in 4.x.
>
> **Changed**
>
> - Rename `RegexpOptions` interface to `TokensToRegexpOptions`
> - Remove `normalizePathname` from library, document solution in README
> - Encode using identity function as default, not `encodeURIComponent`
>
> ## Decode URI
> **Removed**
>
> * Remove `whitelist` in favor of `decodeURI` (advanced behavior can happen outside `path-to-regexp`)
>
> ## Remove `String#normalize`
> **Fixed**
>
> - Remove usage of `String.prototype.normalize` to continue supporting IE
>
> ## Normalize Path Whitelist
> **Added**
>
> - Add normalize whitelist of characters (defaults to `/%.-`)
>
> ## Allow `RegexpOptions` in `match`
> **Fixed**
>
> - Allow `RegexpOptions` in `match(...)` function
>
> ## Fix Spelling of Regexp
> **Fixed**
>
> - Normalize `regexp` spelling across 4.x
>
> ## ES2015 Package for Bundlers
> All path rules are backward compatible with 3.x, except for nested `()` and other RegEx special characters that were previously ignored.
>
> **Changed**
>
> * Export names have changed to support ES2015 modules in bundlers
> * `match` does not default to `decodeURIComponent`
>
> **Added**
>
> * New `normalizePathname` utility for supporting unicode paths in libraries
> * Support nested non-capturing groups within parameters
> * Add tree-shaking (via ES2015 modules) for webpack and other bundlers
Commits
- [`8a3710d`](https://github.com/pillarjs/path-to-regexp/commit/8a3710d6690502978c3aaa81e9711d4593d18b69) 5.0.0
- [`6e6f157`](https://github.com/pillarjs/path-to-regexp/commit/6e6f15717125a51d26fac95b3174c54d297fa9c4) Document `encode` and `decode` reasonably
- [`70eaaf2`](https://github.com/pillarjs/path-to-regexp/commit/70eaaf2d8379bacc210f67fe7ae0b1412bffd456) Remove `normalizePathname` from library
- [`fe645f9`](https://github.com/pillarjs/path-to-regexp/commit/fe645f91fe7f8a278065535b9f854fd65bee6a34) Rename `TokensToRegexpOptions`
- [`9e1215a`](https://github.com/pillarjs/path-to-regexp/commit/9e1215a66d284b58f29725ab695260a8a18ccf10) Add test for `encode` in `pathToRegexp`
- [`dfb620c`](https://github.com/pillarjs/path-to-regexp/commit/dfb620c83cc40f8262505a785b579e350567d0d8) Encode using identity function by default
- [`e1ccbe1`](https://github.com/pillarjs/path-to-regexp/commit/e1ccbe1c83a1a63420df1d51478175d8f8f847e8) 4.0.5
- [`611513c`](https://github.com/pillarjs/path-to-regexp/commit/611513c707d6e41c441b4351a7a4aec7da2e45ff) Replace whitelist with `decodeURI`
- [`f9bf1e0`](https://github.com/pillarjs/path-to-regexp/commit/f9bf1e06636a3d745b917c9521a94b5b1e2eaaed) 4.0.4
- [`8993bb0`](https://github.com/pillarjs/path-to-regexp/commit/8993bb02d96b1af4dd2a09758134555111be2620) Remove usage of `String.prototype.normalize`
- Additional commits viewable in [compare view](https://github.com/pillarjs/path-to-regexp/compare/v3.2.0...v5.0.0)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps path-to-regexp from 3.2.0 to 5.0.0.
Release notes
*Sourced from [path-to-regexp's releases](https://github.com/pillarjs/path-to-regexp/releases).* > ## Remove Default Encode URI Component > Not changes to path rules since 3.x, except support for nested RegEx parts in 4.x. > > **Changed** > > - Rename `RegexpOptions` interface to `TokensToRegexpOptions` > - Remove `normalizePathname` from library, document solution in README > - Encode using identity function as default, not `encodeURIComponent` > > ## Decode URI > **Removed** > > * Remove `whitelist` in favor of `decodeURI` (advanced behavior can happen outside `path-to-regexp`) > > ## Remove `String#normalize` > **Fixed** > > - Remove usage of `String.prototype.normalize` to continue supporting IE > > ## Normalize Path Whitelist > **Added** > > - Add normalize whitelist of characters (defaults to `/%.-`) > > ## Allow `RegexpOptions` in `match` > **Fixed** > > - Allow `RegexpOptions` in `match(...)` function > > ## Fix Spelling of Regexp > **Fixed** > > - Normalize `regexp` spelling across 4.x > > ## ES2015 Package for Bundlers > All path rules are backward compatible with 3.x, except for nested `()` and other RegEx special characters that were previously ignored. > > **Changed** > > * Export names have changed to support ES2015 modules in bundlers > * `match` does not default to `decodeURIComponent` > > **Added** > > * New `normalizePathname` utility for supporting unicode paths in libraries > * Support nested non-capturing groups within parameters > * Add tree-shaking (via ES2015 modules) for webpack and other bundlersCommits
- [`8a3710d`](https://github.com/pillarjs/path-to-regexp/commit/8a3710d6690502978c3aaa81e9711d4593d18b69) 5.0.0 - [`6e6f157`](https://github.com/pillarjs/path-to-regexp/commit/6e6f15717125a51d26fac95b3174c54d297fa9c4) Document `encode` and `decode` reasonably - [`70eaaf2`](https://github.com/pillarjs/path-to-regexp/commit/70eaaf2d8379bacc210f67fe7ae0b1412bffd456) Remove `normalizePathname` from library - [`fe645f9`](https://github.com/pillarjs/path-to-regexp/commit/fe645f91fe7f8a278065535b9f854fd65bee6a34) Rename `TokensToRegexpOptions` - [`9e1215a`](https://github.com/pillarjs/path-to-regexp/commit/9e1215a66d284b58f29725ab695260a8a18ccf10) Add test for `encode` in `pathToRegexp` - [`dfb620c`](https://github.com/pillarjs/path-to-regexp/commit/dfb620c83cc40f8262505a785b579e350567d0d8) Encode using identity function by default - [`e1ccbe1`](https://github.com/pillarjs/path-to-regexp/commit/e1ccbe1c83a1a63420df1d51478175d8f8f847e8) 4.0.5 - [`611513c`](https://github.com/pillarjs/path-to-regexp/commit/611513c707d6e41c441b4351a7a4aec7da2e45ff) Replace whitelist with `decodeURI` - [`f9bf1e0`](https://github.com/pillarjs/path-to-regexp/commit/f9bf1e06636a3d745b917c9521a94b5b1e2eaaed) 4.0.4 - [`8993bb0`](https://github.com/pillarjs/path-to-regexp/commit/8993bb02d96b1af4dd2a09758134555111be2620) Remove usage of `String.prototype.normalize` - Additional commits viewable in [compare view](https://github.com/pillarjs/path-to-regexp/compare/v3.2.0...v5.0.0)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)