@devite/nuxt-sanity 2.0.0 → 2.0.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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/nuxt-sanity",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "configKey": "sanity",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { defineNuxtModule, createResolver, addPlugin, addServerHandler, addImpor
3
3
  import defu from 'defu';
4
4
 
5
5
  const name = "@devite/nuxt-sanity";
6
- const version = "2.0.0";
6
+ const version = "2.0.1";
7
7
 
8
8
  const module = defineNuxtModule({
9
9
  meta: {
@@ -1,4 +1,4 @@
1
- import { type ClientPerspective, type FilteredResponseQueryOptions, type QueryParams, type SanityClient as SanityClientType } from '@sanity/client';
1
+ import { type ClientPerspective, type QueryParams, type SanityClient as SanityClientType } from '@sanity/client';
2
2
  import type { ModuleOptions } from '@devite/nuxt-sanity';
3
3
  import { type QueryStore } from '@sanity/core-loader';
4
4
  import SanityClient from './SanityClient.js';
@@ -8,7 +8,7 @@ declare class DefaultSanityClient extends SanityClient {
8
8
  constructor(config: ModuleOptions);
9
9
  fetch<T = unknown>(query: string, params: QueryParams, options?: {
10
10
  perspective?: ClientPerspective;
11
- } & FilteredResponseQueryOptions): Promise<T>;
11
+ }): Promise<T>;
12
12
  createQueryStore(tag?: string): void;
13
13
  clone(): DefaultSanityClient;
14
14
  }
@@ -1,4 +1,4 @@
1
- import type { ClientPerspective, FilteredResponseQueryOptions, QueryParams } from '@sanity/client';
1
+ import type { ClientPerspective, QueryParams } from '@sanity/client';
2
2
  import type { ModuleOptions } from '@devite/nuxt-sanity';
3
3
  import SanityClient from './SanityClient.js';
4
4
  declare class MinimalSanityClient extends SanityClient {
@@ -9,7 +9,7 @@ declare class MinimalSanityClient extends SanityClient {
9
9
  private toQueryString;
10
10
  fetch<T>(query: string, params: QueryParams, _options?: {
11
11
  perspective?: ClientPerspective;
12
- } & FilteredResponseQueryOptions): Promise<T>;
12
+ }): Promise<T>;
13
13
  clone(): MinimalSanityClient;
14
14
  }
15
15
  export default MinimalSanityClient;
@@ -1,4 +1,4 @@
1
- import type { ClientPerspective, ContentSourceMap, FilteredResponseQueryOptions, QueryParams } from '@sanity/client';
1
+ import type { ClientPerspective, ContentSourceMap, QueryParams } from '@sanity/client';
2
2
  import type { ModuleOptions } from '@devite/nuxt-sanity';
3
3
  export default abstract class SanityClient {
4
4
  config: ModuleOptions;
@@ -6,5 +6,5 @@ export default abstract class SanityClient {
6
6
  protected constructor(config: ModuleOptions);
7
7
  abstract fetch<T = unknown>(query: string, params: QueryParams, options?: {
8
8
  perspective?: ClientPerspective;
9
- } & FilteredResponseQueryOptions): Promise<T>;
9
+ }): Promise<T>;
10
10
  }
@@ -1,4 +1,4 @@
1
1
  import type { ModuleOptions } from '@devite/nuxt-sanity';
2
- import type SanityClient from '~/src/runtime/client/SanityClient';
2
+ import type SanityClient from '../client/SanityClient.js';
3
3
  export type SanityClientType = 'minimal' | 'default';
4
4
  export default function getOrCreateSanityClient(visualEditing: boolean, config: ModuleOptions, type?: SanityClientType): SanityClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/nuxt-sanity",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Advanced Sanity integration for Nuxt.js.",
5
5
  "repository": "devite-io/nuxt-sanity",
6
6
  "license": "MIT",
@@ -26,27 +26,28 @@
26
26
  "@nuxt/kit": "^3.14.1592",
27
27
  "@portabletext/vue": "^1.0.11",
28
28
  "@sanity/client": "^6.24.1",
29
- "@sanity/core-loader": "^1.7.19",
29
+ "@sanity/core-loader": "^1.7.21",
30
30
  "@sanity/preview-url-secret": "^2.0.5",
31
- "@sanity/types": "^3.66.1",
32
- "@sanity/visual-editing": "^2.10.5",
31
+ "@sanity/types": "^3.68.3",
32
+ "@sanity/visual-editing": "^2.11.0",
33
33
  "defu": "^6.1.4",
34
34
  "ofetch": "^1.4.1",
35
35
  "ohash": "^1.1.4"
36
36
  },
37
37
  "devDependencies": {
38
- "@nuxt/eslint-config": "^0.7.2",
38
+ "@nuxt/eslint-config": "^0.7.4",
39
39
  "@nuxt/module-builder": "^0.8.4",
40
40
  "@nuxt/schema": "^3.14.1592",
41
41
  "@nuxt/test-utils": "^3.15.1",
42
42
  "@types/node": "latest",
43
43
  "changelogen": "^0.5.7",
44
- "eslint": "^9.16.0",
44
+ "eslint": "^9.17.0",
45
45
  "h3": "^1.13.0",
46
46
  "nuxt": "^3.14.1592",
47
- "prettier": "^3.4.2",
48
47
  "typescript": "~5.6.3",
49
48
  "vitest": "^2.1.8",
49
+ "vitest-environment-nuxt": "1.0.1",
50
+ "vue": "3.5.13",
50
51
  "vue-router": "^4.5.0",
51
52
  "vue-tsc": "^2.1.10"
52
53
  },