@salesforce/lds-runtime-mobile 1.398.0 → 1.399.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.
package/dist/main.js CHANGED
@@ -40,8 +40,8 @@ import lmrPrimingUseSoql from '@salesforce/gate/lmr.primingUseSoql';
40
40
  import aggressiveTrimCountKillSwitchGate from '@salesforce/gate/lmr.disableAggresiveTrimCountChange';
41
41
  import graphqlL2AdapterGate from '@salesforce/gate/lmr.graphqlL2Adapter';
42
42
  import useOneStore from '@salesforce/gate/lmr.useOneStore';
43
- import { setServices } from '@luvio/service-provisioner/v1';
44
- import '@luvio/type-normalization/v1';
43
+ import { setServices } from '@conduit-client/service-provisioner/v1';
44
+ import '@conduit-client/type-normalization/v1';
45
45
  import productConsumedSideEffects from '@salesforce/gate/com.salesforce.fieldservice.vanStockLDSBypass256';
46
46
 
47
47
  /**
@@ -57730,6 +57730,7 @@ function buildInstrumentCommand(services) {
57730
57730
  return function instrumentCommand(commandClass, commandName) {
57731
57731
  const invocationCounter = meter.createCounter(`${commandName}.command.invocation.count`);
57732
57732
  const errorCounter = meter.createCounter(`${commandName}.command.error.count`);
57733
+ const abortCounter = meter.createCounter(`${commandName}.command.abort.count`);
57733
57734
  const durationHistogram = meter.createHistogram(`${commandName}.command.duration`);
57734
57735
  return class extends commandClass {
57735
57736
  execute(...args) {
@@ -57743,7 +57744,11 @@ function buildInstrumentCommand(services) {
57743
57744
  try {
57744
57745
  result = super.execute(...args);
57745
57746
  } catch (e) {
57746
- errorCounter.add(1);
57747
+ if ((e == null ? void 0 : e.name) === "AbortError") {
57748
+ abortCounter.add(1);
57749
+ } else {
57750
+ errorCounter.add(1);
57751
+ }
57747
57752
  throw e;
57748
57753
  }
57749
57754
  if (typeof result === "object" && result !== null && "then" in result) {
@@ -58212,7 +58217,7 @@ function buildServiceDescriptor$5(luvio) {
58212
58217
  },
58213
58218
  };
58214
58219
  }
58215
- // version: 1.398.0-ada864f72d
58220
+ // version: 1.399.0-5ea4ae8437
58216
58221
 
58217
58222
  /**
58218
58223
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58238,7 +58243,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
58238
58243
  },
58239
58244
  };
58240
58245
  }
58241
- // version: 1.398.0-ada864f72d
58246
+ // version: 1.399.0-5ea4ae8437
58242
58247
 
58243
58248
  /*!
58244
58249
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -60171,9 +60176,9 @@ class NimbusSqliteOneStoreCache {
60171
60176
 
60172
60177
  const PURGE_CACHE_DAYS = 30;
60173
60178
  // TODO[@W-18753648]: These services depend on WebApis that aren't available in the worker.
60174
- // import { buildServiceDescriptor as buildNdJsonServiceDescriptor } from '@luvio/command-ndjson/v1';
60175
- // import { buildServiceDescriptor as buildStreamingCommandServiceDescriptor } from '@luvio/command-streaming/v1';
60176
- // import { buildServiceDescriptor as buildSseCommandServiceDescriptor } from '@luvio/command-sse/v1';
60179
+ // import { buildServiceDescriptor as buildNdJsonServiceDescriptor } from '@conduit-client/command-ndjson/v1';
60180
+ // import { buildServiceDescriptor as buildStreamingCommandServiceDescriptor } from '@conduit-client/command-streaming/v1';
60181
+ // import { buildServiceDescriptor as buildSseCommandServiceDescriptor } from '@conduit-client/command-sse/v1';
60177
60182
  function initializeOneStore(sqliteStore) {
60178
60183
  if (!useOneStore.isOpen({ fallback: true })) {
60179
60184
  return;
@@ -60467,4 +60472,4 @@ register({
60467
60472
  });
60468
60473
 
60469
60474
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
60470
- // version: 1.398.0-4adb9f1c88
60475
+ // version: 1.399.0-c92b32e0bf
@@ -1,6 +1,6 @@
1
- import { type CacheInclusionPolicyServiceDescriptor, type CacheQuery, type CacheUpdate, DurableCacheInclusionPolicy } from '@luvio/service-cache-inclusion-policy/v1';
2
- import type { Cache, CacheEntry, Key, NamedCacheService } from '@luvio/service-cache/v1';
3
- import { type DeepReadonly, type SyncOrAsync } from '@luvio/utils';
1
+ import { type CacheInclusionPolicyServiceDescriptor, type CacheQuery, type CacheUpdate, DurableCacheInclusionPolicy } from '@conduit-client/service-cache-inclusion-policy/v1';
2
+ import type { Cache, CacheEntry, Key, NamedCacheService } from '@conduit-client/service-cache/v1';
3
+ import { type DeepReadonly, type SyncOrAsync } from '@conduit-client/utils';
4
4
  import { NimbusSqliteOneStoreCache } from './nimbusSqliteStoreCache';
5
5
  export declare class NimbusDurableCacheInclusionPolicy extends DurableCacheInclusionPolicy {
6
6
  private readonly services;
@@ -1,3 +1,3 @@
1
- import { IFetchService } from '@luvio/service-fetch-network/v1';
2
- import { type ServiceDescriptor } from '@luvio/utils';
1
+ import { IFetchService } from '@conduit-client/service-fetch-network/v1';
2
+ import { type ServiceDescriptor } from '@conduit-client/utils';
3
3
  export declare function buildNimbusFetchServiceDescriptor(): ServiceDescriptor<IFetchService, 'fetch', '1.0'>;
@@ -1,4 +1,4 @@
1
- import type { CacheEntry, Key } from '@luvio/service-cache/v1';
1
+ import type { CacheEntry, Key } from '@conduit-client/service-cache/v1';
2
2
  import type { SqliteStorePlugin, SqliteStoreChange } from '@salesforce/nimbus-plugin-lds';
3
3
  export type NimbusSqliteOneStoreCacheEntry<T> = {
4
4
  key: Key;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.398.0",
3
+ "version": "1.399.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
@@ -32,42 +32,42 @@
32
32
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
33
33
  },
34
34
  "dependencies": {
35
- "@luvio/service-provisioner": "5.66.0",
36
- "@salesforce/lds-adapters-uiapi": "^1.398.0",
37
- "@salesforce/lds-bindings": "^1.398.0",
38
- "@salesforce/lds-instrumentation": "^1.398.0",
39
- "@salesforce/lds-luvio-service": "^1.398.0",
40
- "@salesforce/lds-luvio-uiapi-records-service": "^1.398.0",
35
+ "@conduit-client/service-provisioner": "2.0.1",
36
+ "@salesforce/lds-adapters-uiapi": "^1.399.0",
37
+ "@salesforce/lds-bindings": "^1.399.0",
38
+ "@salesforce/lds-instrumentation": "^1.399.0",
39
+ "@salesforce/lds-luvio-service": "^1.399.0",
40
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.399.0",
41
41
  "@salesforce/user": "0.0.21",
42
42
  "o11y": "250.7.0",
43
43
  "o11y_schema": "256.126.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@luvio/command-aura-network": "5.66.0",
47
- "@luvio/command-aura-normalized-cache-control": "5.66.0",
48
- "@luvio/command-aura-resource-cache-control": "5.66.0",
49
- "@luvio/command-fetch-network": "5.66.0",
50
- "@luvio/command-http-normalized-cache-control": "5.66.0",
51
- "@luvio/command-network": "5.66.0",
52
- "@luvio/service-cache": "5.66.0",
53
- "@luvio/service-cache-control": "5.66.0",
54
- "@luvio/service-cache-inclusion-policy": "5.66.0",
55
- "@luvio/service-fetch-network": "5.66.0",
56
- "@luvio/service-instrument-command": "5.66.0",
57
- "@luvio/service-instrumentation": "5.66.0",
58
- "@luvio/service-pubsub": "5.66.0",
59
- "@luvio/service-store": "5.66.0",
60
- "@luvio/utils": "5.66.0",
61
- "@salesforce/lds-adapters-graphql": "^1.398.0",
62
- "@salesforce/lds-drafts": "^1.398.0",
63
- "@salesforce/lds-durable-records": "^1.398.0",
64
- "@salesforce/lds-network-adapter": "^1.398.0",
65
- "@salesforce/lds-network-nimbus": "^1.398.0",
66
- "@salesforce/lds-store-binary": "^1.398.0",
67
- "@salesforce/lds-store-nimbus": "^1.398.0",
68
- "@salesforce/lds-store-sql": "^1.398.0",
69
- "@salesforce/lds-utils-adapters": "^1.398.0",
70
- "@salesforce/nimbus-plugin-lds": "^1.398.0",
46
+ "@conduit-client/command-aura-network": "2.0.1",
47
+ "@conduit-client/command-aura-normalized-cache-control": "2.0.1",
48
+ "@conduit-client/command-aura-resource-cache-control": "2.0.1",
49
+ "@conduit-client/command-fetch-network": "2.0.1",
50
+ "@conduit-client/command-http-normalized-cache-control": "2.0.1",
51
+ "@conduit-client/command-network": "2.0.1",
52
+ "@conduit-client/service-cache": "2.0.1",
53
+ "@conduit-client/service-cache-control": "2.0.1",
54
+ "@conduit-client/service-cache-inclusion-policy": "2.0.1",
55
+ "@conduit-client/service-fetch-network": "2.0.1",
56
+ "@conduit-client/service-instrument-command": "2.0.1",
57
+ "@conduit-client/service-instrumentation": "2.0.1",
58
+ "@conduit-client/service-pubsub": "2.0.1",
59
+ "@conduit-client/service-store": "2.0.1",
60
+ "@conduit-client/utils": "2.0.1",
61
+ "@salesforce/lds-adapters-graphql": "^1.399.0",
62
+ "@salesforce/lds-drafts": "^1.399.0",
63
+ "@salesforce/lds-durable-records": "^1.399.0",
64
+ "@salesforce/lds-network-adapter": "^1.399.0",
65
+ "@salesforce/lds-network-nimbus": "^1.399.0",
66
+ "@salesforce/lds-store-binary": "^1.399.0",
67
+ "@salesforce/lds-store-nimbus": "^1.399.0",
68
+ "@salesforce/lds-store-sql": "^1.399.0",
69
+ "@salesforce/lds-utils-adapters": "^1.399.0",
70
+ "@salesforce/nimbus-plugin-lds": "^1.399.0",
71
71
  "babel-plugin-dynamic-import-node": "^2.3.3",
72
72
  "wait-for-expect": "^3.0.2"
73
73
  },
package/sfdc/main.js CHANGED
@@ -57730,6 +57730,7 @@ function buildInstrumentCommand(services) {
57730
57730
  return function instrumentCommand(commandClass, commandName) {
57731
57731
  const invocationCounter = meter.createCounter(`${commandName}.command.invocation.count`);
57732
57732
  const errorCounter = meter.createCounter(`${commandName}.command.error.count`);
57733
+ const abortCounter = meter.createCounter(`${commandName}.command.abort.count`);
57733
57734
  const durationHistogram = meter.createHistogram(`${commandName}.command.duration`);
57734
57735
  return class extends commandClass {
57735
57736
  execute(...args) {
@@ -57743,7 +57744,11 @@ function buildInstrumentCommand(services) {
57743
57744
  try {
57744
57745
  result = super.execute(...args);
57745
57746
  } catch (e) {
57746
- errorCounter.add(1);
57747
+ if ((e == null ? void 0 : e.name) === "AbortError") {
57748
+ abortCounter.add(1);
57749
+ } else {
57750
+ errorCounter.add(1);
57751
+ }
57747
57752
  throw e;
57748
57753
  }
57749
57754
  if (typeof result === "object" && result !== null && "then" in result) {
@@ -58212,7 +58217,7 @@ function buildServiceDescriptor$5(luvio) {
58212
58217
  },
58213
58218
  };
58214
58219
  }
58215
- // version: 1.398.0-ada864f72d
58220
+ // version: 1.399.0-5ea4ae8437
58216
58221
 
58217
58222
  /**
58218
58223
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58238,7 +58243,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
58238
58243
  },
58239
58244
  };
58240
58245
  }
58241
- // version: 1.398.0-ada864f72d
58246
+ // version: 1.399.0-5ea4ae8437
58242
58247
 
58243
58248
  /*!
58244
58249
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -60171,9 +60176,9 @@ class NimbusSqliteOneStoreCache {
60171
60176
 
60172
60177
  const PURGE_CACHE_DAYS = 30;
60173
60178
  // TODO[@W-18753648]: These services depend on WebApis that aren't available in the worker.
60174
- // import { buildServiceDescriptor as buildNdJsonServiceDescriptor } from '@luvio/command-ndjson/v1';
60175
- // import { buildServiceDescriptor as buildStreamingCommandServiceDescriptor } from '@luvio/command-streaming/v1';
60176
- // import { buildServiceDescriptor as buildSseCommandServiceDescriptor } from '@luvio/command-sse/v1';
60179
+ // import { buildServiceDescriptor as buildNdJsonServiceDescriptor } from '@conduit-client/command-ndjson/v1';
60180
+ // import { buildServiceDescriptor as buildStreamingCommandServiceDescriptor } from '@conduit-client/command-streaming/v1';
60181
+ // import { buildServiceDescriptor as buildSseCommandServiceDescriptor } from '@conduit-client/command-sse/v1';
60177
60182
  function initializeOneStore(sqliteStore) {
60178
60183
  if (!useOneStore.isOpen({ fallback: true })) {
60179
60184
  return;
@@ -60467,4 +60472,4 @@ register({
60467
60472
  });
60468
60473
 
60469
60474
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
60470
- // version: 1.398.0-4adb9f1c88
60475
+ // version: 1.399.0-c92b32e0bf
@@ -1,6 +1,6 @@
1
- import { type CacheInclusionPolicyServiceDescriptor, type CacheQuery, type CacheUpdate, DurableCacheInclusionPolicy } from '@luvio/service-cache-inclusion-policy/v1';
2
- import type { Cache, CacheEntry, Key, NamedCacheService } from '@luvio/service-cache/v1';
3
- import { type DeepReadonly, type SyncOrAsync } from '@luvio/utils';
1
+ import { type CacheInclusionPolicyServiceDescriptor, type CacheQuery, type CacheUpdate, DurableCacheInclusionPolicy } from '@conduit-client/service-cache-inclusion-policy/v1';
2
+ import type { Cache, CacheEntry, Key, NamedCacheService } from '@conduit-client/service-cache/v1';
3
+ import { type DeepReadonly, type SyncOrAsync } from '@conduit-client/utils';
4
4
  import { NimbusSqliteOneStoreCache } from './nimbusSqliteStoreCache';
5
5
  export declare class NimbusDurableCacheInclusionPolicy extends DurableCacheInclusionPolicy {
6
6
  private readonly services;
@@ -1,3 +1,3 @@
1
- import { IFetchService } from '@luvio/service-fetch-network/v1';
2
- import { type ServiceDescriptor } from '@luvio/utils';
1
+ import { IFetchService } from '@conduit-client/service-fetch-network/v1';
2
+ import { type ServiceDescriptor } from '@conduit-client/utils';
3
3
  export declare function buildNimbusFetchServiceDescriptor(): ServiceDescriptor<IFetchService, 'fetch', '1.0'>;
@@ -1,4 +1,4 @@
1
- import type { CacheEntry, Key } from '@luvio/service-cache/v1';
1
+ import type { CacheEntry, Key } from '@conduit-client/service-cache/v1';
2
2
  import type { SqliteStorePlugin, SqliteStoreChange } from '@salesforce/nimbus-plugin-lds';
3
3
  export type NimbusSqliteOneStoreCacheEntry<T> = {
4
4
  key: Key;