smapiot / piral

🚀 Framework for next generation web apps using micro frontends. ⭐️ Star to support our work!
https://piral.io
MIT License
1.68k stars 125 forks source link

Bump path-to-regexp from 1.8.0 to 8.0.0 #712

Closed dependabot[bot] closed 3 weeks ago

dependabot[bot] commented 3 weeks ago

Bumps path-to-regexp from 1.8.0 to 8.0.0.

Release notes

Sourced from path-to-regexp's releases.

Simpler API

Heads up! This is a fairly large change (again) and I need to apologize in advance. If I foresaw what this version would have ended up being I would not have released version 7. A longer blog post and explanation will be incoming this week, but the pivot has been due to work on Express.js v5 and this will the finalized syntax used in Express moving forward.

Added

  • Adds key names to wildcards using *name syntax, aligns with : behavior but using an asterisk instead

Changed

  • Removes group suffixes of ?, +, and * - only optional exists moving forward (use wildcards for +, {*foo} for *)
  • Parameter names follow JS identifier rules and allow unicode characters

Added

  • Parameter names can now be quoted, e.g. :"foo-bar"
  • Match accepts an array of values, so the signature is now string | TokenData | Array<string | TokenData>

Removed

  • Removes loose mode
  • Removes regular expression overrides of parameters

https://github.com/pillarjs/path-to-regexp/compare/v7.1.0...v8.0.0

Strict mode

Added

  • Adds a strict option to detect potential ReDOS issues

Fixed

  • Fixes separator to default to suffix + prefix when not specified
  • Allows separator to be undefined in TokenData
    • This is only relevant if you are building TokenData manually, previously parse filled it in automatically

Comments

  • I highly recommend enabling strict: true and I'm probably releasing a V8 with it enabled by default ASAP as a necessary security mitigation

https://github.com/pillarjs/path-to-regexp/compare/v7.0.0...v7.1.0

Wildcard, unicode, and modifier changes

Hi all! There's a few major breaking changes in this release so read carefully.

Breaking changes:

  • The function returned by compile only accepts strings as values (i.e. no numbers, use String(value) before compiling a path)
    • For repeated values, when encode !== false, it must be an array of strings
  • Parameter names can contain all unicode identifier characters (defined as regex \p{XID_Continue}).
  • Modifiers (?, *, +) must be used after a param explicitly wrapped in {}

... (truncated)

Changelog

Sourced from path-to-regexp's changelog.

Moved to GitHub Releases

3.0.0 / 2019-01-13

  • Always use prefix character as delimiter token, allowing any character to be a delimiter (e.g. /:att1-:att2-:att3-:att4-:att5)
  • Remove partial support, prefer escaping the prefix delimiter explicitly (e.g. \\/(apple-)?icon-:res(\\d+).png)

2.4.0 / 2018-08-26

  • Support start option to disable anchoring from beginning of the string

2.3.0 / 2018-08-20

  • Use delimiter when processing repeated matching groups (e.g. foo/bar has no prefix, but has a delimiter)

2.2.1 / 2018-04-24

  • Allow empty string with end: false to match both relative and absolute paths

2.2.0 / 2018-03-06

  • Pass token as second argument to encode option (e.g. encode(value, token))

2.1.0 / 2017-10-20

  • Handle non-ending paths where the final character is a delimiter
    • E.g. /foo/ before required either /foo/ or /foo// to match in non-ending mode

2.0.0 / 2017-08-23

  • New option! Ability to set endsWith to match paths like /test?query=string up to the query string
  • New option! Set delimiters for specific characters to be treated as parameter prefixes (e.g. /:test)
  • Remove isarray dependency
  • Explicitly handle trailing delimiters instead of trimming them (e.g. /test/ is now treated as /test/ instead of /test when matching)
  • Remove overloaded keys argument that accepted options
  • Remove keys list attached to the RegExp output
  • Remove asterisk functionality (it's a real pain to properly encode)
  • Change tokensToFunction (e.g. compile) to accept an encode function for pretty encoding (e.g. pass your own implementation)

1.7.0 / 2016-11-08

  • Allow a delimiter option to be passed in with tokensToRegExp which will be used for "non-ending" token match situations

1.6.0 / 2016-10-03

  • Populate RegExp.keys when using the tokensToRegExp method (making it consistent with the main export)
  • Allow a delimiter option to be passed in with parse
  • Updated TypeScript definition with Keys and Options updated

1.5.3 / 2016-06-15

... (truncated)

Commits


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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/smapiot/piral/network/alerts).
github-actions[bot] commented 3 weeks ago

Error: Error while trying to collect info before merging dependabot/npm_and_yarn/path-to-regexp-8.0.0 into develop.

Error: Command failed: yarn setup
lerna notice cli v8.1.7
lerna info ci enabled
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-aurelia/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-blazor/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-cycle/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-elm/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-ember/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-hyperapp/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-inferno/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-litel/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-million/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-mithril/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-ng/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-ngjs/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-preact/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-react-15/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-react/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-riot/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-solid/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-svelte/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-vue-3/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/converters/piral-vue/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/framework/piral-base/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/framework/piral-core/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/framework/piral/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/framework/siteless/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/initializers/create-pilet/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/initializers/create-piral-instance/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/pages/docs/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/pages/www/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-adal/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-auth/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-axios/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-breadcrumbs/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-configs/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-containers/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-dashboard/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-ext/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-feeds/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-fetch/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-forms/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-lazy/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-menu/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-modals/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-notifications/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-oauth2/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-oidc/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-page-layouts/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-redux/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-search/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-tracker/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-tracking/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-translate/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-update/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/plugins/piral-urql/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/samples/empty-piral/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/samples/minimal-piral/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/samples/sample-cross-fx/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/samples/sample-piral-core/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/samples/sample-piral/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/tooling/piral-cli-webpack5/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/tooling/piral-cli/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/tooling/publish-microfrontend/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/utilities/piral-debug-utils/node_modules
lerna info clean removing /home/runner/work/piral/piral/src/utilities/piral-hooks-utils/node_modules
lerna success clean finished
ERR! bootstrap The "bootstrap" command was removed by default in v7, and is no longer maintained.
ERR! bootstrap Learn more about this change at https://lerna.js.org/docs/legacy-package-management
error Command failed with exit code 1.
error Command failed with exit code 1.

    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:514:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Generated by @jsenv/file-size-impact during check-bundle-size#10783506619 on 106c822