@bleedingdev/modern-js-plugin-tanstack 3.8.3-ultramodern.6 → 3.9.0-ultramodern.1
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/esm/cli/index.mjs +4 -5
- package/dist/esm-node/cli/index.mjs +6 -5
- package/dist/types/cli/index.d.ts +5 -5
- package/dist/types/cli/tanstackTypes/shared.d.ts +1 -1
- package/dist/types/cli/tanstackTypes.d.ts +3 -3
- package/dist/types/cli.d.ts +2 -2
- package/dist/types/runtime/dataMutation.d.ts +3 -3
- package/dist/types/runtime/index.d.ts +14 -14
- package/dist/types/runtime/loaderBridge.d.ts +2 -2
- package/dist/types/runtime/plugin.d.ts +2 -2
- package/dist/types/runtime/plugin.node.d.ts +2 -2
- package/dist/types/runtime/plugin.worker.d.ts +1 -1
- package/dist/types/runtime/pluginShared.d.ts +2 -2
- package/dist/types/runtime/routeTree/construction.d.ts +1 -1
- package/dist/types/runtime/routeTree/index.d.ts +2 -2
- package/dist/types/runtime/routeTree/loaders.d.ts +1 -1
- package/dist/types/runtime/routeTree/tanstackRoutes.d.ts +1 -1
- package/dist/types/runtime/rsc/CompositeComponent.d.ts +1 -1
- package/dist/types/runtime/rsc/RscNodeRenderer.d.ts +1 -1
- package/dist/types/runtime/rsc/client.d.ts +4 -4
- package/dist/types/runtime/rsc/createRscProxy.d.ts +1 -1
- package/dist/types/runtime/rsc/payloadFetch.d.ts +1 -1
- package/dist/types/runtime/rsc/payloadRouter.d.ts +2 -2
- package/dist/types/runtime/rsc/payloadStorage.d.ts +1 -1
- package/dist/types/runtime/rsc/server.d.ts +3 -3
- package/dist/types/runtime/rsc/shared.d.ts +1 -1
- package/dist/types/runtime/rsc/slotUsageSanitizer.d.ts +1 -1
- package/dist/types/runtime/ssrManagedTags.d.ts +1 -1
- package/dist/types/runtime/ssrPreload.d.ts +1 -1
- package/dist/types/runtime/submitAction.d.ts +1 -1
- package/dist/types/runtime/utils.d.ts +1 -1
- package/dist/types/runtime.d.ts +1 -1
- package/package.json +10 -10
- /package/dist/esm/{rslib-runtime.mjs → rslib-runtime~1.mjs} +0 -0
- /package/dist/esm-node/{rslib-runtime.mjs → rslib-runtime~0.mjs} +0 -0
package/dist/esm/cli/index.mjs
CHANGED
|
@@ -2,11 +2,10 @@ import node_path from "node:path";
|
|
|
2
2
|
import { NESTED_ROUTE_SPEC_FILE, filterRoutesForServer } from "@modern-js/utils";
|
|
3
3
|
import { generateTanstackRouteArtifacts, writeTanstackRegisterFile, writeTanstackRouterTypesForEntries } from "./artifacts.mjs";
|
|
4
4
|
import { createTanstackRsbuildRouteSplittingProfile, resolveTanstackRouteCodeSplittingEnabled } from "./routeSplitting.mjs";
|
|
5
|
-
import { __webpack_require__ } from "../rslib-runtime.mjs";
|
|
6
|
-
import * as __rspack_external__modern_js_runtime_cli_d0edd589 from "@modern-js/runtime/cli";
|
|
5
|
+
import { __webpack_require__ } from "../rslib-runtime~1.mjs";
|
|
7
6
|
__webpack_require__.add({
|
|
8
|
-
|
|
9
|
-
module.exports =
|
|
7
|
+
267 (module) {
|
|
8
|
+
module.exports = require("@modern-js/runtime/cli");
|
|
10
9
|
}
|
|
11
10
|
});
|
|
12
11
|
const DEFAULT_ROUTES_DIR = 'routes';
|
|
@@ -15,7 +14,7 @@ const ENTRYPOINTS_KEY = '@modern-js/plugin-tanstack';
|
|
|
15
14
|
let runtimeRouterCli;
|
|
16
15
|
function getRuntimeRouterCli() {
|
|
17
16
|
if (runtimeRouterCli) return runtimeRouterCli;
|
|
18
|
-
const cli = __webpack_require__(
|
|
17
|
+
const cli = __webpack_require__(267);
|
|
19
18
|
if (cli.handleGeneratorEntryCode && cli.getEntrypointRoutesDir && cli.getEntrypointRoutesOwner && cli.updateNestedRoutesSpec) {
|
|
20
19
|
runtimeRouterCli = cli;
|
|
21
20
|
return runtimeRouterCli;
|
|
@@ -3,14 +3,15 @@ import node_path from "node:path";
|
|
|
3
3
|
import { NESTED_ROUTE_SPEC_FILE, filterRoutesForServer } from "@modern-js/utils";
|
|
4
4
|
import { generateTanstackRouteArtifacts, writeTanstackRegisterFile, writeTanstackRouterTypesForEntries } from "./artifacts.mjs";
|
|
5
5
|
import { createTanstackRsbuildRouteSplittingProfile, resolveTanstackRouteCodeSplittingEnabled } from "./routeSplitting.mjs";
|
|
6
|
-
import { __webpack_require__ } from "../rslib-runtime.mjs";
|
|
6
|
+
import { __webpack_require__ } from "../rslib-runtime~0.mjs";
|
|
7
7
|
import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
|
|
8
8
|
import { dirname as __rspack_dirname } from "node:path";
|
|
9
9
|
var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
|
|
10
|
-
import
|
|
10
|
+
import { createRequire as __rspack_createRequire } from "node:module";
|
|
11
|
+
const __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
|
|
11
12
|
__webpack_require__.add({
|
|
12
|
-
"@modern-js/runtime/cli?
|
|
13
|
-
module.exports =
|
|
13
|
+
"@modern-js/runtime/cli?667f" (module) {
|
|
14
|
+
module.exports = __rspack_createRequire_require("@modern-js/runtime/cli");
|
|
14
15
|
}
|
|
15
16
|
});
|
|
16
17
|
const DEFAULT_ROUTES_DIR = 'routes';
|
|
@@ -19,7 +20,7 @@ const ENTRYPOINTS_KEY = '@modern-js/plugin-tanstack';
|
|
|
19
20
|
let runtimeRouterCli;
|
|
20
21
|
function getRuntimeRouterCli() {
|
|
21
22
|
if (runtimeRouterCli) return runtimeRouterCli;
|
|
22
|
-
const cli = __webpack_require__("@modern-js/runtime/cli?
|
|
23
|
+
const cli = __webpack_require__("@modern-js/runtime/cli?667f");
|
|
23
24
|
if (cli.handleGeneratorEntryCode && cli.getEntrypointRoutesDir && cli.getEntrypointRoutesOwner && cli.updateNestedRoutesSpec) {
|
|
24
25
|
runtimeRouterCli = cli;
|
|
25
26
|
return runtimeRouterCli;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AppTools, CliPlugin } from '@modern-js/app-tools';
|
|
2
|
-
import { type TanstackRouteCodeSplittingOption } from './routeSplitting';
|
|
3
|
-
export { generateTanstackRouteArtifacts, writeTanstackRegisterFile, writeTanstackRouterTypesForEntries, } from './artifacts';
|
|
4
|
-
export type { TanstackRouteCodeSplittingOption, TanstackRsbuildRouteSplittingProfile, } from './routeSplitting';
|
|
5
|
-
export { createTanstackRsbuildRouteSplittingProfile, resolveTanstackRouteCodeSplittingEnabled, } from './routeSplitting';
|
|
6
|
-
export { type CollectCanonicalRoutesOptions, collectCanonicalRoutesForEntry, generateTanstackRouterTypesSourceForEntry, } from './tanstackTypes';
|
|
2
|
+
import { type TanstackRouteCodeSplittingOption } from './routeSplitting.js';
|
|
3
|
+
export { generateTanstackRouteArtifacts, writeTanstackRegisterFile, writeTanstackRouterTypesForEntries, } from './artifacts.js';
|
|
4
|
+
export type { TanstackRouteCodeSplittingOption, TanstackRsbuildRouteSplittingProfile, } from './routeSplitting.js';
|
|
5
|
+
export { createTanstackRsbuildRouteSplittingProfile, resolveTanstackRouteCodeSplittingEnabled, } from './routeSplitting.js';
|
|
6
|
+
export { type CollectCanonicalRoutesOptions, collectCanonicalRoutesForEntry, generateTanstackRouterTypesSourceForEntry, } from './tanstackTypes.js';
|
|
7
7
|
export type TanstackRouterPluginOptions = {
|
|
8
8
|
routesDir?: string;
|
|
9
9
|
generatedDirName?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NestedRouteForCli, PageRoute } from '@modern-js/types';
|
|
2
|
-
export { toTanstackPath } from '../../runtime/routeTree/paths';
|
|
2
|
+
export { toTanstackPath } from '../../runtime/routeTree/paths.js';
|
|
3
3
|
export declare function resolveFileNoExt(inputNoExtPath: string): Promise<string | null>;
|
|
4
4
|
export declare function quote(str: string): string;
|
|
5
5
|
export declare function normalizeRelativeImport(p: string): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { CollectCanonicalRoutesOptions } from './tanstackTypes/canonicalRoutes';
|
|
2
|
-
export { collectCanonicalRoutesForEntry } from './tanstackTypes/canonicalRoutes';
|
|
3
|
-
export { generateTanstackRouterTypesSourceForEntry } from './tanstackTypes/source';
|
|
1
|
+
export type { CollectCanonicalRoutesOptions } from './tanstackTypes/canonicalRoutes.js';
|
|
2
|
+
export { collectCanonicalRoutesForEntry } from './tanstackTypes/canonicalRoutes.js';
|
|
3
|
+
export { generateTanstackRouterTypesSourceForEntry } from './tanstackTypes/source.js';
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './cli/index';
|
|
2
|
-
export { default } from './cli/index';
|
|
1
|
+
export * from './cli/index.js';
|
|
2
|
+
export { default } from './cli/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { SubmitOptions, SubmitTarget } from './formData';
|
|
3
|
-
export type { SubmitOptions } from './formData';
|
|
4
|
-
export { RouteActionResponseError } from './submitAction';
|
|
2
|
+
import type { SubmitOptions, SubmitTarget } from './formData.js';
|
|
3
|
+
export type { SubmitOptions } from './formData.js';
|
|
4
|
+
export { RouteActionResponseError } from './submitAction.js';
|
|
5
5
|
export type FetcherState = 'idle' | 'submitting' | 'loading';
|
|
6
6
|
export type FormProps = Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'action'> & {
|
|
7
7
|
action?: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './register';
|
|
1
|
+
import './register.js';
|
|
2
2
|
export * from '@tanstack/react-router';
|
|
3
|
-
export type { Fetcher, FetcherState, FetcherSubmitOptions, FormProps, SubmitOptions, } from './dataMutation';
|
|
4
|
-
export { Form, RouteActionResponseError, useFetcher, } from './dataMutation';
|
|
5
|
-
export type { ModernRouterContext } from './loaderBridge';
|
|
6
|
-
export { createRouteStaticData, isAbsoluteUrl, modernLoaderToTanstack, throwTanstackRedirect, } from './loaderBridge';
|
|
7
|
-
export { Outlet } from './outlet';
|
|
8
|
-
export { tanstackRouterPlugin, tanstackRouterPlugin as default, } from './plugin';
|
|
9
|
-
export type { LinkProps, NavLinkProps, PrefetchBehavior, } from './prefetchLink';
|
|
10
|
-
export { Link, NavLink } from './prefetchLink';
|
|
11
|
-
export { useChildMatches, useMatch, useMatches, useParentMatches, useRouterState, } from './routeHooks';
|
|
12
|
-
export type { TanstackRouterState } from './state';
|
|
13
|
-
export { getTanstackRouterState } from './state';
|
|
14
|
-
export type { RouterConfig } from './types';
|
|
15
|
-
export { getModernTanstackRouterFastDefaults, modernTanstackRouterFastDefaults, } from './types';
|
|
3
|
+
export type { Fetcher, FetcherState, FetcherSubmitOptions, FormProps, SubmitOptions, } from './dataMutation.js';
|
|
4
|
+
export { Form, RouteActionResponseError, useFetcher, } from './dataMutation.js';
|
|
5
|
+
export type { ModernRouterContext } from './loaderBridge.js';
|
|
6
|
+
export { createRouteStaticData, isAbsoluteUrl, modernLoaderToTanstack, throwTanstackRedirect, } from './loaderBridge.js';
|
|
7
|
+
export { Outlet } from './outlet.js';
|
|
8
|
+
export { tanstackRouterPlugin, tanstackRouterPlugin as default, } from './plugin.js';
|
|
9
|
+
export type { LinkProps, NavLinkProps, PrefetchBehavior, } from './prefetchLink.js';
|
|
10
|
+
export { Link, NavLink } from './prefetchLink.js';
|
|
11
|
+
export { useChildMatches, useMatch, useMatches, useParentMatches, useRouterState, } from './routeHooks.js';
|
|
12
|
+
export type { TanstackRouterState } from './state.js';
|
|
13
|
+
export { getTanstackRouterState } from './state.js';
|
|
14
|
+
export type { RouterConfig } from './types.js';
|
|
15
|
+
export { getModernTanstackRouterFastDefaults, modernTanstackRouterFastDefaults, } from './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRouteStaticData } from '../shared/routeStaticData';
|
|
2
|
-
import { isAbsoluteUrl } from './shared/isAbsoluteUrl';
|
|
1
|
+
import { createRouteStaticData } from '../shared/routeStaticData.js';
|
|
2
|
+
import { isAbsoluteUrl } from './shared/isAbsoluteUrl.js';
|
|
3
3
|
export { createRouteStaticData, isAbsoluteUrl };
|
|
4
4
|
/** Router context shape used by the generated TanStack router types. */
|
|
5
5
|
export type ModernRouterContext = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TanstackRouterRuntimePlugin } from './pluginShared';
|
|
2
|
-
import { type RouterConfig } from './types';
|
|
1
|
+
import { type TanstackRouterRuntimePlugin } from './pluginShared.js';
|
|
2
|
+
import { type RouterConfig } from './types.js';
|
|
3
3
|
export declare const tanstackRouterPlugin: (userConfig?: Partial<RouterConfig>) => TanstackRouterRuntimePlugin;
|
|
4
4
|
export default tanstackRouterPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TanstackRouterRuntimePlugin } from './pluginShared';
|
|
2
|
-
import { type RouterConfig } from './types';
|
|
1
|
+
import { type TanstackRouterRuntimePlugin } from './pluginShared.js';
|
|
2
|
+
import { type RouterConfig } from './types.js';
|
|
3
3
|
export declare const tanstackRouterPlugin: (userConfig?: Partial<RouterConfig>) => TanstackRouterRuntimePlugin;
|
|
4
4
|
export default tanstackRouterPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, tanstackRouterPlugin, } from './plugin.node';
|
|
1
|
+
export { default, tanstackRouterPlugin, } from './plugin.node.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TInternalRuntimeContext } from '@modern-js/runtime/context';
|
|
2
2
|
import type { RouteObject } from '@modern-js/runtime-utils/router';
|
|
3
|
-
import type { RouterExtendsHooks } from './hooks';
|
|
4
|
-
import type { RouterConfig } from './types';
|
|
3
|
+
import type { RouterExtendsHooks } from './hooks.js';
|
|
4
|
+
import type { RouterConfig } from './types.js';
|
|
5
5
|
type TanstackRouterRuntimeConfig = {
|
|
6
6
|
plugins?: TanstackRouterRuntimePlugin[];
|
|
7
7
|
router?: Partial<RouterConfig>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RouteObject } from '@modern-js/runtime-utils/router';
|
|
2
2
|
import type { AnyRouter } from '@tanstack/react-router';
|
|
3
|
-
import type { ModernTanstackRootRoute, RouteTreeOptions } from './types';
|
|
3
|
+
import type { ModernTanstackRootRoute, RouteTreeOptions } from './types.js';
|
|
4
4
|
export declare function createRouteTreeFromRouteObjects(routes: RouteObject[], options?: RouteTreeOptions): ModernTanstackRootRoute;
|
|
5
5
|
export declare function getModernRouteIdsFromMatches(router: AnyRouter): string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { pickRouteModuleComponent } from './components';
|
|
2
|
-
export { createRouteTreeFromRouteObjects, getModernRouteIdsFromMatches, } from './construction';
|
|
1
|
+
export { pickRouteModuleComponent } from './components.js';
|
|
2
|
+
export { createRouteTreeFromRouteObjects, getModernRouteIdsFromMatches, } from './construction.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RouteObject } from '@modern-js/runtime-utils/router';
|
|
2
|
-
import type { RouteRevalidationState, RouteTreeOptions, TanstackLoaderContext } from './types';
|
|
2
|
+
import type { RouteRevalidationState, RouteTreeOptions, TanstackLoaderContext } from './types.js';
|
|
3
3
|
export declare function createModernShouldReload(shouldRevalidate: unknown, state: RouteRevalidationState): ((ctx: TanstackLoaderContext) => boolean | undefined) | undefined;
|
|
4
4
|
export declare function wrapRouteObjectLoader(route: RouteObject, revalidationState?: RouteRevalidationState, options?: RouteTreeOptions): ((ctx: TanstackLoaderContext) => Promise<unknown>) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MutableTanstackRoute, TanstackRootRouteOptions, TanstackRouteOptions } from './types';
|
|
1
|
+
import type { MutableTanstackRoute, TanstackRootRouteOptions, TanstackRouteOptions } from './types.js';
|
|
2
2
|
export declare function createTanstackRoute(options: TanstackRouteOptions): MutableTanstackRoute;
|
|
3
3
|
export declare function createTanstackRootRoute(options: TanstackRootRouteOptions): MutableTanstackRoute;
|
|
4
4
|
export declare function wrapRouteComponentWithModernContext(route: MutableTanstackRoute, component: unknown, routeId?: string): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type AnyCompositeComponent, type CompositeComponentProps } from './symbols';
|
|
1
|
+
import { type AnyCompositeComponent, type CompositeComponentProps } from './symbols.js';
|
|
2
2
|
export declare function CompositeComponent<TComp extends AnyCompositeComponent>(props: CompositeComponentProps<TComp>): import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CompositeComponent } from './CompositeComponent';
|
|
2
|
-
import type { SerializedTanstackRscFlightValue } from './shared';
|
|
3
|
-
import type { AnyCompositeComponent, RscSlotUsageEvent } from './symbols';
|
|
4
|
-
export type { AnyCompositeComponent, AnyRenderableServerComponent, CompositeComponentProps, } from './symbols';
|
|
1
|
+
import { CompositeComponent } from './CompositeComponent.js';
|
|
2
|
+
import type { SerializedTanstackRscFlightValue } from './shared.js';
|
|
3
|
+
import type { AnyCompositeComponent, RscSlotUsageEvent } from './symbols.js';
|
|
4
|
+
export type { AnyCompositeComponent, AnyRenderableServerComponent, CompositeComponentProps, } from './symbols.js';
|
|
5
5
|
export { CompositeComponent };
|
|
6
6
|
type SerializedRsc = {
|
|
7
7
|
kind: 'renderable' | 'composite';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RscSlotUsageEvent, type ServerComponentStream } from './symbols';
|
|
1
|
+
import { type RscSlotUsageEvent, type ServerComponentStream } from './symbols.js';
|
|
2
2
|
export declare function createRscProxy(getTree: () => unknown, options?: {
|
|
3
3
|
renderable?: boolean;
|
|
4
4
|
slotUsages?: RscSlotUsageEvent[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ServerPayload } from '@modern-js/runtime/context';
|
|
2
|
-
import { isAbsoluteUrl } from '../shared/isAbsoluteUrl';
|
|
2
|
+
import { isAbsoluteUrl } from '../shared/isAbsoluteUrl.js';
|
|
3
3
|
export { isAbsoluteUrl };
|
|
4
4
|
type PayloadDecoder = (stream: ReadableStream<Uint8Array>) => Promise<unknown>;
|
|
5
5
|
export declare const payloadFetchCache: Map<string, Promise<ServerPayload>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ServerPayload } from '@modern-js/runtime/context';
|
|
2
|
-
import type { TanstackPayloadRouterLike } from './payloadRoutes';
|
|
3
|
-
export { __setTanstackRscPayloadDecoderForTests } from './payloadFetch';
|
|
2
|
+
import type { TanstackPayloadRouterLike } from './payloadRoutes.js';
|
|
3
|
+
export { __setTanstackRscPayloadDecoderForTests } from './payloadFetch.js';
|
|
4
4
|
type LoadRouteDataOptions = {
|
|
5
5
|
hasClientLoader?: boolean;
|
|
6
6
|
loadClientData: () => Promise<unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ServerPayload } from '@modern-js/runtime/context';
|
|
2
|
-
import type { TanstackRouterWithServerSsr } from '../ssrTypes';
|
|
2
|
+
import type { TanstackRouterWithServerSsr } from '../ssrTypes.js';
|
|
3
3
|
export declare const setTanstackRscServerPayload: (payload: ServerPayload) => void;
|
|
4
4
|
export declare const setTanstackRscRouter: (router: TanstackRouterWithServerSsr) => void;
|
|
5
5
|
export declare const getTanstackRscRouter: () => TanstackRouterWithServerSsr | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RawStream } from '@tanstack/router-core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type AnyCompositeComponent, type AnyRenderableServerComponent, type RscSlotUsageEvent } from './symbols';
|
|
4
|
-
export { CompositeComponent } from './CompositeComponent';
|
|
5
|
-
export type { AnyCompositeComponent, AnyRenderableServerComponent, CompositeComponentProps, } from './symbols';
|
|
3
|
+
import { type AnyCompositeComponent, type AnyRenderableServerComponent, type RscSlotUsageEvent } from './symbols.js';
|
|
4
|
+
export { CompositeComponent } from './CompositeComponent.js';
|
|
5
|
+
export type { AnyCompositeComponent, AnyRenderableServerComponent, CompositeComponentProps, } from './symbols.js';
|
|
6
6
|
export declare function renderServerComponent<TNode extends React.ReactNode>(node: TNode): Promise<TNode & AnyRenderableServerComponent<TNode>>;
|
|
7
7
|
export declare function createCompositeComponent<TProps extends object = Record<string, unknown>, TReturn = React.ReactNode>(component: (props: TProps) => React.ReactNode | Promise<React.ReactNode>): Promise<AnyCompositeComponent<TProps, TReturn>>;
|
|
8
8
|
type SerializedRsc = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { type AnyCompositeComponent, type AnyRenderableServerComponent, type RscSlotUsageEvent } from './symbols';
|
|
2
|
+
import { type AnyCompositeComponent, type AnyRenderableServerComponent, type RscSlotUsageEvent } from './symbols.js';
|
|
3
3
|
export declare const TANSTACK_RSC_FLIGHT_VALUE = "__modernTanstackRsc";
|
|
4
4
|
export type SerializedTanstackRscFlightValue = {
|
|
5
5
|
[TANSTACK_RSC_FLIGHT_VALUE]: true;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SerializableSlotArg } from './symbols';
|
|
1
|
+
import type { SerializableSlotArg } from './symbols.js';
|
|
2
2
|
export declare function sanitizeSlotArgs(args: unknown[]): SerializableSlotArg[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnyRouter } from '@tanstack/react-router';
|
|
2
|
-
import type { TanstackRouterWithServerSsr } from './ssrTypes';
|
|
2
|
+
import type { TanstackRouterWithServerSsr } from './ssrTypes.js';
|
|
3
3
|
export declare function waitForRouterSerialization(tanstackRouter: TanstackRouterWithServerSsr): Promise<void>;
|
|
4
4
|
export declare function routerManagedTagsToHtml(tags: unknown): string[];
|
|
5
5
|
export declare function createGetSsrHref(request: Request): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TanstackRouterWithServerSsr } from './ssrTypes';
|
|
1
|
+
import type { TanstackRouterWithServerSsr } from './ssrTypes.js';
|
|
2
2
|
export declare function preloadMatchedRouteComponents(tanstackRouter: TanstackRouterWithServerSsr): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnyRouter } from '@tanstack/react-router';
|
|
2
|
-
import type { SubmitOptions, SubmitTarget } from './formData';
|
|
2
|
+
import type { SubmitOptions, SubmitTarget } from './formData.js';
|
|
3
3
|
export declare class RouteActionResponseError<TData = unknown> extends Error {
|
|
4
4
|
readonly response: Response;
|
|
5
5
|
readonly data: TData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RouteObject } from '@modern-js/runtime-utils/router';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { ModernRoute } from './types';
|
|
3
|
+
import type { ModernRoute } from './types.js';
|
|
4
4
|
type RouterConfig = {
|
|
5
5
|
routesConfig: {
|
|
6
6
|
globalApp?: React.ComponentType<any>;
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './runtime/index';
|
|
1
|
+
export * from './runtime/index.js';
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"modern.js",
|
|
19
19
|
"tanstack-router"
|
|
20
20
|
],
|
|
21
|
-
"version": "3.
|
|
21
|
+
"version": "3.9.0-ultramodern.1",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -94,17 +94,17 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.
|
|
98
|
-
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.
|
|
99
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.
|
|
100
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.
|
|
97
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.0-ultramodern.1",
|
|
98
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.9.0-ultramodern.1",
|
|
99
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.1",
|
|
100
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.1",
|
|
101
101
|
"@swc/helpers": "^0.5.23",
|
|
102
102
|
"@tanstack/react-router": "1.170.32",
|
|
103
103
|
"@tanstack/router-core": "1.171.27"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@modern-js/app-tools": "3.
|
|
107
|
-
"@modern-js/runtime": "3.
|
|
106
|
+
"@modern-js/app-tools": "3.9.0-ultramodern.1",
|
|
107
|
+
"@modern-js/runtime": "3.9.0-ultramodern.1",
|
|
108
108
|
"react": "^19.2.8",
|
|
109
109
|
"react-dom": "^19.2.8",
|
|
110
110
|
"react-server-dom-rspack": "0.1.0"
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
|
-
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.
|
|
119
|
-
"@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.
|
|
120
|
-
"@rslib/core": "0.
|
|
118
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.9.0-ultramodern.1",
|
|
119
|
+
"@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.9.0-ultramodern.1",
|
|
120
|
+
"@rslib/core": "1.0.0",
|
|
121
121
|
"@scripts/rstest-config": "2.66.0",
|
|
122
122
|
"@tanstack/history": "1.162.1",
|
|
123
123
|
"@testing-library/react": "^16.3.2",
|
|
File without changes
|
|
File without changes
|