@primate/vue 0.19.0 → 0.19.2

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,5 @@
1
1
  import root from "#client/root";
2
+ import request from "#request/store";
2
3
  import client from "@primate/core/client";
3
4
  export default class VueApp {
4
5
  static mount(_view, data) {
@@ -8,11 +9,13 @@ export default class VueApp {
8
9
  let app = root[data.ssr ? "ssr" : "csr"](root.toProps(data));
9
10
  app.mount("#app");
10
11
  if (data.csr) {
11
- const start = () => client.boot((next, update) => {
12
+ const start = () => client.boot("vue", (next, update) => {
12
13
  app.unmount();
13
14
  app = root.csr(root.toProps(next, update));
14
15
  app.mount("#app");
15
16
  update?.();
17
+ }, (url, query) => {
18
+ request.value = { ...request.value, query, url };
16
19
  });
17
20
  if (document.readyState === "loading") {
18
21
  window.addEventListener("DOMContentLoaded", start, { once: true });
@@ -26,10 +26,10 @@ declare const store: import("vue").Ref<{
26
26
  sort: () => void;
27
27
  toString: () => string;
28
28
  forEach: (callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any) => void;
29
- [Symbol.iterator]: () => URLSearchParamsIterator<[string, string]>;
30
29
  entries: () => URLSearchParamsIterator<[string, string]>;
31
30
  keys: () => URLSearchParamsIterator<string>;
32
31
  values: () => URLSearchParamsIterator<string>;
32
+ [Symbol.iterator]: () => URLSearchParamsIterator<[string, string]>;
33
33
  };
34
34
  username: string;
35
35
  toJSON: () => string;
@@ -61,10 +61,10 @@ declare const store: import("vue").Ref<{
61
61
  sort: () => void;
62
62
  toString: () => string;
63
63
  forEach: (callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any) => void;
64
- [Symbol.iterator]: () => URLSearchParamsIterator<[string, string]>;
65
64
  entries: () => URLSearchParamsIterator<[string, string]>;
66
65
  keys: () => URLSearchParamsIterator<string>;
67
66
  values: () => URLSearchParamsIterator<string>;
67
+ [Symbol.iterator]: () => URLSearchParamsIterator<[string, string]>;
68
68
  };
69
69
  username: string;
70
70
  toJSON: () => string;
@@ -25,10 +25,10 @@ export declare function useRequest(): import("vue").Ref<{
25
25
  sort: () => void;
26
26
  toString: () => string;
27
27
  forEach: (callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any) => void;
28
- [Symbol.iterator]: () => URLSearchParamsIterator<[string, string]>;
29
28
  entries: () => URLSearchParamsIterator<[string, string]>;
30
29
  keys: () => URLSearchParamsIterator<string>;
31
30
  values: () => URLSearchParamsIterator<string>;
31
+ [Symbol.iterator]: () => URLSearchParamsIterator<[string, string]>;
32
32
  };
33
33
  username: string;
34
34
  toJSON: () => string;
@@ -60,10 +60,10 @@ export declare function useRequest(): import("vue").Ref<{
60
60
  sort: () => void;
61
61
  toString: () => string;
62
62
  forEach: (callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any) => void;
63
- [Symbol.iterator]: () => URLSearchParamsIterator<[string, string]>;
64
63
  entries: () => URLSearchParamsIterator<[string, string]>;
65
64
  keys: () => URLSearchParamsIterator<string>;
66
65
  values: () => URLSearchParamsIterator<string>;
66
+ [Symbol.iterator]: () => URLSearchParamsIterator<[string, string]>;
67
67
  };
68
68
  username: string;
69
69
  toJSON: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primate/vue",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "Vue for Primate",
5
5
  "homepage": "https://primate.run/docs/frontend/vue",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",
@@ -18,15 +18,15 @@
18
18
  ],
19
19
  "types": "lib/index.d.ts",
20
20
  "dependencies": {
21
- "@rcompat/fs": "^0.35.1",
22
- "@primate/core": "^0.9.0"
21
+ "@primate/core": "^0.9.28",
22
+ "@rcompat/fs": "^0.35.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@rcompat/type": "^0.18.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "vue": "3",
29
- "primate": "^0.40.0"
28
+ "primate": "^0.40.1",
29
+ "vue": "3"
30
30
  },
31
31
  "imports": {
32
32
  "#*": {