@komaci/prefetch 256.0.1 → 260.0.401

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.
@@ -4,6 +4,7 @@ import { setupRouterMock, createPageRef, setupPrefetch, defaultRoutingResult, mo
4
4
  jest.mock('lwr/router');
5
5
  import * as ResolverApi from 'komaci/resolver';
6
6
  import { getInstrumentation } from 'o11y/client';
7
+ import { RESOLVER_ENV_CONFIG_DEFAULTS } from 'komaci/resolver';
7
8
  const mockInstrumentation = getInstrumentation('komaci');
8
9
  beforeEach(() => {
9
10
  jest.clearAllMocks();
@@ -89,6 +90,7 @@ describe('prefetchService', () => {
89
90
  WireTimeout: 180 * 1000,
90
91
  WireSlowRunningTimeout: 30 * 1000,
91
92
  skipUniqueCheck: true,
93
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
92
94
  }, expect.anything());
93
95
  expect(mockGetBulkAdgResolver.mock.calls[0][1]).toHaveLength(1);
94
96
  });
@@ -411,6 +413,7 @@ describe('prefetchService', () => {
411
413
  MaxResolutionDepth: 512,
412
414
  WireTimeout: 180 * 1000,
413
415
  WireSlowRunningTimeout: 30 * 1000,
416
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
414
417
  }, expect.anything());
415
418
  expect(mockGetBulkAdgResolver.mock.calls[0][1]).toHaveLength(2);
416
419
  });
@@ -459,6 +462,7 @@ describe('prefetchService', () => {
459
462
  MaxResolutionDepth: 512,
460
463
  WireTimeout: 180 * 1000,
461
464
  WireSlowRunningTimeout: 30 * 1000,
465
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
462
466
  }, expect.anything());
463
467
  expect(onAddressProcessed).toHaveBeenCalledTimes(2);
464
468
  expect(onAddressProcessed).toHaveBeenNthCalledWith(1, expect.objectContaining({
@@ -513,6 +517,7 @@ describe('prefetchService', () => {
513
517
  MaxResolutionDepth: 512,
514
518
  WireTimeout: 180 * 1000,
515
519
  WireSlowRunningTimeout: 30 * 1000,
520
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
516
521
  }, expect.anything());
517
522
  expect(mockGetBulkAdgResolver).toHaveBeenNthCalledWith(2, adgFunction2, expect.arrayContaining([
518
523
  expect.objectContaining({
@@ -527,6 +532,7 @@ describe('prefetchService', () => {
527
532
  MaxResolutionDepth: 512,
528
533
  WireTimeout: 180 * 1000,
529
534
  WireSlowRunningTimeout: 30 * 1000,
535
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
530
536
  }, expect.anything());
531
537
  });
532
538
  });
@@ -597,6 +603,7 @@ describe('prefetchService', () => {
597
603
  MaxResolutionDepth: 512,
598
604
  WireTimeout: 180 * 1000,
599
605
  WireSlowRunningTimeout: 30 * 1000,
606
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
600
607
  }, expect.anything());
601
608
  expect(onStateChanged).toHaveBeenCalledTimes(2);
602
609
  expect(onAddressProcessed).toHaveBeenCalledTimes(2);
@@ -662,6 +669,7 @@ describe('prefetchService', () => {
662
669
  MaxResolutionDepth: 512,
663
670
  WireTimeout: 180 * 1000,
664
671
  WireSlowRunningTimeout: 30 * 1000,
672
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
665
673
  }, expect.anything());
666
674
  expect(mockGetBulkAdgResolver).toHaveBeenCalledWith(adgFunction1, expect.arrayContaining([
667
675
  expect.objectContaining({
@@ -676,6 +684,7 @@ describe('prefetchService', () => {
676
684
  MaxResolutionDepth: 512,
677
685
  WireTimeout: 180 * 1000,
678
686
  WireSlowRunningTimeout: 30 * 1000,
687
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
679
688
  }, expect.anything());
680
689
  expect(mockGetBulkAdgResolver.mock.calls[0][1]).toHaveLength(1);
681
690
  expect(mockGetBulkAdgResolver.mock.calls[1][1]).toHaveLength(1);
@@ -711,6 +720,7 @@ describe('prefetchService', () => {
711
720
  MaxResolutionDepth: 512,
712
721
  WireTimeout: 180 * 1000,
713
722
  WireSlowRunningTimeout: 30 * 1000,
723
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
714
724
  }, expect.anything());
715
725
  expect(mockGetBulkAdgResolver).toHaveBeenCalledWith(adgFunction2, expect.arrayContaining([
716
726
  expect.objectContaining({
@@ -728,6 +738,7 @@ describe('prefetchService', () => {
728
738
  MaxResolutionDepth: 512,
729
739
  WireTimeout: 180 * 1000,
730
740
  WireSlowRunningTimeout: 30 * 1000,
741
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
731
742
  }, expect.anything());
732
743
  expect(mockGetBulkAdgResolver.mock.calls[0][1]).toHaveLength(2);
733
744
  expect(mockGetBulkAdgResolver.mock.calls[1][1]).toHaveLength(2);
@@ -1,6 +1,6 @@
1
1
  import { ERROR_PREFIX, PrefetchStatusStates as STATE, } from 'komaci/prefetchTypes';
2
2
  import { getInstrumentation } from 'o11y/client';
3
- import { getBulkAdgResolver } from 'komaci/resolver';
3
+ import { getBulkAdgResolver, RESOLVER_ENV_CONFIG_DEFAULTS } from 'komaci/resolver';
4
4
  import { InstrumentedAction } from 'komaci/instrumentedAction';
5
5
  import { generateId } from 'komaci/utils';
6
6
  import { bulkResolveSchema, prefetchSchema, prefetchServiceSchema, totalRoutingSchema, } from 'o11y_schema/sf_komaci';
@@ -280,6 +280,7 @@ export class PrefetchService {
280
280
  usePromisifiedHold: this.config.usePromisifiedHold,
281
281
  WireCtx: this.config.WireCtx,
282
282
  skipUniqueCheck: this.config.skipUniqueCheck,
283
+ asyncNodeMaxConcurrency: RESOLVER_ENV_CONFIG_DEFAULTS.asyncNodeMaxConcurrency,
283
284
  };
284
285
  bulkResolutionGroup.bulkResolver = getBulkAdgResolver(adgFn, adgInputs, bulkResolutionStatusCbs, environmentCfg, { prefetchId: this._prefetchId, bulkResolverId: bulkResolverId });
285
286
  this.resolutionGroups.push(bulkResolutionGroup);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@komaci/prefetch",
3
- "version": "256.0.1",
3
+ "version": "260.0.401",
4
4
  "description": "Komaci prefetch service.",
5
5
  "homepage": "https://komaci.dev/",
6
6
  "repository": {
@@ -26,14 +26,14 @@
26
26
  "build/**/*.d.ts"
27
27
  ],
28
28
  "dependencies": {
29
- "@komaci/module-shared": "256.0.1",
30
- "@komaci/resolver": "256.0.1",
29
+ "@komaci/module-shared": "258.0.0",
30
+ "@komaci/resolver": "258.0.0",
31
31
  "@lwrjs/router": "0.6.0-alpha.15",
32
32
  "o11y": "^244.0.0",
33
33
  "o11y_schema": "244.21.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@komaci/types": "256.0.1",
36
+ "@komaci/types": "258.0.0",
37
37
  "wait-for-expect": "^3.0.2"
38
38
  }
39
39
  }