vike-solid-query 0.0.1-commit-6c8fbf2 → 0.0.1-commit-429fd54

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.
@@ -1,4 +1,3 @@
1
- import type { QueryClientConfig } from "@tanstack/solid-query";
2
1
  import "vike-solid/config";
3
2
  declare const _default: {
4
3
  name: string;
@@ -23,10 +22,3 @@ declare const _default: {
23
22
  };
24
23
  };
25
24
  export default _default;
26
- declare global {
27
- namespace Vike {
28
- interface Config {
29
- queryClientConfig?: QueryClientConfig;
30
- }
31
- }
32
- }
@@ -3,9 +3,8 @@ import { QueryClient, QueryClientProvider } from "@tanstack/solid-query";
3
3
  import { usePageContext } from "vike-solid/usePageContext";
4
4
  export default function Wrapper(props) {
5
5
  const pageContext = usePageContext();
6
- const queryClient = new QueryClient(pageContext.config.queryClientConfig);
7
6
  return createComponent(QueryClientProvider, {
8
- client: queryClient,
7
+ client: new QueryClient(pageContext.config.queryClientConfig),
9
8
  get children() {
10
9
  return props.children;
11
10
  },
package/package.json CHANGED
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "name": "vike-solid-query",
3
- "version": "0.0.1-commit-6c8fbf2",
3
+ "version": "0.0.1-commit-429fd54",
4
4
  "type": "module",
5
+ "main": "dist/src/index.js",
6
+ "typings": "dist/src/index.js",
7
+ "exports": {
8
+ ".": "./dist/src/index.js",
9
+ "./config": "./dist/integration/+config.js",
10
+ "./__internal/integration/Wrapper": "./dist/integration/Wrapper.js"
11
+ },
5
12
  "peerDependencies": {
6
13
  "@tanstack/solid-query": ">=5.0.0",
7
14
  "solid-js": "^1.8.7",
8
- "vike-solid": "^0.7.5"
15
+ "vike-solid": ">=0.7.4"
9
16
  },
10
17
  "devDependencies": {
11
18
  "@brillout/release-me": "^0.4.1",
@@ -14,13 +21,7 @@
14
21
  "solid-js": "^1.8.22",
15
22
  "typescript": "^5.6.2",
16
23
  "vike": "^0.4.195",
17
- "vite": "^5.4.6",
18
- "vike-solid": "0.7.5"
19
- },
20
- "exports": {
21
- ".": "./dist/src/index.js",
22
- "./config": "./dist/integration/+config.js",
23
- "./__internal/integration/Wrapper": "./dist/integration/Wrapper.js"
24
+ "vike-solid": "^0.7.5"
24
25
  },
25
26
  "typesVersions": {
26
27
  "*": {
@@ -33,7 +34,7 @@
33
34
  }
34
35
  },
35
36
  "files": [
36
- "dist/"
37
+ "dist"
37
38
  ],
38
39
  "repository": "github:vikejs/vike-solid",
39
40
  "license": "MIT",