@flighthq/node 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/node`. The `@flighth
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/node@0.5.1-next.903.f434bc2](https://github.com/flighthq/flight/tree/f434bc233778d75aeea61995df3a8cfaec459a85/packages/node)
17
- - [License](https://github.com/flighthq/flight/blob/f434bc233778d75aeea61995df3a8cfaec459a85/LICENSE.md)
16
+ - [Source for @flighthq/node@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/node)
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/node",
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,14 +38,14 @@
38
38
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@flighthq/adjustments": "0.5.1-next.903.f434bc2",
42
- "@flighthq/entity": "0.5.1-next.903.f434bc2",
43
- "@flighthq/geometry": "0.5.1-next.903.f434bc2",
44
- "@flighthq/log": "0.5.1-next.903.f434bc2",
45
- "@flighthq/materials": "0.5.1-next.903.f434bc2",
46
- "@flighthq/math": "0.5.1-next.903.f434bc2",
47
- "@flighthq/signals": "0.5.1-next.903.f434bc2",
48
- "@flighthq/types": "0.5.1-next.903.f434bc2"
41
+ "@flighthq/adjustments": "0.5.1-next.905.5fbf787",
42
+ "@flighthq/entity": "0.5.1-next.905.5fbf787",
43
+ "@flighthq/geometry": "0.5.1-next.905.5fbf787",
44
+ "@flighthq/log": "0.5.1-next.905.5fbf787",
45
+ "@flighthq/materials": "0.5.1-next.905.5fbf787",
46
+ "@flighthq/math": "0.5.1-next.905.5fbf787",
47
+ "@flighthq/signals": "0.5.1-next.905.5fbf787",
48
+ "@flighthq/types": "0.5.1-next.905.5fbf787"
49
49
  },
50
50
  "devDependencies": {
51
51
  "typescript": "^5.3.0"
package/src/node.test.ts CHANGED
@@ -13,6 +13,7 @@ import {
13
13
  enableNodeSignals,
14
14
  getNodeRuntime,
15
15
  getNodeSignals,
16
+ initializeNodeSignals,
16
17
  setNodeEnabled,
17
18
  } from './node';
18
19
 
@@ -234,18 +235,9 @@ describe('getNodeSignals', () => {
234
235
  });
235
236
  });
236
237
 
237
- describe('setNodeEnabled', () => {
238
- it('sets enabled to false', () => {
239
- const node = createNode(NodeTestKind);
240
- setNodeEnabled(node, false);
241
- expect(node.enabled).toBe(false);
242
- });
243
-
244
- it('sets enabled back to true', () => {
245
- const node = createNode(NodeTestKind);
246
- setNodeEnabled(node, false);
247
- setNodeEnabled(node, true);
248
- expect(node.enabled).toBe(true);
238
+ describe('initializeNodeSignals', () => {
239
+ it('is the construction initializer of createNodeSignals', () => {
240
+ expect(typeof initializeNodeSignals).toBe('function');
249
241
  });
250
242
  });
251
243
 
@@ -274,3 +266,17 @@ function createGraphNodeTestRuntime(): NodeTestRuntime {
274
266
  obj.testRuntimeField = 'testRuntimeField';
275
267
  return obj;
276
268
  }
269
+ describe('setNodeEnabled', () => {
270
+ it('sets enabled to false', () => {
271
+ const node = createNode(NodeTestKind);
272
+ setNodeEnabled(node, false);
273
+ expect(node.enabled).toBe(false);
274
+ });
275
+
276
+ it('sets enabled back to true', () => {
277
+ const node = createNode(NodeTestKind);
278
+ setNodeEnabled(node, false);
279
+ setNodeEnabled(node, true);
280
+ expect(node.enabled).toBe(true);
281
+ });
282
+ });
@@ -13,6 +13,7 @@ import {
13
13
  forEachNodeOrderListEntry,
14
14
  getNodeOrderListEntrySortKey,
15
15
  hasNodeOrderListEntry,
16
+ initializeNodeOrderList,
16
17
  removeNodeOrderListEntry,
17
18
  setNodeOrderListEntry,
18
19
  setNodeOrderListEntryAbove,
@@ -431,6 +432,12 @@ describe('hasNodeOrderListEntry', () => {
431
432
  });
432
433
  });
433
434
 
435
+ describe('initializeNodeOrderList', () => {
436
+ it('is the construction initializer of createNodeOrderList', () => {
437
+ expect(typeof initializeNodeOrderList).toBe('function');
438
+ });
439
+ });
440
+
434
441
  describe('removeNodeOrderListEntry', () => {
435
442
  it('removes the entry and reports that it did', () => {
436
443
  const list = createNodeOrderList();
@@ -650,7 +657,6 @@ describe('setNodeOrderListFromNodeChildren', () => {
650
657
  expect(list.entryCount).toBe(0);
651
658
  });
652
659
  });
653
-
654
660
  describe('swapNodeOrderListEntries', () => {
655
661
  it('exchanges the sort keys of two entered nodes', () => {
656
662
  attachAll();
@@ -1,4 +1,4 @@
1
- import { createViewport, getViewportAspect } from './viewport';
1
+ import { createViewport, getViewportAspect, initializeViewport } from './viewport';
2
2
 
3
3
  describe('createViewport', () => {
4
4
  it('returns a zero rect at unit device-pixel ratio by default', () => {
@@ -29,3 +29,8 @@ describe('getViewportAspect', () => {
29
29
  expect(getViewportAspect(createViewport({ height: 0, width: 800 }))).toBe(1);
30
30
  });
31
31
  });
32
+ describe('initializeViewport', () => {
33
+ it('is the construction initializer of createViewport', () => {
34
+ expect(typeof initializeViewport).toBe('function');
35
+ });
36
+ });