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

Merge v7 to dev #11768

Merged
merged 2,031 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2031 commits
Select commit Hold shift + click to select a range
ba9e876
Read Vite config in `reveal`/`routes` commands (#8916)
markdalgleish Feb 28, 2024
2b673d9
Bump router (#8936)
brophdawg11 Feb 28, 2024
8d86630
chore: Update version for release (pre) (#8937)
github-actions[bot] Feb 28, 2024
73b2131
chore: Update version for release (#8938)
github-actions[bot] Feb 28, 2024
c0d3e4c
Merge branch 'release-next'
brophdawg11 Feb 28, 2024
ce4c075
Merge branch 'release-next' into dev
brophdawg11 Feb 28, 2024
f601d2f
Add Vite commands to CLI `--help` (#8939)
markdalgleish Feb 29, 2024
412c70d
Vite: Fix `build.sourcemap` config support (#8965)
markdalgleish Mar 4, 2024
8a549a4
Vite: Fix `server.fs.allow` with default entry (#8966)
markdalgleish Mar 4, 2024
c4e9787
Clean `?client-route=1` in build manifest (#8969)
markdalgleish Mar 4, 2024
fd5fb6d
Bump router (#8984)
brophdawg11 Mar 5, 2024
7f88cd9
Merge branch 'main' into release-next
brophdawg11 Mar 5, 2024
efef744
chore: Update version for release (pre) (#8985)
github-actions[bot] Mar 5, 2024
0be6718
Migrate to pnpm (#8848)
markdalgleish Mar 6, 2024
43a1aee
Bump router (#9010)
brophdawg11 Mar 7, 2024
0d64696
chore: Update version for release (pre) (#9011)
github-actions[bot] Mar 7, 2024
29f9dfe
chore: Update version for release (#9012)
github-actions[bot] Mar 7, 2024
bf54911
Merge branch 'release-next' into dev
brophdawg11 Mar 7, 2024
ed23eb1
Fix vite-ecosystem-ci integration (#8997)
markdalgleish Mar 8, 2024
7b1f5de
Add future flag for Single Fetch (#8773)
brophdawg11 Mar 12, 2024
adc11ff
Migrate Vite build test to Vite test helpers (#9076)
markdalgleish Mar 19, 2024
861d948
Fix SPA mode when single fetch is enabled (#9063)
brophdawg11 Mar 19, 2024
d711eb7
Update single fetch logic when clientLoaders are present (#9073)
brophdawg11 Mar 19, 2024
d8a3f7a
Scope single fetch headers calls to only loaded routes (#9085)
brophdawg11 Mar 19, 2024
3dd1a94
Promote Vite templates, nest classic templates (#9077)
markdalgleish Mar 19, 2024
6190214
Fix webkit single fetch prefetching tests
brophdawg11 Mar 19, 2024
ad6455a
fix: handle net new redirects created by handleDataRequest (#9104)
jacob-ebey Mar 21, 2024
6b856bc
Use shared Jest config (#11362)
markdalgleish Mar 22, 2024
39565e8
feat: use undici as fetch polyfill (#9106)
jacob-ebey Mar 22, 2024
e977d54
chore: use undici / native node fetch (#11364)
jacob-ebey Mar 22, 2024
958e3b7
Fix handleDataRequest redirects in single fetch (#9132)
brophdawg11 Mar 25, 2024
69f5196
Fix remix-routes not transforming source maps (#8970)
IgnusG Mar 26, 2024
7498997
Update single fetch headers approach to use response stub API (#9142)
brophdawg11 Mar 27, 2024
3a90d41
Bump router (#9147)
brophdawg11 Mar 27, 2024
3cfcea9
Move single fetch server code into standalone file (#9148)
brophdawg11 Mar 27, 2024
3b12d8b
Merge branch 'main' into release-next
brophdawg11 Mar 27, 2024
16f17f0
chore: Update version for release (pre) (#9150)
github-actions[bot] Mar 27, 2024
4fa24c1
Merge remote-tracking branch 'remix/migration-src' into migration-dest
brophdawg11 Mar 27, 2024
7580c2c
Merge pull request #11380 from remix-run/migration-dest
brophdawg11 Mar 27, 2024
c59aca0
Fix lint errors (#11381)
markdalgleish Mar 28, 2024
2e8ad76
Add migrated packages to Rollup build (#11382)
markdalgleish Mar 28, 2024
f2fc740
Merge branch 'dev' into v7
markdalgleish Mar 28, 2024
d242c99
Add TypeScript to migrated package builds (#11383)
markdalgleish Mar 28, 2024
91a0850
Configure Jest package setups (#11391)
brophdawg11 Apr 1, 2024
4370897
Enhance RouterProvider for SSR (#11396)
brophdawg11 Apr 2, 2024
1bfa312
Migrate Playwright fixture to Vite by default (#11395)
jacob-ebey Apr 2, 2024
6cd5fc0
Update eslint packages (#11398)
markdalgleish Apr 2, 2024
199feb3
Bring over @remix-run/react unit tests (#11400)
brophdawg11 Apr 3, 2024
74be768
Bring Remix ScrollRestoration logic into react-router-dom (#11401)
brophdawg11 Apr 3, 2024
03cb7e0
Add prefetching support to Link/NavLink (#11402)
brophdawg11 Apr 3, 2024
e4ef97a
Remove classic compiler and init command (#11399)
markdalgleish Apr 3, 2024
84d05db
Remove classic compiler from tests (#11405)
markdalgleish Apr 3, 2024
c5dba69
WIP: Set up Playwright (#11406)
markdalgleish Apr 4, 2024
8ec8f45
Converting additional playwright tests (#11407)
brophdawg11 Apr 4, 2024
a213f75
Migrate `dev` and `serve` APIs (#11410)
markdalgleish Apr 5, 2024
9ff1297
Playwright test updates (#11412)
brophdawg11 Apr 5, 2024
2e162a0
Remove `LiveReload`, enable `action-test` (#11416)
markdalgleish Apr 7, 2024
d443999
Skip multi-fetch tests, enable passing tests (#11419)
markdalgleish Apr 8, 2024
15268c4
Fix `file-uploads-test` (#11421)
markdalgleish Apr 8, 2024
a4b423f
Fix `vite-basename-test` (#11422)
markdalgleish Apr 8, 2024
ad3679a
Add missing MDX plugin for tests (#11423)
markdalgleish Apr 8, 2024
421cf56
Fix `error-sanitization-test` (#11420)
markdalgleish Apr 8, 2024
cb7d17d
Fix `vite-css-test` (#11425)
markdalgleish Apr 9, 2024
7ab9c8a
Fix `vite-dot-server-test` (#11426)
markdalgleish Apr 9, 2024
368b991
Run integration tests cross-browser (#11427)
markdalgleish Apr 9, 2024
dfe2b03
Update error sanitization logic (#11434)
brophdawg11 Apr 10, 2024
c0cc242
V7 rename (#11403)
jacob-ebey Apr 10, 2024
3f4536f
Fix Windows Rollup build (#11435)
markdalgleish Apr 11, 2024
ffbe259
Remove css-bundle references (#11436)
markdalgleish Apr 11, 2024
e38f97f
Pin nvmrc to 20.5.1 to fix local Playwright (#11440)
markdalgleish Apr 12, 2024
cf4ee0c
Fix integration workspace dependency (#11441)
markdalgleish Apr 12, 2024
6003e32
Fix Playwright hanging in Node 20.5.2+ (#11446)
markdalgleish Apr 15, 2024
5057d22
Remove manual mode hooks (#11444)
markdalgleish Apr 16, 2024
b97be08
Handle TypeScript errors in watch mode (#11455)
markdalgleish Apr 16, 2024
b072725
Upgrade TypeScript to ^5.4.5 (#11445)
markdalgleish Apr 16, 2024
7418a45
Remove obsolete terminal UX utils
pcattori Apr 16, 2024
7e05ad7
Merge pull request #11457 from remix-run/pedro/tux
pcattori Apr 16, 2024
a364d2e
ignore babel config for `react-refresh` transform
pcattori Apr 16, 2024
5a9b907
Merge pull request #11458 from remix-run/pedro/ignore-babel-config
pcattori Apr 16, 2024
38e986f
Fix `router` prop type on `RouterProvider` (#11465)
markdalgleish Apr 17, 2024
0af95d4
Update Changesets and experimental release flow (#11442)
markdalgleish Apr 17, 2024
f286ad7
Add playgrounds (#11464)
markdalgleish Apr 17, 2024
15c8ed9
Add `typecheck` script (#11471)
markdalgleish Apr 18, 2024
b23e2b4
Extract remix logic out of RouterProvider into HydratedRouter (#11469)
brophdawg11 Apr 18, 2024
6ee39d0
Remove circular dependencies in react-router-dom (#11474)
brophdawg11 Apr 19, 2024
a34b722
Remove non-v7 packages (#11479)
brophdawg11 Apr 19, 2024
2da4b99
Merge branch 'dev' into v7
brophdawg11 Apr 23, 2024
aacff98
Remove text/x-turbo check from client side for use with SSG scenarios…
brophdawg11 Mar 29, 2024
90db007
Simplify implementation (#9157)
brophdawg11 Mar 29, 2024
a08fb0d
chore: Update version for release (pre) (#9164)
github-actions[bot] Mar 29, 2024
f2ae2bd
Remove Future subheading on docs site and update CLI links (#9176)
brophdawg11 Apr 1, 2024
a27a3b1
chore: Update version for release (pre) (#9177)
github-actions[bot] Apr 1, 2024
192d353
Fix Vite critical CSS resolution for route files with absolute paths …
frandiox Apr 3, 2024
e33a091
chore: Update version for release (pre) (#9199)
github-actions[bot] Apr 4, 2024
4b06650
Fix typings for response in LoaderFunctonArgs/ActionFunctionArgs (#9254)
brophdawg11 Apr 18, 2024
774708e
chore: Update version for release (pre) (#9255)
github-actions[bot] Apr 19, 2024
6161753
chore: Update version for release (pre) (#9281)
github-actions[bot] Apr 22, 2024
0ed8d6d
chore: Update version for release (pre) (#9283)
github-actions[bot] Apr 22, 2024
e82f2d4
chore: Update version for release (pre) (#9284)
github-actions[bot] Apr 22, 2024
ef19c90
chore: Update version for release (pre) (#9290)
github-actions[bot] Apr 23, 2024
d110395
chore: Update version for release (#9291)
github-actions[bot] Apr 23, 2024
b774971
Fix e2e test
brophdawg11 Apr 23, 2024
52e4b1c
Merge pull request #11488 from remix-run/brophdawg11/remix-2.9.0-patches
brophdawg11 Apr 23, 2024
9103c6b
Only add RR packages to `ssr.external` in RR repo (#11489)
markdalgleish Apr 24, 2024
f322d47
Remove `@react-router/node` from `optimizeDeps.include` (#11490)
markdalgleish Apr 24, 2024
221a2c9
Fix `dest already exists error` during Vite build (#11501)
markdalgleish Apr 26, 2024
b98c549
Skip `vite-route-added-test` in Safari (#11511)
markdalgleish Apr 30, 2024
5ae9979
Collapse Packages (#11505)
brophdawg11 Apr 30, 2024
13291f6
Unify config resolution logic (#11510)
markdalgleish May 1, 2024
6ce411a
Remove __DEV__ code flag (#11519)
brophdawg11 May 1, 2024
d1e0dd6
adds typedoc to start autogenerating reference docs
ryanflorence May 1, 2024
4464591
bumps up the filesize check
ryanflorence May 2, 2024
3f5c4c4
Merge pull request #11520 from remix-run/ryan/api-docs
ryanflorence May 2, 2024
c590988
more v7 docs work (#11523)
ryanflorence May 2, 2024
83d0c5c
adds `LinksFunction` exports and inline docs
ryanflorence May 2, 2024
0352218
export NavLinkRenderProps and document NavLink
ryanflorence May 2, 2024
02eac3d
export PrefetchPageDescriptor and docs
ryanflorence May 2, 2024
c1403da
Merge pull request #11525 from remix-run/ryan/api-docs
ryanflorence May 3, 2024
94d9734
Clean redundant `?client-route=1` usage in dev (#11542)
markdalgleish May 9, 2024
aab4ea0
feat: remove singleFetch flag (#11522)
jacob-ebey May 9, 2024
361eb79
Expose promises from underlying router operations for use in react 19…
brophdawg11 May 9, 2024
cb25a21
Add support for prerendering (#11539)
brophdawg11 May 9, 2024
fca859a
Update remix-serve static serving for prerendering
brophdawg11 May 9, 2024
13d6d43
Merge pull request #11547 from remix-run/brophdawg11/prerender-serve
ryanflorence May 9, 2024
0160fb4
Add docs on prerendering
brophdawg11 May 10, 2024
f8b1a47
Merge branch 'dev' into v7
brophdawg11 May 10, 2024
5466640
Update publish script to handle nightly releases
brophdawg11 May 10, 2024
96b441b
Bring over Remix 2.9.2 logic for single fetch (#11552)
brophdawg11 May 10, 2024
bb58afd
Fix prerender test on Windows (#11567)
markdalgleish May 19, 2024
47cbad2
Remove unused `entry.dev.ts` (#11568)
markdalgleish May 20, 2024
d4127aa
Clean build manifest output (#11573)
markdalgleish May 21, 2024
b2c8f9c
Remove unused node-fetch dependency (#11569)
brophdawg11 May 21, 2024
73afcdc
Remove `publicPath` from resolved config (#11575)
markdalgleish May 23, 2024
2e6c1e0
lots of docs work, new exports of public types (#11579)
ryanflorence May 23, 2024
d0c7128
fix: hide window check behind typeof (#11580)
jacob-ebey May 23, 2024
1974c26
moar docs (#11581)
ryanflorence May 23, 2024
135d8d9
wip deploying doc (#11585)
ryanflorence May 24, 2024
1ed61a3
Tweak some wording and examples
brookslybrand May 24, 2024
f0881d2
Small tweaks to deploying.md
brookslybrand May 24, 2024
aed4ad0
export -> method
brookslybrand May 24, 2024
0374749
Remove unused classic compiler HMR logic (#11594)
markdalgleish May 29, 2024
10a6fd0
more v7 docs (#11602)
ryanflorence May 30, 2024
bad24c1
Merge pull request #11586 from remix-run/brooks/v7-start-doc-updates
brookslybrand Jun 3, 2024
46ebf70
Remove unused integration test templates (#11618)
markdalgleish Jun 6, 2024
295d738
Remove Cloudflare Vite dev proxy (#11617)
markdalgleish Jun 6, 2024
09b52e4
Make Vite peer dependency required (#11616)
markdalgleish Jun 6, 2024
2d34a7e
Remove unused default server entries (#11615)
markdalgleish Jun 18, 2024
a9e1d47
Support SSR build entry overrides (#11682)
markdalgleish Jun 19, 2024
9a34f98
Allow returning undefined from actions and loaders (#11680)
brophdawg11 Jun 19, 2024
d5ad061
Clean dev SSR externals list (#11686)
markdalgleish Jun 20, 2024
defd48f
Remove duplicate RouterProvider implementations (#11679)
brophdawg11 Jun 20, 2024
4a3ba59
Remove entry.server.spa.tsx implementation (#11681)
brophdawg11 Jun 20, 2024
06f6e30
rename RemixServer → ServerRouter (#11654)
ryanflorence Jun 20, 2024
c3d7889
updates minimum React version to 18 (#11689)
ryanflorence Jun 20, 2024
3e33e81
defineRoute: types and type tests
pcattori Jun 20, 2024
23e5f0e
update minimum node version to 18 (#11690)
ryanflorence Jun 20, 2024
a7de858
fix types when both server action and client action are defined
pcattori Jun 20, 2024
ec95c64
move defineRoute export out of "internals" section
pcattori Jun 20, 2024
b4c97b7
edit TODO to refer to PR that brings server-runtime into react-router
pcattori Jun 20, 2024
bf6d9cf
Merge pull request #11691 from remix-run/pedro/define-route-types
pcattori Jun 20, 2024
9e82a04
createRemixStub -> createRoutesStub (#11692)
ryanflorence Jun 20, 2024
8e8de9b
defineRoute: type helpers for `meta({matches})` and `useMatches`
pcattori Jun 20, 2024
23e3099
Merge pull request #11694 from remix-run/pedro/define-route-matches
pcattori Jun 20, 2024
8408889
upgrading docs work
ryanflorence Jun 21, 2024
058b57f
wordsmithing
ryanflorence Jun 21, 2024
97be8ab
Migrate `react-router-dom` test usage (#11699)
markdalgleish Jun 21, 2024
559b0eb
Move `server-runtime` into `react-router` (#11698)
markdalgleish Jun 21, 2024
647338c
generate typedocs for all packages
ryanflorence Jun 21, 2024
3c5c242
no react-router re-exports from node (#11702)
ryanflorence Jun 21, 2024
dcd64b5
rename remix folders to react-router-* (#11704)
ryanflorence Jun 21, 2024
111d9d5
rename RemixContext -> FrameworkContext (#11705)
ryanflorence Jun 21, 2024
7bee528
defineRoute: allow `undefined` to be returned from loaders and actions
pcattori Jun 21, 2024
1ea1d90
Merge pull request #11708 from remix-run/pedro/define-route-allow-und…
pcattori Jun 21, 2024
48f21b3
defineRoute: allow unserializable data in client loader and action
pcattori Jun 21, 2024
2daa511
add `as const` to server loaders
pcattori Jun 21, 2024
8387ac2
docs: stubs for deploying docs
ryanflorence Jun 21, 2024
99e8291
docs: using fetchers guide
ryanflorence Jun 21, 2024
026812e
highlighting on fetchers guide
ryanflorence Jun 21, 2024
f06564c
Merge pull request #11709 from remix-run/pedro/define-route-allow-uns…
pcattori Jun 21, 2024
128652c
docs: add await so transition waits for revalidation
ryanflorence Jun 21, 2024
ea6d5be
Merge branch 'dev' into v7
brophdawg11 Jun 24, 2024
c9e50ca
Fix merge conflict import paths
brophdawg11 Jun 24, 2024
7ac021a
Remove bundle size check (#11718)
brophdawg11 Jun 24, 2024
731251f
defineRoute: use AppLoadContext
pcattori Jun 24, 2024
b54a81c
Merge pull request #11720 from remix-run/pedro/define-route-app-load-…
pcattori Jun 24, 2024
e66e2b8
test: upgrade vite-env-only
pcattori Jun 25, 2024
05a94ec
Merge pull request #11721 from remix-run/pedro/upgrade-vite-env-only
pcattori Jun 25, 2024
f754173
Remove future.v7_relativeSplatPath flag (#11695)
brophdawg11 Jun 25, 2024
714a2c5
Remove future.v7_startTransition flag (#11696)
brophdawg11 Jun 25, 2024
618a5be
Remove future.v7_normalizeFormMethod (#11697)
brophdawg11 Jun 25, 2024
5b02e7d
Remove future.v7_partialHydration flag (#11725)
brophdawg11 Jun 25, 2024
a6299fd
Remove future.v7_prependBasename from @remix-run/router (#11726)
brophdawg11 Jun 25, 2024
5744aa5
Remove future.v7_throwAbortReason flag (#11728)
brophdawg11 Jun 25, 2024
1c810dc
Bump express to 4.19.2 (Remix PR 9184)
brophdawg11 Jun 25, 2024
1f676e5
Fix single fetch issues w/response stubs + resource routes (Remix PR …
brophdawg11 Jun 25, 2024
7e4e582
Properly handle thrown 4xx/5xx response stubs in single fetch (Remix …
brophdawg11 Jun 25, 2024
288ffd4
Fix initial hydration matching when using a basename (Remix PR 9584)
brophdawg11 Jun 25, 2024
52086a6
Update turbo-stream to latest (Remix PR 9562)
brophdawg11 Jun 25, 2024
b2998db
defineRoute: compile-time checks
pcattori Jun 25, 2024
ac5b36c
Merge pull request #11730 from remix-run/pedro/define-route-compile-t…
pcattori Jun 25, 2024
b1b0184
Update single fetch redirects to use a 202 status code on data reques…
brophdawg11 Jun 25, 2024
6fdcc51
Dont prefetch server loader when client loader exists (Remix PR 9580)
brophdawg11 Jun 25, 2024
511d433
Avoid hydration loops when layout error renders also throw (Remix PR …
brophdawg11 Jun 26, 2024
bd0484c
Bump undici to 6.11.1 (Remix PR 9543)
brophdawg11 Jun 26, 2024
716cb3a
Fix e2e test for webkit due to no prefetch support (Remix commit b6c2…
brophdawg11 Jun 26, 2024
3e67c66
Fix non-chromium e2e test assertions (Remix commit ad74d67)
brophdawg11 Jun 26, 2024
96bc80c
Fix TS error
brophdawg11 Jun 26, 2024
30a2117
Fix undici Headers/ResponseStub error
brophdawg11 Jun 26, 2024
dd3eded
Remove unused imports
brophdawg11 Jun 26, 2024
96b414f
Comment out failing windows test
brophdawg11 Jun 26, 2024
c846a2e
Merge pull request #11734 from remix-run/brophdawg11/remix-2-10-0
brophdawg11 Jun 26, 2024
5e57ec9
Merge branch 'dev' into v7
brophdawg11 Jun 27, 2024
c89a0d2
Fog of War (Remix PR 9600)
brophdawg11 Jun 26, 2024
de33399
Fix fog of war issue routing back to index from deep route SSRs (Remi…
brophdawg11 Jun 26, 2024
f3d2155
Handle pathless/index route children for initially rendered ancestors…
brophdawg11 Jun 26, 2024
03efbcc
Remove AbortController and respect URL length limits (Remix PR 9626)
brophdawg11 Jun 26, 2024
4c55975
Update unit tests to reflect data-discover attribute
brophdawg11 Jun 26, 2024
460a0f3
Fix tests and add back in URL mismatch detection
brophdawg11 Jun 26, 2024
1090f11
Support Fog of War form discovery and fix link prefetching (Remix PR …
brophdawg11 Jun 27, 2024
9835de6
Update unit tests to reflect form data-discover
brophdawg11 Jun 27, 2024
9b120d3
Merge pull request #11735 from remix-run/brophdawg11/remix-2-10-0-fog…
brophdawg11 Jun 27, 2024
43e400b
Remove future.v7_fetcherPersist flag (#11731)
brophdawg11 Jun 27, 2024
65d3d6c
Clarify internal fetcher naming now that fetcherPersist is always on …
brophdawg11 Jun 27, 2024
a24c968
Fix playgrounds not installing binaries
brophdawg11 Jun 28, 2024
4996fbe
Merge pull request #11747 from remix-run/brophdawg11/fix-playground
pcattori Jun 28, 2024
0457dbe
Remove defer implementation in favor of raw promises (#11744)
brophdawg11 Jul 1, 2024
64f0d0a
Remove deprecated detectErrorBoundaries (#11751)
brophdawg11 Jul 1, 2024
dbf2e3d
Simplify default Node server entry (#11619)
markdalgleish Jul 1, 2024
9818bb9
virtual modules for each route
pcattori Jul 1, 2024
17a82a7
forward and back compatible `getRouteModuleExports`
pcattori Jul 1, 2024
a385385
adapt defineRoute default export to route module structure
pcattori Jul 1, 2024
0a78b29
Merge pull request #11762 from remix-run/pedro/define-route-modules
pcattori Jul 2, 2024
ec37db8
Fix local package bins (#11763)
markdalgleish Jul 2, 2024
a9e28d6
rename fields to match route module exports
pcattori Jul 2, 2024
21d4151
move route entry transform to a `pre` plugin
pcattori Jul 2, 2024
acc3b7f
Merge pull request #11764 from remix-run/pedro/define-route-component…
pcattori Jul 2, 2024
f3528ba
wip
pcattori Jul 2, 2024
06b054a
defineRoute: test for removing server-only code
pcattori Jul 2, 2024
ecd35cd
Merge pull request #11765 from remix-run/pedro/define-route-remove-se…
pcattori Jul 2, 2024
520ab61
Use linked package bins in test templates (#11766)
markdalgleish Jul 3, 2024
7fe0cb9
Merge branch 'dev' into v7
brophdawg11 Jul 3, 2024
3f25ab3
Update to isbot@5 (#11770)
brophdawg11 Jul 3, 2024
ad76148
Merge branch 'dev' into v7
brophdawg11 Jul 10, 2024
f14165b
Copy v7_skipActionErrorRevalidation docs into v6 upgrade guide
brophdawg11 Jul 10, 2024
4901f05
Add exports field to all packages (#11675)
markdalgleish Jul 11, 2024
c4c48af
Copy Remix decision docs over (#11791)
brophdawg11 Jul 12, 2024
280d65c
Add Cloudflare package (#11801)
markdalgleish Jul 15, 2024
d09ff87
Fix Cloudflare package peer dep (#11802)
markdalgleish Jul 15, 2024
dfd2d14
Port Remix Architect package (#11804)
markdalgleish Jul 16, 2024
7281167
Merge branch 'dev' into v7
brophdawg11 Jul 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/calm-frogs-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-router/cloudflare": major
---

For Remix consumers migrating to React Router, all exports from `@remix-run/cloudflare-pages` are now provided for React Router consumers in the `@react-router/cloudflare` package. There is no longer a separate package for Cloudflare Pages.
12 changes: 12 additions & 0 deletions .changeset/chilled-masks-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"react-router-dom": major
"react-router": major
---

Remove the original `defer` implementation in favor of using raw promises via single fetch and `turbo-stream`. This removes these exports from React Router:

- `defer`
- `AbortedDeferredError`
- `type TypedDeferredData`
- `UNSAFE_DeferredData`
- `UNSAFE_DEFERRED_SYMBOL`,
8 changes: 8 additions & 0 deletions .changeset/collapse-packages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"react-router": major
---

- Collapse `@remix-run/router` into `react-router`
- Collapse `react-router-dom` into `react-router`
- Collapse `@remix-run/server-runtime` into `react-router`
- Collapse `@remix-run/testing` into `react-router`
11 changes: 8 additions & 3 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@
[
"react-router",
"react-router-dom",
"react-router-dom-v5-compat",
"react-router-native"
"@react-router/dev",
"@react-router/express",
"@react-router/node",
"@react-router/serve"
]
],
"linked": [],
"access": "public",
"baseBranch": "dev",
"updateInternalDependencies": "patch",
"bumpVersionsWithWorkspaceProtocolOnly": true,
"ignore": []
"ignore": ["integration", "integration-*", "@playground/*"],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
5 changes: 5 additions & 0 deletions .changeset/create-remix-router.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router-dom": major
---

Use `createRemixRouter`/`RouterProvider` in `entry.client` instead of `RemixBrowser`
11 changes: 11 additions & 0 deletions .changeset/curvy-teachers-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@react-router/server-runtime": major
"react-router-dom": major
"@react-router/express": major
"react-router": major
"@react-router/serve": major
"@react-router/node": major
"@react-router/dev": major
---

Remove single_fetch future flag.
5 changes: 5 additions & 0 deletions .changeset/drop-node-16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": major
---

Drop support for Node 16, React Router SSR now requires Node 18 or higher
6 changes: 6 additions & 0 deletions .changeset/early-beds-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"react-router-dom": major
"react-router": major
---

Remove `future.v7_startTransition` flag
10 changes: 10 additions & 0 deletions .changeset/expose-promises.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"react-router": major
---

- Expose the underlying router promises from the following APIs for compsition in React 19 APIs:
- `useNavigate()`
- `useSubmit`
- `useFetcher().load`
- `useFetcher().submit`
- `useRevalidator.revalidate`
5 changes: 5 additions & 0 deletions .changeset/fair-beans-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-router/cloudflare": minor
---

The `@remix-run/cloudflare-workers` package has been deprecated. Remix consumers migrating to React Router should use the `@react-router/cloudflare` package directly. For guidance on how to use `@react-router/cloudflare` within a Cloudflare Workers context, refer to the Cloudflare Workers template.
6 changes: 6 additions & 0 deletions .changeset/fair-cheetahs-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"react-router-dom": major
"react-router": major
---

Remove `future.v7_normalizeFormMethod` future flag
5 changes: 5 additions & 0 deletions .changeset/fluffy-ducks-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router-dom": major
---

Allow returning `undefined` from actions and loaders
11 changes: 11 additions & 0 deletions .changeset/kind-timers-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@react-router/server-runtime": major
"react-router-dom": major
"@react-router/express": major
"react-router": major
"@react-router/serve": major
"@react-router/node": major
"@react-router/dev": major
---

update minimum node version to 18
6 changes: 6 additions & 0 deletions .changeset/late-buckets-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"react-router-dom": major
"react-router": major
---

Remove `future.v7_prependBasename` from the ionternalized `@remix-run/router` package
5 changes: 5 additions & 0 deletions .changeset/link-prefetching.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router-dom": minor
---

Add prefetching support to `Link`/`NavLink` when using Remix SSR
6 changes: 6 additions & 0 deletions .changeset/moody-kids-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"react-router-dom": major
"react-router": major
---

Remove `future.v7_throwAbortReason` from internalized `@remix-run/router` package
10 changes: 10 additions & 0 deletions .changeset/nice-pillows-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@react-router/express": major
"@react-router/serve": major
"@react-router/node": major
"@react-router/dev": major
"react-router-dom": major
"react-router": major
---

Add `exports` field to all packages
10 changes: 10 additions & 0 deletions .changeset/nine-ravens-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"react-router-dom": major
"@react-router/express": major
"react-router": major
"@react-router/serve": major
"@react-router/node": major
"@react-router/dev": major
---

node package no longer re-exports from react-router
5 changes: 5 additions & 0 deletions .changeset/odd-beds-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": major
---

renamed RemixContext to FrameworkContext
28 changes: 28 additions & 0 deletions .changeset/prerendering.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
"react-router": minor
---

- Add support for `prerender` config in the React Router vite plugin, to support existing SSG use-cases
- You can use the `prerender` config to pre-render your `.html` and `.data` files at build time and then serve them statically at runtime (either from a running server or a CDN)
- `prerender` can either be an array of string paths, or a function (sync or async) that returns an array of strings so that you can dynamically generate the paths by talking to your CMS, etc.

```ts
export default defineConfig({
plugins: [
reactRouter({
async prerender() {
let slugs = await fakeGetSlugsFromCms();
// Prerender these paths into `.html` files at build time, and `.data`
// files if they have loaders
return ["/", "/about", ...slugs.map((slug) => `/product/${slug}`)];
},
}),
tsconfigPaths(),
],
});

async function fakeGetSlugsFromCms() {
await new Promise((r) => setTimeout(r, 1000));
return ["shirt", "hat"];
}
```
6 changes: 6 additions & 0 deletions .changeset/red-olives-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"react-router-dom": major
"react-router": major
---

updates the minimum React version to 18
5 changes: 5 additions & 0 deletions .changeset/remix-scroll-restoration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router-dom": minor
---

Enhance `ScrollRestoration` so it can restore properly on an SSR'd document load
5 changes: 5 additions & 0 deletions .changeset/remove-build-end-public-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-router/dev": major
---

For Remix consumers migrating to React Router who used the Vite plugin's `buildEnd` hook, the resolved `reactRouterConfig` object no longer contains a `publicPath` property since this belongs to Vite, not React Router.
28 changes: 28 additions & 0 deletions .changeset/remove-manifest-option.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
"@react-router/dev": major
---

For Remix consumers migrating to React Router, the Vite plugin's `manifest` option has been removed.

The `manifest` option been superseded by the more powerful `buildEnd` hook since it's passed the `buildManifest` argument. You can still write the build manifest to disk if needed, but you'll most likely find it more convenient to write any logic depending on the build manifest within the `buildEnd` hook itself.

If you were using the `manifest` option, you can replace it with a `buildEnd` hook that writes the manifest to disk like this:

```js
import { vitePlugin as reactRouter } from "@react-router/dev";
import { writeFile } from "node:fs/promises";

export default {
plugins: [
reactRouter({
async buildEnd({ buildManifest }) {
await writeFile(
"build/manifest.json",
JSON.stringify(buildManifest, null, 2),
"utf-8"
);
},
}),
],
};
```
5 changes: 5 additions & 0 deletions .changeset/router-provider-hydration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router-dom": minor
---

Add built-in Remix-style hydration support to `RouterProvider`. When running from a Remix-SSR'd HTML payload with the proper `window` variables (`__remixContext`, `__remixManifest`, `__remixRouteModules`), you don't need to pass a `router` prop and `RouterProvider` will create the `router` for you internally. ([#11396](https://github.com/remix-run/react-router/pull/11396))
13 changes: 13 additions & 0 deletions .changeset/stupid-days-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@react-router/dev": major
---

Update default `isbot` version to v5 and drop support for `isbot@3`

- If you have `isbot@4` or `isbot@5` in your `package.json`:
- You do not need to make any changes
- If you have `isbot@3` in your `package.json` and you have your own `entry.server.tsx` file in your repo
- You do not need to make any changes
- You can upgrade to `isbot@5` independent of the React Router v7 upgrade
- If you have `isbot@3` in your `package.json` and you do not have your own `entry.server.tsx` file in your repo
- You are using the internal default entry provided by React Router v7 and you will need to upgrade to `isbot@5` in your `package.json`
5 changes: 5 additions & 0 deletions .changeset/tall-mangos-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-router/dev": minor
---

Remove internal entry.server.spa.tsx implementation
11 changes: 11 additions & 0 deletions .changeset/tasty-penguins-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"react-router-dom": major
"react-router": major
---

- Remove the `future.v7_partialHydration` flag
- This also removes the `<RouterProvider fallbackElement>` prop
- To migrate, move the `fallbackElement` to a `hydrateFallbackElement`/`HydrateFallback` on your root route
- Also worth nothing there is a related breaking changer with this future flag:
- Without `future.v7_partialHydration` (when using `fallbackElement`), `state.navigation` was populated during the initial load
- With `future.v7_partialHydration`, `state.navigation` remains in an `"idle"` state during the initial load
5 changes: 5 additions & 0 deletions .changeset/thin-nails-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": minor
---

Remove duplicate `RouterProvider` impliementations
5 changes: 5 additions & 0 deletions .changeset/tidy-clouds-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": major
---

Remove `v7_relativeSplatPath` future flag
10 changes: 10 additions & 0 deletions .changeset/tough-pens-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@react-router/serve": patch
---

Update `express.static` configurations to support prerendering

- Assets in the `build/client/assets` folder are served as before, with a 1-year immutable `Cache-Control` header
- Static files outside of assets, such as pre-rendered `.html` and `.data` files are not served with a specific `Cache-Control` header
- `.data` files are served with `Content-Type: text/x-turbo`
- For some reason, when adding this via `express.static`, it seems to also add a `Cache-Control: public, max-age=0` to `.data` files
5 changes: 5 additions & 0 deletions .changeset/twenty-carrots-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": major
---

rename createRemixStub to createRoutesStub
5 changes: 5 additions & 0 deletions .changeset/two-countries-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": major
---

Remove `@remix-run/router` deprecated `detectErrorBoundary` option in favor of `mapRouteProperties`
7 changes: 7 additions & 0 deletions .changeset/vite-manifest-location.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@react-router/dev": major
---

For Remix consumers migrating to React Router, Vite manifests (i.e. `.vite/manifest.json`) are now written within each build subdirectory, e.g. `build/client/.vite/manifest.json` and `build/server/.vite/manifest.json` instead of `build/.vite/client-manifest.json` and `build/.vite/server-manifest.json`. This means that the build output is now much closer to what you'd expect from a typical Vite project.

Originally the Remix Vite plugin moved all Vite manifests to a root-level `build/.vite` directory to avoid accidentally serving them in production, particularly from the client build. This was later improved with additional logic that deleted these Vite manifest files at the end of the build process unless Vite's `build.manifest` had been enabled within the app's Vite config. This greatly reduced the risk of accidentally serving the Vite manifests in production since they're only present when explicitly asked for. As a result, we can now assume that consumers will know that they need to manage these additional files themselves, and React Router can safely generate a more standard Vite build output.
6 changes: 6 additions & 0 deletions .changeset/weak-otters-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"react-router-dom": major
"react-router": major
---

Remove `future.v7_fetcherPersist` flag
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ node_modules/
pnpm-lock.yaml
/docs/api
examples/**/dist/
/playground/
/playground-local/
packages/**/dist/
packages/react-router-dom/server.d.ts
packages/react-router-dom/server.js
Expand Down
12 changes: 11 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"files": ["**/__tests__/**"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended"]
},
{
"files": ["integration/**/*.*"],
"rules": {
"react-hooks/rules-of-hooks": "off"
},
"env": {
"jest/globals": false
}
}
]
],
"reportUnusedDisableDirectives": true
}
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
cache: pnpm
node-version-file: ".nvmrc"
cache: pnpm

- name: 📥 Install deps
run: pnpm install --frozen-lockfile
Expand Down
Loading