@thi.ng/soa 0.4.34 → 0.4.36
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 +1 -1
- package/README.md +7 -10
- package/api.d.ts +9 -9
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/soa)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -25,7 +25,7 @@ This project is part of the
|
|
|
25
25
|
|
|
26
26
|
## About
|
|
27
27
|
|
|
28
|
-
SOA & AOS memory mapped structured views with optional & extensible serialization
|
|
28
|
+
SOA & AOS memory mapped structured views with optional & extensible serialization
|
|
29
29
|
|
|
30
30
|
### Supported memory layouts
|
|
31
31
|
|
|
@@ -76,11 +76,8 @@ ES module import:
|
|
|
76
76
|
|
|
77
77
|
For Node.js REPL:
|
|
78
78
|
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
node --experimental-repl-await
|
|
82
|
-
|
|
83
|
-
> const soa = await import("@thi.ng/soa");
|
|
79
|
+
```js
|
|
80
|
+
const soa = await import("@thi.ng/soa");
|
|
84
81
|
```
|
|
85
82
|
|
|
86
83
|
Package sizes (brotli'd, pre-treeshake): ESM: 1.34 KB
|
|
@@ -114,7 +111,7 @@ TODO
|
|
|
114
111
|
|
|
115
112
|
## Authors
|
|
116
113
|
|
|
117
|
-
Karsten Schmidt
|
|
114
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
118
115
|
|
|
119
116
|
If this project contributes to an academic publication, please cite it as:
|
|
120
117
|
|
|
@@ -129,4 +126,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
129
126
|
|
|
130
127
|
## License
|
|
131
128
|
|
|
132
|
-
© 2019 - 2022 Karsten Schmidt // Apache
|
|
129
|
+
© 2019 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -36,25 +36,25 @@ export interface SOAAttribSpec extends AOSAttribSpec {
|
|
|
36
36
|
* Alias for main config object of attribute specs. Declares an object
|
|
37
37
|
* of partial SOAAttribSpec values (i.e. every item is made optional)
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type AOSSpecs<K extends string> = Record<K, Partial<AOSAttribSpec>>;
|
|
40
40
|
/**
|
|
41
41
|
* Alias for main config object of attribute specs. Declares an object
|
|
42
42
|
* of partial SOAAttribSpec values (i.e. every item is made optional)
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export type SOASpecs<K extends string> = Record<K, Partial<SOAAttribSpec>>;
|
|
45
45
|
/**
|
|
46
|
-
* Mapped type for index lookups. Declares an object with all keys from
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* Mapped type for index lookups. Declares an object with all keys from given
|
|
47
|
+
* {@link SOAAttribSpec} and each value a
|
|
48
|
+
* [`Vec`](https://docs.thi.ng/umbrella/vectors/interfaces/Vec.html).
|
|
49
49
|
*/
|
|
50
|
-
export
|
|
50
|
+
export type SOATuple<K extends string, V> = Record<K, V>;
|
|
51
51
|
export interface SerializerPair<T> {
|
|
52
52
|
decode: (v: ReadonlyVec) => T;
|
|
53
53
|
encode: (x: T) => ReadonlyVec;
|
|
54
54
|
}
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
55
|
+
export type SerializerSpecs = Record<string, SerializerPair<any>>;
|
|
56
|
+
export type SerializedType<T extends SerializerSpecs, K extends keyof T> = ReturnType<T[K]["decode"]>;
|
|
57
|
+
export type SerializedTuple<T extends SerializerSpecs> = {
|
|
58
58
|
[P in keyof T]: SerializedType<T, P>;
|
|
59
59
|
};
|
|
60
60
|
export interface Serializer<T extends SerializerSpecs> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/soa",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.36",
|
|
4
4
|
"description": "SOA & AOS memory mapped structured views with optional & extensible serialization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/binary": "^3.3.
|
|
39
|
-
"@thi.ng/errors": "^2.2.
|
|
40
|
-
"@thi.ng/transducers-binary": "^2.1.
|
|
41
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/api": "^8.6.1",
|
|
38
|
+
"@thi.ng/binary": "^3.3.14",
|
|
39
|
+
"@thi.ng/errors": "^2.2.6",
|
|
40
|
+
"@thi.ng/transducers-binary": "^2.1.32",
|
|
41
|
+
"@thi.ng/vectors": "^7.5.28"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.33.
|
|
45
|
-
"@thi.ng/equiv": "^2.1.
|
|
46
|
-
"@thi.ng/testament": "^0.3.
|
|
44
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
45
|
+
"@thi.ng/equiv": "^2.1.15",
|
|
46
|
+
"@thi.ng/testament": "^0.3.7",
|
|
47
47
|
"rimraf": "^3.0.2",
|
|
48
48
|
"tools": "^0.0.1",
|
|
49
|
-
"typedoc": "^0.23.
|
|
50
|
-
"typescript": "^4.
|
|
49
|
+
"typedoc": "^0.23.22",
|
|
50
|
+
"typescript": "^4.9.4"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"acceleration",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"status": "alpha",
|
|
106
106
|
"year": 2019
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
109
109
|
}
|