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(deps): update remix monorepo to v2.11.0 #34

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 5, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@remix-run/dev (source) 2.10.3 -> 2.11.0 age adoption passing confidence
@remix-run/node (source) 2.10.3 -> 2.11.0 age adoption passing confidence
@remix-run/react (source) 2.10.3 -> 2.11.0 age adoption passing confidence
@remix-run/serve (source) 2.10.3 -> 2.11.0 age adoption passing confidence

Release Notes

remix-run/remix (@​remix-run/dev)

v2.11.0

Compare Source

Minor Changes
  • Rename future.unstable_fogOfWar to future.unstable_lazyRouteDiscovery for clarity (#​9763)
Patch Changes
remix-run/remix (@​remix-run/node)

v2.11.0

Compare Source

Minor Changes
  • Single Fetch: Add a new unstable_data() API as a replacement for json/defer when custom status/headers are needed (#​9769)
  • Add a new replace(url, init?) alternative to redirect(url, init?) that performs a history.replaceState instead of a history.pushState on client-side navigation redirects (#​9764)
Patch Changes
remix-run/remix (@​remix-run/react)

v2.11.0

Compare Source

Minor Changes
  • Single Fetch: Add a new unstable_data() API as a replacement for json/defer when custom status/headers are needed (#​9769)

  • Add a new replace(url, init?) alternative to redirect(url, init?) that performs a history.replaceState instead of a history.pushState on client-side navigation redirects (#​9764)

  • Rename future.unstable_fogOfWar to future.unstable_lazyRouteDiscovery for clarity (#​9763)

  • Single Fetch: Remove responseStub in favor of headers (#​9769)

    • Background

      • The original Single Fetch approach was based on an assumption that an eventual middleware implementation would require something like ResponseStub so users could mutate status/headers in middleware before/after handlers as well as during handlers
      • We wanted to align how headers got merged between document and data requests
      • So we made document requests also use ResponseStub and removed the usage of headers in Single Fetch
      • The realization/alignment between Michael and Ryan on the recent roadmap planning made us realize that the original assumption was incorrect
      • middleware won't need a stub - users can just mutate the Response they get from await next() directly
      • With that gone, and still wanting to align how headers get merged, it makes more sense to stick with the current headers API and apply that to Single Fetch and avoid introducing a totally new thing in RepsonseStub (that always felt a bit awkward to work with anyway)
    • With this change:

      • You are encouraged to stop returning Response instances in favor of returning raw data from loaders and actions:
        • ~~return json({ data: whatever });~~
        • return { data: whatever };
      • In most cases, you can remove your json() and defer() calls in favor of returning raw data if they weren't setting custom status/headers
        • We will be removing both json and defer in the next major version, but both should still work in Single Fetch in v2 to allow for incremental adoption of the new behavior
      • If you need custom status/headers:
        • We've added a new unstable_data({...}, responseInit) utility that will let you send back status/headers alongside your raw data without having to encode it into a Response
      • The headers() function will let you control header merging for both document and data requests
Patch Changes
  • Single Fetch: Ensure calls don't include any trailing slash from the pathname (i.e., /path/.data) (#​9792)
  • Single Fetch: Add undefined to the useRouteLoaderData type override (#​9796)
  • Change initial hydration route mismatch from a URL check to a matches check to be resistant to URL inconsistencies (#​9695)
  • Updated dependencies:
remix-run/remix (@​remix-run/serve)

v2.11.0

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - "before 3am" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the T: renovate Automatic renewal by renovate label Aug 5, 2024
@renovate renovate bot enabled auto-merge (rebase) August 5, 2024 15:18
@renovate renovate bot merged commit 5a432d7 into main Aug 5, 2024
2 checks passed
@renovate renovate bot deleted the renovate/remix-monorepo branch August 5, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: renovate Automatic renewal by renovate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants