@tanstack/react-router-ssr-query 1.166.7 → 1.166.9
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/index.cjs +17 -14
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +15 -13
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
let react = require("react");
|
|
3
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
4
|
+
let _tanstack_router_ssr_query_core = require("@tanstack/router-ssr-query-core");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
//#region src/index.tsx
|
|
7
7
|
function setupRouterSsrQueryIntegration(opts) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
(0, _tanstack_router_ssr_query_core.setupCoreRouterSsrQueryIntegration)(opts);
|
|
9
|
+
if (opts.wrapQueryClient === false) return;
|
|
10
|
+
const OGWrap = opts.router.options.Wrap || react.Fragment;
|
|
11
|
+
opts.router.options.Wrap = ({ children }) => {
|
|
12
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tanstack_react_query.QueryClientProvider, {
|
|
13
|
+
client: opts.queryClient,
|
|
14
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OGWrap, { children })
|
|
15
|
+
});
|
|
16
|
+
};
|
|
16
17
|
}
|
|
18
|
+
//#endregion
|
|
17
19
|
exports.setupRouterSsrQueryIntegration = setupRouterSsrQueryIntegration;
|
|
18
|
-
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/index.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport { QueryClientProvider } from '@tanstack/react-query'\nimport { setupCoreRouterSsrQueryIntegration } from '@tanstack/router-ssr-query-core'\nimport type { RouterSsrQueryOptions } from '@tanstack/router-ssr-query-core'\nimport type { AnyRouter } from '@tanstack/react-router'\n\nexport type Options<TRouter extends AnyRouter> =\n RouterSsrQueryOptions<TRouter> & {\n wrapQueryClient?: boolean\n }\n\nexport function setupRouterSsrQueryIntegration<TRouter extends AnyRouter>(\n opts: Options<TRouter>,\n) {\n setupCoreRouterSsrQueryIntegration(opts)\n\n if (opts.wrapQueryClient === false) {\n return\n }\n const OGWrap = opts.router.options.Wrap || Fragment\n\n opts.router.options.Wrap = ({ children }) => {\n return (\n <QueryClientProvider client={opts.queryClient}>\n <OGWrap>{children}</OGWrap>\n </QueryClientProvider>\n )\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/index.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport { QueryClientProvider } from '@tanstack/react-query'\nimport { setupCoreRouterSsrQueryIntegration } from '@tanstack/router-ssr-query-core'\nimport type { RouterSsrQueryOptions } from '@tanstack/router-ssr-query-core'\nimport type { AnyRouter } from '@tanstack/react-router'\n\nexport type Options<TRouter extends AnyRouter> =\n RouterSsrQueryOptions<TRouter> & {\n wrapQueryClient?: boolean\n }\n\nexport function setupRouterSsrQueryIntegration<TRouter extends AnyRouter>(\n opts: Options<TRouter>,\n) {\n setupCoreRouterSsrQueryIntegration(opts)\n\n if (opts.wrapQueryClient === false) {\n return\n }\n const OGWrap = opts.router.options.Wrap || Fragment\n\n opts.router.options.Wrap = ({ children }) => {\n return (\n <QueryClientProvider client={opts.queryClient}>\n <OGWrap>{children}</OGWrap>\n </QueryClientProvider>\n )\n }\n}\n"],"mappings":";;;;;;AAWA,SAAgB,+BACd,MACA;AACA,EAAA,GAAA,gCAAA,oCAAmC,KAAK;AAExC,KAAI,KAAK,oBAAoB,MAC3B;CAEF,MAAM,SAAS,KAAK,OAAO,QAAQ,QAAQ,MAAA;AAE3C,MAAK,OAAO,QAAQ,QAAQ,EAAE,eAAe;AAC3C,SACE,iBAAA,GAAA,kBAAA,KAAC,sBAAA,qBAAD;GAAqB,QAAQ,KAAK;aAChC,iBAAA,GAAA,kBAAA,KAAC,QAAD,EAAS,UAAkB,CAAA;GACP,CAAA"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import { Fragment } from "react";
|
|
3
2
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
4
3
|
import { setupCoreRouterSsrQueryIntegration } from "@tanstack/router-ssr-query-core";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/index.tsx
|
|
5
6
|
function setupRouterSsrQueryIntegration(opts) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
setupCoreRouterSsrQueryIntegration(opts);
|
|
8
|
+
if (opts.wrapQueryClient === false) return;
|
|
9
|
+
const OGWrap = opts.router.options.Wrap || Fragment;
|
|
10
|
+
opts.router.options.Wrap = ({ children }) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(QueryClientProvider, {
|
|
12
|
+
client: opts.queryClient,
|
|
13
|
+
children: /* @__PURE__ */ jsx(OGWrap, { children })
|
|
14
|
+
});
|
|
15
|
+
};
|
|
14
16
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
17
|
+
//#endregion
|
|
18
|
+
export { setupRouterSsrQueryIntegration };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport { QueryClientProvider } from '@tanstack/react-query'\nimport { setupCoreRouterSsrQueryIntegration } from '@tanstack/router-ssr-query-core'\nimport type { RouterSsrQueryOptions } from '@tanstack/router-ssr-query-core'\nimport type { AnyRouter } from '@tanstack/react-router'\n\nexport type Options<TRouter extends AnyRouter> =\n RouterSsrQueryOptions<TRouter> & {\n wrapQueryClient?: boolean\n }\n\nexport function setupRouterSsrQueryIntegration<TRouter extends AnyRouter>(\n opts: Options<TRouter>,\n) {\n setupCoreRouterSsrQueryIntegration(opts)\n\n if (opts.wrapQueryClient === false) {\n return\n }\n const OGWrap = opts.router.options.Wrap || Fragment\n\n opts.router.options.Wrap = ({ children }) => {\n return (\n <QueryClientProvider client={opts.queryClient}>\n <OGWrap>{children}</OGWrap>\n </QueryClientProvider>\n )\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport { QueryClientProvider } from '@tanstack/react-query'\nimport { setupCoreRouterSsrQueryIntegration } from '@tanstack/router-ssr-query-core'\nimport type { RouterSsrQueryOptions } from '@tanstack/router-ssr-query-core'\nimport type { AnyRouter } from '@tanstack/react-router'\n\nexport type Options<TRouter extends AnyRouter> =\n RouterSsrQueryOptions<TRouter> & {\n wrapQueryClient?: boolean\n }\n\nexport function setupRouterSsrQueryIntegration<TRouter extends AnyRouter>(\n opts: Options<TRouter>,\n) {\n setupCoreRouterSsrQueryIntegration(opts)\n\n if (opts.wrapQueryClient === false) {\n return\n }\n const OGWrap = opts.router.options.Wrap || Fragment\n\n opts.router.options.Wrap = ({ children }) => {\n return (\n <QueryClientProvider client={opts.queryClient}>\n <OGWrap>{children}</OGWrap>\n </QueryClientProvider>\n )\n }\n}\n"],"mappings":";;;;;AAWA,SAAgB,+BACd,MACA;AACA,oCAAmC,KAAK;AAExC,KAAI,KAAK,oBAAoB,MAC3B;CAEF,MAAM,SAAS,KAAK,OAAO,QAAQ,QAAQ;AAE3C,MAAK,OAAO,QAAQ,QAAQ,EAAE,eAAe;AAC3C,SACE,oBAAC,qBAAD;GAAqB,QAAQ,KAAK;aAChC,oBAAC,QAAD,EAAS,UAAkB,CAAA;GACP,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-router-ssr-query",
|
|
3
|
-
"version": "1.166.
|
|
3
|
+
"version": "1.166.9",
|
|
4
4
|
"description": "Modern and scalable routing for React applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"node": ">=20.19"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@tanstack/router-ssr-query-core": "1.166.
|
|
52
|
+
"@tanstack/router-ssr-query-core": "1.166.9"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-dom": ">=19",
|
|
58
58
|
"@tanstack/react-query": ">=5.90.0",
|
|
59
59
|
"vite": "*",
|
|
60
|
-
"@tanstack/react-router": "1.
|
|
60
|
+
"@tanstack/react-router": "1.167.2"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": ">=18.0.0 || >=19.0.0",
|