diff --git a/package-lock.json b/package-lock.json index a86e7a74..d9dd0e81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18422,9 +18422,14 @@ } }, "node_modules/groq-builder": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/groq-builder/-/groq-builder-0.2.0.tgz", - "integrity": "sha512-7K2lOh5C0zahcqh+8U+3lOG/duT1oM5r5Cx1psHPbXhICovWrkZJHwvz2JuvfR5wK6/dSGi2VInnX0SGmO5peg==", + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/groq-builder/-/groq-builder-0.9.1.tgz", + "integrity": "sha512-JMoCidT4MWquYl4bzjtt1kVWY6GIJIqiG3o0vLpfkXKvPMW7S18/Z2+wBmXbrTiCR6Mg5olXqtzfyYdGukaWiw==", + "license": "MIT", + "dependencies": { + "type-fest": "^4.10.1", + "zod": "^3.22.4" + }, "engines": { "node": ">= 14" } @@ -30649,14 +30654,14 @@ "@saiichihashimoto/test-utils": "1.1.0", "@sanity-typed/tsconfig": "0.0.0-development", "@sanity/client": "6.24.1", - "groq-builder": "0.2.0" + "groq-builder": "0.9.1" }, "funding": { "type": "individual", "url": "https://github.com/sponsors/saiichihashimoto" }, "optionalDependencies": { - "groq-builder": "^0.1.3" + "groq-builder": "^0.9.1" }, "peerDependencies": { "@sanity/client": "^6.1.7", @@ -30682,14 +30687,14 @@ "@sanity-typed/tsconfig": "0.0.0-development", "@sanity-typed/utils": "0.0.0-development", "@sanity/client": "6.24.1", - "groq-builder": "0.2.0" + "groq-builder": "0.9.1" }, "funding": { "type": "individual", "url": "https://github.com/sponsors/saiichihashimoto" }, "optionalDependencies": { - "groq-builder": "^0.1.3" + "groq-builder": "^0.9.1" }, "peerDependencies": { "@sanity/client": "^6.1.7", @@ -30712,7 +30717,7 @@ "@sanity-typed/preview-kit": "0.0.0-development", "@sanity-typed/zod": "0.0.0-development", "@sanity/client": "6.24.1", - "groq-builder": "0.2.0", + "groq-builder": "0.9.1", "next": "15.0.3", "react": "18.3.1" }, @@ -30847,7 +30852,7 @@ "@jest/globals": "29.7.0", "@saiichihashimoto/test-utils": "1.1.0", "@sanity-typed/tsconfig": "0.0.0-development", - "groq-builder": "0.2.0", + "groq-builder": "0.9.1", "next-sanity": "9.8.20", "type-fest": "4.26.1" }, @@ -30856,7 +30861,7 @@ "url": "https://github.com/sponsors/saiichihashimoto" }, "optionalDependencies": { - "groq-builder": "^0.1.3" + "groq-builder": "^0.9.1" }, "peerDependencies": { "next-sanity": "^7.0.4", @@ -30876,7 +30881,7 @@ "@saiichihashimoto/test-utils": "1.1.0", "@sanity-typed/tsconfig": "0.0.0-development", "@sanity/preview-kit": "5.1.20", - "groq-builder": "0.2.0", + "groq-builder": "0.9.1", "type-fest": "4.26.1" }, "funding": { @@ -30884,7 +30889,7 @@ "url": "https://github.com/sponsors/saiichihashimoto" }, "optionalDependencies": { - "groq-builder": "^0.1.3" + "groq-builder": "^0.9.1" }, "peerDependencies": { "@sanity/preview-kit": "^5.0.6", diff --git a/packages/client-mock/package.json b/packages/client-mock/package.json index 7e6b062b..92ca5747 100644 --- a/packages/client-mock/package.json +++ b/packages/client-mock/package.json @@ -46,13 +46,13 @@ "@sanity-typed/tsconfig": "0.0.0-development", "@sanity-typed/utils": "0.0.0-development", "@sanity/client": "6.24.1", - "groq-builder": "0.2.0" + "groq-builder": "0.9.1" }, "peerDependencies": { "@sanity/client": "^6.1.7", "typescript": "5.4.2 || 5.4.3 || 5.4.4 || 5.4.5 || 5.5.2 || 5.5.3 || 5.5.4 || 5.6.2 || 5.6.3" }, "optionalDependencies": { - "groq-builder": "^0.1.3" + "groq-builder": "^0.9.1" } } diff --git a/packages/client-mock/src/index.ts b/packages/client-mock/src/index.ts index 5f6b6b2c..80df5c80 100644 --- a/packages/client-mock/src/index.ts +++ b/packages/client-mock/src/index.ts @@ -72,7 +72,7 @@ export const createClient = < let clientQ: | GroqBuilder< - never, + { [key in never]: never }, { documentTypes: DocumentValues; referenceSymbol: typeof referenced; @@ -151,7 +151,7 @@ export const createClient = < | TQuery | (( q: GroqBuilder< - never, + { [key in never]: never }, { documentTypes: DocumentValues; referenceSymbol: typeof referenced; diff --git a/packages/client/package.json b/packages/client/package.json index 4a85699e..2bc0b2e4 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -42,13 +42,13 @@ "@saiichihashimoto/test-utils": "1.1.0", "@sanity-typed/tsconfig": "0.0.0-development", "@sanity/client": "6.24.1", - "groq-builder": "0.2.0" + "groq-builder": "0.9.1" }, "peerDependencies": { "@sanity/client": "^6.1.7", "typescript": "5.4.2 || 5.4.3 || 5.4.4 || 5.4.5 || 5.5.2 || 5.5.3 || 5.5.4 || 5.6.2 || 5.6.3" }, "optionalDependencies": { - "groq-builder": "^0.1.3" + "groq-builder": "^0.9.1" } } diff --git a/packages/client/src/internal.ts b/packages/client/src/internal.ts index a92dc749..1aebd2cb 100644 --- a/packages/client/src/internal.ts +++ b/packages/client/src/internal.ts @@ -578,7 +578,7 @@ export type OverrideSanityClient< | TQuery | (( q: GroqBuilder< - never, + { [key in never]: never }, { documentTypes: TDocument; referenceSymbol: typeof referenced; @@ -780,7 +780,7 @@ export const createClient = < let clientQ: | GroqBuilder< - never, + { [key in never]: never }, { documentTypes: DocumentValues; referenceSymbol: typeof referenced; @@ -818,7 +818,7 @@ export const createClient = < | TQuery | (( q: GroqBuilder< - never, + { [key in never]: never }, { documentTypes: DocumentValues; referenceSymbol: typeof referenced; diff --git a/packages/example-app/next-env.d.ts b/packages/example-app/next-env.d.ts index 4f11a03d..a4a7b3f5 100644 --- a/packages/example-app/next-env.d.ts +++ b/packages/example-app/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information. diff --git a/packages/example-app/package.json b/packages/example-app/package.json index 8d97f197..b125514c 100644 --- a/packages/example-app/package.json +++ b/packages/example-app/package.json @@ -27,7 +27,7 @@ "@sanity-typed/preview-kit": "0.0.0-development", "@sanity-typed/zod": "0.0.0-development", "@sanity/client": "6.24.1", - "groq-builder": "0.2.0", + "groq-builder": "0.9.1", "next": "15.0.3", "react": "18.3.1" }, diff --git a/packages/next-sanity/package.json b/packages/next-sanity/package.json index 3d643195..a1085d7d 100644 --- a/packages/next-sanity/package.json +++ b/packages/next-sanity/package.json @@ -43,7 +43,7 @@ "@jest/globals": "29.7.0", "@saiichihashimoto/test-utils": "1.1.0", "@sanity-typed/tsconfig": "0.0.0-development", - "groq-builder": "0.2.0", + "groq-builder": "0.9.1", "next-sanity": "9.8.20", "type-fest": "4.26.1" }, @@ -52,6 +52,6 @@ "typescript": "5.4.2 || 5.4.3 || 5.4.4 || 5.4.5 || 5.5.2 || 5.5.3 || 5.5.4 || 5.6.2 || 5.6.3" }, "optionalDependencies": { - "groq-builder": "^0.1.3" + "groq-builder": "^0.9.1" } } diff --git a/packages/next-sanity/src/internal.ts b/packages/next-sanity/src/internal.ts index a5879f52..b5099098 100644 --- a/packages/next-sanity/src/internal.ts +++ b/packages/next-sanity/src/internal.ts @@ -30,7 +30,7 @@ export const createClient = < let clientQ: | GroqBuilder< - never, + { [key in never]: never }, { documentTypes: DocumentValues; referenceSymbol: typeof referenced; @@ -68,7 +68,7 @@ export const createClient = < | TQuery | (( q: GroqBuilder< - never, + { [key in never]: never }, { documentTypes: DocumentValues; referenceSymbol: typeof referenced; diff --git a/packages/preview-kit/package.json b/packages/preview-kit/package.json index 02bed388..a5140b33 100644 --- a/packages/preview-kit/package.json +++ b/packages/preview-kit/package.json @@ -45,7 +45,7 @@ "@saiichihashimoto/test-utils": "1.1.0", "@sanity-typed/tsconfig": "0.0.0-development", "@sanity/preview-kit": "5.1.20", - "groq-builder": "0.2.0", + "groq-builder": "0.9.1", "type-fest": "4.26.1" }, "peerDependencies": { @@ -53,6 +53,6 @@ "typescript": "5.4.2 || 5.4.3 || 5.4.4 || 5.4.5 || 5.5.2 || 5.5.3 || 5.5.4 || 5.6.2 || 5.6.3" }, "optionalDependencies": { - "groq-builder": "^0.1.3" + "groq-builder": "^0.9.1" } } diff --git a/packages/preview-kit/src/internal.ts b/packages/preview-kit/src/internal.ts index ea430b0c..d003135d 100644 --- a/packages/preview-kit/src/internal.ts +++ b/packages/preview-kit/src/internal.ts @@ -24,7 +24,7 @@ export const createClient = < let clientQ: | GroqBuilder< - never, + { [key in never]: never }, { documentTypes: DocumentValues; referenceSymbol: typeof referenced; @@ -62,7 +62,7 @@ export const createClient = < | TQuery | (( q: GroqBuilder< - never, + { [key in never]: never }, { documentTypes: DocumentValues; referenceSymbol: typeof referenced;