@equinor/fusion-framework-vite-plugin-spa 1.2.2 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @equinor/fusion-framework-vite-plugin-spa
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3584](https://github.com/equinor/fusion-framework/pull/3584) [`0dd31cd`](https://github.com/equinor/fusion-framework/commit/0dd31cd1078b383ddab4a8cf1bb03d502e214715) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump @rollup/plugin-node-resolve from 16.0.1 to 16.0.3
8
+
9
+ Bug fixes:
10
+
11
+ - fix: resolve bare targets of package "imports" using export maps; avoid fileURLToPath(null)
12
+ - fix: error thrown with empty entry
13
+
14
+ - [#3604](https://github.com/equinor/fusion-framework/pull/3604) [`31e2581`](https://github.com/equinor/fusion-framework/commit/31e2581fca2765dc7caf54f74db3db51020b53b7) Thanks [@odinr](https://github.com/odinr)! - Update SPA bootstrap telemetry configuration to use proper adapter identifiers.
15
+
16
+ **Changes:**
17
+
18
+ - Refactor console adapter setup for cleaner conditional logic
19
+ - Update setAdapter calls to include required identifier parameter
20
+
21
+ **Migration:**
22
+
23
+ - No breaking changes for SPA consumers - internal implementation update only
24
+
25
+ - Updated dependencies [[`6900d98`](https://github.com/equinor/fusion-framework/commit/6900d98142c84f4703095f8d03b09af57a1d7d2e), [`e1a94c5`](https://github.com/equinor/fusion-framework/commit/e1a94c5a1df4ac2ec92ed25b75648397a3dbfa7b), [`e1a94c5`](https://github.com/equinor/fusion-framework/commit/e1a94c5a1df4ac2ec92ed25b75648397a3dbfa7b), [`31e2581`](https://github.com/equinor/fusion-framework/commit/31e2581fca2765dc7caf54f74db3db51020b53b7), [`0bc6b38`](https://github.com/equinor/fusion-framework/commit/0bc6b38e61c98a2f9dea7b55fa9983f268f860be), [`a13de68`](https://github.com/equinor/fusion-framework/commit/a13de68b2f196a779ea850af055d8db7926941ce)]:
26
+ - @equinor/fusion-framework-module-http@7.0.3
27
+ - @equinor/fusion-framework-module@5.0.4
28
+ - @equinor/fusion-framework-module-msal@5.1.1
29
+ - @equinor/fusion-framework-module-telemetry@4.3.0
30
+ - @equinor/fusion-framework-module-service-discovery@9.0.3
31
+
3
32
  ## 1.2.2
4
33
 
5
34
  ### Patch Changes
@@ -35,15 +35,10 @@ enableTelemetry(configurator, {
35
35
  attachConfiguratorEvents: true,
36
36
  configure: (builder) => {
37
37
  const consoleLevel = Number(import.meta.env.FUSION_SPA_TELEMETRY_CONSOLE_LEVEL ?? TelemetryLevel.Information);
38
- if (Number.isNaN(consoleLevel)) {
39
- // If environment variable is set but invalid, log all telemetry
40
- builder.setAdapter(new ConsoleAdapter());
41
- }
42
- else {
43
- builder.setAdapter(new ConsoleAdapter({
44
- filter: (item) => item.level >= consoleLevel,
45
- }));
46
- }
38
+ const consoleAdapter = new ConsoleAdapter({
39
+ filter: Number.isNaN(consoleLevel) ? undefined : (item) => item.level >= consoleLevel,
40
+ });
41
+ builder.setAdapter('console', consoleAdapter);
47
42
  builder.setMetadata(({ modules }) => {
48
43
  const metadata = {
49
44
  fusion: {
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../../src/html/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAmB,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAmB,MAAM,uCAAuC,CAAC;AACpF,OAAO,EACL,sBAAsB,GAEvB,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EACL,eAAe,EACf,cAAc,GAEf,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAC;AAE5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AA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AAE,GAAG,MAAM,WAAW;SACjC,KAAK,EAAE;SACP,OAAO,CACN,iBAAiB,CAAoD,gBAAgB,CAAC,EACtF;QACE,IAAI,EAAE;YACJ,IAAI,EAAE,iCAAiC;YACvC,KAAK,EAAE,cAAc,CAAC,KAAK;YAC3B,UAAU,EAAE;gBACV,QAAQ;gBACR,SAAS;gBACT,UAAU,EAAE,gBAAgB;aAC7B;SACF;KACF,CACF,CAAC;IAEJ,uEAAuE;IACvE,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;AACxE,CAAC,CAAC,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '1.2.2';
2
+ export const version = '2.0.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -4808,10 +4808,14 @@ function handleReset(reset, on) {
4808
4808
  }
4809
4809
 
4810
4810
  function shareReplay(configOrBufferSize, windowTime, scheduler) {
4811
+ var _a, _b, _c;
4811
4812
  var bufferSize;
4812
4813
  var refCount = false;
4813
- {
4814
- bufferSize = (configOrBufferSize );
4814
+ if (configOrBufferSize && typeof configOrBufferSize === 'object') {
4815
+ (_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler);
4816
+ }
4817
+ else {
4818
+ bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity);
4815
4819
  }
4816
4820
  return share({
4817
4821
  connector: function () { return new ReplaySubject(bufferSize, windowTime, scheduler); },
@@ -5223,6 +5227,30 @@ var ModuleEventLevel;
5223
5227
  * this is the interface which is returned after enabling a module
5224
5228
  */
5225
5229
  class BaseModuleProvider {
5230
+ /**
5231
+ * Custom instanceof check for module providers.
5232
+ * Determines if an object is considered an instance of BaseModuleProvider
5233
+ * by validating the structure and ensuring the version is a valid SemanticVersion
5234
+ * and dispose is a function.
5235
+ *
5236
+ * @param instance - The object to check
5237
+ * @returns True if the object has valid structure and property types, false otherwise
5238
+ */
5239
+ static [Symbol.hasInstance](instance) {
5240
+ const hasStructure = instance !== null &&
5241
+ typeof instance === 'object' &&
5242
+ // Use 'in' operator to check prototype chain, allowing for duck-typing
5243
+ // where inherited properties are acceptable for instanceof checks
5244
+ 'version' in instance &&
5245
+ 'dispose' in instance;
5246
+ if (hasStructure) {
5247
+ const obj = instance;
5248
+ const version = semverExports.coerce(String(obj.version));
5249
+ const dispose = obj.dispose;
5250
+ return !!version && typeof dispose === 'function';
5251
+ }
5252
+ return false;
5253
+ }
5226
5254
  #version;
5227
5255
  #subscriptions;
5228
5256
  get version() {
@@ -5249,7 +5277,7 @@ class BaseModuleProvider {
5249
5277
  }
5250
5278
 
5251
5279
  // Generated by genversion.
5252
- const version$5 = '5.0.3';
5280
+ const version$7 = '5.0.4';
5253
5281
 
5254
5282
  /* eslint-disable @typescript-eslint/no-explicit-any */
5255
5283
  /**
@@ -5270,8 +5298,13 @@ class RequiredModuleTimeoutError extends Error {
5270
5298
  * @template TRef - Reference type.
5271
5299
  */
5272
5300
  class ModulesConfigurator {
5301
+ /**
5302
+ * The class name used for event naming. This static property ensures
5303
+ * the name is preserved through compilation and minification.
5304
+ */
5305
+ static className = 'ModulesConfigurator';
5273
5306
  get version() {
5274
- return version$5;
5307
+ return version$7;
5275
5308
  }
5276
5309
  // Buffer up to 100 events to prevent memory leaks while ensuring telemetry can capture
5277
5310
  // module events during configuration. Telemetry attaches via mapConfiguratorEvents and
@@ -5446,7 +5479,7 @@ class ModulesConfigurator {
5446
5479
  this.#event$.next({
5447
5480
  ...event,
5448
5481
  // Prefix the event name with the configurator class name
5449
- name: `${this.constructor.name}::${nameParts[nameParts.length - 1]}`,
5482
+ name: `${this.constructor.className}::${nameParts[nameParts.length - 1]}`,
5450
5483
  });
5451
5484
  }
5452
5485
  /**
@@ -7925,7 +7958,7 @@ class Doc {
7925
7958
  }
7926
7959
  }
7927
7960
 
7928
- const version$4 = {
7961
+ const version$6 = {
7929
7962
  major: 4,
7930
7963
  minor: 1,
7931
7964
  patch: 11,
@@ -7936,7 +7969,7 @@ const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
7936
7969
  inst ?? (inst = {});
7937
7970
  inst._zod.def = def; // set _def property
7938
7971
  inst._zod.bag = inst._zod.bag || {}; // initialize _bag object
7939
- inst._zod.version = version$4;
7972
+ inst._zod.version = version$6;
7940
7973
  const checks = [...(inst._zod.def.checks ?? [])];
7941
7974
  // if inst is itself a checks.$ZodCheck, run it as a check
7942
7975
  if (inst._zod.traits.has("$ZodCheck")) {
@@ -17505,7 +17538,7 @@ var index = /*#__PURE__*/Object.freeze({
17505
17538
  toJSONSchema: toJSONSchema,
17506
17539
  treeifyError: treeifyError,
17507
17540
  util: util,
17508
- version: version$4
17541
+ version: version$6
17509
17542
  });
17510
17543
 
17511
17544
  const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
@@ -19101,6 +19134,9 @@ class HttpClientConfigurator {
19101
19134
  }
19102
19135
  }
19103
19136
 
19137
+ // Generated by genversion.
19138
+ const version$5 = '7.0.3';
19139
+
19104
19140
  /**
19105
19141
  * Exception thrown when a client cannot be found.
19106
19142
  *
@@ -19129,7 +19165,7 @@ const isURL = (url) => {
19129
19165
  * The `HttpClientProvider` class is responsible for managing HTTP client instances and their configuration.
19130
19166
  * It provides methods to check if a client is configured, create new client instances, and create custom client instances.
19131
19167
  */
19132
- class HttpClientProvider {
19168
+ class HttpClientProvider extends BaseModuleProvider {
19133
19169
  config;
19134
19170
  /**
19135
19171
  * Gets the default HTTP request handler for the HTTP client provider.
@@ -19139,6 +19175,10 @@ class HttpClientProvider {
19139
19175
  return this.config.defaultHttpRequestHandler;
19140
19176
  }
19141
19177
  constructor(config) {
19178
+ super({
19179
+ version: version$5,
19180
+ config,
19181
+ });
19142
19182
  this.config = config;
19143
19183
  }
19144
19184
  /**
@@ -19962,7 +20002,7 @@ const configureHttpClient = (name, args) => ({
19962
20002
  var MsalModuleVersion;
19963
20003
  (function (MsalModuleVersion) {
19964
20004
  MsalModuleVersion["V2"] = "v2";
19965
- MsalModuleVersion["Latest"] = "5.1.0";
20005
+ MsalModuleVersion["Latest"] = "5.1.1";
19966
20006
  })(MsalModuleVersion || (MsalModuleVersion = {}));
19967
20007
 
19968
20008
  const VersionSchema = z.string().transform((x) => String(semver.coerce(x)));
@@ -21524,7 +21564,7 @@ var Logger = /** @class */ (function () {
21524
21564
  /*! @azure/msal-common v13.3.3 2024-06-06 */
21525
21565
  /* eslint-disable header/header */
21526
21566
  var name$1 = "@azure/msal-common";
21527
- var version$3 = "13.3.3";
21567
+ var version$4 = "13.3.3";
21528
21568
 
21529
21569
  /*! @azure/msal-common v13.3.3 2024-06-06 */
21530
21570
  /*
@@ -22358,7 +22398,7 @@ var CacheManager = /** @class */ (function () {
22358
22398
  function CacheManager(clientId, cryptoImpl, logger) {
22359
22399
  this.clientId = clientId;
22360
22400
  this.cryptoImpl = cryptoImpl;
22361
- this.commonLogger = logger.clone(name$1, version$3);
22401
+ this.commonLogger = logger.clone(name$1, version$4);
22362
22402
  }
22363
22403
  /**
22364
22404
  * Returns all accounts in cache
@@ -23447,7 +23487,7 @@ var DEFAULT_NETWORK_IMPLEMENTATION = {
23447
23487
  };
23448
23488
  var DEFAULT_LIBRARY_INFO = {
23449
23489
  sku: Constants.SKU,
23450
- version: version$3,
23490
+ version: version$4,
23451
23491
  cpu: Constants.EMPTY_STRING,
23452
23492
  os: Constants.EMPTY_STRING
23453
23493
  };
@@ -24158,7 +24198,7 @@ var BaseClient = /** @class */ (function () {
24158
24198
  // Set the configuration
24159
24199
  this.config = buildClientConfiguration(configuration);
24160
24200
  // Initialize the logger
24161
- this.logger = new Logger(this.config.loggerOptions, name$1, version$3);
24201
+ this.logger = new Logger(this.config.loggerOptions, name$1, version$4);
24162
24202
  // Initialize crypto
24163
24203
  this.cryptoUtils = this.config.cryptoInterface;
24164
24204
  // Initialize storage interface
@@ -30804,7 +30844,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
30804
30844
  /*! @azure/msal-browser v2.39.0 2024-06-06 */
30805
30845
  /* eslint-disable header/header */
30806
30846
  var name = "@azure/msal-browser";
30807
- var version$2 = "2.39.0";
30847
+ var version$3 = "2.39.0";
30808
30848
 
30809
30849
  /*! @azure/msal-browser v2.39.0 2024-06-06 */
30810
30850
 
@@ -31224,7 +31264,7 @@ var BaseInteractionClient = /** @class */ (function () {
31224
31264
  this.navigationClient = navigationClient;
31225
31265
  this.nativeMessageHandler = nativeMessageHandler;
31226
31266
  this.correlationId = correlationId || this.browserCrypto.createNewGuid();
31227
- this.logger = logger.clone(BrowserConstants.MSAL_SKU, version$2, this.correlationId);
31267
+ this.logger = logger.clone(BrowserConstants.MSAL_SKU, version$3, this.correlationId);
31228
31268
  this.performanceClient = performanceClient;
31229
31269
  }
31230
31270
  BaseInteractionClient.prototype.clearCacheOnLogout = function (account) {
@@ -31586,7 +31626,7 @@ var StandardInteractionClient = /** @class */ (function (_super) {
31586
31626
  serverTelemetryManager: serverTelemetryManager,
31587
31627
  libraryInfo: {
31588
31628
  sku: BrowserConstants.MSAL_SKU,
31589
- version: version$2,
31629
+ version: version$3,
31590
31630
  cpu: Constants.EMPTY_STRING,
31591
31631
  os: Constants.EMPTY_STRING
31592
31632
  },
@@ -36675,7 +36715,7 @@ var ClientApplication = /** @class */ (function () {
36675
36715
  this.config = buildConfiguration(configuration, this.isBrowserEnvironment);
36676
36716
  this.initialized = false;
36677
36717
  // Initialize logger
36678
- this.logger = new Logger(this.config.system.loggerOptions, name, version$2);
36718
+ this.logger = new Logger(this.config.system.loggerOptions, name, version$3);
36679
36719
  // Initialize the network module class.
36680
36720
  this.networkClient = this.config.system.networkClient;
36681
36721
  // Initialize the navigation client class.
@@ -36686,8 +36726,8 @@ var ClientApplication = /** @class */ (function () {
36686
36726
  this.hybridAuthCodeResponses = new Map();
36687
36727
  // Initialize performance client
36688
36728
  this.performanceClient = this.isBrowserEnvironment ?
36689
- new BrowserPerformanceClient(this.config.auth.clientId, this.config.auth.authority, this.logger, name, version$2, this.config.telemetry.application, this.config.system.cryptoOptions) :
36690
- new StubPerformanceClient(this.config.auth.clientId, this.config.auth.authority, this.logger, name, version$2, this.config.telemetry.application);
36729
+ new BrowserPerformanceClient(this.config.auth.clientId, this.config.auth.authority, this.logger, name, version$3, this.config.telemetry.application, this.config.system.cryptoOptions) :
36730
+ new StubPerformanceClient(this.config.auth.clientId, this.config.auth.authority, this.logger, name, version$3, this.config.telemetry.application);
36691
36731
  // Initialize the crypto class.
36692
36732
  this.browserCrypto = this.isBrowserEnvironment ? new CryptoOps(this.logger, this.performanceClient, this.config.system.cryptoOptions) : DEFAULT_CRYPTO_IMPLEMENTATION;
36693
36733
  this.eventHandler = new EventHandler(this.logger, this.browserCrypto);
@@ -38344,12 +38384,9 @@ function resolveVersion(version) {
38344
38384
  };
38345
38385
  }
38346
38386
 
38347
- class AuthProvider {
38387
+ class AuthProvider extends BaseModuleProvider {
38348
38388
  _config;
38349
38389
  #client;
38350
- get version() {
38351
- return new SemanticVersion(MsalModuleVersion.Latest);
38352
- }
38353
38390
  get defaultAccount() {
38354
38391
  return this.client.account;
38355
38392
  }
@@ -38358,6 +38395,10 @@ class AuthProvider {
38358
38395
  return this._config;
38359
38396
  }
38360
38397
  constructor(_config) {
38398
+ super({
38399
+ version: MsalModuleVersion.Latest,
38400
+ config: _config,
38401
+ });
38361
38402
  this._config = _config;
38362
38403
  this.#client = this.createClient();
38363
38404
  }
@@ -38420,14 +38461,16 @@ class AuthProvider {
38420
38461
  }
38421
38462
  }
38422
38463
  _createProxyProvider_v2() {
38423
- return new Proxy(this, {
38464
+ const proxy = new Proxy(this, {
38424
38465
  get: (target, prop) => {
38425
38466
  switch (prop) {
38426
38467
  case 'version':
38427
38468
  return target.version;
38469
+ case 'dispose':
38470
+ return target.dispose.bind(target);
38428
38471
  case 'client':
38429
38472
  return target.client;
38430
- // @ts-expect-error - this is deprecated since version 5.0.1
38473
+ // @ts-expect-error this is deprecated since version 5.0.1
38431
38474
  case 'defaultClient':
38432
38475
  console.warn('defaultClient is deprecated, use client instead');
38433
38476
  return target.client;
@@ -38448,6 +38491,7 @@ class AuthProvider {
38448
38491
  }
38449
38492
  },
38450
38493
  });
38494
+ return proxy;
38451
38495
  }
38452
38496
  }
38453
38497
 
@@ -41838,10 +41882,17 @@ class ServiceDiscoveryConfigurator extends BaseConfigBuilder {
41838
41882
  }
41839
41883
  }
41840
41884
 
41841
- class ServiceDiscoveryProvider {
41885
+ // Generated by genversion.
41886
+ const version$2 = '9.0.3';
41887
+
41888
+ class ServiceDiscoveryProvider extends BaseModuleProvider {
41842
41889
  config;
41843
41890
  _http;
41844
41891
  constructor(config, _http) {
41892
+ super({
41893
+ version: version$2,
41894
+ config,
41895
+ });
41845
41896
  this.config = config;
41846
41897
  this._http = _http;
41847
41898
  }
@@ -42177,14 +42228,21 @@ const mergeTelemetryItem = (target, source) => {
42177
42228
  * @see ITelemetryConfigurator
42178
42229
  */
42179
42230
  class TelemetryConfigurator extends BaseConfigBuilder {
42180
- #adapters = {};
42231
+ #adaptersCallbacks = {};
42181
42232
  #metadata = [];
42182
42233
  constructor() {
42183
42234
  super();
42184
- this._set('adapters', async () => Object.values(this.#adapters));
42235
+ // Configure async adapter resolution using mergeMap to handle Promise/Observable adapter factories
42236
+ this._set('adapters', (args) => {
42237
+ return from(Object.entries(this.#adaptersCallbacks)).pipe(mergeMap(([identifier, adapterFn]) => from(adapterFn(args)).pipe(filter((adapter) => !!adapter), map$1((adapter) => [identifier, adapter]))), scan((acc, [identifier, adapter]) => {
42238
+ acc[identifier] = adapter;
42239
+ return acc;
42240
+ }, {}), defaultIfEmpty({}), shareReplay({ bufferSize: 1, refCount: true }));
42241
+ });
42242
+ // Configure metadata merging - handles multiple sync/async metadata sources
42185
42243
  this._set('metadata', async () => {
42186
42244
  const metadataItems = this.#metadata;
42187
- return (...args) => from(metadataItems).pipe(concatMap((metadata) => toObservable(metadata, ...args)), scan((acc, current) => mergeMetadata(acc, current) ?? {}, {}), last(), shareReplay(1));
42245
+ return (...args) => from(metadataItems).pipe(concatMap((metadata) => toObservable(metadata, ...args)), scan((acc, current) => mergeMetadata(acc, current) ?? {}, {}), last(), shareReplay({ bufferSize: 1, refCount: true }));
42188
42246
  });
42189
42247
  }
42190
42248
  /**
@@ -42193,8 +42251,17 @@ class TelemetryConfigurator extends BaseConfigBuilder {
42193
42251
  * @param adapter - The telemetry adapter to be added. The adapter's identifier is used as the key.
42194
42252
  * @returns The current instance of the configurator for method chaining.
42195
42253
  */
42196
- setAdapter(adapter) {
42197
- this.#adapters[String(adapter.identifier)] = adapter;
42254
+ setAdapter(identifier, adapter) {
42255
+ return this.configureAdapter(identifier, async () => adapter);
42256
+ }
42257
+ /**
42258
+ * Configures a telemetry adapter with the configurator.
42259
+ *
42260
+ * @param adapter - A callback function that returns a telemetry adapter instance
42261
+ * @returns The current instance for method chaining
42262
+ */
42263
+ configureAdapter(identifier, adapterFn) {
42264
+ this.#adaptersCallbacks[identifier] = adapterFn;
42198
42265
  return this;
42199
42266
  }
42200
42267
  /**
@@ -42237,7 +42304,7 @@ class TelemetryConfigurator extends BaseConfigBuilder {
42237
42304
  }
42238
42305
 
42239
42306
  // Generated by genversion.
42240
- const version$1 = '4.2.0';
42307
+ const version$1 = '4.3.0';
42241
42308
 
42242
42309
  /**
42243
42310
  * Enum representing the severity levels of telemetry items.
@@ -44513,7 +44580,7 @@ const applyMetadata = (metadata, args) => {
44513
44580
  class TelemetryProvider extends BaseModuleProvider {
44514
44581
  #items = new Subject();
44515
44582
  #initialized = false;
44516
- #adapters = [];
44583
+ #adapters = {};
44517
44584
  #defaultScope;
44518
44585
  #eventProvider;
44519
44586
  get items() {
@@ -44532,7 +44599,7 @@ class TelemetryProvider extends BaseModuleProvider {
44532
44599
  }
44533
44600
  constructor(config, deps) {
44534
44601
  super({ version: version$1, config });
44535
- this.#adapters = config?.adapters ?? [];
44602
+ this.#adapters = config?.adapters ?? {};
44536
44603
  this.#metadata = config?.metadata;
44537
44604
  this.#defaultScope = config?.defaultScope ?? [];
44538
44605
  this.#eventProvider = deps?.event;
@@ -44587,14 +44654,15 @@ class TelemetryProvider extends BaseModuleProvider {
44587
44654
  */
44588
44655
  async _initializeAdapters() {
44589
44656
  // Initialize all adapters, do it in parallel
44590
- const initializationPromises = this.#adapters.map((adapter) => adapter.initialize());
44657
+ const adapterEntries = Object.entries(this.#adapters);
44658
+ const initializationPromises = adapterEntries.map(([identifier, adapter]) => adapter.initialize());
44591
44659
  // Wait for all adapters to settle (either resolve or reject)
44592
44660
  const results = await Promise.allSettled(initializationPromises);
44593
44661
  // Check each result and dispatch errors for failed initializations
44594
44662
  for (const [index, result] of results.entries()) {
44595
44663
  if (result.status === 'rejected') {
44596
- const adapter = this.#adapters[index];
44597
- this._dispatchError(new Error(`Failed to initialize telemetry adapter "${adapter.identifier}"`, {
44664
+ const [identifier] = adapterEntries[index];
44665
+ this._dispatchError(new Error(`Failed to initialize telemetry adapter "${identifier}"`, {
44598
44666
  cause: result.reason,
44599
44667
  }));
44600
44668
  }
@@ -44614,14 +44682,14 @@ class TelemetryProvider extends BaseModuleProvider {
44614
44682
  }
44615
44683
  return this.#items.subscribe((item) => {
44616
44684
  // Iterate through all registered adapters
44617
- for (const adapter of this.#adapters) {
44685
+ for (const [identifier, adapter] of Object.entries(this.#adapters)) {
44618
44686
  try {
44619
44687
  // Let the adapter process the telemetry item
44620
44688
  Promise.resolve(adapter.processItem(item));
44621
44689
  }
44622
44690
  catch (error) {
44623
44691
  // If processing fails, dispatch an error event
44624
- this._dispatchError(new Error(`Failed to process telemetry item with adapter "${adapter.identifier}"`, {
44692
+ this._dispatchError(new Error(`Failed to process telemetry item with adapter "${identifier}"`, {
44625
44693
  cause: error,
44626
44694
  }));
44627
44695
  }
@@ -44784,7 +44852,25 @@ class TelemetryProvider extends BaseModuleProvider {
44784
44852
  * @returns The telemetry adapter corresponding to the given identifier, or `undefined` if not found.
44785
44853
  */
44786
44854
  getAdapter(identifier) {
44787
- return this.#adapters.find((adapter) => adapter.identifier === identifier);
44855
+ const adapter = this.#adapters[identifier];
44856
+ if (!adapter) {
44857
+ this.trackException({
44858
+ name: 'TelemetryAdapterNotFound',
44859
+ exception: new Error(`Telemetry adapter "${identifier}" not found`),
44860
+ metadata: {
44861
+ identifier,
44862
+ },
44863
+ });
44864
+ }
44865
+ return adapter;
44866
+ }
44867
+ /**
44868
+ * Check if a telemetry adapter exists by its identifier.
44869
+ * @param identifier - The unique identifier of the telemetry adapter to check.
44870
+ * @returns True if the adapter exists, false otherwise.
44871
+ */
44872
+ hasAdapter(identifier) {
44873
+ return identifier in this.#adapters;
44788
44874
  }
44789
44875
  }
44790
44876
 
@@ -44906,7 +44992,6 @@ configurator, options) => {
44906
44992
  * @implements {ITelemetryAdapter}
44907
44993
  *
44908
44994
  * @remarks
44909
- * - The adapter can be identified by a unique `identifier`.
44910
44995
  * - An optional filter function can be provided to determine which telemetry items should be processed.
44911
44996
  *
44912
44997
  * @example
@@ -44917,25 +45002,14 @@ configurator, options) => {
44917
45002
  * }
44918
45003
  */
44919
45004
  class BaseTelemetryAdapter {
44920
- #identifier;
44921
45005
  #filter;
44922
45006
  #initialized = false;
44923
- /**
44924
- * Gets the unique identifier for this telemetry adapter instance.
44925
- *
44926
- * @returns The identifier as a string.
44927
- */
44928
- get identifier() {
44929
- return this.#identifier;
44930
- }
44931
45007
  /**
44932
45008
  * Creates a new instance of the TelemetryAdapter.
44933
45009
  *
44934
- * @param identifier - A unique string identifier for this adapter instance.
44935
45010
  * @param filter - An optional function to filter telemetry items. If provided, only items for which the function returns true will be processed.
44936
45011
  */
44937
- constructor(identifier, filter) {
44938
- this.#identifier = identifier;
45012
+ constructor(filter) {
44939
45013
  this.#filter = filter;
44940
45014
  }
44941
45015
  /**
@@ -45010,7 +45084,7 @@ class ConsoleAdapter extends BaseTelemetryAdapter {
45010
45084
  * @param config - Optional configuration for the adapter
45011
45085
  */
45012
45086
  constructor(config) {
45013
- super(config?.identifier ?? ConsoleAdapter.Identifier, config?.filter);
45087
+ super(config?.filter);
45014
45088
  this.#title = config?.title ?? 'Fusion';
45015
45089
  }
45016
45090
  /**
@@ -45303,7 +45377,7 @@ async function registerServiceWorker(framework) {
45303
45377
  }
45304
45378
 
45305
45379
  // Generated by genversion.
45306
- const version = '1.2.2';
45380
+ const version = '2.0.0';
45307
45381
 
45308
45382
  // Allow dynamic import without vite
45309
45383
  const importWithoutVite = (path) => import(/* @vite-ignore */ path);
@@ -45334,15 +45408,10 @@ enableTelemetry(configurator, {
45334
45408
  attachConfiguratorEvents: true,
45335
45409
  configure: (builder) => {
45336
45410
  const consoleLevel = Number(import.meta.env.FUSION_SPA_TELEMETRY_CONSOLE_LEVEL ?? TelemetryLevel.Information);
45337
- if (Number.isNaN(consoleLevel)) {
45338
- // If environment variable is set but invalid, log all telemetry
45339
- builder.setAdapter(new ConsoleAdapter());
45340
- }
45341
- else {
45342
- builder.setAdapter(new ConsoleAdapter({
45343
- filter: (item) => item.level >= consoleLevel,
45344
- }));
45345
- }
45411
+ const consoleAdapter = new ConsoleAdapter({
45412
+ filter: Number.isNaN(consoleLevel) ? undefined : (item) => item.level >= consoleLevel,
45413
+ });
45414
+ builder.setAdapter('console', consoleAdapter);
45346
45415
  builder.setMetadata(({ modules }) => {
45347
45416
  const metadata = {
45348
45417
  fusion: {