@salesforce/sdk-data 1.7.0 → 1.8.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/gql.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ export declare function gql(strings: TemplateStringsArray, ...values: unknown[]): string;
7
+ //# sourceMappingURL=gql.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gql.d.ts","sourceRoot":"","sources":["../src/gql.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAS/E"}
package/dist/gql.js ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ export function gql(strings, ...values) {
7
+ /**
8
+ * Pass-through tag for IDE GraphQL integrations only.
9
+ */
10
+ let result = strings[0] ?? "";
11
+ for (let i = 0; i < values.length; i += 1) {
12
+ result += String(values[i]) + (strings[i + 1] ?? "");
13
+ }
14
+ return result;
15
+ }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { DataSDK } from "./types.js";
2
2
  export declare const sdk: DataSDK;
3
+ export { gql } from "./gql.js";
3
4
  export type { DataSDK } from "./types.js";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAgB1C,eAAO,MAAM,GAAG,SAAe,CAAC;AAChC,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAgB1C,eAAO,MAAM,GAAG,SAAe,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -19,3 +19,4 @@ function initialize() {
19
19
  }
20
20
  }
21
21
  export const sdk = initialize();
22
+ export { gql } from "./gql.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sdk-data",
3
- "version": "1.7.0",
3
+ "version": "1.8.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@conduit-client/salesforce-lightning-service-worker": "^3.7.0",
29
- "@salesforce/sdk-core": "^1.7.0"
29
+ "@salesforce/sdk-core": "^1.8.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vitest": "^4.0.6"
33
33
  },
34
- "gitHead": "a54d5cb1ebbbd4671fbbe097750e8b53f172b796"
34
+ "gitHead": "b5c1d465570de3857bf4036ec055e1d8556c4612"
35
35
  }