@react-router/dev 0.0.0-experimental-34996874d → 0.0.0-experimental-073f56f6c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cli/index.js +27 -15
- package/dist/config.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/vite/cloudflare.js +27 -15
- package/dist/vite.js +27 -15
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
+
## v7.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Stabilize `future.unstable_passThroughRequests` as `future.v8_passThroughRequests` ([a993f09](https://github.com/remix-run/react-router/commit/a993f09))
|
|
8
|
+
- ⚠️ This is a breaking change if you have already opted into the unstable version - you will need to update your code accordingly
|
|
9
|
+
|
|
10
|
+
- Stabilize `prerender.unstable_concurrency` as `prerender.concurrency` ([a993f09](https://github.com/remix-run/react-router/commit/a993f09))
|
|
11
|
+
- ⚠️ This is a breaking change if you have already opted into the unstable version - you will need to update your code accordingly
|
|
12
|
+
|
|
13
|
+
- Stabilize `future.unstable_subResourceIntegrity` as a top-level `subResourceIntegrity` config option in `react-router.config.ts` ([a993f09](https://github.com/remix-run/react-router/commit/a993f09))
|
|
14
|
+
- ⚠️ This is a breaking change if you have already opted into the unstable version - you will need to update your code accordingly
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies:
|
|
19
|
+
- [`react-router@7.15.0`](https://github.com/remix-run/react-router/releases/tag/react-router@7.15.0)
|
|
20
|
+
- [`@react-router/node@7.15.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@7.15.0)
|
|
21
|
+
- [`@react-router/serve@7.15.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@7.15.0)
|
|
22
|
+
|
|
3
23
|
## v7.14.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* @react-router/dev v0.0.0-experimental-
|
|
3
|
+
* @react-router/dev v0.0.0-experimental-073f56f6c
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Remix Software Inc.
|
|
6
6
|
*
|
|
@@ -398,6 +398,11 @@ async function resolveConfig({
|
|
|
398
398
|
"The `prerender`/`prerender.paths` config must be a boolean, an array of string paths, or a function returning a boolean or array of string paths."
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
|
+
if (typeof prerender2 === "object" && "unstable_concurrency" in prerender2) {
|
|
402
|
+
return err(
|
|
403
|
+
"The `prerender.unstable_concurrency` config field has been stabilized as `prerender.concurrency`"
|
|
404
|
+
);
|
|
405
|
+
}
|
|
401
406
|
let isValidConcurrencyConfig = typeof prerender2 != "object" || !("concurrency" in prerender2) || typeof prerender2.concurrency === "number" && Number.isInteger(prerender2.concurrency) && prerender2.concurrency > 0;
|
|
402
407
|
if (!isValidConcurrencyConfig) {
|
|
403
408
|
return err(
|
|
@@ -493,20 +498,27 @@ async function resolveConfig({
|
|
|
493
498
|
}
|
|
494
499
|
}
|
|
495
500
|
let futureConfig = userAndPresetConfigs.future;
|
|
496
|
-
if (futureConfig
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
501
|
+
if (futureConfig) {
|
|
502
|
+
if ("unstable_splitRouteModules" in futureConfig) {
|
|
503
|
+
return err(
|
|
504
|
+
"The `future.unstable_splitRouteModules` flag has been stabilized as `future.v8_splitRouteModules`"
|
|
505
|
+
);
|
|
506
|
+
}
|
|
507
|
+
if ("unstable_viteEnvironmentApi" in futureConfig) {
|
|
508
|
+
return err(
|
|
509
|
+
"The `future.unstable_viteEnvironmentApi` flag has been stabilized as `future.v8_viteEnvironmentApi`"
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
if ("unstable_passThroughRequests" in futureConfig) {
|
|
513
|
+
return err(
|
|
514
|
+
"The `future.unstable_passThroughRequests` flag has been stabilized as `future.v8_passThroughRequests`"
|
|
515
|
+
);
|
|
516
|
+
}
|
|
517
|
+
if ("unstable_subResourceIntegrity" in futureConfig) {
|
|
518
|
+
return err(
|
|
519
|
+
"The `future.unstable_subResourceIntegrity` flag has been stabilized and moved to a top-level `config.subResourceIntegrity` field"
|
|
520
|
+
);
|
|
521
|
+
}
|
|
510
522
|
}
|
|
511
523
|
let future = {
|
|
512
524
|
unstable_optimizeDeps: userAndPresetConfigs.future?.unstable_optimizeDeps ?? false,
|
package/dist/config.js
CHANGED
package/dist/routes.js
CHANGED
package/dist/vite/cloudflare.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-073f56f6c
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -424,6 +424,11 @@ async function resolveConfig({
|
|
|
424
424
|
"The `prerender`/`prerender.paths` config must be a boolean, an array of string paths, or a function returning a boolean or array of string paths."
|
|
425
425
|
);
|
|
426
426
|
}
|
|
427
|
+
if (typeof prerender === "object" && "unstable_concurrency" in prerender) {
|
|
428
|
+
return err(
|
|
429
|
+
"The `prerender.unstable_concurrency` config field has been stabilized as `prerender.concurrency`"
|
|
430
|
+
);
|
|
431
|
+
}
|
|
427
432
|
let isValidConcurrencyConfig = typeof prerender != "object" || !("concurrency" in prerender) || typeof prerender.concurrency === "number" && Number.isInteger(prerender.concurrency) && prerender.concurrency > 0;
|
|
428
433
|
if (!isValidConcurrencyConfig) {
|
|
429
434
|
return err(
|
|
@@ -519,20 +524,27 @@ async function resolveConfig({
|
|
|
519
524
|
}
|
|
520
525
|
}
|
|
521
526
|
let futureConfig = userAndPresetConfigs.future;
|
|
522
|
-
if (futureConfig
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
527
|
+
if (futureConfig) {
|
|
528
|
+
if ("unstable_splitRouteModules" in futureConfig) {
|
|
529
|
+
return err(
|
|
530
|
+
"The `future.unstable_splitRouteModules` flag has been stabilized as `future.v8_splitRouteModules`"
|
|
531
|
+
);
|
|
532
|
+
}
|
|
533
|
+
if ("unstable_viteEnvironmentApi" in futureConfig) {
|
|
534
|
+
return err(
|
|
535
|
+
"The `future.unstable_viteEnvironmentApi` flag has been stabilized as `future.v8_viteEnvironmentApi`"
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
if ("unstable_passThroughRequests" in futureConfig) {
|
|
539
|
+
return err(
|
|
540
|
+
"The `future.unstable_passThroughRequests` flag has been stabilized as `future.v8_passThroughRequests`"
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
if ("unstable_subResourceIntegrity" in futureConfig) {
|
|
544
|
+
return err(
|
|
545
|
+
"The `future.unstable_subResourceIntegrity` flag has been stabilized and moved to a top-level `config.subResourceIntegrity` field"
|
|
546
|
+
);
|
|
547
|
+
}
|
|
536
548
|
}
|
|
537
549
|
let future = {
|
|
538
550
|
unstable_optimizeDeps: userAndPresetConfigs.future?.unstable_optimizeDeps ?? false,
|
package/dist/vite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-073f56f6c
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -461,6 +461,11 @@ async function resolveConfig({
|
|
|
461
461
|
"The `prerender`/`prerender.paths` config must be a boolean, an array of string paths, or a function returning a boolean or array of string paths."
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
|
+
if (typeof prerender2 === "object" && "unstable_concurrency" in prerender2) {
|
|
465
|
+
return err(
|
|
466
|
+
"The `prerender.unstable_concurrency` config field has been stabilized as `prerender.concurrency`"
|
|
467
|
+
);
|
|
468
|
+
}
|
|
464
469
|
let isValidConcurrencyConfig = typeof prerender2 != "object" || !("concurrency" in prerender2) || typeof prerender2.concurrency === "number" && Number.isInteger(prerender2.concurrency) && prerender2.concurrency > 0;
|
|
465
470
|
if (!isValidConcurrencyConfig) {
|
|
466
471
|
return err(
|
|
@@ -556,20 +561,27 @@ async function resolveConfig({
|
|
|
556
561
|
}
|
|
557
562
|
}
|
|
558
563
|
let futureConfig = userAndPresetConfigs.future;
|
|
559
|
-
if (futureConfig
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
564
|
+
if (futureConfig) {
|
|
565
|
+
if ("unstable_splitRouteModules" in futureConfig) {
|
|
566
|
+
return err(
|
|
567
|
+
"The `future.unstable_splitRouteModules` flag has been stabilized as `future.v8_splitRouteModules`"
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
if ("unstable_viteEnvironmentApi" in futureConfig) {
|
|
571
|
+
return err(
|
|
572
|
+
"The `future.unstable_viteEnvironmentApi` flag has been stabilized as `future.v8_viteEnvironmentApi`"
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
if ("unstable_passThroughRequests" in futureConfig) {
|
|
576
|
+
return err(
|
|
577
|
+
"The `future.unstable_passThroughRequests` flag has been stabilized as `future.v8_passThroughRequests`"
|
|
578
|
+
);
|
|
579
|
+
}
|
|
580
|
+
if ("unstable_subResourceIntegrity" in futureConfig) {
|
|
581
|
+
return err(
|
|
582
|
+
"The `future.unstable_subResourceIntegrity` flag has been stabilized and moved to a top-level `config.subResourceIntegrity` field"
|
|
583
|
+
);
|
|
584
|
+
}
|
|
573
585
|
}
|
|
574
586
|
let future = {
|
|
575
587
|
unstable_optimizeDeps: userAndPresetConfigs.future?.unstable_optimizeDeps ?? false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-073f56f6c",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"tinyglobby": "^0.2.14",
|
|
93
93
|
"valibot": "^1.2.0",
|
|
94
94
|
"vite-node": "^3.2.2",
|
|
95
|
-
"@react-router/node": "0.0.0-experimental-
|
|
95
|
+
"@react-router/node": "0.0.0-experimental-073f56f6c"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@types/babel__core": "^7.20.5",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"vite": "^6.3.0",
|
|
117
117
|
"wireit": "0.14.9",
|
|
118
118
|
"wrangler": "^4.23.0",
|
|
119
|
-
"@react-router/serve": "0.0.0-experimental-
|
|
120
|
-
"react-router": "^0.0.0-experimental-
|
|
119
|
+
"@react-router/serve": "0.0.0-experimental-073f56f6c",
|
|
120
|
+
"react-router": "^0.0.0-experimental-073f56f6c"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"@vitejs/plugin-rsc": "~0.5.21",
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
"typescript": "^5.1.0 || ^6.0.0",
|
|
126
126
|
"vite": "^5.1.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
127
127
|
"wrangler": "^3.28.2 || ^4.0.0",
|
|
128
|
-
"@react-router/serve": "^0.0.0-experimental-
|
|
129
|
-
"react-router": "^0.0.0-experimental-
|
|
128
|
+
"@react-router/serve": "^0.0.0-experimental-073f56f6c",
|
|
129
|
+
"react-router": "^0.0.0-experimental-073f56f6c"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@vitejs/plugin-rsc": {
|