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 #10935

Merged
merged 3 commits into from Oct 16, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 13, 2023

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.

Releases

react-router-dom@6.17.0

Minor Changes

  • Add support for the View Transitions API via document.startViewTransition to enable CSS animated transitions on SPA navigations in your application. (#10916)

    The simplest approach to enabling a View Transition in your React Router app is via the new <Link unstable_viewTransition> prop. This will cause the navigation DOM update to be wrapped in document.startViewTransition which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page.

    If you need to apply more fine-grained styles for your animations, you can leverage the unstable_useViewTransitionState hook which will tell you when a transition is in progress and you can use that to apply classes or styles:

    function ImageLink(to, src, alt) {
      let isTransitioning = unstable_useViewTransitionState(to);
      return (
        <Link to={to} unstable_viewTransition>
          <img
            src={src}
            alt={alt}
            style={{
              viewTransitionName: isTransitioning ? "image-expand" : "",
            }}
          />
        </Link>
      );
    }

    You can also use the <NavLink unstable_viewTransition> shorthand which will manage the hook usage for you and automatically add a transitioning class to the <a> during the transition:

    a.transitioning img {
      view-transition-name: "image-expand";
    }
    <NavLink to={to} unstable_viewTransition>
      <img src={src} alt={alt} />
    </NavLink>

    For an example usage of View Transitions with React Router, check out our fork of the Astro Records demo.

    For more information on using the View Transitions API, please refer to the Smooth and simple transitions with the View Transitions API guide from the Google Chrome team.

Patch Changes

  • Export a separate RouterProvider from react-router-dom with startViewTransition support (#10928)
  • Log a warning and fail gracefully in ScrollRestoration when sessionStorage is unavailable (#10848)
  • Updated dependencies:
    • @remix-run/router@1.10.0
    • react-router@6.17.0

@remix-run/router@1.10.0

Minor Changes

  • Add support for the View Transitions API by allowing users to opt-into view transitions on navigations via the new unstable_viewTransition option to router.navigate (#10916) (#10935)

Patch Changes

  • Allow 404 detection to leverage root route error boundary if path contains a URL segment (#10852)
  • Fix ErrorResponse type to avoid leaking internal field (#10876)

react-router@6.17.0

Patch Changes

  • Export a separate RouterProvider from react-router-dom with startViewTransition support (#10928)
  • [REMOVE] fix lint issues (#10930)
  • Fix RouterProvider future prop type to be a Partial<FutureConfig> so that not all flags must be specified (#10900)
  • Updated dependencies:
    • @remix-run/router@1.10.0

react-router-dom-v5-compat@6.17.0

Patch Changes

  • Updated dependencies:
    • react-router-dom@6.17.0
    • react-router@6.17.0

react-router-native@6.17.0

Patch Changes

  • Updated dependencies:
    • react-router@6.17.0

@github-actions github-actions bot force-pushed the changeset-release/release-next branch from fedbc5a to cbba53b Compare October 16, 2023 14:44
@github-actions github-actions bot changed the title chore: Update version for release (pre) chore: Update version for release Oct 16, 2023
@github-actions github-actions bot force-pushed the changeset-release/release-next branch from cbba53b to 6a00aaa Compare October 16, 2023 15:01
@brophdawg11 brophdawg11 merged commit edd9ad4 into release-next Oct 16, 2023
3 checks passed
@brophdawg11 brophdawg11 deleted the changeset-release/release-next branch October 16, 2023 15:48
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

1 participant