@swiss-ai-hub/web 0.300.4 → 0.301.1

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.
Files changed (2) hide show
  1. package/README.md +16 -7
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -138,16 +138,25 @@ npm ls @vue/runtime-core # must print exactly one version: 3.5.17
138
138
  The same single-instance requirement applies to **PrimeVue** (its theme system is a global singleton); pinning the
139
139
  `primevue` peer to one version is enough — it does not need an override.
140
140
 
141
- > **Optionalsilence a `vue-router` peer warning.** `@vueuse/router` declares a `vue-router@^4` peer, but some
142
- > transitive dependencies may pull in `vue-router` 5.x, which can surface a peer-range warning on install. It is
143
- > harmless (the layer does not depend on that resolution), but if you want it gone, pin `vue-router` to `4.6.4` **scoped
144
- > to `@vueuse/router`** so it never affects the router Nuxt itself uses:
141
+ > **Importantpin `vue-router` so `@vueuse/router` uses Nuxt's router.** `@vueuse/router` declares a `vue-router` peer
142
+ > whose range also accepts `vue-router` 5.x, which some transitive deps (e.g. `@nuxtjs/i18n` / `unplugin-vue-router`)
143
+ > legitimately pull in. If `@vueuse/router` resolves to that 5.x copy while the Nuxt app runs `vue-router` 4.x, the two
144
+ > use **different injection keys**: `useRouter()` returns `undefined` inside `@vueuse/router`, and `useRouteQuery` then
145
+ > throws `TypeError: Invalid value used as weak map key` (notably inside Pinia-Colada `defineQuery` setups, which run
146
+ > outside component inject context). This is **not** harmless — it white-screens the affected pages.
147
+ >
148
+ > pnpm `overrides` do **not** constrain peerDependency resolution, so a `@vueuse/router>vue-router` override is not
149
+ > enough (it silently stops working the moment a higher `vue-router` lands in range). Pin it reliably by declaring
150
+ > `vue-router` as a **direct dependency** of your app package at the version Nuxt uses — the peer then binds to that
151
+ > copy, while the other major can remain for `@nuxtjs/i18n`:
145
152
  >
146
153
  > ```jsonc
147
- > // npm: "overrides": { "@vueuse/router": { "vue-router": "4.6.4" } }
148
- > // Yarn: "resolutions": { "@vueuse/router/vue-router": "4.6.4" }
149
- > // pnpm: "pnpm": { "overrides": { "@vueuse/router>vue-router": "4.6.4" } }
154
+ > // packages/web/package.json
155
+ > { "dependencies": { "vue-router": "4.6.4" } }
150
156
  > ```
157
+ >
158
+ > Verify with `pnpm why vue-router` (`@vueuse/router` must show `4.6.4`) and `pnpm build` (`nuxt generate` must succeed —
159
+ > forcing a single `vue-router` major instead breaks `@nuxtjs/i18n`, which needs 5.x).
151
160
 
152
161
  ## Quick start
153
162
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "bbv Software Services AG (https://www.bbv.ch)",
5
5
  "type": "module",
6
- "version": "0.300.4",
6
+ "version": "0.301.1",
7
7
  "description": "Swiss AI Hub - Admin & Management UI (Nuxt 3 layer)",
8
8
  "main": "./nuxt.config.ts",
9
9
  "repository": {
@@ -89,6 +89,7 @@
89
89
  "tailwindcss-animate": "^1.0.7",
90
90
  "tailwindcss-primeui": "^0.6.1",
91
91
  "uuid": "^11.1.1",
92
+ "vue-router": "4.6.4",
92
93
  "vue3-apexcharts": "^1.11.1"
93
94
  },
94
95
  "devDependencies": {