-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into chance/changesets-peer-deps-fix
- Loading branch information
Showing
234 changed files
with
8,112 additions
and
6,471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@remix-run/react": patch | ||
--- | ||
|
||
Update `@remix-run/react` to use `Router` from `react-router-dom@6.4.4` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"remix": patch | ||
"@remix-run/dev": patch | ||
--- | ||
|
||
Support Typescript 4.9 features (like `satisfies`) in Remix `app/` code | ||
|
||
esbuild 0.15.13 added support for parsing TS 4.9 `satisfies`, so upgrading to esbuild 0.16.3 adds that ability to the Remix compiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@remix-run/react": patch | ||
--- | ||
|
||
Allow pass-through props to be passed to the script rendered by `ScrollRestoration` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
"remix": patch | ||
"@remix-run/serve": patch | ||
"@remix-run/server-runtime": patch | ||
--- | ||
|
||
Fix `TypedResponse` so that Typescript correctly shows errors for incompatible types in loaders and actions. | ||
|
||
Previously, when the return type of a loader or action was explicitly set to `TypedResponse<SomeType>`, | ||
Typescript would not show errors when the loader or action returned an incompatible type. | ||
|
||
For example: | ||
|
||
```ts | ||
export const action = async ( | ||
args: ActionArgs | ||
): Promise<TypedResponse<string>> => { | ||
return json(42); | ||
}; | ||
``` | ||
|
||
In this case, Typescript would not show an error even though `42` is clearly not a `string`. | ||
|
||
This happens because `json` returns a `TypedResponse<string>`, | ||
but because `TypedReponse<string>` was previously just `Response & { json: () => Promise<string> }` | ||
and `Response` already defines `{ json: () => Promise<any> }`, type erasure caused `Promise<any>` to be used for `42`. | ||
|
||
To fix this, we explicitly omit the `Response`'s `json` property before intersecting with `{ json: () => Promise<T> }`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"remix": patch | ||
"@remix-run/dev": patch | ||
--- | ||
|
||
Optimize `parentRouteId` lookup in `defineConventionalRoutes` | ||
|
||
Local runs of production Remix builds: | ||
|
||
- Realistic project w/ 700 routes: 10-15s -> <1s (>10x faster) | ||
- Example project w/ 1,111 routes: 27s -> 0.104s (259x faster) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
"@remix-run/dev": patch | ||
--- | ||
|
||
Convention for Remix optional segments | ||
|
||
Note that this only set ups the convention conversion for React Router. | ||
Optional segments won't be available in Remix until Remix is built on top of React Router v6.5 | ||
|
||
Converts segments surrounded by parenthesis into optional segments for React Router. | ||
For example `/($lang)/about` will be converted to `/:lang?/about` in React Router. | ||
|
||
This means `/($lang)/about` would match: | ||
|
||
``` | ||
/en/about | ||
/fr/about | ||
/about | ||
``` | ||
|
||
Another example: `/(one)/($two)/(three).($four)` route would match all of the following: | ||
|
||
``` | ||
/ | ||
/one | ||
/one/param1 | ||
/one/param1/three | ||
/one/param1/three/param2 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"remix": patch | ||
"@remix-run/react": patch | ||
"@remix-run/serve": patch | ||
"@remix-run/server-runtime": patch | ||
"@remix-run/testing": patch | ||
--- | ||
|
||
adds a new testing package to allow easier testing of components using Remix specific apis like useFetcher, useActionData, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
tags: | ||
# only run on `remix` tags | ||
- "remix@*" | ||
- remix@** | ||
|
||
jobs: | ||
comment: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.