@react-router/dev 0.0.0-experimental-9ea41ead4 → 0.0.0-experimental-beaa4f52a

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,28 @@
1
1
  # `@react-router/dev`
2
2
 
3
+ ## 7.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix `reveal` and `routes` CLI commands ([#12745](https://github.com/remix-run/react-router/pull/12745))
8
+ - Updated dependencies:
9
+ - `react-router@7.1.3`
10
+ - `@react-router/node@7.1.3`
11
+ - `@react-router/serve@7.1.3`
12
+
13
+ ## 7.1.2
14
+
15
+ ### Patch Changes
16
+
17
+ - Fix default external conditions in Vite v6. This fixes resolution issues with certain npm packages. ([#12644](https://github.com/remix-run/react-router/pull/12644))
18
+ - Fix mismatch in prerendering html/data files when path is missing a leading slash ([#12684](https://github.com/remix-run/react-router/pull/12684))
19
+ - Use `module-sync` server condition when enabled in the runtime. This fixes React context mismatches (e.g. `useHref() may be used only in the context of a <Router> component.`) during development on Node 22.10.0+ when using libraries that have a peer dependency on React Router. ([#12729](https://github.com/remix-run/react-router/pull/12729))
20
+ - Fix react-refresh source maps ([#12686](https://github.com/remix-run/react-router/pull/12686))
21
+ - Updated dependencies:
22
+ - `react-router@7.1.2`
23
+ - `@react-router/node@7.1.2`
24
+ - `@react-router/serve@7.1.2`
25
+
3
26
  ## 7.1.1
4
27
 
5
28
  ### 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-9ea41ead4
3
+ * @react-router/dev v0.0.0-experimental-beaa4f52a
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -389,8 +389,7 @@ async function resolveConfig({
389
389
  );
390
390
  }
391
391
  let future = {
392
- unstable_optimizeDeps: reactRouterUserConfig.future?.unstable_optimizeDeps ?? false,
393
- unstable_splitRouteModules: reactRouterUserConfig.future?.unstable_splitRouteModules ?? false
392
+ unstable_optimizeDeps: reactRouterUserConfig.future?.unstable_optimizeDeps ?? false
394
393
  };
395
394
  let reactRouterConfig = deepFreeze({
396
395
  appDirectory,
@@ -706,6 +705,8 @@ function generate(ctx, route) {
706
705
  export type HeadersArgs = T.HeadersArgs
707
706
  export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit
708
707
 
708
+ export type MiddlewareArgs = T.CreateServerMiddlewareArgs<Info>
709
+ export type ClientMiddlewareArgs = T.CreateClientMiddlewareArgs<Info>
709
710
  export type LoaderArgs = T.CreateServerLoaderArgs<Info>
710
711
  export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
711
712
  export type ActionArgs = T.CreateServerActionArgs<Info>
@@ -916,37 +917,6 @@ var init_remove_exports = __esm({
916
917
  }
917
918
  });
918
919
 
919
- // vite/cache.ts
920
- var init_cache = __esm({
921
- "vite/cache.ts"() {
922
- "use strict";
923
- }
924
- });
925
-
926
- // vite/route-chunks.ts
927
- var routeChunkExportNames, routeChunkNames, routeChunkQueryStringPrefix, routeChunkQueryStrings;
928
- var init_route_chunks = __esm({
929
- "vite/route-chunks.ts"() {
930
- "use strict";
931
- init_invariant();
932
- init_cache();
933
- init_babel();
934
- routeChunkExportNames = [
935
- "clientAction",
936
- "clientLoader",
937
- "HydrateFallback"
938
- ];
939
- routeChunkNames = ["main", ...routeChunkExportNames];
940
- routeChunkQueryStringPrefix = "?route-chunk=";
941
- routeChunkQueryStrings = {
942
- main: `${routeChunkQueryStringPrefix}main`,
943
- clientAction: `${routeChunkQueryStringPrefix}clientAction`,
944
- clientLoader: `${routeChunkQueryStringPrefix}clientLoader`,
945
- HydrateFallback: `${routeChunkQueryStringPrefix}HydrateFallback`
946
- };
947
- }
948
- });
949
-
950
920
  // vite/with-props.ts
951
921
  var import_dedent2, vmod;
952
922
  var init_with_props = __esm({
@@ -1005,7 +975,6 @@ var init_plugin = __esm({
1005
975
  init_resolve_file_url();
1006
976
  init_combine_urls();
1007
977
  init_remove_exports();
1008
- init_route_chunks();
1009
978
  init_vite();
1010
979
  init_config();
1011
980
  init_with_props();
package/dist/config.d.ts CHANGED
@@ -38,10 +38,6 @@ type ServerBundlesBuildManifest = BaseBuildManifest & {
38
38
  type ServerModuleFormat = "esm" | "cjs";
39
39
  interface FutureConfig {
40
40
  unstable_optimizeDeps: boolean;
41
- /**
42
- * Automatically split route modules into multiple chunks when possible.
43
- */
44
- unstable_splitRouteModules?: boolean | "enforce";
45
41
  }
46
42
  type BuildManifest = DefaultBuildManifest | ServerBundlesBuildManifest;
47
43
  type BuildEndHook = (args: {
package/dist/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-9ea41ead4
2
+ * @react-router/dev v0.0.0-experimental-beaa4f52a
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-9ea41ead4
2
+ * @react-router/dev v0.0.0-experimental-beaa4f52a
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-9ea41ead4
2
+ * @react-router/dev v0.0.0-experimental-beaa4f52a
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *