directix 1.10.0 → 2.0.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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "directix",
3
- "description": "A comprehensive, easy-to-use, and high-performance Vue custom directives library supporting both Vue 2 and Vue 3",
3
+ "description": "A comprehensive, easy-to-use, and high-performance Vue custom directives library supporting both Vue 2 and Vue 3, with Web Components support",
4
4
  "type": "module",
5
- "version": "1.10.0",
5
+ "version": "2.0.0",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
8
8
  "unpkg": "dist/index.iife.min.js",
@@ -20,6 +20,22 @@
20
20
  "require": "./dist/nuxt/index.cjs",
21
21
  "import": "./dist/nuxt/index.mjs"
22
22
  },
23
+ "./core": {
24
+ "types": "./dist/packages/core.d.ts",
25
+ "import": "./dist/packages/core.mjs"
26
+ },
27
+ "./shared": {
28
+ "types": "./dist/packages/shared.d.ts",
29
+ "import": "./dist/packages/shared.mjs"
30
+ },
31
+ "./i18n": {
32
+ "types": "./dist/packages/i18n.d.ts",
33
+ "import": "./dist/packages/i18n.mjs"
34
+ },
35
+ "./composables": {
36
+ "types": "./dist/composables.d.ts",
37
+ "import": "./dist/composables.mjs"
38
+ },
23
39
  "./style.css": "./dist/style.css"
24
40
  },
25
41
  "files": [
@@ -33,12 +49,12 @@
33
49
  "@types/node": "^22.19.17",
34
50
  "@vitejs/plugin-vue": "^5.2.4",
35
51
  "@vitest/coverage-v8": "^3.2.4",
36
- "@vue/test-utils": "^2.4.6",
52
+ "@vue/test-utils": "^2.4.8",
37
53
  "esbuild": "^0.28.0",
38
54
  "eslint": "^9.39.4",
39
55
  "jsdom": "^26.1.0",
40
56
  "nuxt": "^4.4.2",
41
- "terser": "^5.46.1",
57
+ "terser": "^5.46.2",
42
58
  "tinybench": "^6.0.0",
43
59
  "tsx": "^4.21.0",
44
60
  "typescript": "^5.9.3",
@@ -46,7 +62,7 @@
46
62
  "vite-plugin-dts": "^4.5.4",
47
63
  "vitepress": "^1.6.4",
48
64
  "vitest": "^3.2.4",
49
- "vue": "^3.5.32",
65
+ "vue": "^3.5.33",
50
66
  "vue-tsc": "^2.2.12",
51
67
  "vue2": "npm:vue@^2.7.16"
52
68
  },
@@ -159,7 +175,9 @@
159
175
  "dev": "vite",
160
176
  "dev:playground": "pnpm --dir playground dev",
161
177
  "build": "vite build && tsx scripts/minify && tsx scripts/build-nuxt",
162
- "build:types": "vue-tsc --emitDeclarationOnly --outDir dist",
178
+ "build:optimized": "tsx scripts/build-optimized",
179
+ "build:size": "tsx scripts/bundle-size",
180
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist",
163
181
  "build:playground": "pnpm --dir playground build",
164
182
  "watch": "vite build --watch",
165
183
  "clean": "rm -rf dist es lib temp coverage playwright-report",