next-sanity 6.1.0 → 6.1.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.
package/README.md CHANGED
@@ -355,7 +355,7 @@ export async function POST(req: NextRequest) {
355
355
 
356
356
  if (!body?._type) {
357
357
  const message = 'Bad Request'
358
- return new Response({message, body}, {status: 400})
358
+ return new Response(JSON.stringify({message, body}), {status: 400})
359
359
  }
360
360
 
361
361
  // If the `_type` is `page`, then all `client.fetch` calls with
@@ -5,18 +5,16 @@ Object.defineProperty(exports, '__esModule', {
5
5
  value: true
6
6
  });
7
7
  var liveQuery = require('@sanity/preview-kit/live-query');
8
- Object.defineProperty(exports, 'default', {
8
+ Object.defineProperty(exports, 'LiveQuery', {
9
9
  enumerable: true,
10
10
  get: function () {
11
- return liveQuery__namespace.default;
11
+ return liveQuery.LiveQuery;
12
12
  }
13
13
  });
14
- Object.keys(liveQuery).forEach(function (k) {
15
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
16
- enumerable: true,
17
- get: function () {
18
- return liveQuery[k];
19
- }
20
- });
14
+ Object.defineProperty(exports, 'default', {
15
+ enumerable: true,
16
+ get: function () {
17
+ return liveQuery.LiveQuery;
18
+ }
21
19
  });
22
20
  //# sourceMappingURL=live-query.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"live-query.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"live-query.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,6 @@
1
- import {default as default_2} from '@sanity/preview-kit/live-query'
1
+ import {LiveQuery} from '@sanity/preview-kit/live-query'
2
2
 
3
- export default default_2
4
-
5
- export * from '@sanity/preview-kit/live-query'
3
+ export {LiveQuery}
4
+ export default LiveQuery
6
5
 
7
6
  export {}
@@ -1,4 +1,3 @@
1
1
  'use strict';
2
- export * from '@sanity/preview-kit/live-query';
3
- export { default } from '@sanity/preview-kit/live-query';
2
+ export { LiveQuery, LiveQuery as default } from '@sanity/preview-kit/live-query';
4
3
  //# sourceMappingURL=live-query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"live-query.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"live-query.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-sanity",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Sanity.io toolkit for Next.js",
5
5
  "keywords": [
6
6
  "sanity",
@@ -188,7 +188,7 @@
188
188
  "singleQuote": true
189
189
  },
190
190
  "dependencies": {
191
- "@sanity/client": "^6.8.6",
191
+ "@sanity/client": "^6.9.0",
192
192
  "@sanity/preview-kit": "4.0.1",
193
193
  "@sanity/webhook": "4.0.0",
194
194
  "groq": "^3.19"
@@ -199,13 +199,13 @@
199
199
  "@rollup/plugin-url": "^8.0.2",
200
200
  "@sanity/eslint-config-studio": "^3.0.1",
201
201
  "@sanity/image-url": "^1.0.2",
202
- "@sanity/overlays": "2.0.2",
202
+ "@sanity/overlays": "2.0.3",
203
203
  "@sanity/pkg-utils": "^2.4.10",
204
204
  "@sanity/ui": "^1.9.3",
205
- "@sanity/vision": "3.20.1",
206
- "@types/react": "^18.2.38",
205
+ "@sanity/vision": "3.20.2",
206
+ "@types/react": "^18.2.39",
207
207
  "@types/react-dom": "^18.2.17",
208
- "@typescript-eslint/eslint-plugin": "^6.12.0",
208
+ "@typescript-eslint/eslint-plugin": "^6.13.1",
209
209
  "@vitest/coverage-v8": "^0.34.6",
210
210
  "autoprefixer": "^10.4.16",
211
211
  "eslint": "^8.54.0",
@@ -225,7 +225,7 @@
225
225
  "react-dom": "^18.2.0",
226
226
  "react-is": "^18.2.0",
227
227
  "rollup": "^3.29.4",
228
- "sanity": "3.20.1",
228
+ "sanity": "3.20.2",
229
229
  "server-only": "^0.0.1",
230
230
  "styled-components": "^6.1.1",
231
231
  "suspend-react": "^0.1.3",
@@ -236,7 +236,7 @@
236
236
  "vitest-github-actions-reporter": "^0.11.0"
237
237
  },
238
238
  "peerDependencies": {
239
- "@sanity/client": "^6.8.6",
239
+ "@sanity/client": "^6.9.0",
240
240
  "@sanity/icons": "^2.0",
241
241
  "@sanity/types": "^3.19",
242
242
  "@sanity/ui": "^1.8",
@@ -1,2 +1 @@
1
- export * from '@sanity/preview-kit/live-query'
2
- export {default} from '@sanity/preview-kit/live-query'
1
+ export {LiveQuery as default, LiveQuery} from '@sanity/preview-kit/live-query'