@liiift-studio/deploy-vercel-from-sanity 1.3.0 → 1.3.1

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
@@ -366,6 +366,19 @@ See [CHANGELOG.md](./CHANGELOG.md).
366
366
 
367
367
  ---
368
368
 
369
+ ## Tests
370
+
371
+ ```bash
372
+ npm test
373
+ ```
374
+
375
+ Unit tests cover the proxy's authorization boundary (fail-closed status key,
376
+ per-project deployment scoping, role gating, SSRF guard on hook URLs) and the URL
377
+ validators that guard every anchor the plugin renders. `prepublishOnly` runs
378
+ typecheck and tests before building, so a release cannot ship past them.
379
+
380
+ ---
381
+
369
382
  ## Contributing
370
383
 
371
384
  Issues and pull requests welcome at [github.com/Liiift-Studio/Deploy-Vercel-from-Sanity](https://github.com/Liiift-Studio/Deploy-Vercel-from-Sanity).
package/dist/index.js CHANGED
@@ -1632,7 +1632,7 @@ function DeployTargetForm({ initial, onSaved, onClose }) {
1632
1632
  }
1633
1633
 
1634
1634
  // src/version.ts
1635
- var VERSION = "1.3.0";
1635
+ var VERSION = "1.3.1";
1636
1636
 
1637
1637
  // src/components/DeployTool.tsx
1638
1638
  var import_jsx_runtime13 = require("react/jsx-runtime");
package/dist/index.mjs CHANGED
@@ -1597,7 +1597,7 @@ function DeployTargetForm({ initial, onSaved, onClose }) {
1597
1597
  }
1598
1598
 
1599
1599
  // src/version.ts
1600
- var VERSION = "1.3.0";
1600
+ var VERSION = "1.3.1";
1601
1601
 
1602
1602
  // src/components/DeployTool.tsx
1603
1603
  import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liiift-studio/deploy-vercel-from-sanity",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Sanity Studio plugin — trigger and monitor Vercel deployments with full status, history, and build logs. Supports Studio v3.30 through v6.",
5
5
  "license": "MIT",
6
6
  "author": "Liiift Studio",
@@ -41,7 +41,10 @@
41
41
  "scripts": {
42
42
  "build": "tsup",
43
43
  "dev": "tsup --watch",
44
- "prepublishOnly": "npm run build"
44
+ "prepublishOnly": "npm run typecheck && npm test && npm run build",
45
+ "test": "vitest run",
46
+ "test:watch": "vitest",
47
+ "typecheck": "tsc --noEmit -p tsconfig.json"
45
48
  },
46
49
  "peerDependencies": {
47
50
  "@sanity/icons": ">=2 <6",
@@ -59,7 +62,8 @@
59
62
  "react-dom": "^19",
60
63
  "sanity": "^6",
61
64
  "tsup": "^8",
62
- "typescript": "^5"
65
+ "typescript": "^5",
66
+ "vitest": "^3.2.7"
63
67
  },
64
68
  "repository": {
65
69
  "type": "git",