@salesforce/webapp-experimental 1.103.6 → 1.104.0

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.
@@ -1,4 +1,4 @@
1
- import { getDataSDK } from "@salesforce/sdk-data";
1
+ import { createDataSDK } from "@salesforce/sdk-data";
2
2
  const API_VERSION = typeof __SF_API_VERSION__ !== "undefined" ? __SF_API_VERSION__ : "65.0";
3
3
  const BASE_DATA_URL = `/services/data/v${API_VERSION}`;
4
4
  const UI_API_URL = `${BASE_DATA_URL}/ui-api`;
@@ -31,7 +31,7 @@ class ApiClient {
31
31
  ...options.headers || {}
32
32
  }
33
33
  };
34
- const sdk = await getDataSDK();
34
+ const sdk = await createDataSDK();
35
35
  return await sdk.fetch(fullURL, mergedOptions);
36
36
  }
37
37
  processBody(body, options) {
@@ -1,4 +1,4 @@
1
- import { getDataSDK } from "@salesforce/sdk-data";
1
+ import { createDataSDK } from "@salesforce/sdk-data";
2
2
  const HIGH_REVENUE_ACCOUNTS_QUERY = (
3
3
  /* GraphQL */
4
4
  `
@@ -34,7 +34,7 @@ const HIGH_REVENUE_ACCOUNTS_QUERY = (
34
34
  `
35
35
  );
36
36
  async function getHighRevenueAccounts(variables) {
37
- const data = await getDataSDK();
37
+ const data = await createDataSDK();
38
38
  const response = await data.graphql?.(HIGH_REVENUE_ACCOUNTS_QUERY, variables);
39
39
  if (response?.errors?.length) {
40
40
  const errorMessages = response.errors.map((e) => e.message).join("; ");
@@ -1,8 +1,8 @@
1
- import { getDataSDK } from "@salesforce/sdk-data";
1
+ import { createDataSDK } from "@salesforce/sdk-data";
2
2
  import { API_VERSION } from "../clients.js";
3
3
  async function getCurrentUser() {
4
4
  try {
5
- const sdk = await getDataSDK();
5
+ const sdk = await createDataSDK();
6
6
  const response = await sdk.fetch(`/services/data/v${API_VERSION}/chatter/users/me`);
7
7
  if (!response.ok) {
8
8
  throw new Error(`HTTP ${response.status}`);
@@ -1,4 +1,4 @@
1
- const version = "1.103.6";
1
+ const version = "1.104.0";
2
2
  export {
3
3
  version
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-experimental",
3
3
  "description": "[experimental] Core package for Salesforce Web Applications",
4
- "version": "1.103.6",
4
+ "version": "1.104.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@salesforce/core": "^8.23.4",
47
- "@salesforce/sdk-data": "^1.103.6",
47
+ "@salesforce/sdk-data": "^1.104.0",
48
48
  "axios": "^1.7.7",
49
49
  "micromatch": "^4.0.8",
50
50
  "path-to-regexp": "^8.3.0"