@sanity/sdk-react 2.1.2-cors-check.1 → 2.2.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +24 -26
package/dist/index.js CHANGED
@@ -1158,7 +1158,7 @@ function useUsers(options) {
1158
1158
  loadMore
1159
1159
  };
1160
1160
  }
1161
- var version = "2.1.2-cors-check.1";
1161
+ var version = "2.2.0";
1162
1162
  function getEnv(key) {
1163
1163
  if (typeof import.meta < "u" && import.meta.env)
1164
1164
  return import.meta.env[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/sdk-react",
3
- "version": "2.1.2-cors-check.1",
3
+ "version": "2.2.0",
4
4
  "private": false,
5
5
  "description": "Sanity SDK React toolkit for Content OS",
6
6
  "keywords": [
@@ -39,40 +39,21 @@
39
39
  "dist",
40
40
  "src"
41
41
  ],
42
- "scripts": {
43
- "build": "pkg build --strict --clean --check",
44
- "build:bundle": "vite build --configLoader runner --config package.bundle.ts",
45
- "clean": "rimraf dist",
46
- "dev": "pkg watch",
47
- "docs": "typedoc --json docs/typedoc.json --tsconfig ./tsconfig.dist.json",
48
- "format": "prettier --write --cache --ignore-unknown .",
49
- "lint": "eslint .",
50
- "prepublishOnly": "pnpm run build",
51
- "test": "vitest run",
52
- "test:coverage": "vitest run --coverage",
53
- "test:watch": "vitest",
54
- "ts:check": "tsc --noEmit"
55
- },
56
42
  "browserslist": "extends @sanity/browserslist-config",
57
43
  "prettier": "@sanity/prettier-config",
58
44
  "dependencies": {
59
- "@sanity/client": "7.11.0-cors-check.0",
45
+ "@sanity/client": "^7.10.0",
60
46
  "@sanity/message-protocol": "^0.12.0",
61
- "@sanity/sdk": "2.1.2-cors-check.0",
62
47
  "@sanity/types": "^3.83.0",
63
48
  "@types/lodash-es": "^4.17.12",
64
49
  "groq": "3.88.1-typegen-experimental.0",
65
50
  "lodash-es": "^4.17.21",
66
51
  "react-compiler-runtime": "19.1.0-rc.2",
67
52
  "react-error-boundary": "^5.0.0",
68
- "rxjs": "^7.8.2"
53
+ "rxjs": "^7.8.2",
54
+ "@sanity/sdk": "2.2.0"
69
55
  },
70
56
  "devDependencies": {
71
- "@repo/config-eslint": "workspace:*",
72
- "@repo/config-test": "workspace:*",
73
- "@repo/package.bundle": "workspace:*",
74
- "@repo/package.config": "workspace:*",
75
- "@repo/tsconfig": "workspace:*",
76
57
  "@sanity/browserslist-config": "^1.0.5",
77
58
  "@sanity/comlink": "^3.0.4",
78
59
  "@sanity/pkg-utils": "^7.2.2",
@@ -92,17 +73,34 @@
92
73
  "rollup-plugin-visualizer": "^5.14.0",
93
74
  "typescript": "^5.8.3",
94
75
  "vite": "^6.3.4",
95
- "vitest": "^3.1.2"
76
+ "vitest": "^3.1.2",
77
+ "@repo/config-eslint": "0.0.0",
78
+ "@repo/config-test": "0.0.1",
79
+ "@repo/package.bundle": "3.82.0",
80
+ "@repo/tsconfig": "0.0.1",
81
+ "@repo/package.config": "0.0.1"
96
82
  },
97
83
  "peerDependencies": {
98
84
  "react": "^18.0.0 || ^19.0.0",
99
85
  "react-dom": "^18.0.0 || ^19.0.0"
100
86
  },
101
- "packageManager": "pnpm@10.8.0",
102
87
  "engines": {
103
88
  "node": ">=20.0.0"
104
89
  },
105
90
  "publishConfig": {
106
91
  "access": "public"
92
+ },
93
+ "scripts": {
94
+ "build": "pkg build --strict --clean --check",
95
+ "build:bundle": "vite build --configLoader runner --config package.bundle.ts",
96
+ "clean": "rimraf dist",
97
+ "dev": "pkg watch",
98
+ "docs": "typedoc --json docs/typedoc.json --tsconfig ./tsconfig.dist.json",
99
+ "format": "prettier --write --cache --ignore-unknown .",
100
+ "lint": "eslint .",
101
+ "test": "vitest run",
102
+ "test:coverage": "vitest run --coverage",
103
+ "test:watch": "vitest",
104
+ "ts:check": "tsc --noEmit"
107
105
  }
108
- }
106
+ }