chore: Update version for release #4893
Merged
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.
Releases
@remix-run/dev@1.9.0
Minor Changes
Allow defining multiple routes for the same route module file (#3970)
Added support and conventions for optional route segments (#4706)
Routes surrounded by parenthesis will be converted 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:As with any of our conventions, you can escape this conversion by wrapping the route filename in square brackets. For example,
/[(one)]/two
would match the URL path/(one)/two
.Patch Changes
satisfies
keyword) (#4754)parentRouteId
lookup indefineConventionalRoutes
. (#4800).ts
->.js
conversion on Windows by using a relative unix-style path (#4718)@remix-run/server-runtime@1.9.0
create-remix@1.9.0
Patch Changes
@remix-run/dev@1.9.0
remix@1.9.0
Patch Changes
The Remix compiler now supports new Typescript 4.9 syntax (like the
satisfies
keyword) (#4754)Fix
TypedResponse
so that Typescript correctly shows errors for incompatible types inloader
andaction
functions. (#4734)Previously, when the return type of a
loader
oraction
was explicitly set toTypedResponse<SomeType>
,Typescript would not show errors when the function 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 becauseTypedReponse<string>
was previously justResponse & { json: () => Promise<string> }
andResponse
already defines{ json: () => Promise<any> }
, type erasure causedPromise<any>
to be used for42
.To fix this, we explicitly omit the
Response
object'sjson
property before intersecting with{ json: () => Promise<T> }
.Optimize
parentRouteId
lookup indefineConventionalRoutes
. (#4800)Fixed a bug in
.ts
->.js
conversion on Windows by using a relative unix-style path (#4718)See the
CHANGELOG.md
in individual Remix packages for all changes.@remix-run/architect@1.9.0
Patch Changes
@remix-run/node@1.9.0
@remix-run/cloudflare@1.9.0
Patch Changes
@remix-run/server-runtime@1.9.0
@remix-run/cloudflare-pages@1.9.0
Patch Changes
@remix-run/cloudflare@1.9.0
@remix-run/cloudflare-workers@1.9.0
Patch Changes
@remix-run/cloudflare@1.9.0
@remix-run/deno@1.9.0
Patch Changes
@remix-run/server-runtime@1.9.0
@remix-run/express@1.9.0
Patch Changes
@remix-run/node@1.9.0
@remix-run/netlify@1.9.0
Patch Changes
@remix-run/node@1.9.0
@remix-run/node@1.9.0
Patch Changes
@remix-run/server-runtime@1.9.0
@remix-run/react@1.9.0
Patch Changes
@remix-run/react
to useRouter
fromreact-router-dom@6.5.0
(#4731)ScrollRestoration
(#2879)<LiveReload>
and Firefox infinitely reloading the page. (#4725)@remix-run/serve@1.9.0
Patch Changes
Fix
TypedResponse
so that Typescript correctly shows errors for incompatible types inloader
andaction
functions. (#4734)Previously, when the return type of a
loader
oraction
was explicitly set toTypedResponse<SomeType>
,Typescript would not show errors when the function 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 becauseTypedReponse<string>
was previously justResponse & { json: () => Promise<string> }
andResponse
already defines{ json: () => Promise<any> }
, type erasure causedPromise<any>
to be used for42
.To fix this, we explicitly omit the
Response
object'sjson
property before intersecting with{ json: () => Promise<T> }
.Updated dependencies:
@remix-run/express@1.9.0
@remix-run/server-runtime@1.9.0
Patch Changes
Fix
TypedResponse
so that Typescript correctly shows errors for incompatible types inloader
andaction
functions. (#4734)Previously, when the return type of a
loader
oraction
was explicitly set toTypedResponse<SomeType>
,Typescript would not show errors when the function 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 becauseTypedReponse<string>
was previously justResponse & { json: () => Promise<string> }
andResponse
already defines{ json: () => Promise<any> }
, type erasure causedPromise<any>
to be used for42
.To fix this, we explicitly omit the
Response
object'sjson
property before intersecting with{ json: () => Promise<T> }
.Fix error boundary tracking for multiple errors bubbling to the same boundary (#4829)
Fixed an issue where a loader's
Request
object reflectedmethod: "POST"
on document submissions (a74e51830
)@remix-run/testing@1.9.0
Patch Changes
@remix-run/react@1.9.0
@remix-run/server-runtime@1.9.0
@remix-run/node@1.9.0
@remix-run/vercel@1.9.0
Patch Changes
@remix-run/node@1.9.0
@remix-run/eslint-config@1.9.0