@bleedingdev/modern-js-plugin-tanstack 3.2.0-ultramodern.5 → 3.2.0-ultramodern.6
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/dist/cjs/cli/index.js +3 -6
- package/dist/esm/cli/index.mjs +3 -6
- package/dist/esm-node/cli/index.mjs +3 -6
- package/package.json +9 -9
- package/src/cli/index.ts +15 -18
- package/src/cli/tanstackTypes.ts +1 -0
- package/src/runtime/basepathRewrite.ts +1 -0
- package/src/runtime/dataMutation.tsx +1 -0
- package/src/runtime/lifecycle.ts +1 -0
- package/src/runtime/plugin.node.tsx +1 -0
- package/src/runtime/plugin.tsx +1 -0
- package/src/runtime/routeTree.ts +1 -0
- package/src/runtime/rsc/ClientSlot.tsx +1 -0
- package/src/runtime/rsc/CompositeComponent.tsx +1 -0
- package/src/runtime/rsc/ReplayableStream.ts +1 -0
- package/src/runtime/rsc/RscNodeRenderer.tsx +1 -0
- package/src/runtime/rsc/client.tsx +2 -3
- package/src/runtime/rsc/createRscProxy.tsx +1 -0
- package/src/runtime/rsc/payloadRouter.ts +1 -0
- package/src/runtime/rsc/server.tsx +1 -0
- package/src/runtime/rsc/slotUsageSanitizer.ts +1 -0
- package/src/runtime/utils.tsx +1 -0
package/dist/cjs/cli/index.js
CHANGED
|
@@ -159,13 +159,10 @@ declare module '${opts.runtimeModule}' {
|
|
|
159
159
|
plugins
|
|
160
160
|
};
|
|
161
161
|
});
|
|
162
|
-
api.checkEntryPoint(({ path: entryPath, entry })=>{
|
|
163
|
-
const { isRouteEntry } = getRuntimeRouterCli();
|
|
164
|
-
return {
|
|
162
|
+
api.checkEntryPoint(({ path: entryPath, entry })=>({
|
|
165
163
|
path: entryPath,
|
|
166
|
-
entry: entry || isRouteEntry(entryPath, routesDir)
|
|
167
|
-
};
|
|
168
|
-
});
|
|
164
|
+
entry: entry || getRuntimeRouterCli().isRouteEntry(entryPath, routesDir)
|
|
165
|
+
}));
|
|
169
166
|
api.config(()=>({
|
|
170
167
|
source: {
|
|
171
168
|
include: [
|
package/dist/esm/cli/index.mjs
CHANGED
|
@@ -108,13 +108,10 @@ function tanstackRouterPlugin(options = {}) {
|
|
|
108
108
|
plugins
|
|
109
109
|
};
|
|
110
110
|
});
|
|
111
|
-
api.checkEntryPoint(({ path: entryPath, entry })=>{
|
|
112
|
-
const { isRouteEntry } = getRuntimeRouterCli();
|
|
113
|
-
return {
|
|
111
|
+
api.checkEntryPoint(({ path: entryPath, entry })=>({
|
|
114
112
|
path: entryPath,
|
|
115
|
-
entry: entry || isRouteEntry(entryPath, routesDir)
|
|
116
|
-
};
|
|
117
|
-
});
|
|
113
|
+
entry: entry || getRuntimeRouterCli().isRouteEntry(entryPath, routesDir)
|
|
114
|
+
}));
|
|
118
115
|
api.config(()=>({
|
|
119
116
|
source: {
|
|
120
117
|
include: [
|
|
@@ -112,13 +112,10 @@ function tanstackRouterPlugin(options = {}) {
|
|
|
112
112
|
plugins
|
|
113
113
|
};
|
|
114
114
|
});
|
|
115
|
-
api.checkEntryPoint(({ path: entryPath, entry })=>{
|
|
116
|
-
const { isRouteEntry } = getRuntimeRouterCli();
|
|
117
|
-
return {
|
|
115
|
+
api.checkEntryPoint(({ path: entryPath, entry })=>({
|
|
118
116
|
path: entryPath,
|
|
119
|
-
entry: entry || isRouteEntry(entryPath, routesDir)
|
|
120
|
-
};
|
|
121
|
-
});
|
|
117
|
+
entry: entry || getRuntimeRouterCli().isRouteEntry(entryPath, routesDir)
|
|
118
|
+
}));
|
|
122
119
|
api.config(()=>({
|
|
123
120
|
source: {
|
|
124
121
|
include: [
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"modern.js",
|
|
19
19
|
"tanstack-router"
|
|
20
20
|
],
|
|
21
|
-
"version": "3.2.0-ultramodern.
|
|
21
|
+
"version": "3.2.0-ultramodern.6",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
"@swc/helpers": "^0.5.21",
|
|
89
89
|
"@tanstack/react-router": "1.170.1",
|
|
90
90
|
"@tanstack/router-core": "1.170.1",
|
|
91
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.
|
|
92
|
-
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.
|
|
93
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.
|
|
94
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.
|
|
91
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.6",
|
|
92
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.6",
|
|
93
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.6",
|
|
94
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.6"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@modern-js/runtime": "3.2.0-ultramodern.
|
|
97
|
+
"@modern-js/runtime": "3.2.0-ultramodern.6",
|
|
98
98
|
"react": "^19.2.6",
|
|
99
99
|
"react-dom": "^19.2.6"
|
|
100
100
|
},
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"@typescript/native-preview": "7.0.0-dev.20260516.1",
|
|
110
110
|
"react": "^19.2.6",
|
|
111
111
|
"react-dom": "^19.2.6",
|
|
112
|
-
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.
|
|
113
|
-
"@
|
|
114
|
-
"@
|
|
112
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.6",
|
|
113
|
+
"@scripts/rstest-config": "2.66.0",
|
|
114
|
+
"@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.2.0-ultramodern.6"
|
|
115
115
|
},
|
|
116
116
|
"sideEffects": false,
|
|
117
117
|
"publishConfig": {
|
package/src/cli/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @effect-diagnostics asyncFunction:off nodeBuiltinImport:off strictBooleanExpressions:off
|
|
1
2
|
import path from 'node:path';
|
|
2
3
|
import type {
|
|
3
4
|
AppNormalizedConfig,
|
|
@@ -257,24 +258,20 @@ export function tanstackRouterPlugin(
|
|
|
257
258
|
return { entrypoint, plugins };
|
|
258
259
|
});
|
|
259
260
|
|
|
260
|
-
api.checkEntryPoint(({ path: entryPath, entry }) => {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
],
|
|
275
|
-
},
|
|
276
|
-
};
|
|
277
|
-
});
|
|
261
|
+
api.checkEntryPoint(({ path: entryPath, entry }) => ({
|
|
262
|
+
path: entryPath,
|
|
263
|
+
entry:
|
|
264
|
+
entry || getRuntimeRouterCli().isRouteEntry(entryPath, routesDir),
|
|
265
|
+
}));
|
|
266
|
+
|
|
267
|
+
api.config(() => ({
|
|
268
|
+
source: {
|
|
269
|
+
include: [
|
|
270
|
+
/[\\/]node_modules[\\/]@tanstack[\\/]react-router[\\/]/,
|
|
271
|
+
path.resolve(__dirname, '../runtime').replace('cjs', 'esm'),
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
}));
|
|
278
275
|
|
|
279
276
|
api.modifyEntrypoints(async ({ entrypoints }) => {
|
|
280
277
|
const { handleModifyEntrypoints } = getRuntimeRouterCli();
|
package/src/cli/tanstackTypes.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @effect-diagnostics asyncFunction:off nodeBuiltinImport:off strictBooleanExpressions:off
|
|
1
2
|
import type { AppToolsContext } from '@modern-js/app-tools';
|
|
2
3
|
import type { NestedRouteForCli, PageRoute } from '@modern-js/types';
|
|
3
4
|
import { findExists, formatImportPath, fs, slash } from '@modern-js/utils';
|
package/src/runtime/lifecycle.ts
CHANGED
package/src/runtime/plugin.tsx
CHANGED
package/src/runtime/routeTree.ts
CHANGED
|
@@ -78,9 +78,8 @@ const adapter = createSerializationAdapter({
|
|
|
78
78
|
toSerializable: (): never => {
|
|
79
79
|
throw new Error('TanStack RSC data cannot be serialized on client.');
|
|
80
80
|
},
|
|
81
|
-
fromSerializable: (value: SerializedRsc): AnyCompositeComponent =>
|
|
82
|
-
|
|
83
|
-
},
|
|
81
|
+
fromSerializable: (value: SerializedRsc): AnyCompositeComponent =>
|
|
82
|
+
createFromFlightStream(value) as AnyCompositeComponent,
|
|
84
83
|
});
|
|
85
84
|
|
|
86
85
|
export function getTanstackRscSerializationAdapters() {
|
package/src/runtime/utils.tsx
CHANGED