Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix failing tests after path-to-regexp 6.2.0 update #549

Merged
merged 3 commits into from
Feb 1, 2021

Conversation

vlukashov
Copy link
Contributor

follow up on #351

  • since path-to-regexp 3.1.0 the way of passing options into the tokensToFunction() function has changed (see #191).
  • since path-to-regexp 4.0.0 the default exports have changed from a module object to individual functions (see 4.0.0).
  • since path-to-regexp 5.0.0 the default value for the optional encode parameter in the tokensToFunction() function has changed (see 5.0.0).
  • since path-to-regexp 6.0.0 the repeat and modifier properties on route regexp keys were removed (see #207).

The internals of the @vaadin/router package affected by these changes are updated so that the Vaadin Router public API remains unchanged.

Viktor Lukashov added 3 commits January 29, 2021 21:28
- since `path-to-regexp` 3.1.0 the way of passing options into the `tokensToFunction()` function has changed (see [#191](pillarjs/path-to-regexp#191)).
- since `path-to-regexp` 4.0.0 the default exports have changed from a module object to individual functions (see [4.0.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v4.0.0)).
- since `path-to-regexp` 5.0.0 the default value for the optional `encode` parameter in the `tokensToFunction()` function has changed (see [5.0.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v5.0.0)).
- since `path-to-regexp` 6.0.0 the `repeat` and `modifier` properties on route regexp keys were removed (see [#207](pillarjs/path-to-regexp#207)).

The internals of the `@vaadin/router` package affected by these changes are updated so that the Vaadin Router public API remains unchanged.
In the ES module bundle the users may as well just import path-to-regexp themselves.

In the UMD bundle, keep things 'as-is'.
@haijian-vaadin haijian-vaadin merged commit b081aa3 into master Feb 1, 2021
@vlukashov vlukashov deleted the vl/update-path-to-regexp branch February 1, 2021 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants