directix 1.6.0 → 1.8.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
@@ -2,7 +2,7 @@
2
2
  "name": "directix",
3
3
  "description": "A comprehensive, easy-to-use, and high-performance Vue custom directives library supporting both Vue 2 and Vue 3",
4
4
  "type": "module",
5
- "version": "1.6.0",
5
+ "version": "1.8.0",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
8
8
  "unpkg": "dist/index.iife.min.js",
@@ -11,6 +11,7 @@
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
+ "browser": "./dist/index.mjs",
14
15
  "require": "./dist/index.cjs",
15
16
  "import": "./dist/index.mjs"
16
17
  },
@@ -26,8 +27,9 @@
26
27
  ],
27
28
  "devDependencies": {
28
29
  "@eslint-sets/eslint-config": "^6.3.1",
29
- "@nuxt/kit": "^3.16.1",
30
- "@nuxt/schema": "^3.16.1",
30
+ "@nuxt/kit": "^3.21.2",
31
+ "@nuxt/schema": "^3.21.2",
32
+ "@playwright/test": "^1.59.1",
31
33
  "@types/node": "^22.19.17",
32
34
  "@vitejs/plugin-vue": "^5.2.4",
33
35
  "@vitest/coverage-v8": "^3.2.4",
@@ -37,6 +39,7 @@
37
39
  "jsdom": "^26.1.0",
38
40
  "nuxt": "^4.4.2",
39
41
  "terser": "^5.46.1",
42
+ "tinybench": "^6.0.0",
40
43
  "tsx": "^4.21.0",
41
44
  "typescript": "^5.9.3",
42
45
  "vite": "^6.4.2",
@@ -69,7 +72,7 @@
69
72
  }
70
73
  },
71
74
  "engines": {
72
- "node": ">=12.20"
75
+ "node": ">=16.14"
73
76
  },
74
77
  "sideEffects": [
75
78
  "**/*.css"
@@ -148,25 +151,35 @@
148
151
  "type": "git",
149
152
  "url": "https://github.com/saqqdy/directix.git"
150
153
  },
154
+ "funding": "https://github.com/sponsors/saqqdy",
155
+ "publishConfig": {
156
+ "access": "public"
157
+ },
151
158
  "scripts": {
152
159
  "dev": "vite",
153
- "gen:version": "tsx scripts/version",
154
- "tag:version": "tsx scripts/tag",
160
+ "dev:playground": "pnpm --dir playground dev",
155
161
  "build": "vite build && tsx scripts/minify && tsx scripts/build-nuxt",
156
162
  "build:types": "vue-tsc --emitDeclarationOnly --outDir dist",
163
+ "build:playground": "pnpm --dir playground build",
164
+ "watch": "vite build --watch",
165
+ "clean": "rm -rf dist es lib temp coverage playwright-report",
157
166
  "docs:dev": "vitepress dev docs",
158
167
  "docs:build": "vitepress build docs",
159
168
  "docs:preview": "vitepress preview docs",
160
169
  "deploy": "sh scripts/deploy.sh",
161
- "watch": "vite build --watch",
170
+ "deploy:playground": "pnpm --dir playground deploy local",
171
+ "gen:version": "tsx scripts/version",
172
+ "tag:version": "tsx scripts/tag",
162
173
  "pub": "tsx scripts/publish",
163
174
  "unpub": "tsx scripts/unpublish",
164
175
  "sync": "tsx scripts/sync",
165
- "clean": "rm -rf dist es lib temp coverage",
166
- "dist": "pnpm lint && pnpm build",
167
176
  "test": "vitest run",
168
177
  "test:watch": "vitest",
169
178
  "test:coverage": "vitest run --coverage",
179
+ "test:e2e": "playwright test",
180
+ "test:e2e:ui": "playwright test --ui",
181
+ "test:e2e:debug": "playwright test --debug",
182
+ "test:all": "pnpm test && pnpm test:e2e",
170
183
  "lint": "eslint --fix .",
171
184
  "typecheck": "vue-tsc --noEmit",
172
185
  "example:dev": "pnpm --dir examples/vue3 dev",