@sanity/cli-test 0.2.3 → 0.2.5

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.
@@ -16,11 +16,11 @@
16
16
  "@sanity/sdk-react": "^2.6.0",
17
17
  "react": "^19.2.3",
18
18
  "react-dom": "^19.2.3",
19
- "sanity": "^5.14.1"
19
+ "sanity": "^5.17.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^19.2.9",
23
- "sanity": "^5.14.1",
23
+ "sanity": "^5.17.1",
24
24
  "typescript": "^5.9.3"
25
25
  }
26
26
  }
@@ -9,6 +9,6 @@
9
9
  "@sanity/functions": "^1.2.0"
10
10
  },
11
11
  "devDependencies": {
12
- "sanity": "^5.14.1"
12
+ "sanity": "^5.17.1"
13
13
  }
14
14
  }
@@ -15,10 +15,10 @@
15
15
  "start": "sanity start"
16
16
  },
17
17
  "dependencies": {
18
- "@sanity/vision": "^5.14.1",
18
+ "@sanity/vision": "^5.17.1",
19
19
  "react": "^19.2.3",
20
20
  "react-dom": "^19.2.3",
21
- "sanity": "^5.14.1",
21
+ "sanity": "^5.17.1",
22
22
  "styled-components": "^6.3.8"
23
23
  },
24
24
  "devDependencies": {
@@ -12,10 +12,10 @@
12
12
  "deploy-graphql": "sanity graphql deploy"
13
13
  },
14
14
  "dependencies": {
15
- "@sanity/vision": "^5.14.1",
15
+ "@sanity/vision": "^5.17.1",
16
16
  "react": "^19.2.3",
17
17
  "react-dom": "^19.2.3",
18
- "sanity": "^5.14.1",
18
+ "sanity": "^5.17.1",
19
19
  "styled-components": "^6.3.8"
20
20
  },
21
21
  "devDependencies": {
@@ -15,10 +15,10 @@
15
15
  "start": "sanity start"
16
16
  },
17
17
  "dependencies": {
18
- "@sanity/vision": "^5.14.1",
18
+ "@sanity/vision": "^5.17.1",
19
19
  "react": "^19.2.3",
20
20
  "react-dom": "^19.2.3",
21
- "sanity": "^5.14.1",
21
+ "sanity": "^5.17.1",
22
22
  "styled-components": "^6.3.8"
23
23
  },
24
24
  "devDependencies": {
@@ -16,11 +16,11 @@
16
16
  "@sanity/sdk-react": "^2.6.0",
17
17
  "react": "^19.2.3",
18
18
  "react-dom": "^19.2.3",
19
- "sanity": "^5.14.1"
19
+ "sanity": "^5.17.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^19.2.9",
23
- "sanity": "^5.14.1",
23
+ "sanity": "^5.17.1",
24
24
  "typescript": "^5.9.3"
25
25
  }
26
26
  }
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "react": "^19.2.3",
17
17
  "react-dom": "^19.2.3",
18
- "sanity": "^5.14.1",
18
+ "sanity": "^5.17.1",
19
19
  "styled-components": "^6.3.8"
20
20
  },
21
21
  "devDependencies": {
@@ -19,3 +19,4 @@ A collection of things we'd rather not have you do, but that we technically spea
19
19
  - Environment variables from `.env`
20
20
  - Environment variables from `process.env` and `import.meta.env`
21
21
  - Vite config from `sanity.cli.ts`, with global defines
22
+ - Modules that reference browser DOM globals (`Element`, `HTMLElement`, `Node`) at import time
@@ -16,10 +16,10 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@sanity/code-input": "^7.0.6",
19
- "@sanity/vision": "^5.14.1",
19
+ "@sanity/vision": "^5.17.1",
20
20
  "react": "^19.2.3",
21
21
  "react-dom": "^19.2.3",
22
- "sanity": "^5.14.1",
22
+ "sanity": "^5.17.1",
23
23
  "sanity-plugin-media": "^4.1.1",
24
24
  "styled-components": "^6.3.8",
25
25
  "vite-tsconfig-paths": "^6.0.5"
@@ -6,6 +6,9 @@ import {defineConfig, defineField, defineType} from 'sanity'
6
6
  import {media} from 'sanity-plugin-media'
7
7
  import {structureTool} from 'sanity/structure'
8
8
 
9
+ // Side-effect import: references browser globals (Element, HTMLElement, Node) at
10
+ // import time, simulating what styled-components does. Verifies our browser stubs work.
11
+ import '@/browserGlobalsCheck'
9
12
  import DescriptionInput from '@/descriptionInput'
10
13
  import {schemaTypes} from '@/schemaTypes'
11
14
 
@@ -0,0 +1,14 @@
1
+ // Simulates what libraries like styled-components do: reference browser globals
2
+ // (e.g. `Element`, `HTMLElement`) at import time. This ensures our browser
3
+ // environment stubs provide these globals in worker threads.
4
+ // Look ma, browser globals at import time 🙈
5
+
6
+ // Direct references — these throw ReferenceError if the globals are missing,
7
+ // which is exactly what happens with styled-components accessing `Element`.
8
+ const _Element = Element
9
+ const _HTMLElement = HTMLElement
10
+ const _Node = Node
11
+
12
+ void _Element
13
+ void _HTMLElement
14
+ void _Node
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli-test",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Sanity CLI test helpers and utilities",
5
5
  "keywords": [
6
6
  "cli",
@@ -45,16 +45,16 @@
45
45
  "dependencies": {
46
46
  "@swc/core": "^1.15.18",
47
47
  "ansis": "^4.2.0",
48
- "esbuild": "^0.27.3",
48
+ "esbuild": "^0.27.4",
49
49
  "nock": "^14.0.11",
50
50
  "ora": "^9.0.0",
51
51
  "tinyglobby": "^0.2.15"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@eslint/compat": "^2.0.3",
55
- "@oclif/core": "^4.8.3",
55
+ "@oclif/core": "^4.9.0",
56
56
  "@sanity/client": "^7.17.0",
57
- "@sanity/pkg-utils": "^10.4.8",
57
+ "@sanity/pkg-utils": "^10.4.11",
58
58
  "@swc/cli": "^0.8.0",
59
59
  "@types/node": "^20.19.37",
60
60
  "eslint": "^9.39.4",
@@ -62,18 +62,18 @@
62
62
  "rimraf": "^6.0.1",
63
63
  "tsx": "^4.21.0",
64
64
  "typescript": "^5.9.3",
65
- "vitest": "^4.0.18",
65
+ "vitest": "^4.1.0",
66
66
  "yaml": "^2.8.2",
67
- "@repo/tsconfig": "3.70.0",
68
67
  "@repo/package.config": "0.0.1",
69
- "@sanity/cli-core": "1.1.1",
70
- "@sanity/eslint-config-cli": "1.0.0"
68
+ "@repo/tsconfig": "3.70.0",
69
+ "@sanity/cli-core": "1.1.3",
70
+ "@sanity/eslint-config-cli": "1.0.1"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@oclif/core": "^4.0.0",
74
74
  "@sanity/client": "^7.0.0",
75
75
  "vitest": ">=3.0.0 <5.0.0",
76
- "@sanity/cli-core": "1.1.1"
76
+ "@sanity/cli-core": "1.1.3"
77
77
  },
78
78
  "engines": {
79
79
  "node": ">=20.19.1 <22 || >=22.12"