@sanity/sdk 2.14.1 → 2.16.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,30 +1,37 @@
1
1
  {
2
2
  "name": "@sanity/sdk",
3
- "version": "2.14.1",
3
+ "version": "2.16.0",
4
4
  "private": false,
5
5
  "description": "Sanity SDK",
6
6
  "keywords": [
7
- "sanity",
8
- "sdk",
9
- "content operating system",
10
7
  "cms",
8
+ "content",
9
+ "content operating system",
11
10
  "headless",
12
11
  "realtime",
13
- "content"
12
+ "sanity",
13
+ "sdk"
14
14
  ],
15
15
  "homepage": "https://github.com/sanity-io/sdk/tree/main/packages/core/README.md",
16
16
  "bugs": {
17
17
  "url": "https://github.com/sanity-io/sdk/issues"
18
18
  },
19
+ "license": "MIT",
20
+ "author": "Sanity <developers@sanity.io>",
19
21
  "repository": {
20
22
  "type": "git",
21
23
  "url": "git+https://github.com/sanity-io/sdk.git",
22
24
  "directory": "packages/core"
23
25
  },
24
- "license": "MIT",
25
- "author": "Sanity <developers@sanity.io>",
26
- "sideEffects": false,
26
+ "files": [
27
+ "dist",
28
+ "src"
29
+ ],
27
30
  "type": "module",
31
+ "sideEffects": false,
32
+ "main": "./dist/index.js",
33
+ "module": "./dist/index.js",
34
+ "types": "./dist/index.d.ts",
28
35
  "exports": {
29
36
  ".": {
30
37
  "source": "./src/_exports/index.ts",
@@ -38,18 +45,12 @@
38
45
  "default": "./dist/_exports/_internal.js"
39
46
  }
40
47
  },
41
- "main": "./dist/index.js",
42
- "module": "./dist/index.js",
43
- "types": "./dist/index.d.ts",
44
- "files": [
45
- "dist",
46
- "src"
47
- ],
48
- "browserslist": "extends @sanity/browserslist-config",
49
- "prettier": "@sanity/prettier-config",
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
50
51
  "dependencies": {
51
52
  "@sanity/bifur-client": "^1.0.0",
52
- "@sanity/client": "^7.22.0",
53
+ "@sanity/client": "^7.23.1",
53
54
  "@sanity/comlink": "^4.0.1",
54
55
  "@sanity/diff-match-patch": "^3.2.0",
55
56
  "@sanity/diff-patch": "^6.0.0",
@@ -59,7 +60,7 @@
59
60
  "@sanity/message-protocol": "^0.23.0",
60
61
  "@sanity/mutate": "^0.18.1",
61
62
  "@sanity/telemetry": "^1.1.0",
62
- "@sanity/types": "^6.0.0",
63
+ "@sanity/types": "^6.2.0",
63
64
  "groq": "3.88.1-typegen-experimental.0",
64
65
  "groq-js": "^1.30.2",
65
66
  "reselect": "^5.1.1",
@@ -68,32 +69,29 @@
68
69
  },
69
70
  "devDependencies": {
70
71
  "@sanity/browserslist-config": "^1.0.5",
71
- "@sanity/pkg-utils": "^10.5.5",
72
- "@sanity/prettier-config": "^3.0.0",
72
+ "@sanity/pkg-utils": "^10.5.8",
73
73
  "@types/node": "^24.12.4",
74
- "@vitest/coverage-v8": "^4.1.8",
75
- "eslint": "^9.39.4",
76
- "prettier": "^3.8.4",
77
- "rollup-plugin-visualizer": "^6.0.11",
78
- "typescript": "^5.9.3",
79
- "vite": "^7.3.5",
80
- "vitest": "^4.1.8",
74
+ "@vitest/coverage-v8": "^4.1.10",
75
+ "eslint": "^10.6.0",
76
+ "oxfmt": "^0.58.0",
77
+ "rollup-plugin-visualizer": "^7.0.1",
78
+ "typescript": "^6.0.3",
79
+ "vite": "^8.1.4",
80
+ "vitest": "^4.1.10",
81
81
  "@repo/config-eslint": "0.0.0",
82
- "@repo/config-test": "0.0.1",
82
+ "@repo/package.bundle": "3.82.0",
83
83
  "@repo/package.config": "0.0.1",
84
84
  "@repo/tsconfig": "0.0.1",
85
- "@repo/package.bundle": "3.82.0"
86
- },
87
- "publishConfig": {
88
- "access": "public"
85
+ "@repo/config-test": "0.0.1"
89
86
  },
87
+ "browserslist": "extends @sanity/browserslist-config",
90
88
  "scripts": {
91
89
  "build": "pkg build --strict --clean --check",
92
90
  "build:bundle": "vite build --configLoader runner --config package.bundle.ts",
93
91
  "clean": "rimraf dist",
94
92
  "dev": "pkg watch",
95
93
  "docs": "typedoc --json docs/typedoc.json --tsconfig ./tsconfig.dist.json",
96
- "format": "prettier --write --cache --ignore-unknown .",
94
+ "format": "oxfmt",
97
95
  "lint": "eslint .",
98
96
  "test": "vitest run",
99
97
  "test:coverage": "vitest run --coverage",
@@ -62,7 +62,7 @@ vi.mock('../utils/logger', async (importOriginal) => {
62
62
  })
63
63
 
64
64
  // Import createLogger after mocking
65
- // eslint-disable-next-line import/first
65
+ // eslint-disable-next-line import-x/first
66
66
  import {createLogger} from '../utils/logger'
67
67
 
68
68
  describe('authStore', () => {
@@ -38,7 +38,7 @@ vi.mock('../utils/logger', async (importOriginal) => {
38
38
  })
39
39
 
40
40
  // Import createLogger after mocking
41
- // eslint-disable-next-line import/first
41
+ // eslint-disable-next-line import-x/first
42
42
  import {createLogger} from '../utils/logger'
43
43
 
44
44
  let instance: SanityInstance | undefined