next-sanity 9.8.61 → 9.9.1

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/README.md +2 -2
  2. package/package.json +19 -19
package/README.md CHANGED
@@ -614,7 +614,7 @@ const client = createClient({
614
614
  projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,
615
615
  dataset: process.env.NEXT_PUBLIC_SANITY_DATASET,
616
616
  useCdn: true,
617
- apiVersion: 'vX', // Target the experimental API version
617
+ apiVersion: 'v2025-03-04',
618
618
  stega: {studioUrl: '/studio'},
619
619
  })
620
620
 
@@ -1191,7 +1191,7 @@ MIT-licensed. See [LICENSE][LICENSE].
1191
1191
  [portable-text]: https://portabletext.org
1192
1192
  [sanity-client]: https://www.sanity.io/docs/js-client?utm_source=github&utm_medium=readme&utm_campaign=next-sanity
1193
1193
  [sanity]: https://www.sanity.io?utm_source=github&utm_medium=readme&utm_campaign=next-sanity
1194
- [visual-editing]: https://www.sanity.io/docs/visual-editing?utm_source=github&utm_medium=readme&utm_campaign=next-sanity
1194
+ [visual-editing]: https://www.sanity.io/docs/introduction-to-visual-editing?utm_source=github&utm_medium=readme&utm_campaign=next-sanity
1195
1195
  [webhook-template-revalidate-tag]: https://www.sanity.io/manage/webhooks/share?name=Tag-based+Revalidation+Hook+for+Next.js+13+&description=1.+Replace+URL+with+the+preview+or+production+URL+for+your+revalidation+handler+in+your+Next.js+app%0A2.%C2%A0Insert%2Freplace+the+document+types+you+want+to+be+able+to+make+tags+for+in+the+Filter+array%0A3.%C2%A0Make+a+Secret+that+you+also+add+to+your+app%27s+environment+variables+%28SANITY_REVALIDATE_SECRET%29%0A%0AFor+complete+instructions%2C+see+the+README+on%3A%0Ahttps%3A%2F%2Fgithub.com%2Fsanity-io%2Fnext-sanity&url=https%3A%2F%2FYOUR-PRODUCTION-URL.TLD%2Fapi%2Frevalidate-tag&on=create&on=update&on=delete&filter=_type+in+%5B%22post%22%2C+%22home%22%2C+%22OTHER_DOCUMENT_TYPE%22%5D&projection=%7B_type%7D&httpMethod=POST&apiVersion=v2021-03-25&includeDrafts=&headers=%7B%7D
1196
1196
  [webhook-template-revalidate-path]: https://www.sanity.io/manage/webhooks/share?name=Path-based+Revalidation+Hook+for+Next.js&description=1.+Replace+URL+with+the+preview+or+production+URL+for+your+revalidation+handler+in+your+Next.js+app%0A2.%C2%A0Insert%2Freplace+the+document+types+you+want+to+be+able+to+make+tags+for+in+the+Filter+array%0A3.%C2%A0Make+a+Secret+that+you+also+add+to+your+app%27s+environment+variables+%28SANITY_REVALIDATE_SECRET%29%0A%0AFor+complete+instructions%2C+see+the+README+on%3A%0Ahttps%3A%2F%2Fgithub.com%2Fsanity-io%2Fnext-sanity&url=https%3A%2F%2FYOUR-PRODUCTION-URL.TLD%2Fapi%2Frevalidate-path&on=create&on=update&on=delete&filter=_type+in+%5B%22post%22%2C+%22home%22%2C+%22OTHER_DOCUMENT_TYPES%22%5D&projection=%7B%0A++%22path%22%3A+select%28%0A++++_type+%3D%3D+%22post%22+%3D%3E+%22%2Fposts%2F%22+%2B+slug.current%2C%0A++++slug.current%0A++%29%0A%7D&httpMethod=POST&apiVersion=v2021-03-25&includeDrafts=&headers=%7B%7D
