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(npm): update dependency regexparam to v3 #374

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 7, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
regexparam 2.0.2 -> 3.0.0 age adoption passing confidence

Release Notes

lukeed/regexparam (regexparam)

v3.0.0

Compare Source

Breaking

  • Optional wildcard patterns are now fully supported! (#​25): 422f630, 5362fba

    Previously, an optional wildcard pattern would parse but it didn't behave correctly.
    Essentially the "optional" part (?) was ignored, meaning that optional wildcards were no different than wildcards.

    This has been fixed (thanks @​benmerckx), but doing so changed the generated RegExp (and thus, the matching behavior) for the optional wildcard pattern use case.

    All other usage is unaffected!
    The majority of use cases will see no difference – especially since the previous behavior was unwanted/unexpected anyway.

    let { pattern } = parse('/users/*?');
    
    // Before:
    pattern.test('/users'); //=> false << wonky ❌
    pattern.test('/users/'); //=> true
    pattern.test('/users/123'); //=> true
    
    // After:
    pattern.test('/users'); //=> true << YAY ✅
    pattern.test('/users/'); //=> true
    pattern.test('/users/123'); //=> true
  • Renamed the reserved wildcard key (for wildcard value segment) from wild to *:
    This allows users to now construct named route patterns using the "wild" placeholder

    // Before:
    parse("/books/:genre/*"); //=> { keys: ["genre", "wild"], ... }
    parse("/:wild"); //=> { keys: ["wild"], ... }
    // ^^ this meant a named parameter would present like a wildcard, bad! ❌
    
    // After:
    parse("/books/:genre/*"); //=> { keys: ["genre", "*"], ... }
    parse("/:wild"); //=> { keys: ["wild"], ... }
    // ^^ this allows named parameter to look like a named parameter, good! ✅

Features

Chores


Full Changelog: lukeed/regexparam@v2.0.2...v3.0.0


Configuration

📅 Schedule: Branch creation - "after 8:00 pm" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies label Dec 7, 2023
@renovate renovate bot requested a review from 3846masa December 7, 2023 11:00
@renovate renovate bot force-pushed the renovate/regexparam-3.x branch from bb8f203 to 10210a8 Compare January 14, 2024 07:30
@renovate renovate bot changed the title chore(npm-deps): update dependency regexparam to v3 fix(npm): update dependency regexparam to v3 Jan 14, 2024
@3846masa 3846masa merged commit 6cabc24 into main Jan 14, 2024
2 checks passed
@3846masa 3846masa deleted the renovate/regexparam-3.x branch January 14, 2024 07:34
github-actions bot pushed a commit that referenced this pull request Jan 14, 2024
## [1.0.15](v1.0.14...v1.0.15) (2024-01-14)

### Bug Fixes

* **npm:** update dependency regexparam to v3 ([#374](#374)) ([6cabc24](6cabc24))
Copy link

🎉 This PR is included in version 1.0.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant