@flighthq/loader 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787

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/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/loader`. The `@fligh
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/loader@0.5.1-next.903.f434bc2](https://github.com/flighthq/flight/tree/f434bc233778d75aeea61995df3a8cfaec459a85/packages/loader)
17
- - [License](https://github.com/flighthq/flight/blob/f434bc233778d75aeea61995df3a8cfaec459a85/LICENSE.md)
16
+ - [Source for @flighthq/loader@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/loader)
17
+ - [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/loader",
3
- "version": "0.5.1-next.903.f434bc2",
3
+ "version": "0.5.1-next.905.5fbf787",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,9 +38,9 @@
38
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@flighthq/entity": "0.5.1-next.903.f434bc2",
42
- "@flighthq/signals": "0.5.1-next.903.f434bc2",
43
- "@flighthq/types": "0.5.1-next.903.f434bc2"
41
+ "@flighthq/entity": "0.5.1-next.905.5fbf787",
42
+ "@flighthq/signals": "0.5.1-next.905.5fbf787",
43
+ "@flighthq/types": "0.5.1-next.905.5fbf787"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "^5.3.0"
@@ -6,16 +6,17 @@ import {
6
6
  createResourceLoader,
7
7
  disposeResourceLoader,
8
8
  enableResourceLoaderItemSignals,
9
- getResourceLoadItemStatus,
10
9
  getResourceLoadBytes,
11
10
  getResourceLoadCounts,
11
+ getResourceLoadItemStatus,
12
12
  getResourceLoadProgress,
13
+ initializeResourceLoader,
13
14
  pauseResourceLoad,
14
15
  queueResourceLoad,
15
16
  resetResourceLoader,
16
17
  resumeResourceLoad,
17
- setResourceLoaderConcurrency,
18
18
  setResourceLoadPriority,
19
+ setResourceLoaderConcurrency,
19
20
  startResourceLoad,
20
21
  } from './resourceLoader';
21
22
 
@@ -781,6 +782,12 @@ describe('getResourceLoadProgress', () => {
781
782
  });
782
783
  });
783
784
 
785
+ describe('initializeResourceLoader', () => {
786
+ it('is the construction initializer of createResourceLoader', () => {
787
+ expect(typeof initializeResourceLoader).toBe('function');
788
+ });
789
+ });
790
+
784
791
  describe('pauseResourceLoad', () => {
785
792
  it('stops dispatching new items', async () => {
786
793
  const loader = createResourceLoader({ maxConcurrent: 1 });
@@ -1397,7 +1404,6 @@ describe('weight-aware progress', () => {
1397
1404
  expect(progressValues[1]).toBeCloseTo(1.0);
1398
1405
  });
1399
1406
  });
1400
-
1401
1407
  describe('weighted progress across outcomes', () => {
1402
1408
  // The regression these pin: weightLoaded advanced only on success, so any batch containing a
1403
1409
  // failure, a cancellation, or a fail-fast skip left getResourceLoadProgress permanently short of 1