@thi.ng/wasm-api 1.4.67 → 1.4.69
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/CHANGELOG.md +7 -1
- package/README.md +3 -3
- package/object-index.d.ts +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-04-
|
|
3
|
+
- **Last updated**: 2024-04-20T14:42:45Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [1.4.69](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@1.4.69) (2024-04-20)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update type usage ([ab27740](https://github.com/thi-ng/umbrella/commit/ab27740))
|
|
17
|
+
|
|
12
18
|
### [1.4.54](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@1.4.54) (2024-02-22)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 192 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -389,10 +389,10 @@ import * as wa from "@thi.ng/wasm-api";
|
|
|
389
389
|
Browser ESM import:
|
|
390
390
|
|
|
391
391
|
```html
|
|
392
|
-
<script type="module" src="https://
|
|
392
|
+
<script type="module" src="https://esm.run/@thi.ng/wasm-api"></script>
|
|
393
393
|
```
|
|
394
394
|
|
|
395
|
-
[
|
|
395
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
396
396
|
|
|
397
397
|
Package sizes (brotli'd, pre-treeshake): ESM: 2.69 KB
|
|
398
398
|
|
package/object-index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Predicate, Range1_32 } from "@thi.ng/api";
|
|
1
|
+
import type { Maybe, Predicate, Range1_32 } from "@thi.ng/api";
|
|
2
2
|
import { IDGen } from "@thi.ng/idgen";
|
|
3
3
|
import type { ILogger } from "@thi.ng/logger";
|
|
4
4
|
export interface ObjectIndexOpts {
|
|
@@ -56,7 +56,7 @@ export declare class ObjectIndex<T> {
|
|
|
56
56
|
*/
|
|
57
57
|
get(id: number): T;
|
|
58
58
|
get(id: number, ensure: true): T;
|
|
59
|
-
get(id: number, ensure: false): T
|
|
59
|
+
get(id: number, ensure: false): Maybe<T>;
|
|
60
60
|
/**
|
|
61
61
|
* Applies given predicate to all active items and returns ID of first
|
|
62
62
|
* matching. If `ensure` is true (default), throws an error if the `pred`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/wasm-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.69",
|
|
4
4
|
"description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@thi.ng/api": "^8.
|
|
41
|
-
"@thi.ng/arrays": "^2.9.
|
|
42
|
-
"@thi.ng/checks": "^3.6.
|
|
43
|
-
"@thi.ng/errors": "^2.5.
|
|
44
|
-
"@thi.ng/hex": "^2.3.
|
|
45
|
-
"@thi.ng/idgen": "^2.2.
|
|
46
|
-
"@thi.ng/logger": "^3.0.
|
|
40
|
+
"@thi.ng/api": "^8.11.0",
|
|
41
|
+
"@thi.ng/arrays": "^2.9.4",
|
|
42
|
+
"@thi.ng/checks": "^3.6.2",
|
|
43
|
+
"@thi.ng/errors": "^2.5.5",
|
|
44
|
+
"@thi.ng/hex": "^2.3.44",
|
|
45
|
+
"@thi.ng/idgen": "^2.2.39",
|
|
46
|
+
"@thi.ng/logger": "^3.0.10"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@microsoft/api-extractor": "^7.43.0",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"status": "alpha",
|
|
117
117
|
"year": 2022
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
|
|
120
120
|
}
|