@cross-deck/web 0.7.0 → 1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@cross-deck/web",
3
- "version": "0.7.0",
3
+ "version": "1.0.0",
4
4
  "description": "Crossdeck SDK for browsers and Node.js — verified subscriptions, entitlements, and product telemetry in one client.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://cross-deck.com",
@@ -11,6 +11,8 @@
11
11
  "main": "./dist/index.cjs",
12
12
  "module": "./dist/index.mjs",
13
13
  "types": "./dist/index.d.ts",
14
+ "unpkg": "./dist/crossdeck.umd.min.js",
15
+ "jsdelivr": "./dist/crossdeck.umd.min.js",
14
16
  "exports": {
15
17
  ".": {
16
18
  "types": "./dist/index.d.ts",
@@ -21,7 +23,14 @@
21
23
  "types": "./dist/react.d.ts",
22
24
  "import": "./dist/react.mjs",
23
25
  "require": "./dist/react.cjs"
24
- }
26
+ },
27
+ "./vue": {
28
+ "types": "./dist/vue.d.ts",
29
+ "import": "./dist/vue.mjs",
30
+ "require": "./dist/vue.cjs"
31
+ },
32
+ "./error-codes.json": "./dist/error-codes.json",
33
+ "./package.json": "./package.json"
25
34
  },
26
35
  "files": [
27
36
  "dist",
@@ -34,23 +43,32 @@
34
43
  "node": ">=18"
35
44
  },
36
45
  "scripts": {
37
- "build": "tsup",
46
+ "build": "tsup && node scripts/emit-error-codes.mjs",
38
47
  "build:watch": "tsup --watch",
39
48
  "test": "vitest run",
40
49
  "test:watch": "vitest",
41
50
  "test:coverage": "vitest run --coverage",
42
51
  "lint": "tsc --noEmit",
43
- "prepublishOnly": "npm run lint && npm test && npm run build"
52
+ "size": "node scripts/check-bundle-size.mjs",
53
+ "test:e2e": "playwright test",
54
+ "test:e2e:headed": "playwright test --headed",
55
+ "test:e2e:debug": "playwright test --debug",
56
+ "prepublishOnly": "npm run lint && npm test && npm run build && npm run size && npm run test:e2e"
44
57
  },
45
58
  "peerDependencies": {
46
- "react": ">=18"
59
+ "react": ">=18",
60
+ "vue": ">=3.4"
47
61
  },
48
62
  "peerDependenciesMeta": {
49
63
  "react": {
50
64
  "optional": true
65
+ },
66
+ "vue": {
67
+ "optional": true
51
68
  }
52
69
  },
53
70
  "devDependencies": {
71
+ "@playwright/test": "^1.59.1",
54
72
  "@types/node": "^20.14.0",
55
73
  "@types/react": "^18.3.0",
56
74
  "@vitest/coverage-v8": "^2.1.9",
@@ -58,7 +76,8 @@
58
76
  "react": "^18.3.0",
59
77
  "tsup": "^8.3.5",
60
78
  "typescript": "^5.6.3",
61
- "vitest": "^2.1.9"
79
+ "vitest": "^2.1.9",
80
+ "vue": "^3.4.0"
62
81
  },
63
82
  "keywords": [
64
83
  "subscriptions",