unplugin-vue-components 0.27.4 → 0.27.5

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
@@ -230,7 +230,9 @@ Supported Resolvers:
230
230
  - [Quasar](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/quasar.ts)
231
231
  - [TDesign](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts)
232
232
  - [Vant](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vant.ts)
233
+ - [`@vant/auto-import-resolver`](https://github.com/youzan/vant/blob/main/packages/vant-auto-import-resolver/README.md) - Vant's own auto-import resolver
233
234
  - [Varlet UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/varlet-ui.ts)
235
+ - [`@varlet/import-resolver`](https://github.com/varletjs/varlet/blob/dev/packages/varlet-import-resolver/README.md) - Varlet's own auto-import resolver
234
236
  - [VEUI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/veui.ts)
235
237
  - [View UI](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/view-ui.ts)
236
238
  - [Vuetify](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vuetify.ts) — Prefer first-party plugins when possible: [v3 + vite](https://www.npmjs.com/package/vite-plugin-vuetify), [v3 + webpack](https://www.npmjs.com/package/webpack-plugin-vuetify), [v2 + webpack](https://npmjs.com/package/vuetify-loader)
@@ -1,6 +1,6 @@
1
1
  // src/core/utils.ts
2
- import { parse } from "path";
3
- import process from "process";
2
+ import { parse } from "node:path";
3
+ import process from "node:process";
4
4
  import { minimatch } from "minimatch";
5
5
  import { slash, toArray } from "@antfu/utils";
6
6
  import {
@@ -11,23 +11,23 @@ import {
11
11
  resolveAlias,
12
12
  shouldTransform,
13
13
  stringifyComponentImport
14
- } from "./chunk-VFBNI2IV.js";
14
+ } from "./chunk-4R6MYHM7.js";
15
15
 
16
16
  // src/core/unplugin.ts
17
- import { existsSync as existsSync2 } from "fs";
18
- import process2 from "process";
17
+ import { existsSync as existsSync2 } from "node:fs";
18
+ import process2 from "node:process";
19
19
  import { createUnplugin } from "unplugin";
20
20
  import { createFilter } from "@rollup/pluginutils";
21
21
  import chokidar from "chokidar";
22
22
 
23
23
  // src/core/context.ts
24
- import { relative as relative2 } from "path";
25
- import process from "process";
24
+ import { relative as relative2 } from "node:path";
25
+ import process from "node:process";
26
26
  import Debug5 from "debug";
27
27
  import { slash as slash3, throttle, toArray as toArray2 } from "@antfu/utils";
28
28
 
29
29
  // src/core/options.ts
30
- import { join, resolve } from "path";
30
+ import { join, resolve } from "node:path";
31
31
  import { slash, toArray } from "@antfu/utils";
32
32
  import { getPackageInfoSync, isPackageExists as isPackageExists2 } from "local-pkg";
33
33
 
@@ -143,9 +143,9 @@ function searchComponents(ctx) {
143
143
  }
144
144
 
145
145
  // src/core/declaration.ts
146
- import { dirname, isAbsolute, relative } from "path";
147
- import { existsSync } from "fs";
148
- import { mkdir, readFile, writeFile as writeFile_ } from "fs/promises";
146
+ import { dirname, isAbsolute, relative } from "node:path";
147
+ import { existsSync } from "node:fs";
148
+ import { mkdir, readFile, writeFile as writeFile_ } from "node:fs/promises";
149
149
  import { notNullish as notNullish2, slash as slash2 } from "@antfu/utils";
150
150
  var multilineCommentsRE = /\/\*.*?\*\//gs;
151
151
  var singlelineCommentsRE = /\/\/.*$/gm;
package/dist/esbuild.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-B4WNWTB4.js";
4
- import "./chunk-VFBNI2IV.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-B4WNWTB4.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
4
  import {
5
5
  camelCase,
6
6
  kebabCase,
7
7
  pascalCase
8
- } from "./chunk-VFBNI2IV.js";
8
+ } from "./chunk-4R6MYHM7.js";
9
9
  import "./chunk-3RG5ZIWI.js";
10
10
  import "./chunk-6F4PWJZI.js";
11
11
  export {
package/dist/nuxt.d.cts CHANGED
@@ -4,6 +4,6 @@ import '@rollup/pluginutils';
4
4
  import 'unplugin';
5
5
  import '@antfu/utils';
6
6
 
7
- declare const _default: _nuxt_schema.NuxtModule<Options>;
7
+ declare const _default: _nuxt_schema.NuxtModule<Options, Options, false>;
8
8
 
9
9
  export { _default as default };
package/dist/nuxt.d.ts CHANGED
@@ -4,6 +4,6 @@ import '@rollup/pluginutils';
4
4
  import 'unplugin';
5
5
  import '@antfu/utils';
6
6
 
7
- declare const _default: _nuxt_schema.NuxtModule<Options>;
7
+ declare const _default: _nuxt_schema.NuxtModule<Options, Options, false>;
8
8
 
9
9
  export { _default as default };
package/dist/nuxt.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-B4WNWTB4.js";
4
- import "./chunk-VFBNI2IV.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
@@ -1667,6 +1667,7 @@ var IonicBuiltInComponents = [
1667
1667
  "IonInfiniteScroll",
1668
1668
  "IonInfiniteScrollContent",
1669
1669
  "IonInput",
1670
+ "IonInputPasswordToggle",
1670
1671
  "IonItem",
1671
1672
  "IonItemDivider",
1672
1673
  "IonItemGroup",
@@ -1686,6 +1687,9 @@ var IonicBuiltInComponents = [
1686
1687
  "IonNote",
1687
1688
  "IonPage",
1688
1689
  "IonPicker",
1690
+ "IonPickerColumn",
1691
+ "IonPickerColumnOption",
1692
+ "IonPickerLegacy",
1689
1693
  "IonPopover",
1690
1694
  "IonProgressBar",
1691
1695
  "IonRadio",
package/dist/resolvers.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  isSSR,
6
6
  kebabCase,
7
7
  pascalCase
8
- } from "./chunk-VFBNI2IV.js";
8
+ } from "./chunk-4R6MYHM7.js";
9
9
  import {
10
10
  __require
11
11
  } from "./chunk-3RG5ZIWI.js";
@@ -904,7 +904,7 @@ function VarletUIResolver(options = {}) {
904
904
  }
905
905
 
906
906
  // src/core/resolvers/veui.ts
907
- import { join, normalize } from "path";
907
+ import { join, normalize } from "node:path";
908
908
  import { resolvePathSync } from "mlly";
909
909
  var VEUI_PACKAGE_NAME = "veui";
910
910
  var components3;
@@ -1038,8 +1038,8 @@ function Vuetify3Resolver() {
1038
1038
  }
1039
1039
 
1040
1040
  // src/core/resolvers/vueuse.ts
1041
- import { readFileSync } from "fs";
1042
- import process from "process";
1041
+ import { readFileSync } from "node:fs";
1042
+ import process from "node:process";
1043
1043
  import { resolveModule as resolveModule2 } from "local-pkg";
1044
1044
  var components4;
1045
1045
  function VueUseComponentsResolver() {
@@ -1065,8 +1065,8 @@ function VueUseComponentsResolver() {
1065
1065
  }
1066
1066
 
1067
1067
  // src/core/resolvers/vueuse-directive.ts
1068
- import { readFileSync as readFileSync2 } from "fs";
1069
- import process2 from "process";
1068
+ import { readFileSync as readFileSync2 } from "node:fs";
1069
+ import process2 from "node:process";
1070
1070
  import { resolveModule as resolveModule3 } from "local-pkg";
1071
1071
  var directives;
1072
1072
  function VueUseDirectiveResolver() {
@@ -1092,7 +1092,7 @@ function VueUseDirectiveResolver() {
1092
1092
  }
1093
1093
 
1094
1094
  // src/core/resolvers/quasar.ts
1095
- import { promises as fs } from "fs";
1095
+ import { promises as fs } from "node:fs";
1096
1096
  import { resolveModule as resolveModule4 } from "local-pkg";
1097
1097
  function QuasarResolver() {
1098
1098
  let components5 = [];
@@ -1667,6 +1667,7 @@ var IonicBuiltInComponents = [
1667
1667
  "IonInfiniteScroll",
1668
1668
  "IonInfiniteScrollContent",
1669
1669
  "IonInput",
1670
+ "IonInputPasswordToggle",
1670
1671
  "IonItem",
1671
1672
  "IonItemDivider",
1672
1673
  "IonItemGroup",
@@ -1686,6 +1687,9 @@ var IonicBuiltInComponents = [
1686
1687
  "IonNote",
1687
1688
  "IonPage",
1688
1689
  "IonPicker",
1690
+ "IonPickerColumn",
1691
+ "IonPickerColumnOption",
1692
+ "IonPickerLegacy",
1689
1693
  "IonPopover",
1690
1694
  "IonProgressBar",
1691
1695
  "IonRadio",
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-B4WNWTB4.js";
4
- import "./chunk-VFBNI2IV.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/rspack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-B4WNWTB4.js";
4
- import "./chunk-VFBNI2IV.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-B4WNWTB4.js";
4
- import "./chunk-VFBNI2IV.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-B4WNWTB4.js";
4
- import "./chunk-VFBNI2IV.js";
3
+ } from "./chunk-Q6EJTKZN.js";
4
+ import "./chunk-4R6MYHM7.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
 
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-vue-components",
3
3
  "type": "module",
4
- "version": "0.27.4",
5
- "packageManager": "pnpm@9.7.0",
4
+ "version": "0.27.5",
6
5
  "description": "Components auto importing for Vue",
7
6
  "author": "antfu <anthonyfu117@hotmail.com>",
8
7
  "license": "MIT",
@@ -68,17 +67,6 @@
68
67
  "engines": {
69
68
  "node": ">=14"
70
69
  },
71
- "scripts": {
72
- "build": "tsup",
73
- "dev": "tsup --watch src",
74
- "example:build": "npm -C examples/vite-vue3 run build",
75
- "example:dev": "npm -C examples/vite-vue3 run dev",
76
- "prepublishOnly": "npm run build",
77
- "lint": "eslint .",
78
- "release": "bumpp && npm publish",
79
- "test": "vitest",
80
- "test:update": "vitest --u"
81
- },
82
70
  "peerDependencies": {
83
71
  "@babel/parser": "^7.15.8",
84
72
  "@nuxt/kit": "^3.2.2",
@@ -94,37 +82,47 @@
94
82
  },
95
83
  "dependencies": {
96
84
  "@antfu/utils": "^0.7.10",
97
- "@rollup/pluginutils": "^5.1.0",
85
+ "@rollup/pluginutils": "^5.1.3",
98
86
  "chokidar": "^3.6.0",
99
- "debug": "^4.3.6",
87
+ "debug": "^4.3.7",
100
88
  "fast-glob": "^3.3.2",
101
- "local-pkg": "^0.5.0",
102
- "magic-string": "^0.30.11",
89
+ "local-pkg": "^0.5.1",
90
+ "magic-string": "^0.30.14",
103
91
  "minimatch": "^9.0.5",
104
- "mlly": "^1.7.1",
105
- "unplugin": "^1.12.1"
92
+ "mlly": "^1.7.3",
93
+ "unplugin": "^1.16.0"
106
94
  },
107
95
  "devDependencies": {
108
- "@antfu/eslint-config": "^2.25.1",
109
- "@babel/parser": "^7.25.3",
110
- "@babel/types": "^7.25.2",
111
- "@nuxt/kit": "^3.12.4",
96
+ "@antfu/eslint-config": "^3.10.0",
97
+ "@babel/parser": "^7.26.2",
98
+ "@babel/types": "^7.26.0",
99
+ "@nuxt/kit": "^3.14.1592",
112
100
  "@types/debug": "^4.1.12",
113
101
  "@types/minimatch": "^5.1.2",
114
- "@types/node": "^20.14.15",
115
- "bumpp": "^9.5.1",
102
+ "@types/node": "^22.10.0",
103
+ "bumpp": "^9.8.1",
116
104
  "compare-versions": "^6.1.1",
117
- "element-plus": "^2.8.0",
118
- "eslint": "^9.9.0",
105
+ "element-plus": "^2.8.8",
106
+ "eslint": "^9.15.0",
119
107
  "eslint-plugin-format": "^0.1.2",
120
- "esno": "^4.7.0",
108
+ "esno": "^4.8.0",
121
109
  "estree-walker": "^3.0.3",
122
110
  "pathe": "^1.1.2",
123
- "rollup": "^4.20.0",
124
- "tsup": "^8.2.4",
125
- "typescript": "^5.5.4",
126
- "vite": "^5.4.0",
127
- "vitest": "^2.0.5",
111
+ "rollup": "^4.27.4",
112
+ "tsup": "^8.3.5",
113
+ "typescript": "^5.7.2",
114
+ "vite": "^6.0.1",
115
+ "vitest": "^2.1.6",
128
116
  "vue": "3.2.45"
117
+ },
118
+ "scripts": {
119
+ "build": "tsup",
120
+ "dev": "tsup --watch src",
121
+ "example:build": "npm -C examples/vite-vue3 run build",
122
+ "example:dev": "npm -C examples/vite-vue3 run dev",
123
+ "lint": "eslint .",
124
+ "release": "bumpp && npm publish",
125
+ "test": "vitest",
126
+ "test:update": "vitest --u"
129
127
  }
130
- }
128
+ }