kriasoft / universal-router

A simple middleware-style router for isomorphic JavaScript web apps
https://www.kriasoft.com/universal-router/
MIT License
1.7k stars 105 forks source link

Bump path-to-regexp from 3.2.0 to 6.1.0 #182

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps path-to-regexp from 3.2.0 to 6.1.0.

Release notes *Sourced from [path-to-regexp's releases](https://github.com/pillarjs/path-to-regexp/releases).* > ## Use `/#?` as Default Delimiter > **Fixed** > > - Use `/#?` as default delimiter to avoid matching on query or fragment parameters > - If you are matching non-paths (e.g. hostnames), you can adjust `delimiter: '.'` > > ## Custom Prefix and Suffix Groups > **Note:** The path syntax has been stabilized with this release, no breaking changes in paths is expected. > > This release reverts the prefix behavior added in v3 back to the behavior seen in v2. For the most part, path matching is backward compatible with v2 with these enhancements: > > 1. Support for nested non-capturing groups in regexp, e.g. `/(abc(?=d))` > 2. Support for custom prefix and suffix groups using `/{abc(.*)def}` > 3. Tokens in an unexpected position will throw an error > * Things like `/test(foo` previously would worked, now it expects `(` to be closed > * You can escape the character for the previous behavior, e.g. `/test\(foo` > > **Changed** > > - Revert using any character as prefix, support `prefixes` option to configure this (starts as `/.` which acts like every version since 0.x again) > - Add support for `{}` to capture prefix/suffix explicitly, enables custom use-cases like `/:attr1{-:attr2}?` > > ## Remove Default Encode URI Component > No 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 > ... (truncated)
Commits - [`4b8efcc`](https://github.com/pillarjs/path-to-regexp/commit/4b8efcc506ce11401919d04c40e4b316f71742da) 6.1.0 - [`55702b2`](https://github.com/pillarjs/path-to-regexp/commit/55702b2e433153ee70e1a2797c861dede4182e4f) Update README examples using token `delimiter` - [`43e87bf`](https://github.com/pillarjs/path-to-regexp/commit/43e87bf7bc6f2258da27b4186e6607c7846093da) Document query string behavior ([#210](https://github-redirect.dependabot.com/pillarjs/path-to-regexp/issues/210)) - [`2ea948c`](https://github.com/pillarjs/path-to-regexp/commit/2ea948ccec60e73c8241b771f652a215f46f20fd) Use `/#?` as default delimiter - [`0d83ceb`](https://github.com/pillarjs/path-to-regexp/commit/0d83cebcb6c1e16cf84a67b5d3beaecc993b134c) 6.0.0 - [`b3cd2a5`](https://github.com/pillarjs/path-to-regexp/commit/b3cd2a594260d1ad8512eace7b5661df354fcae8) Update path normalization documentation - [`72b5f44`](https://github.com/pillarjs/path-to-regexp/commit/72b5f44eda27f0795db5c065efbdef11877a130e) Update documentation on tokens - [`c0e071a`](https://github.com/pillarjs/path-to-regexp/commit/c0e071aac88ca2693a3da5923395dacaa167cca5) Support `{}` for capturing prefix and suffix chars ([#207](https://github-redirect.dependabot.com/pillarjs/path-to-regexp/issues/207)) - [`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 - Additional commits viewable in [compare view](https://github.com/pillarjs/path-to-regexp/compare/v3.2.0...v6.1.0)


Dependabot compatibility score

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)
dependabot-preview[bot] commented 4 years ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.