1197
1197
  [sanity-typegen]: https://www.sanity.io/docs/sanity-typegen?utm_source=github&utm_medium=readme&utm_campaign=next-sanity
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-sanity",
3
- "version": "9.8.61",
3
+ "version": "9.9.1",
4
4
  "description": "Sanity.io toolkit for Next.js",
5
5
  "keywords": [
6
6
  "sanity",
@@ -138,47 +138,47 @@
138
138
  "browserslist": "extends @sanity/browserslist-config",
139
139
  "dependencies": {
140
140
  "@portabletext/react": "^3.2.1",
141
- "@sanity/client": "^6.28.2",
142
- "@sanity/next-loader": "1.3.4",
143
- "@sanity/preview-kit": "5.2.9",
144
- "@sanity/preview-url-secret": "2.1.5",
145
- "@sanity/visual-editing": "2.13.7",
146
- "groq": "^3.77.2",
141
+ "@sanity/client": "^6.28.3",
142
+ "@sanity/next-loader": "1.3.5",
143
+ "@sanity/preview-kit": "6.0.1",
144
+ "@sanity/preview-url-secret": "2.1.6",
145
+ "@sanity/visual-editing": "2.13.8",
146
+ "groq": "^3.79.0",
147
147
  "history": "^5.3.0"
148
148
  },
149
149
  "devDependencies": {
150
150
  "@sanity/browserslist-config": "^1.0.5",
151
- "@sanity/eslint-config-studio": "^5.0.1",
152
- "@sanity/pkg-utils": "^7.0.4",
151
+ "@sanity/eslint-config-studio": "^5.0.2",
152
+ "@sanity/pkg-utils": "^7.1.0",
153
153
  "@sanity/webhook": "4.0.4",
154
154
  "@types/react": "^19.0.10",
155
155
  "@types/react-dom": "^19.0.4",
156
- "@typescript-eslint/eslint-plugin": "^8.25.0",
157
- "@vitest/coverage-v8": "^3.0.7",
156
+ "@typescript-eslint/eslint-plugin": "^8.26.1",
157
+ "@vitest/coverage-v8": "^3.0.8",
158
158
  "eslint": "^8.57.1",
159
- "eslint-config-prettier": "^10.0.2",
159
+ "eslint-config-prettier": "^10.1.1",
160
160
  "eslint-config-sanity": "^7.1.4",
161
161
  "eslint-gitignore": "^0.1.0",
162
162
  "eslint-plugin-react": "^7.37.4",
163
163
  "eslint-plugin-react-compiler": "beta",
164
164
  "eslint-plugin-react-hooks": "^5.2.0",
165
165
  "eslint-plugin-simple-import-sort": "^12.1.1",
166
- "next": "15.2.0",
166
+ "next": "15.2.2",
167
167
  "react": "19.0.0",
168
168
  "react-dom": "19.0.0",
169
169
  "styled-components": "^6.1.15",
170
- "typescript": "5.7.3",
170
+ "typescript": "5.8.2",
171
171
  "vite-tsconfig-paths": "^5.1.4",
172
- "vitest": "^3.0.7"
172
+ "vitest": "^3.0.8"
173
173
  },
174
174
  "peerDependencies": {
175
- "@sanity/client": "^6.28.2",
175
+ "@sanity/client": "^6.28.3",
176
176
  "@sanity/icons": "^3.7.0",
177
- "@sanity/types": "^3.77.2",
178
- "@sanity/ui": "^2.14.5",
177
+ "@sanity/types": "^3.79.0",
178
+ "@sanity/ui": "^2.15.6",
179
179
  "next": "^14.2 || ^15.0.0-0",
180
180
  "react": "^18.3 || ^19.0.0-0",
181
- "sanity": "^3.77.2",
181
+ "sanity": "^3.79.0",
182
182
  "styled-components": "^6.1"
183
183
  },
184
184
  "engines": {