@sanity/vercel-protection-bypass 5.0.2 → 5.0.4

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Sanity.io
3
+ Copyright (c) 2026 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -17,9 +17,9 @@ Add the tool your `sanity.config.ts`:
17
17
 
18
18
  ```ts
19
19
  // ./sanity.config.ts
20
- import { vercelProtectionBypassTool } from "@sanity/vercel-protection-bypass";
21
- import { defineConfig } from "sanity";
22
- import { presentationTool } from "sanity/presentation";
20
+ import {vercelProtectionBypassTool} from '@sanity/vercel-protection-bypass'
21
+ import {defineConfig} from 'sanity'
22
+ import {presentationTool} from 'sanity/presentation'
23
23
 
24
24
  export default defineConfig({
25
25
  // ... other options
@@ -28,15 +28,15 @@ export default defineConfig({
28
28
  presentationTool({
29
29
  previewUrl: {
30
30
  // @TODO change to the URL of the application, or `location.origin` if it's an embedded Studio
31
- origin: "http://localhost:3000",
31
+ origin: 'http://localhost:3000',
32
32
  previewMode: {
33
- enable: "/api/draft",
33
+ enable: '/api/draft',
34
34
  },
35
35
  },
36
36
  }),
37
37
  vercelProtectionBypassTool(),
38
38
  ],
39
- });
39
+ })
40
40
  ```
41
41
 
42
42
  You should see a new `Vercel Protection Bypass` tab in the Studio's settings. Click it and follow the instructions to set up the tool.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["vercelProtectionBypassTool: Plugin<VercelProtectionBypassConfig | void>"],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";UAUiB,4BAAA;EAAjB,IAAiB,CAAA,EAAA,MAAA;EAqCjB,KAAaA,CAAAA,EAAAA,MAAAA;SAlCJ,KAAA,CAAM;;cAkCFA,4BAA4B,OAAO"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";UAUiB,4BAAA;EACf,IAAA;EACA,KAAA;EACA,IAAA,GAAO,KAAA,CAAM,aAAA;AAAA;AAAA,cAkCF,0BAAA,EAA4B,MAAA,CAAO,4BAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/vercel-protection-bypass",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "sanity-plugin",
@@ -33,13 +33,13 @@
33
33
  "@sanity/ui": "^3.1.11"
34
34
  },
35
35
  "devDependencies": {
36
- "@sanity/client": "7.13.2",
37
- "@sanity/pkg-utils": "^10.2.5",
38
- "@types/react": "^19.2.7",
36
+ "@sanity/client": "7.14.1",
37
+ "@sanity/pkg-utils": "^10.4.1",
38
+ "@types/react": "^19.2.10",
39
39
  "babel-plugin-react-compiler": "^1.0.0",
40
40
  "eslint": "^9.39.2",
41
- "react": "^19.2.3",
42
- "sanity": "^5.1.0",
41
+ "react": "^19.2.4",
42
+ "sanity": "^5.7.0",
43
43
  "@repo/eslint-config": "0.0.0",
44
44
  "@repo/package.config": "0.0.0",
45
45
  "@repo/tsconfig": "0.0.0"