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

build(deps-dev): bump @remix-run/react from 2.11.2 to 2.12.1 #1541

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 20, 2024

Bumps @remix-run/react from 2.11.2 to 2.12.1.

Release notes

Sourced from @​remix-run/react's releases.

v2.12.1

See the changelog for release notes: https://github.com/remix-run/remix/blob/main/CHANGELOG.md#v2121

v2.12.0

See the changelog for release notes: https://github.com/remix-run/remix/blob/main/CHANGELOG.md#v2120

Changelog

Sourced from @​remix-run/react's changelog.

2.12.1

Patch Changes

2.12.0

Patch Changes

  • Lazy Route Discovery: Sort /__manifest query parameters for better caching (#9888)

  • Single Fetch: fix revalidation behavior bugs (#9938)

    • With Single Fetch, existing routes revalidate by default
    • This means requests do not need special query params for granular route revalidations out of the box - i.e., GET /a/b/c.data
    • There are two conditions that will trigger granular revalidation:
      • If a route opts out of revalidation via shouldRevalidate, it will be excluded from the single fetch call
      • If a route defines a clientLoader then it will be excluded from the single fetch call and if you call serverLoader() from your clientLoader, that will make a separarte HTTP call for just that route loader - i.e., GET /a/b/c.data?_routes=routes/a for a clientLoader in routes/a.tsx
    • When one or more routes are excluded from the single fetch call, the remaining routes that have loaders are included as query params:
      • For example, if A was excluded, and the root route and routes/b had a loader but routes/c did not, the single fetch request would be GET /a/b/c.data?_routes=root,routes/a
  • Remove hydration URL check that was originally added for React 17 hydration issues and we no longer support React 17 (#9890)

    • Reverts the logic originally added in Remix v1.18.0 via remix-run/remix#6409
    • This was added to resolve an issue that could arise when doing quick back/forward history navigations while JS was loading which would cause a mismatch between the server matches and client matches: remix-run/remix#1757
    • This specific hydration issue would then cause this React v17 only looping issue: remix-run/remix#1678
    • The URL comparison that we added in 1.18.0 turned out to be subject to false positives of it's own which could also put the user in looping scenarios
    • Remix v2 upgraded it's minimal React version to v18 which eliminated the v17 hydration error loop
    • React v18 handles this hydration error like any other error and does not result in a loop
    • So we can remove our check and thus avoid the false-positive scenarios in which it may also trigger a loop
  • Single Fetch: Improved typesafety (#9893)

    If you were already using previously released unstable single-fetch types:

    • Remove "@remix-run/react/future/single-fetch.d.ts" override from tsconfig.json > compilerOptions > types
    • Remove defineLoader, defineAction, defineClientLoader, defineClientAction helpers from your route modules
    • Replace UIMatch_SingleFetch type helper with UIMatch
    • Replace MetaArgs_SingleFetch type helper with MetaArgs

    Then you are ready for the new typesafety setup:

    // vite.config.ts
    declare module "@​remix-run/server-runtime" {
    interface Future {
    unstable_singleFetch: true; // 👈 enable types for single-fetch

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 20, 2024
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/remix-run/react-2.12.1 branch 22 times, most recently from 799ead7 to ef7b5ce Compare September 26, 2024 14:10
Bumps [@remix-run/react](https://github.com/remix-run/remix/tree/HEAD/packages/remix-react) from 2.11.2 to 2.12.1.
- [Release notes](https://github.com/remix-run/remix/releases)
- [Changelog](https://github.com/remix-run/remix/blob/main/packages/remix-react/CHANGELOG.md)
- [Commits](https://github.com/remix-run/remix/commits/@remix-run/[email protected]/packages/remix-react)

---
updated-dependencies:
- dependency-name: "@remix-run/react"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/remix-run/react-2.12.1 branch from ef7b5ce to 7ee2af5 Compare October 2, 2024 19:15
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 14, 2024

A newer version of @​remix-run/react exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@andy-liuu
Copy link
Contributor

@dependabot recreate

Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 18, 2024

Superseded by #1663.

@dependabot dependabot bot closed this Oct 18, 2024
auto-merge was automatically disabled October 18, 2024 19:47

Pull request was closed

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/remix-run/react-2.12.1 branch October 18, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Skip Changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants