@esmx/router-vue 3.0.0-rc.19 → 3.0.0-rc.20

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/plugin.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  /**
2
- * Vue plugin for @esmx/router integration.
2
+ * Vue plugin for \@esmx/router integration.
3
3
  * Registers RouterLink and RouterView components globally.
4
4
  * Compatible with both Vue 2.7+ and Vue 3.
5
5
  *
6
- * @example Vue 3 installation
6
+ * @example
7
+ *
8
+ * Vue 3 installation
9
+ *
7
10
  * ```typescript
8
11
  * import { createApp } from 'vue';
9
12
  * import { Router } from '@esmx/router';
@@ -25,7 +28,10 @@
25
28
  * app.mount('#app');
26
29
  * ```
27
30
  *
28
- * @example Vue 2 installation
31
+ * @example
32
+ *
33
+ * Vue 2 installation
34
+ *
29
35
  * ```typescript
30
36
  * import Vue from 'vue';
31
37
  * import { Router } from '@esmx/router';
@@ -9,6 +9,7 @@
9
9
  * @returns Vue render function that renders the matched route component at current depth
10
10
  *
11
11
  * @example
12
+ *
12
13
  * ```vue
13
14
  * <template>
14
15
  * <div id="app">
package/dist/util.mjs CHANGED
@@ -6,7 +6,7 @@ export function createSymbolProperty(symbol) {
6
6
  instance[symbol] = value;
7
7
  },
8
8
  get(instance) {
9
- return instance[symbol];
9
+ return symbol in instance ? instance[symbol] : void 0;
10
10
  }
11
11
  };
12
12
  }
package/package.json CHANGED
@@ -50,11 +50,11 @@
50
50
  "vue": "^3.5.0 || ^2.7.0"
51
51
  },
52
52
  "dependencies": {
53
- "@esmx/router": "3.0.0-rc.19"
53
+ "@esmx/router": "3.0.0-rc.20"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@biomejs/biome": "1.9.4",
57
- "@esmx/lint": "3.0.0-rc.19",
57
+ "@esmx/lint": "3.0.0-rc.20",
58
58
  "@types/node": "22.15.18",
59
59
  "@vitest/coverage-v8": "3.1.3",
60
60
  "stylelint": "16.19.1",
@@ -64,7 +64,7 @@
64
64
  "vue": "3.5.13",
65
65
  "vue2": "npm:vue@2.7.16"
66
66
  },
67
- "version": "3.0.0-rc.19",
67
+ "version": "3.0.0-rc.20",
68
68
  "type": "module",
69
69
  "private": false,
70
70
  "exports": {
@@ -83,5 +83,5 @@
83
83
  "template",
84
84
  "public"
85
85
  ],
86
- "gitHead": "83a9cfac4a91b2b54ac576e120bb4541f4cce9d6"
86
+ "gitHead": "4c6490c23cbc148cb189b3f2cdae930eed901607"
87
87
  }
package/src/plugin.ts CHANGED
@@ -12,11 +12,14 @@ interface VueApp {
12
12
  }
13
13
 
14
14
  /**
15
- * Vue plugin for @esmx/router integration.
15
+ * Vue plugin for \@esmx/router integration.
16
16
  * Registers RouterLink and RouterView components globally.
17
17
  * Compatible with both Vue 2.7+ and Vue 3.
18
18
  *
19
- * @example Vue 3 installation
19
+ * @example
20
+ *
21
+ * Vue 3 installation
22
+ *
20
23
  * ```typescript
21
24
  * import { createApp } from 'vue';
22
25
  * import { Router } from '@esmx/router';
@@ -38,7 +41,10 @@ interface VueApp {
38
41
  * app.mount('#app');
39
42
  * ```
40
43
  *
41
- * @example Vue 2 installation
44
+ * @example
45
+ *
46
+ * Vue 2 installation
47
+ *
42
48
  * ```typescript
43
49
  * import Vue from 'vue';
44
50
  * import { Router } from '@esmx/router';
@@ -15,6 +15,7 @@ const RouterViewDepthKey = Symbol('RouterViewDepth');
15
15
  * @returns Vue render function that renders the matched route component at current depth
16
16
  *
17
17
  * @example
18
+ *
18
19
  * ```vue
19
20
  * <template>
20
21
  * <div id="app">
package/src/util.ts CHANGED
@@ -8,7 +8,7 @@ export function createSymbolProperty<T>(symbol: symbol) {
8
8
  instance[symbol] = value;
9
9
  },
10
10
  get(instance: any): T | undefined {
11
- return instance[symbol];
11
+ return symbol in instance ? instance[symbol] : void 0;
12
12
  }
13
13
  } as const;
14
14
  }