@nubisco/ui 5.27.2 → 5.27.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubisco/ui",
3
- "version": "5.27.2",
3
+ "version": "5.27.3",
4
4
  "description": "Vue 3 UI component library",
5
5
  "packageManager": "pnpm@12.3.4+sha512.961aa41fb077da3a04a441d9f8e15ebc0c96da8ef710b2eb67bf9ee7cb0610eabd48f1fd85f51cffe73846785fa0f87c56a3a872a1d893f8446741b5cce45457",
6
6
  "repository": {
@@ -180,15 +180,9 @@
180
180
  },
181
181
  "peerDependencies": {
182
182
  "pixi.js": "^8.0.0",
183
- "unplugin-fonts": ">=1.4.0",
184
183
  "vue": "^3.5.30",
185
184
  "vue-i18n": "^11.3.0"
186
185
  },
187
- "peerDependenciesMeta": {
188
- "unplugin-fonts": {
189
- "optional": true
190
- }
191
- },
192
186
  "devDependencies": {
193
187
  "@eslint/js": "^10.0.1",
194
188
  "@fontsource/fira-code": "^5.2.7",
@@ -218,6 +212,7 @@
218
212
  "tinycolor2": "^1.6.0",
219
213
  "typescript": "^5.9.3",
220
214
  "typescript-eslint": "^8.57.2",
215
+ "unplugin-fonts": "2.0.0",
221
216
  "unplugin-vue-components": "^32.1.0",
222
217
  "vite": "^8.0.2",
223
218
  "vite-svg-loader": "^5.1.1",
@@ -1,4 +1,4 @@
1
- import Unfonts from 'unplugin-fonts/vite'
1
+ import { Unfonts } from './vite/vendor.js'
2
2
 
3
3
  /**
4
4
  * Options accepted by {@link fonts}. This is the exact option object that
@@ -1,16 +1,21 @@
1
1
  /**
2
- * The third-party code `@nubisco/ui/vite` runs on, in one module.
2
+ * The third-party code `@nubisco/ui/vite` and `@nubisco/ui/plugins/fonts` run
3
+ * on, in one module.
3
4
  *
4
- * Both packages are build-time tooling. As dependencies of the library they
5
- * put Vite, PostCSS, Sass and the rest of a bundler into the production
5
+ * All three packages are build-time tooling. As dependencies of the library
6
+ * they put Vite, PostCSS, Sass and the rest of a bundler into the production
6
7
  * dependency tree of every app that installs `@nubisco/ui`, and declaring them
7
8
  * as optional peers does not help, because pnpm resolves an optional peer the
8
- * consumer has installed under the library and reports it there.
9
+ * consumer has installed under the library and reports it there. A peer also
10
+ * lets each app run a different version of the code behind the same plugin.
9
11
  *
10
12
  * So the library build inlines this module, with everything it imports, into
11
13
  * `dist/plugins/vite/vendor.js` (see `scripts/bundle-plugin-vendor.mjs`). The
12
- * packages stay devDependencies of the library and never reach a consumer's
13
- * dependency tree. In the source tree, and in tests, this is a plain re-export.
14
+ * packages stay devDependencies of the library, pinned where the output they
15
+ * produce is part of the contract (`unplugin-fonts`), and never reach a
16
+ * consumer's dependency tree. In the source tree, and in tests, this is a
17
+ * plain re-export.
14
18
  */
15
19
  export { default as Components } from 'unplugin-vue-components/vite'
16
20
  export { default as MagicString } from 'magic-string'
21
+ export { default as Unfonts } from 'unplugin-fonts/vite'