nirs4all 0.2.7 → 0.2.8
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 +8 -1
- package/package.json +7 -3
- package/src/index.js +3 -3
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ application lives in `nirs4all-web`; this directory is for the reusable
|
|
|
11
11
|
JavaScript/WASM binding and package metadata.
|
|
12
12
|
|
|
13
13
|
The portable execution API delegates Kennard-Stone, SNV, Savitzky-Golay, and
|
|
14
|
-
PLS component sweeps to `@nirs4all/methods
|
|
14
|
+
PLS component sweeps to `@nirs4all/methods`:
|
|
15
15
|
|
|
16
16
|
- `runPortablePipeline(source, dataset)` parses the shared nirs4all JSON/YAML
|
|
17
17
|
syntax, executes the portable subset, and returns parity-checkable split,
|
|
@@ -24,3 +24,10 @@ PLS component sweeps to `@nirs4all/methods-wasm`:
|
|
|
24
24
|
Savitzky-Golay defaults to `mode: "interp"` for full nirs4all parity and
|
|
25
25
|
preserves explicit methods-backed modes (`mirror`, `constant`, `nearest`,
|
|
26
26
|
`wrap`, `interp`) plus `cval` in the serialized preprocessing chain.
|
|
27
|
+
|
|
28
|
+
For a browser-only custom host, pair this package with `nirs4all-ui`: keep
|
|
29
|
+
runtime loading and portable execution in `nirs4all`, and consume shared React
|
|
30
|
+
components / view-model helpers / brand assets from `nirs4all-ui`. The
|
|
31
|
+
reference composition lives in `../../nirs4all-web/studio-lite`, whose contract
|
|
32
|
+
tests exercise `runPortablePipeline()` / `predictPortablePipeline()` together
|
|
33
|
+
with the shared UI package in a no-backend environment.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirs4all",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Portable nirs4all aggregate binding for JavaScript and WASM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@nirs4all/datasets-wasm": "*",
|
|
48
48
|
"@nirs4all/formats-wasm": "*",
|
|
49
49
|
"@nirs4all/io-wasm": "*",
|
|
50
|
-
"@nirs4all/methods
|
|
50
|
+
"@nirs4all/methods": "*",
|
|
51
51
|
"@nirs4all/nirs4all-datasets-wasm": "*",
|
|
52
52
|
"dag-ml-data-wasm": "*",
|
|
53
53
|
"dag-ml-wasm": "*",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@nirs4all/io-wasm": {
|
|
65
65
|
"optional": true
|
|
66
66
|
},
|
|
67
|
-
"@nirs4all/methods
|
|
67
|
+
"@nirs4all/methods": {
|
|
68
68
|
"optional": true
|
|
69
69
|
},
|
|
70
70
|
"@nirs4all/nirs4all-datasets-wasm": {
|
|
@@ -82,5 +82,9 @@
|
|
|
82
82
|
"dag-ml-data-wasm": {
|
|
83
83
|
"optional": true
|
|
84
84
|
}
|
|
85
|
+
},
|
|
86
|
+
"publishConfig": {
|
|
87
|
+
"access": "public",
|
|
88
|
+
"provenance": true
|
|
85
89
|
}
|
|
86
90
|
}
|
package/src/index.js
CHANGED
|
@@ -28,7 +28,7 @@ export const upstreams = Object.freeze([
|
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
key: 'methods',
|
|
31
|
-
candidates: ['@nirs4all/methods
|
|
31
|
+
candidates: ['@nirs4all/methods'],
|
|
32
32
|
role: 'Portable C ABI PLS/NIRS numerical engine',
|
|
33
33
|
},
|
|
34
34
|
]);
|
|
@@ -213,8 +213,8 @@ function importUpstreamCandidate(candidate) {
|
|
|
213
213
|
return import('@nirs4all/datasets-wasm');
|
|
214
214
|
case '@nirs4all/nirs4all-datasets-wasm':
|
|
215
215
|
return import('@nirs4all/nirs4all-datasets-wasm');
|
|
216
|
-
case '@nirs4all/methods
|
|
217
|
-
return import('@nirs4all/methods
|
|
216
|
+
case '@nirs4all/methods':
|
|
217
|
+
return import('@nirs4all/methods');
|
|
218
218
|
default:
|
|
219
219
|
return import(candidate);
|
|
220
220
|
}
|