@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.
@@ -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: [
@@ -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.5",
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.5",
92
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.5",
93
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.5",
94
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.5"
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.5",
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.5",
113
- "@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.2.0-ultramodern.5",
114
- "@scripts/rstest-config": "2.66.0"
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
- const { isRouteEntry } = getRuntimeRouterCli();
262
- return {
263
- path: entryPath,
264
- entry: entry || isRouteEntry(entryPath, routesDir),
265
- };
266
- });
267
-
268
- api.config(() => {
269
- return {
270
- source: {
271
- include: [
272
- /[\\/]node_modules[\\/]@tanstack[\\/]react-router[\\/]/,
273
- path.resolve(__dirname, '../runtime').replace('cjs', 'esm'),
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();
@@ -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';
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics strictBooleanExpressions:off
1
2
  function normalizeBasepath(basepath: string): string {
2
3
  if (!basepath) {
3
4
  return '/';
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics asyncFunction:off extendsNativeError:off strictBooleanExpressions:off
1
2
  import type { AnyRouter } from '@tanstack/react-router';
2
3
  import { useRouter } from '@tanstack/react-router';
3
4
  import type React from 'react';
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics strictBooleanExpressions:off
1
2
  import type { TInternalRuntimeContext } from '@modern-js/runtime/context';
2
3
  import type { RouteObject } from '@modern-js/runtime-utils/router';
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics asyncFunction:off newPromise:off strictBooleanExpressions:off unnecessaryArrowBlock:off
1
2
  /// <reference path="./ssr-shim.d.ts" />
2
3
 
3
4
  import type { Plugin, RuntimePluginExtends } from '@modern-js/plugin';
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics globalConsole:off strictBooleanExpressions:off
1
2
  /// <reference path="./ssr-shim.d.ts" />
2
3
 
3
4
  import type { Plugin, RuntimePluginExtends } from '@modern-js/plugin';
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics asyncFunction:off strictBooleanExpressions:off
1
2
  import type { RouteObject } from '@modern-js/runtime-utils/router';
2
3
  import type { NestedRoute, PageRoute } from '@modern-js/types';
3
4
  import type {
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics strictBooleanExpressions:off
1
2
  'use client';
2
3
 
3
4
  import type React from 'react';
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics strictBooleanExpressions:off
1
2
  'use client';
2
3
 
3
4
  import type React from 'react';
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics asyncFunction:off newPromise:off strictBooleanExpressions:off
1
2
  export interface ReplayableStreamOptions {
2
3
  signal?: AbortSignal;
3
4
  }
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics strictBooleanExpressions:off
1
2
  'use client';
2
3
 
3
4
  import type React from 'react';
@@ -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
- return createFromFlightStream(value) as AnyCompositeComponent;
83
- },
81
+ fromSerializable: (value: SerializedRsc): AnyCompositeComponent =>
82
+ createFromFlightStream(value) as AnyCompositeComponent,
84
83
  });
85
84
 
86
85
  export function getTanstackRscSerializationAdapters() {
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics asyncFunction:off processEnv:off strictBooleanExpressions:off
1
2
  'use client';
2
3
 
3
4
  import { createElement } from 'react';
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics asyncFunction:off globalFetch:off strictBooleanExpressions:off
1
2
  import type { PayloadRoute, ServerPayload } from '@modern-js/runtime/context';
2
3
  import { notFound, redirect } from '@tanstack/react-router';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics asyncFunction:off processEnv:off strictBooleanExpressions:off
1
2
  import {
2
3
  createFromReadableStream,
3
4
  renderRsc,
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics strictBooleanExpressions:off
1
2
  import { isValidElement } from 'react';
2
3
  import type { SerializableSlotArg } from './symbols';
3
4
 
@@ -1,3 +1,4 @@
1
+ // @effect-diagnostics strictBooleanExpressions:off
1
2
  import type { RouteObject } from '@modern-js/runtime-utils/router';
2
3
  import type { NestedRoute, PageRoute, SSRMode } from '@modern-js/types';
3
4
  import React from 'react';