chore: Update version for release (pre) #4869
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
release-next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onrelease-next
.Releases
@remix-run/[email protected]
Minor Changes
Patch Changes
Support Typescript 4.9 features (like
satisfies
) in Remixapp/
code (#4754)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 compilerOptimize
parentRouteId
lookup indefineConventionalRoutes
(#4800)Local runs of production Remix builds:
Convention for Remix optional segments (#4706)
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:Another example:
/(one)/($two)/(three).($four)
route would match all of the following:fixes a bug in ts -> js conversion on windows by using a relative unix style path as fast-glob uses unix style paths (#4718)
Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
[email protected]
Patch Changes
@remix-run/[email protected]
[email protected]
Patch Changes
Support Typescript 4.9 features (like
satisfies
) in Remixapp/
code (#4754)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 compilerFix
TypedResponse
so that Typescript correctly shows errors for incompatible types in loaders and actions. (#4734)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:
In this case, Typescript would not show an error even though
42
is clearly not astring
.This happens because
json
returns aTypedResponse<string>
,but because
TypedReponse<string>
was previously justResponse & { json: () => Promise<string> }
and
Response
already defines{ json: () => Promise<any> }
, type erasure causedPromise<any>
to be used for42
.To fix this, we explicitly omit the
Response
'sjson
property before intersecting with{ json: () => Promise<T> }
.Optimize
parentRouteId
lookup indefineConventionalRoutes
(#4800)Local runs of production Remix builds:
adds a new testing package to allow easier testing of components using Remix specific apis like useFetcher, useActionData, etc. (#4539)
fixes a bug in ts -> js conversion on windows by using a relative unix style path as fast-glob uses unix style paths (#4718)
See the
CHANGELOG.md
in individual Remix packages for all changes.@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
Update
@remix-run/react
to useRouter
from[email protected]
(#4731)Allow pass-through props to be passed to the script rendered by
ScrollRestoration
(#2879)Bump RR deps (#4868)
adds a new testing package to allow easier testing of components using Remix specific apis like useFetcher, useActionData, etc. (#4539)
Fixed a problem with live reload and firefox infinitely reloading the page (#4725)
The problem is:
ws.onclose
immediately upon connecting (?!)ws.onclose
again after reconnecting and the loop starts overThis fix is to check
event.code === 1006
before actually trying to reconnect and the reload the page. 1006 means the connection was closed abnormally (https://www.rfc-editor.org/rfc/rfc6455#section-7.4.1). In our case, that means the server was shut down in local dev and then the socket can reconnect again when the server is back up.It’s unclear to me why Firefox is calling
onclose
immediately upon connecting to the web socket, but it does.@remix-run/[email protected]
Patch Changes
Fix
TypedResponse
so that Typescript correctly shows errors for incompatible types in loaders and actions. (#4734)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:
In this case, Typescript would not show an error even though
42
is clearly not astring
.This happens because
json
returns aTypedResponse<string>
,but because
TypedReponse<string>
was previously justResponse & { json: () => Promise<string> }
and
Response
already defines{ json: () => Promise<any> }
, type erasure causedPromise<any>
to be used for42
.To fix this, we explicitly omit the
Response
'sjson
property before intersecting with{ json: () => Promise<T> }
.adds a new testing package to allow easier testing of components using Remix specific apis like useFetcher, useActionData, etc. (#4539)
Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
Bump RR deps (#4868)
Fix
TypedResponse
so that Typescript correctly shows errors for incompatible types in loaders and actions. (#4734)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:
In this case, Typescript would not show an error even though
42
is clearly not astring
.This happens because
json
returns aTypedResponse<string>
,but because
TypedReponse<string>
was previously justResponse & { json: () => Promise<string> }
and
Response
already defines{ json: () => Promise<any> }
, type erasure causedPromise<any>
to be used for42
.To fix this, we explicitly omit the
Response
'sjson
property before intersecting with{ json: () => Promise<T> }
.loader
request
's proxy headers on documentaction
submissions (#4829)request
's reflectedmethod: "POST"
on document submissionsadds a new testing package to allow easier testing of components using Remix specific apis like useFetcher, useActionData, etc. (#4539)
Fix error boundary tracking for multiple errors bubbling to the same boundary (#4829)
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]