@virou/core 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  <p>
4
4
  <a href="https://www.npmjs.com/package/@virou/core"><img src="https://img.shields.io/npm/v/@virou/core.svg?style=flat&colorA=18181B&colorB=39737d" alt="Version"></a>
5
5
  <a href="https://www.npmjs.com/package/@virou/core"><img src="https://img.shields.io/npm/dm/@virou/core.svg?style=flat&colorA=18181B&colorB=39737d" alt="Downloads"></a>
6
- <a href="https://bundlephobia.com/package/@virou/core"><img src="https://img.shields.io/bundlephobia/min/@virou/core?style=flat&colorA=18181B&colorB=39737d" alt="Bundle Size"></a>
6
+ <a href="https://bundlephobia.com/package/@virou/core"><img src="https://img.shields.io/bundlephobia/min/@virou/core?style=flat&colorA=18181B&colorB=39737d" alt="Bundle Size"><a/>
7
7
  <a href="https://github.com/tankosinn/virou/tree/main/LICENSE"><img src="https://img.shields.io/github/license/tankosinn/virou.svg?style=flat&colorA=18181B&colorB=39737d" alt="License"></a>
8
8
  </p>
9
9
 
@@ -66,6 +66,8 @@ createApp(App)
66
66
  .mount('#app')
67
67
  ```
68
68
 
69
+ > ⚠️ Virou doesn’t globally register any components (including `VRouterView`); it only adds a `$virou` global property to store router instances in a `Map<string, VRouterData>`, which are automatically removed when no longer in use.
70
+
69
71
  ### 🧩 Using with Nuxt
70
72
 
71
73
  Install Virou Nuxt module with your package manager:
package/dist/index.mjs CHANGED
@@ -171,7 +171,6 @@ const virou = (app, options = {}) => {
171
171
  const { routers } = options;
172
172
  const map = /* @__PURE__ */ new Map();
173
173
  app.config.globalProperties.$virou = map;
174
- app.component("VRouterView", VRouterView);
175
174
  if (routers) {
176
175
  for (const [key, router] of Object.entries(routers)) {
177
176
  map.set(key, createVRouter(router.routes, { ...router.options, _isGlobal: true }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@virou/core",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
5
  "description": "Virtual router with multiple instance support for Vue",
6
6
  "author": "Tankosin<https://github.com/tankosinn>",
7
7
  "license": "MIT",
@@ -25,6 +25,8 @@
25
25
  "types": "./dist/index.d.mts",
26
26
  "default": "./dist/index.mjs"
27
27
  },
28
+ "main": "./dist/index.mjs",
29
+ "types": "./dist/index.d.mts",
28
30
  "files": [
29
31
  "dist"
30
32
  ],