groq 5.0.0-next.0-9b570ece82-202507150640 → 5.0.0-next.7

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2016 - 2024 Sanity.io
3
+ Copyright (c) 2016 - 2025 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/groq.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"groq.cjs","sources":["../src/define.ts","../src/groq.ts","../src/_exports.cts.ts"],"sourcesContent":["/**\n * Define a GROQ query. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * Ideally the `groq` template tag would be used, but we cannot infer types from it until\n * microsoft/TypeScript#33304 is resolved. Otherwise, there is no difference between this\n * and the `groq` template tag.\n *\n * @param query - The GROQ query\n * @returns The same string as the input\n * @public\n */\nexport function defineQuery<const Q extends string>(query: Q): Q {\n return query\n}\n","/**\n * Pass-through groq template tag. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * @param strings - Template string parts\n * @param keys - Template string keys\n * @returns The same string as the input\n * @public\n */\nexport function groq(strings: TemplateStringsArray, ...keys: any[]): string {\n const lastIndex = strings.length - 1\n return (\n strings.slice(0, lastIndex).reduce((acc, str, i) => {\n return acc + str + keys[i]\n }, '') + strings[lastIndex]\n )\n}\n","import {defineQuery} from './define'\nimport {groq} from './groq'\n\nmodule.exports = groq\n\nObject.assign(module.exports, {defineQuery})\n\n/**\n * This is just to fix the typegen for the CJS export, as TS won't pick up on `module.exports` syntax when the package.json has `type: \"module\"`\n */\nexport type {groq as default, defineQuery}\n"],"names":[],"mappings":";AAaO,SAAS,YAAoC,OAAa;AACxD,SAAA;AACT;ACLgB,SAAA,KAAK,YAAkC,MAAqB;AACpE,QAAA,YAAY,QAAQ,SAAS;AACnC,SACE,QAAQ,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,KAAK,KAAK,MACrC,MAAM,MAAM,KAAK,CAAC,GACxB,EAAE,IAAI,QAAQ,SAAS;AAE9B;ACdA,OAAO,UAAU;AAEjB,OAAO,OAAO,OAAO,SAAS,EAAC,aAAY;"}
1
+ {"version":3,"file":"groq.cjs","sources":["../src/define.ts","../src/groq.ts","../src/_exports.cts.ts"],"sourcesContent":["/**\n * Define a GROQ query. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * Ideally the `groq` template tag would be used, but we cannot infer types from it until\n * microsoft/TypeScript#33304 is resolved. Otherwise, there is no difference between this\n * and the `groq` template tag.\n *\n * @param query - The GROQ query\n * @returns The same string as the input\n * @public\n */\nexport function defineQuery<const Q extends string>(query: Q): Q {\n return query\n}\n","/**\n * Pass-through groq template tag. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * @param strings - Template string parts\n * @param keys - Template string keys\n * @returns The same string as the input\n * @public\n */\nexport function groq(strings: TemplateStringsArray, ...keys: any[]): string {\n const lastIndex = strings.length - 1\n return (\n strings.slice(0, lastIndex).reduce((acc, str, i) => {\n return acc + str + keys[i]\n }, '') + strings[lastIndex]\n )\n}\n","import {defineQuery} from './define'\nimport {groq} from './groq'\n\nmodule.exports = groq\n\nObject.assign(module.exports, {defineQuery})\n\n/**\n * This is just to fix the typegen for the CJS export, as TS won't pick up on `module.exports` syntax when the package.json has `type: \"module\"`\n */\nexport type {groq as default, defineQuery}\n"],"names":[],"mappings":";AAaO,SAAS,YAAoC,OAAa;AAC/D,SAAO;AACT;ACLO,SAAS,KAAK,YAAkC,MAAqB;AAC1E,QAAM,YAAY,QAAQ,SAAS;AACnC,SACE,QAAQ,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,KAAK,KAAK,MACrC,MAAM,MAAM,KAAK,CAAC,GACxB,EAAE,IAAI,QAAQ,SAAS;AAE9B;ACdA,OAAO,UAAU;AAEjB,OAAO,OAAO,OAAO,SAAS,EAAC,aAAY;"}
package/lib/groq.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"groq.js","sources":["../src/define.ts","../src/groq.ts"],"sourcesContent":["/**\n * Define a GROQ query. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * Ideally the `groq` template tag would be used, but we cannot infer types from it until\n * microsoft/TypeScript#33304 is resolved. Otherwise, there is no difference between this\n * and the `groq` template tag.\n *\n * @param query - The GROQ query\n * @returns The same string as the input\n * @public\n */\nexport function defineQuery<const Q extends string>(query: Q): Q {\n return query\n}\n","/**\n * Pass-through groq template tag. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * @param strings - Template string parts\n * @param keys - Template string keys\n * @returns The same string as the input\n * @public\n */\nexport function groq(strings: TemplateStringsArray, ...keys: any[]): string {\n const lastIndex = strings.length - 1\n return (\n strings.slice(0, lastIndex).reduce((acc, str, i) => {\n return acc + str + keys[i]\n }, '') + strings[lastIndex]\n )\n}\n"],"names":[],"mappings":"AAaO,SAAS,YAAoC,OAAa;AACxD,SAAA;AACT;ACLgB,SAAA,KAAK,YAAkC,MAAqB;AACpE,QAAA,YAAY,QAAQ,SAAS;AACnC,SACE,QAAQ,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,KAAK,KAAK,MACrC,MAAM,MAAM,KAAK,CAAC,GACxB,EAAE,IAAI,QAAQ,SAAS;AAE9B;"}
1
+ {"version":3,"file":"groq.js","sources":["../src/define.ts","../src/groq.ts"],"sourcesContent":["/**\n * Define a GROQ query. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * Ideally the `groq` template tag would be used, but we cannot infer types from it until\n * microsoft/TypeScript#33304 is resolved. Otherwise, there is no difference between this\n * and the `groq` template tag.\n *\n * @param query - The GROQ query\n * @returns The same string as the input\n * @public\n */\nexport function defineQuery<const Q extends string>(query: Q): Q {\n return query\n}\n","/**\n * Pass-through groq template tag. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * @param strings - Template string parts\n * @param keys - Template string keys\n * @returns The same string as the input\n * @public\n */\nexport function groq(strings: TemplateStringsArray, ...keys: any[]): string {\n const lastIndex = strings.length - 1\n return (\n strings.slice(0, lastIndex).reduce((acc, str, i) => {\n return acc + str + keys[i]\n }, '') + strings[lastIndex]\n )\n}\n"],"names":[],"mappings":"AAaO,SAAS,YAAoC,OAAa;AAC/D,SAAO;AACT;ACLO,SAAS,KAAK,YAAkC,MAAqB;AAC1E,QAAM,YAAY,QAAQ,SAAS;AACnC,SACE,QAAQ,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,KAAK,KAAK,MACrC,MAAM,MAAM,KAAK,CAAC,GACxB,EAAE,IAAI,QAAQ,SAAS;AAE9B;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groq",
3
- "version": "5.0.0-next.0-9b570ece82-202507150640",
3
+ "version": "5.0.0-next.7+eaffcdec86",
4
4
  "description": "Tagged template literal for Sanity.io GROQ-queries",
5
5
  "keywords": [
6
6
  "sanity",
@@ -41,15 +41,21 @@
41
41
  "lib"
42
42
  ],
43
43
  "devDependencies": {
44
- "@repo/package.config": "5.0.0-next.0",
45
- "@repo/eslint-config": "5.0.0-next.0"
44
+ "@sanity/pkg-utils": "^10.2.1",
45
+ "@types/node": "^24.3.0",
46
+ "@typescript/native-preview": "7.0.0-dev.20251128.1",
47
+ "eslint": "^9.39.1",
48
+ "rimraf": "^5.0.10",
49
+ "@repo/eslint-config": "5.0.0-next.7+eaffcdec86",
50
+ "@repo/package.config": "5.0.0-next.7+eaffcdec86",
51
+ "@repo/tsconfig": "5.0.0-next.7+eaffcdec86"
46
52
  },
47
53
  "engines": {
48
- "node": ">=20.19"
54
+ "node": ">=20.19 <22 || >=22.12"
49
55
  },
50
56
  "scripts": {
51
57
  "build": "pkg-utils build --strict --check --clean",
52
- "check:types": "(cd ../.. && tsc --project packages/groq/tsconfig.lib.json --erasableSyntaxOnly)",
58
+ "check:types": "(cd ../.. && tsgo --project packages/groq/tsconfig.lib.json --erasableSyntaxOnly)",
53
59
  "clean": "rimraf lib",
54
60
  "lint": "eslint .",
55
61
  "pretest": "run-s build",