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

Remove dependency on path-to-regexp #12001

Conversation

uwej711
Copy link
Contributor

@uwej711 uwej711 commented Sep 15, 2024

Changes

  • Removes the dependency on path-to-regexp

Testing

  • Added unit test for generator function

Docs

No need to update docs, internal change only

Copy link

changeset-bot bot commented Sep 15, 2024

🦋 Changeset detected

Latest commit: a504d0b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Sep 15, 2024
@uwej711
Copy link
Contributor Author

uwej711 commented Sep 15, 2024

Please have a look at packages/astro/test/units/routing/generator.test.js and check if I missed some common pattern and also if my assumptions about RouteData structure are correct. The regression introduce by my first attempt is fixed, empty spreads do not add extra slashes and we throw an error if a parameter for a non spread is missing.

@uwej711
Copy link
Contributor Author

uwej711 commented Sep 15, 2024

Fixes #11956

Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞Thank you!

@Princesseuh Princesseuh merged commit 9be3e1b into withastro:main Sep 19, 2024
14 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants