@saber-usa/node-common 1.7.17-alpha.1 → 1.7.18-alpha.1

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
@@ -2,6 +2,26 @@
2
2
 
3
3
  Common nodejs functions used across a number of saber's applications.
4
4
 
5
+ ## Bulk WASM propagation
6
+
7
+ `node-common` is the single conduit for all `satellite.js` propagation in the
8
+ Saber stack. As of v7, every primitive (`prop`, `propGeodetic`, the manual
9
+ LookAngles chain) and every high-value high-level helper (`getLeoRpoData`,
10
+ `getGeoRpoData`, `getLeoWaterfallData`, `getGeoShadowZones`) ships an
11
+ async, WASM-backed `*Bulk` sibling (`propBulk`, `propGeodeticBulk`,
12
+ `propLookAnglesBulk`, `getLeoRpoDataBulk`, `getGeoRpoDataBulk`,
13
+ `getLeoWaterfallDataBulk`, `getGeoShadowZonesBulk`) that batches the work
14
+ through `satellite.js`'s `BulkPropagator`. The original sync functions are
15
+ unchanged and still supported.
16
+
17
+ See [`docs/BULK_PROPAGATION.md`](docs/BULK_PROPAGATION.md) for the full
18
+ design rationale, lifecycle (lazy `getBulkRuntime` / eager `initBulkRuntime`
19
+ / shutdown `disposeBulkRuntime`), per-thread pipeline registry, the
20
+ measured break-even table (`benchmarks/benchmarkBulkPropagator.js`,
21
+ `npm run bench:wasmProp`), the documented satellite.js@7.0.0 lat/lon swap that
22
+ `propGeodeticBulk` un-swaps internally, and the `meanElements` semantic
23
+ gap on the WASM path.
24
+
5
25
  ## License
6
26
  AGPLv3
7
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saber-usa/node-common",
3
- "version": "1.7.17-alpha.1",
3
+ "version": "1.7.18-alpha.1",
4
4
  "description": "Common node functions for Saber",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -12,6 +12,9 @@
12
12
  "lint:fix": "eslint . --fix",
13
13
  "test": "jest --no-coverage --silent",
14
14
  "test:unit": "jest --coverage --runInBand --no-watch",
15
+ "test:wasmProp": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --config jest.config.wasmProp.js --no-coverage --silent --runInBand",
16
+ "test:all": "npm test && npm run test:wasmProp",
17
+ "bench:wasmProp": "node benchmarks/benchmarkBulkPropagator.js",
15
18
  "sonar": "sonar -Dsonar.host.url=http://localhost:9000"
16
19
  },
17
20
  "files": [
@@ -20,7 +23,7 @@
20
23
  "author": "Saber USA",
21
24
  "license": "ISC",
22
25
  "dependencies": {
23
- "@aws-sdk/client-s3": "^3.1034.0",
26
+ "@aws-sdk/client-s3": "^3.1036.0",
24
27
  "date-fns": "^4.1.0",
25
28
  "lodash": "4.18.1",
26
29
  "mathjs": "^15.2.0",
@@ -36,6 +39,7 @@
36
39
  "@eslint/js": "^10.0.1",
37
40
  "@jest/globals": "^30.3.0",
38
41
  "@sonar/scan": "^4.3.6",
42
+ "cross-env": "^10.1.0",
39
43
  "eslint": "^10.2.1",
40
44
  "eslint-plugin-jest": "^29.15.2",
41
45
  "globals": "^17.5.0",