sbmlsim-core 0.7.0 → 0.8.0
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 +2 -2
- package/package.json +1 -1
- package/panels.mjs +1 -1
- package/runtime/THIRD_PARTY.md +128 -0
- package/runtime/engine.wasm +0 -0
- package/runtime/mathlib.wasm +0 -0
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install sbmlsim-core
|
|
|
20
20
|
or import the modules from a CDN, which serves them with the headers every origin may read:
|
|
21
21
|
|
|
22
22
|
```js
|
|
23
|
-
import { createPanelEndpoint } from "https://cdn.jsdelivr.net/npm/sbmlsim-core@0.
|
|
23
|
+
import { createPanelEndpoint } from "https://cdn.jsdelivr.net/npm/sbmlsim-core@0.8.0/panels.mjs";
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
A pool started from a module of another origin starts its workers through a module of the page's own origin, so the CDN works for the workers as well. The engine needs fixed-width SIMD of WebAssembly: Chrome 91, Firefox 89, Safari 16.4 or newer, Node 20 or newer.
|
|
@@ -86,7 +86,7 @@ pool.close();
|
|
|
86
86
|
<!-- the IIFE build of sbmlsim-web, a release with registerEndpoint -->
|
|
87
87
|
<script src="sbmlsim-web.iife.js"></script>
|
|
88
88
|
<script type="module">
|
|
89
|
-
import { createPanelEndpoint } from "https://cdn.jsdelivr.net/npm/sbmlsim-core@0.
|
|
89
|
+
import { createPanelEndpoint } from "https://cdn.jsdelivr.net/npm/sbmlsim-core@0.8.0/panels.mjs";
|
|
90
90
|
|
|
91
91
|
sbmlsimWeb.registerEndpoint(
|
|
92
92
|
"local:glimepiride",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbmlsim-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Simulate SBML models compiled to WebAssembly in browsers and Node: the JavaScript host of sbmlsim-core with its engine (CVODE, KLU), a pool of workers and the panel endpoint of sbmlsim",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sbml",
|
package/panels.mjs
CHANGED
|
@@ -58,7 +58,7 @@ import { EngineError } from "./loader.mjs";
|
|
|
58
58
|
import { createPool, defaultWorkers } from "./pool.mjs";
|
|
59
59
|
|
|
60
60
|
/** The version of sbmlsim-core (`js/package.json`), which the provenance of a run names. */
|
|
61
|
-
export const CORE_VERSION = "0.
|
|
61
|
+
export const CORE_VERSION = "0.8.0";
|
|
62
62
|
|
|
63
63
|
/** The engine a provenance names. */
|
|
64
64
|
export const ENGINE = `sbmlsim-core ${CORE_VERSION}`;
|
package/runtime/THIRD_PARTY.md
CHANGED
|
@@ -19,6 +19,10 @@ Also compiled into the modules, under permissive licenses whose texts are in the
|
|
|
19
19
|
|
|
20
20
|
`mathlib.wasm` and the crate `sbmlsim-mathlib` it is built from (which every native build of the compiler links for constant folding) also contain `exp`, `log` and `pow` of ARM optimized-routines (https://github.com/ARM-software/optimized-routines, commit 20859d3fd9e797dde592c489c8ef7d383f778620: `math/exp.c`, `math/log.c`, `math/pow.c` and their tables), ported to Rust in `crates/mathlib/src/arm`. optimized-routines is under `MIT OR Apache-2.0 WITH LLVM-exception` and is used here under the MIT License, whose text is below.
|
|
21
21
|
|
|
22
|
+
The extension module of the python package (`sbmlsim_core._core`, the crate `sbmlsim-python`) additionally links mimalloc 3.3.2 statically, the allocator of the extension (`crates/python/src/lib.rs`). Its C sources are vendored in the crate `libmimalloc-sys` 0.1.49, which compiles them with `cc`; mimalloc is under the MIT License (Microsoft Corporation, Daan Leijen) and the crate which wraps it under the MIT License (Octavian Oncescu), both texts below. Nothing else carries mimalloc: it is in no wasm module, in no other crate and in no package of the JavaScript host.
|
|
23
|
+
|
|
24
|
+
The native Wasmtime hosts (`sbmlsim-host`, the command line and the Python extension) also link Zstandard 1.5.7 for the persistent compilation cache, through `zstd` 0.13.5, `zstd-safe` 7.4.1 and `zstd-sys` 2.1.3. Zstandard and these Rust wrappers are used under BSD-3-Clause; their license texts are below. These cache dependencies are in no Wasm module and in no package of the JavaScript host.
|
|
25
|
+
|
|
22
26
|
SuiteSparse_config states its license in the header of `third_party/SuiteSparse/SuiteSparse_config/SuiteSparse_config.c`: "SuiteSparse_config, Copyright (c) 2012-2023, Timothy A. Davis. All Rights Reserved. SPDX-License-Identifier: BSD-3-clause", the license of the text of AMD and COLAMD below.
|
|
23
27
|
|
|
24
28
|
## License texts
|
|
@@ -240,6 +244,130 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
240
244
|
SOFTWARE.
|
|
241
245
|
```
|
|
242
246
|
|
|
247
|
+
### mimalloc: `c_src/mimalloc/v3/LICENSE` of the crate libmimalloc-sys 0.1.49
|
|
248
|
+
|
|
249
|
+
```text
|
|
250
|
+
MIT License
|
|
251
|
+
|
|
252
|
+
Copyright (c) 2018-2025 Microsoft Corporation, Daan Leijen
|
|
253
|
+
|
|
254
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
255
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
256
|
+
in the Software without restriction, including without limitation the rights
|
|
257
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
258
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
259
|
+
furnished to do so, subject to the following conditions:
|
|
260
|
+
|
|
261
|
+
The above copyright notice and this permission notice shall be included in all
|
|
262
|
+
copies or substantial portions of the Software.
|
|
263
|
+
|
|
264
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
265
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
266
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
267
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
268
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
269
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
270
|
+
SOFTWARE.
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### libmimalloc-sys: `LICENSE.txt` of the crate libmimalloc-sys 0.1.49
|
|
274
|
+
|
|
275
|
+
```text
|
|
276
|
+
Copyright 2019 Octavian Oncescu
|
|
277
|
+
|
|
278
|
+
Permission is hereby granted, free of charge, to any
|
|
279
|
+
person obtaining a copy of this software and associated
|
|
280
|
+
documentation files (the "Software"), to deal in the
|
|
281
|
+
Software without restriction, including without
|
|
282
|
+
limitation the rights to use, copy, modify, merge,
|
|
283
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
284
|
+
the Software, and to permit persons to whom the Software
|
|
285
|
+
is furnished to do so, subject to the following
|
|
286
|
+
conditions:
|
|
287
|
+
|
|
288
|
+
The above copyright notice and this permission notice
|
|
289
|
+
shall be included in all copies or substantial portions
|
|
290
|
+
of the Software.
|
|
291
|
+
|
|
292
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
293
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
294
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
295
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
296
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
297
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
298
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
299
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
300
|
+
DEALINGS IN THE SOFTWARE.
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
### Zstandard 1.5.7: `zstd/LICENSE` of the crate zstd-sys 2.1.3
|
|
304
|
+
|
|
305
|
+
```text
|
|
306
|
+
BSD License
|
|
307
|
+
|
|
308
|
+
For Zstandard software
|
|
309
|
+
|
|
310
|
+
Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
|
|
311
|
+
|
|
312
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
313
|
+
are permitted provided that the following conditions are met:
|
|
314
|
+
|
|
315
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
316
|
+
list of conditions and the following disclaimer.
|
|
317
|
+
|
|
318
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
319
|
+
this list of conditions and the following disclaimer in the documentation
|
|
320
|
+
and/or other materials provided with the distribution.
|
|
321
|
+
|
|
322
|
+
* Neither the name Facebook, nor Meta, nor the names of its contributors may
|
|
323
|
+
be used to endorse or promote products derived from this software without
|
|
324
|
+
specific prior written permission.
|
|
325
|
+
|
|
326
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
327
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
328
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
329
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
330
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
331
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
332
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
333
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
334
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
335
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### Rust wrappers zstd 0.13.5, zstd-safe 7.4.1 and zstd-sys 2.1.3: `LICENSE`
|
|
339
|
+
|
|
340
|
+
```text
|
|
341
|
+
BSD 3-Clause License
|
|
342
|
+
|
|
343
|
+
Copyright (c) 2026, Alexandre Bury
|
|
344
|
+
|
|
345
|
+
Redistribution and use in source and binary forms, with or without
|
|
346
|
+
modification, are permitted provided that the following conditions are met:
|
|
347
|
+
|
|
348
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
349
|
+
list of conditions and the following disclaimer.
|
|
350
|
+
|
|
351
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
352
|
+
this list of conditions and the following disclaimer in the documentation
|
|
353
|
+
and/or other materials provided with the distribution.
|
|
354
|
+
|
|
355
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
356
|
+
contributors may be used to endorse or promote products derived from
|
|
357
|
+
this software without specific prior written permission.
|
|
358
|
+
|
|
359
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
360
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
361
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
362
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
363
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
364
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
365
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
366
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
367
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
368
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
369
|
+
```
|
|
370
|
+
|
|
243
371
|
### GNU Lesser General Public License 2.1 (of KLU and BTF): `third_party/SuiteSparse/KLU/Doc/lesser.txt`
|
|
244
372
|
|
|
245
373
|
```text
|
package/runtime/engine.wasm
CHANGED
|
Binary file
|
package/runtime/mathlib.wasm
CHANGED
|
Binary file
|