@vielzeug/ward 2.0.0 → 2.1.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,16 @@
1
1
  {
2
2
  "name": "@vielzeug/ward",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Role-based access control — typed permissions, wildcard patterns, and composable predicates",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/helmuthdu/vielzeug",
8
+ "directory": "packages/ward"
9
+ },
5
10
  "type": "module",
11
+ "engines": {
12
+ "node": ">=22"
13
+ },
6
14
  "files": [
7
15
  "dist"
8
16
  ],
@@ -10,45 +18,42 @@
10
18
  "module": "./dist/index.js",
11
19
  "types": "dist/index.d.ts",
12
20
  "exports": {
13
- "./devtools": {
14
- "types": "./dist/devtools.d.ts",
15
- "import": "./dist/devtools.js",
16
- "require": "./dist/devtools.cjs"
17
- },
18
21
  ".": {
19
- "types": "./dist/index.d.ts",
20
22
  "import": "./dist/index.js",
21
- "require": "./dist/index.cjs"
23
+ "require": "./dist/index.cjs",
24
+ "types": "./dist/index.d.ts"
25
+ },
26
+ "./devtools": {
27
+ "import": "./dist/devtools.js",
28
+ "require": "./dist/devtools.cjs",
29
+ "types": "./dist/devtools.d.ts"
22
30
  }
23
31
  },
24
- "scripts": {
25
- "build": "vite build && pnpm run build:bundle && pnpm run build:types",
26
- "build:types": "tsc -p tsconfig.declarations.json",
27
- "fix": "eslint --fix src",
28
- "lint": "eslint src",
29
- "prepublishOnly": "pnpm run build",
30
- "preview": "vite preview",
31
- "test": "vitest",
32
- "build:bundle": "vite build --config vite.bundle.config.ts"
32
+ "typesVersions": {
33
+ "*": {
34
+ "devtools": [
35
+ "dist/devtools.d.ts"
36
+ ]
37
+ }
33
38
  },
34
39
  "publishConfig": {
35
40
  "access": "public",
36
41
  "registry": "https://registry.npmjs.org/"
37
42
  },
38
- "engines": {
39
- "node": ">=22"
43
+ "scripts": {
44
+ "build": "vite build && pnpm run build:bundle && pnpm run build:types",
45
+ "build:bundle": "vite build --config vite.bundle.config.ts",
46
+ "build:types": "tsc -p tsconfig.declarations.json",
47
+ "fix": "biome check --write src",
48
+ "lint": "biome ci src",
49
+ "prepublishOnly": "pnpm run build",
50
+ "preview": "vite preview",
51
+ "test": "vitest"
40
52
  },
41
53
  "devDependencies": {
42
- "@types/node": "^26.1.2",
54
+ "@types/node": "^26.2.0",
43
55
  "typescript": "^6.0.3",
44
- "vite": "^8.2.0",
56
+ "vite": "^8.2.1",
45
57
  "vitest": "^4.1.10"
46
- },
47
- "typesVersions": {
48
- "*": {
49
- "devtools": [
50
- "dist/devtools.d.ts"
51
- ]
52
- }
53
58
  }
54
59
  }