@thi.ng/soa 0.4.33 → 0.4.35

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-23T22:46:54Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
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.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![soa](https://media.thi.ng/umbrella/banners-20220914/thing-soa.svg?8f7b5e4f)
3
+ # ![@thi.ng/soa](https://media.thi.ng/umbrella/banners-20220914/thing-soa.svg?8f7b5e4f)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/soa.svg)](https://www.npmjs.com/package/@thi.ng/soa)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/soa.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](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,14 +76,11 @@ ES module import:
76
76
 
77
77
  For Node.js REPL:
78
78
 
79
- ```text
80
- # with flag only for < v16
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
- Package sizes (gzipped, pre-treeshake): ESM: 1.44 KB
83
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.34 KB
87
84
 
88
85
  ## Dependencies
89
86
 
@@ -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
- &copy; 2019 - 2022 Karsten Schmidt // Apache Software License 2.0
129
+ &copy; 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 declare type AOSSpecs<K extends string> = Record<K, Partial<AOSAttribSpec>>;
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 declare type SOASpecs<K extends string> = Record<K, Partial<SOAAttribSpec>>;
44
+ export type SOASpecs<K extends string> = Record<K, Partial<SOAAttribSpec>>;
45
45
  /**
46
46
  * Mapped type for index lookups. Declares an object with all keys from
47
47
  * given {@link SOAAttribSpec} and each value a
48
48
  * {@link @thi.ng/vectors#Vec}.
49
49
  */
50
- export declare type SOATuple<K extends string, V> = Record<K, V>;
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 declare type SerializerSpecs = Record<string, SerializerPair<any>>;
56
- export declare type SerializedType<T extends SerializerSpecs, K extends keyof T> = ReturnType<T[K]["decode"]>;
57
- export declare type SerializedTuple<T extends SerializerSpecs> = {
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.33",
3
+ "version": "0.4.35",
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 <k+npm@thi.ng>",
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.5.0",
38
- "@thi.ng/binary": "^3.3.11",
39
- "@thi.ng/errors": "^2.2.4",
40
- "@thi.ng/transducers-binary": "^2.1.29",
41
- "@thi.ng/vectors": "^7.5.25"
37
+ "@thi.ng/api": "^8.6.0",
38
+ "@thi.ng/binary": "^3.3.13",
39
+ "@thi.ng/errors": "^2.2.6",
40
+ "@thi.ng/transducers-binary": "^2.1.31",
41
+ "@thi.ng/vectors": "^7.5.27"
42
42
  },
43
43
  "devDependencies": {
44
- "@microsoft/api-extractor": "^7.33.5",
45
- "@thi.ng/equiv": "^2.1.13",
46
- "@thi.ng/testament": "^0.3.5",
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.20",
50
- "typescript": "^4.8.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": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
108
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
109
109
  }