-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: rename next to remix #9961
Conversation
|
@@ -13,7 +13,7 @@ | |||
"isolatedModules": true, | |||
"esModuleInterop": true, | |||
"jsx": "react-jsx", | |||
"module": "ESNext", | |||
"module": "ESRemix", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol
LGTM 👍🏻 |
@@ -79,7 +79,7 @@ export function ProjectList({ projects }) { | |||
} | |||
``` | |||
|
|||
Or add a spinner next to it by inspecting params: | |||
Or add a spinner remix to it by inspecting params: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😭
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 😆
@@ -263,7 +263,7 @@ We found that the `future.unstable_fogOfWar` flag name could be a bit confusing | |||
|
|||
The original Single Fetch approach was based on an assumption that an eventual `middleware` implementation would require something like the `ResponseStub` API so users could mutate `status`/`headers` in `middleware` before/after handlers as well as during handlers. As part of Single Fetch, we wanted to align how response headers would be merged between document and data requests. Thinking `response` was the future API, we aligned document requests to use the `response` stub that data requests were using, and we stopped using the `headers()` function. | |||
|
|||
However, the realization/alignment between Michael and Ryan on the recent [roadmap planning](https://www.youtube.com/watch?v=f5z_axCofW0) made us realize that the original assumption was incorrect. `middleware` won't need a `response` stub - as users can just mutate the `Response` they get from `await next()` directly. | |||
However, the realization/alignment between Michael and Ryan on the recent [roadmap planning](https://www.youtube.com/watch?v=f5z_axCofW0) made us realize that the original assumption was incorrect. `middleware` won't need a `response` stub - as users can just mutate the `Response` they get from `await remix()` directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we should rename "next" to "remix" here 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of issues where "next" as a word was replaced with remix, the PR should be done with more care on these issues. Also changelogs should not be tempered with.
@@ -275,7 +275,7 @@ With this change: | |||
- ✅ `return { data: "whatever" };` | |||
- If you _were_ returning a custom `status` or `headers` via `json`/`defer`: | |||
- We've added a new API-compatible [`unstable_data`](https://remix.run/docs/utils/data) utility that will let you send back `status`/`headers` alongside your raw data without having to encode it into a `Response` | |||
- 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 | |||
- We will be removing both `json` and `defer` in the remix major version, but both _should_ still work in Single Fetch in v2 to allow for incremental adoption of the new behavior |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks like a search and replace mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no this looks right to me, the remix major version
@@ -93,9 +93,9 @@ You may need to make changes to a pre-release prior to publishing a final stable | |||
- Once the release is published: | |||
- Pull the latest `release-*` branch containing the PR you just merged | |||
- Merge the `release-*` branch into `main` **using a non-fast-forward merge** and push it up to GitHub | |||
- `git checkout main; git merge --no-ff release-next` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next in here is also not referring to the framework name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're trying to release-remix not release next js
@@ -30,7 +30,7 @@ In [Remixing React Router][remixing router], Ryan gives an overview of the work | |||
|
|||
### Move the bulk of logic to a framework-agnostic router | |||
|
|||
Thankfully this decision was sort of already made by Ryan. Maybe a surprise to some, maybe not, the current transition manager doesn't import or reference `react` or `react-router` a single time. This is by design because the logic being handled has nothing to do with how to render the UI layer. It's all about "what route am I on?", "what route am I going to?", "how do I load data for the next route?", "how do I interrupt ongoing navigations?" etc. None of these decisions actually _care_ about how the route and its data will eventually be rendered. Instead, the router simply needs to know whether given routes _have_ components and/or error boundaries - but it doesn't need to know about them or how to render them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more rename issue
LGTM! |
lol |
when remix was forked from next it looks like you forgot to rename some things, this PR finishes renaming them to Remix