@react-router/dev 0.0.0-experimental-34996874d → 0.0.0-experimental-51412399d

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 CHANGED
@@ -1,5 +1,20 @@
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` ([#14999](https://github.com/remix-run/react-router/pull/14999))
8
+ - Stabilize `prerender.unstable_concurrency` as `prerender.concurrency` ([#14999](https://github.com/remix-run/react-router/pull/14999))
9
+ - Stabilize `future.unstable_subResourceIntegrity` as a top-level `subResourceIntegrity` config option in `react-router.config.ts` ([#14999](https://github.com/remix-run/react-router/pull/14999))
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies:
14
+ - [`react-router@7.15.0`](https://github.com/remix-run/react-router/releases/tag/react-router@7.15.0)
15
+ - [`@react-router/node@7.15.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@7.15.0)
16
+ - [`@react-router/serve@7.15.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@7.15.0)
17
+
3
18
  ## v7.14.2
4
19
 
5
20
  ### 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-34996874d
3
+ * @react-router/dev v0.0.0-experimental-51412399d
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?.unstable_splitRouteModules !== void 0) {
497
- return err(
498
- 'The "future.unstable_splitRouteModules" flag has been stabilized as "future.v8_splitRouteModules"'
499
- );
500
- }
501
- if (futureConfig?.unstable_viteEnvironmentApi !== void 0) {
502
- return err(
503
- 'The "future.unstable_viteEnvironmentApi" flag has been stabilized as "future.v8_viteEnvironmentApi"'
504
- );
505
- }
506
- if (futureConfig?.unstable_passThroughRequests !== void 0) {
507
- return err(
508
- 'The "future.unstable_passThroughRequests" flag has been stabilized as "future.v8_passThroughRequests"'
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-34996874d
2
+ * @react-router/dev v0.0.0-experimental-51412399d
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/routes.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-34996874d
2
+ * @react-router/dev v0.0.0-experimental-51412399d
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-34996874d
2
+ * @react-router/dev v0.0.0-experimental-51412399d
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?.unstable_splitRouteModules !== void 0) {
523
- return err(
524
- 'The "future.unstable_splitRouteModules" flag has been stabilized as "future.v8_splitRouteModules"'
525
- );
526
- }
527
- if (futureConfig?.unstable_viteEnvironmentApi !== void 0) {
528
- return err(
529
- 'The "future.unstable_viteEnvironmentApi" flag has been stabilized as "future.v8_viteEnvironmentApi"'
530
- );
531
- }
532
- if (futureConfig?.unstable_passThroughRequests !== void 0) {
533
- return err(
534
- 'The "future.unstable_passThroughRequests" flag has been stabilized as "future.v8_passThroughRequests"'
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-34996874d
2
+ * @react-router/dev v0.0.0-experimental-51412399d
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?.unstable_splitRouteModules !== void 0) {
560
- return err(
561
- 'The "future.unstable_splitRouteModules" flag has been stabilized as "future.v8_splitRouteModules"'
562
- );
563
- }
564
- if (futureConfig?.unstable_viteEnvironmentApi !== void 0) {
565
- return err(
566
- 'The "future.unstable_viteEnvironmentApi" flag has been stabilized as "future.v8_viteEnvironmentApi"'
567
- );
568
- }
569
- if (futureConfig?.unstable_passThroughRequests !== void 0) {
570
- return err(
571
- 'The "future.unstable_passThroughRequests" flag has been stabilized as "future.v8_passThroughRequests"'
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-34996874d",
3
+ "version": "0.0.0-experimental-51412399d",
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-34996874d"
95
+ "@react-router/node": "0.0.0-experimental-51412399d"
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-34996874d",
120
- "react-router": "^0.0.0-experimental-34996874d"
119
+ "@react-router/serve": "0.0.0-experimental-51412399d",
120
+ "react-router": "^0.0.0-experimental-51412399d"
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-34996874d",
129
- "react-router": "^0.0.0-experimental-34996874d"
128
+ "@react-router/serve": "^0.0.0-experimental-51412399d",
129
+ "react-router": "^0.0.0-experimental-51412399d"
130
130
  },
131
131
  "peerDependenciesMeta": {
132
132
  "@vitejs/plugin-rsc": {