@sanity/sdk 2.14.0 → 2.15.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.
@@ -1,5 +1,5 @@
1
1
  import { getEnv } from "./createGroqSearchFilter.js";
2
- var version = "2.14.0";
2
+ var version = "2.15.0";
3
3
  const CORE_SDK_VERSION = getEnv("PKG_VERSION") || `${version}-development`;
4
4
  export {
5
5
  CORE_SDK_VERSION
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { CurrentUser, Mutation, PatchOperations, Role, SanityDocument, SanityDoc
4
4
  import { Observable, Subject } from "rxjs";
5
5
  import { SanityDocument as SanityDocument$3, SanityProjectionResult } from "groq";
6
6
  import { ChannelInput, ChannelInstance, Controller, Message, Node, NodeInput, Status } from "@sanity/comlink";
7
- import { PatchMutation } from "/home/runner/work/sdk/sdk/node_modules/.pnpm/@sanity+mutate@0.18.0_xstate@5.31.1/node_modules/@sanity/mutate/dist/_unstable_store.js";
7
+ import { PatchMutation } from "@sanity/mutate/_unstable_store";
8
8
  import { ExprNode } from "groq-js";
9
9
  import { CanvasResource as CanvasResource$1, MediaResource, StudioResource } from "@sanity/message-protocol";
10
10
  import { getIndexForKey, getPathDepth, joinPaths, jsonMatch, slicePath, stringifyPath } from "@sanity/json-match";
package/package.json CHANGED
@@ -1,30 +1,37 @@
1
1
  {
2
2
  "name": "@sanity/sdk",
3
- "version": "2.14.0",
3
+ "version": "2.15.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.0",
53
54
  "@sanity/comlink": "^4.0.1",
54
55
  "@sanity/diff-match-patch": "^3.2.0",
55
56
  "@sanity/diff-patch": "^6.0.0",
@@ -57,9 +58,9 @@
57
58
  "@sanity/image-url": "^2.1.1",
58
59
  "@sanity/json-match": "^1.0.5",
59
60
  "@sanity/message-protocol": "^0.23.0",
60
- "@sanity/mutate": "^0.18.0",
61
+ "@sanity/mutate": "^0.18.1",
61
62
  "@sanity/telemetry": "^1.1.0",
62
- "@sanity/types": "^6.0.0",
63
+ "@sanity/types": "^6.1.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.3",
72
- "@sanity/prettier-config": "^1.0.6",
72
+ "@sanity/pkg-utils": "^10.5.8",
73
73
  "@types/node": "^24.12.4",
74
- "@vitest/coverage-v8": "^4.1.8",
74
+ "@vitest/coverage-v8": "^4.1.9",
75
75
  "eslint": "^9.39.4",
76
- "prettier": "^3.8.3",
77
- "rollup-plugin-visualizer": "^5.14.0",
76
+ "oxfmt": "^0.55.0",
77
+ "rollup-plugin-visualizer": "^7.0.1",
78
78
  "typescript": "^5.9.3",
79
79
  "vite": "^7.3.5",
80
- "vitest": "^4.1.8",
80
+ "vitest": "^4.1.9",
81
81
  "@repo/config-eslint": "0.0.0",
82
82
  "@repo/config-test": "0.0.1",
83
- "@repo/package.bundle": "3.82.0",
84
83
  "@repo/package.config": "0.0.1",
84
+ "@repo/package.bundle": "3.82.0",
85
85
  "@repo/tsconfig": "0.0.1"
86
86
  },
87
- "publishConfig": {
88
- "access": "public"
89
- },
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",