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

chore: Update version for release (pre) #9723

Merged
merged 2 commits into from
Dec 13, 2022

Conversation

mcansh
Copy link
Collaborator

@mcansh mcansh commented Dec 13, 2022

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-next, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

release-next is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on release-next.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

react-router@6.5.0-pre.0

Minor Changes

  • Allows optional routes and optional static segments (#9650)

    Optional params examples

    :lang?/about will get expanded matched with

    /:lang/about
    /about
    

    /multistep/:widget1?/widget2?/widget3?
    Will get expanded matched with:

    /multistep
    /multistep/:widget1
    /multistep/:widget1/:widget2
    /multistep/:widget1/:widget2/:widget3
    

    optional static segment example

    /fr?/about will get expanded and matched with:

    /about
    /fr/about
    

Patch Changes

  • Stop incorrectly matching on partial named parameters, i.e. <Route path="prefix-:param">, to align with how splat parameters work. If you were previously relying on this behavior then it's recommended to extract the static portion of the path at the useParams call site: (#9506)

    // Old behavior at URL /prefix-123
    <Route path="prefix-:id" element={<Comp /> }>
    
    function Comp() {
      let params = useParams(); // { id: '123' }
      let id = params.id; // "123"
      ...
    }
    
    // New behavior at URL /prefix-123
    <Route path=":id" element={<Comp /> }>
    
    function Comp() {
      let params = useParams(); // { id: 'prefix-123' }
      let id = params.id.replace(/^prefix-/, ''); // "123"
      ...
    }
  • Updated dependencies:

    • @remix-run/router@1.1.0-pre.0

@remix-run/router@1.1.0-pre.0

Minor Changes

  • Allows optional routes and optional static segments (#9650)

    Optional params examples

    :lang?/about will get expanded matched with

    /:lang/about
    /about
    

    /multistep/:widget1?/widget2?/widget3?
    Will get expanded matched with:

    /multistep
    /multistep/:widget1
    /multistep/:widget1/:widget2
    /multistep/:widget1/:widget2/:widget3
    

    optional static segment example

    /fr?/about will get expanded and matched with:

    /about
    /fr/about
    

Patch Changes

  • Stop incorrectly matching on partial named parameters, i.e. <Route path="prefix-:param">, to align with how splat parameters work. If you were previously relying on this behavior then it's recommended to extract the static portion of the path at the useParams call site: (#9506)

    // Old behavior at URL /prefix-123
    <Route path="prefix-:id" element={<Comp /> }>
    
    function Comp() {
      let params = useParams(); // { id: '123' }
      let id = params.id; // "123"
      ...
    }
    
    // New behavior at URL /prefix-123
    <Route path=":id" element={<Comp /> }>
    
    function Comp() {
      let params = useParams(); // { id: 'prefix-123' }
      let id = params.id.replace(/^prefix-/, ''); // "123"
      ...
    }
  • Persist headers on loader request's after SSR document action request (#9721)

  • Fix requests sent to revalidating loaders so they reflect a GET request (#9660)

  • GET forms now expose a submission on the loading navigation (#9695)

  • Fix error boundary tracking for multiple errors bubbling to the same boundary (#9702)

react-router-dom@6.5.0-pre.0

Patch Changes

  • Updated dependencies:
    • react-router@6.5.0-pre.0
    • @remix-run/router@1.1.0-pre.0

react-router-dom-v5-compat@6.5.0-pre.0

Patch Changes

  • Updated dependencies:
    • react-router@6.5.0-pre.0
    • react-router-dom@6.5.0-pre.0

react-router-native@6.5.0-pre.0

Patch Changes

  • Updated dependencies:
    • react-router@6.5.0-pre.0

@brophdawg11 brophdawg11 merged commit 1cef1a5 into release-next Dec 13, 2022
@brophdawg11 brophdawg11 deleted the changeset-release/release-next branch December 13, 2022 16:02
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.

None yet

2 participants