Commit 36a768e
React Router 7 (#2866)
* checkpoint: hydrogen lib is pulling in RR7 and types are fixed
* Update plugin.ts
* Update vite.config.ts
* gitignore and eslint ignore changes
* checkpoint: the skeleton is semi-updated, typecheck runs, npm run dev fails
* stripping sharedOptions.remixConfig from the hydrogen vite plugin
* updating remix-oxygen
* remove the classic compiler option from hydrogen-cli
* removing the classic remix example
* removing the classic-remix example leftovers
* checkpoint: CLI builds but the tests fail
* fix json syntax error in skeleton tsconfig.json
* changing all examples package jsons to match the skeleton
* fixing typo
* fixing two false detections of classic projects
* removing @remix-run/fs-routes from root package.json
* do I need react-router-dom in the skeleton too?
* pruning remix-config.ts in cli
* fixing tsconfig of cli
* fixing types of hydrogen Pagination.ts
* pruning exports from remix-oxygen/index.ts – note: all of these re-exports should be removed
* removing outdated reference to @remix-run/server-runtime here
* removing no-longer applicable remix-run reference
* type fix in hydrogen / VariantSelector.ts
* Update package-lock.json
* updating ALL of the examples to React Router 7 via codemod
* Update entry.server.tsx
* it seems like the skeleton's build directory should be 'dist' according to CLI tests
* _temporarily_ adding react-router-dom to the root package. this should be weeded out
* respect HYDROGEN_DISABLE_VIRTUAL_ROUTES in hydrogenRoutes
* prettier change
* the auto-upgrade now ALSO works with react router
* fixing build
* CLI: temporarily skipping typecheck test
* Update collections.$handle.tsx
* fixing botched merge
* running Prettier on package.json
* adding this vite config v6 fix, just in case... but maybe we will remove this
* oh god
* a few more remix-runs
* Update Footer.tsx
* codegen now runs react-router typegen
* removing react-router typegen from the typecheck command
* Update package.json
* fixing types in examples/express
* skeleton env.d.ts refers to react-router now
* fixing skeleton type errors
* fixing examples/express/env.d.ts
* fixing all the env.d.ts 'es
* adding these env.d.ts es to fix the remaining example tsc failures
* Update package-lock.json
* Snapit: adding @shopify/remix-oxygen to the forced changeset
* adding back three re-exported types from react-router
* Update codegen.ts
* adding .react-router to the skeleton gitignore
* undo root .gitignore changes
* react-router codegen supports watch flag now
* reformatting codegen.ts
* TODO BEFORE MERGE remove ALL references to legacy-runtime
* fixing a few react-router imports
* const REMIX_COMPILER_ERROR_MESSAGE
* removing react-router and react-router-dom from the root dependencies
* regenerated package-lock.json from the main baseline
* Revert "regenerated package-lock.json from the main baseline"
This reverts commit e5b074f.
* Revert "removing react-router and react-router-dom from the root dependencies"
This reverts commit 28fc65e.
* pinning react-router to 7.6.0
* adding a changeset
* adding cursor rule with hydrogen upgrade instructions
* Update package-lock.json
* simplifying skeleton's virtual import
* Update thick-tigers-grab.md
* removing all references to legacy-runtime
* Update dev.env.d.ts
* Update env.d.ts
* scrubbing more references to legacyRuntime
* whooops
* re-enabling createContentSecurityPolicy example
* try removing the HYDROGEN_DISABLE_VIRTUAL_ROUTES fix
* will this test pass now, maybe?
* removing two TODO BEFORE MERGEs as they are done!
* removing remix-oxygen/src/implementations.ts
* what happens if we only change the relevant parts in the vite.config.ts?
* Delete upgrade-hydrogen-react-router-7-2025.5.0.mdc
* Major version bumping libraries that now depend on react-router@7
* renaming remixBuild to reactRouterBuild1 parent ba99d55 commit 36a768e
File tree
240 files changed
+1807
-1204
lines changed- .changeset
- cookbook/recipes/subscriptions/ingredients/templates/skeleton/app/components
- examples
- b2b
- app
- components
- routes
- custom-cart-method
- app
- components
- routes
- express
- app
- routes
- gtm
- app
- infinite-scroll
- app/routes
- legacy-customer-account-flow
- app
- components
- routes
- metaobjects
- app
- components
- routes
- sections
- multipass
- app
- components
- routes
- partytown
- app
- routes
- subscriptions
- app
- components
- routes
- third-party-queries-caching/app/routes
- packages
- cli
- src
- commands/hydrogen
- lib
- setups/routes
- hydrogen
- src
- analytics-manager
- cache
- cart
- optimistic
- csp
- customer
- dev
- optimistic-ui
- pagination
- product
- routing
- seo
- sitemap
- vite
- virtual-routes
- components
- routes
- remix-oxygen
- src
- templates/skeleton
- app
- components
- lib
- routes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
240 files changed
+1807
-1204
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
0 commit comments