@thi.ng/csp 2.0.8 → 2.1.2
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 +138 -39
- package/README.md +1 -1
- package/package.json +98 -93
package/CHANGELOG.md
CHANGED
|
@@ -1,81 +1,180 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
- **Last updated**: 2021-11-21T17:09:28Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
+
|
|
3
6
|
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
|
+
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
11
|
+
|
|
12
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@2.1.0) (2021-11-17)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
21
|
+
|
|
22
|
+
#### ♻️ Refactoring
|
|
23
|
+
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
30
|
+
|
|
31
|
+
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@2.0.1) (2021-10-13)
|
|
32
|
+
|
|
33
|
+
#### ♻️ Refactoring
|
|
34
|
+
|
|
35
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
36
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
37
|
+
- add .js suffix for all relative imports
|
|
38
|
+
|
|
39
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@2.0.0) (2021-10-12)
|
|
40
|
+
|
|
41
|
+
#### 🛑 Breaking changes
|
|
42
|
+
|
|
43
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
44
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
45
|
+
- only ESM modules will be published from now on
|
|
46
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
47
|
+
- i.e. launch NodeJS via:
|
|
48
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
49
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
50
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
51
|
+
Also:
|
|
52
|
+
- normalize/restructure/reorg all package.json files
|
|
53
|
+
- cleanup all build scripts, remove obsolete
|
|
54
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
55
|
+
|
|
56
|
+
#### ♻️ Refactoring
|
|
57
|
+
|
|
58
|
+
- update imports (transducers) ([4705acc](https://github.com/thi-ng/umbrella/commit/4705acc))
|
|
59
|
+
- update imports ([9c6f8b8](https://github.com/thi-ng/umbrella/commit/9c6f8b8))
|
|
60
|
+
|
|
61
|
+
### [1.1.74](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.74) (2021-09-03)
|
|
5
62
|
|
|
6
|
-
|
|
63
|
+
#### ♻️ Refactoring
|
|
7
64
|
|
|
8
|
-
|
|
65
|
+
- fix up TS4.4 changes ([993a458](https://github.com/thi-ng/umbrella/commit/993a458))
|
|
9
66
|
|
|
67
|
+
### [1.1.43](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.43) (2020-12-07)
|
|
10
68
|
|
|
69
|
+
#### ♻️ Refactoring
|
|
11
70
|
|
|
71
|
+
- update type-only imports ([7176302](https://github.com/thi-ng/umbrella/commit/7176302))
|
|
12
72
|
|
|
73
|
+
### [1.1.41](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.41) (2020-11-24)
|
|
13
74
|
|
|
14
|
-
|
|
75
|
+
#### ♻️ Refactoring
|
|
15
76
|
|
|
77
|
+
- update IReadableChannel.read() return type ([ffc2811](https://github.com/thi-ng/umbrella/commit/ffc2811))
|
|
78
|
+
- update destructuring ([5a4ad57](https://github.com/thi-ng/umbrella/commit/5a4ad57))
|
|
16
79
|
|
|
17
|
-
###
|
|
80
|
+
### [1.1.38](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.38) (2020-09-13)
|
|
18
81
|
|
|
19
|
-
|
|
82
|
+
#### ♻️ Refactoring
|
|
20
83
|
|
|
84
|
+
- update imports ([53a8c9e](https://github.com/thi-ng/umbrella/commit/53a8c9e))
|
|
85
|
+
- update imports, use new Fn types in various pkgs ([ced1e5d](https://github.com/thi-ng/umbrella/commit/ced1e5d))
|
|
21
86
|
|
|
22
|
-
###
|
|
87
|
+
### [1.1.37](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.37) (2020-08-28)
|
|
23
88
|
|
|
24
|
-
|
|
89
|
+
#### ♻️ Refactoring
|
|
25
90
|
|
|
26
|
-
-
|
|
27
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
28
|
-
- i.e. launch NodeJS via:
|
|
29
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
30
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
31
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
91
|
+
- update delete op (TS4.0) ([5482bf4](https://github.com/thi-ng/umbrella/commit/5482bf4))
|
|
32
92
|
|
|
33
|
-
|
|
34
|
-
- normalize/restructure/reorg all package.json files
|
|
35
|
-
- cleanup all build scripts, remove obsolete
|
|
36
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
93
|
+
### [1.1.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.16) (2020-04-05)
|
|
37
94
|
|
|
95
|
+
#### ♻️ Refactoring
|
|
38
96
|
|
|
97
|
+
- keep State as const enum, internalize ([9ea3b6e](https://github.com/thi-ng/umbrella/commit/9ea3b6e))
|
|
98
|
+
- switch to non-const enums ([8e0c049](https://github.com/thi-ng/umbrella/commit/8e0c049))
|
|
39
99
|
|
|
100
|
+
### [1.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.10) (2020-02-25)
|
|
40
101
|
|
|
102
|
+
#### ♻️ Refactoring
|
|
41
103
|
|
|
104
|
+
- update imports, internal restruct ([536cc17](https://github.com/thi-ng/umbrella/commit/536cc17))
|
|
42
105
|
|
|
43
|
-
|
|
106
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.0) (2019-07-07)
|
|
44
107
|
|
|
45
|
-
|
|
108
|
+
#### 🚀 Features
|
|
46
109
|
|
|
47
|
-
-
|
|
110
|
+
- update Mult.tap() to use set semantics ([c9bc953](https://github.com/thi-ng/umbrella/commit/c9bc953))
|
|
111
|
+
- add check if arg channel already is a tap and if so don't add duplicate
|
|
112
|
+
- enable TS strict compiler flags (refactor) ([3d7fba2](https://github.com/thi-ng/umbrella/commit/3d7fba2))
|
|
48
113
|
|
|
49
|
-
|
|
114
|
+
#### 🩹 Bug fixes
|
|
50
115
|
|
|
51
|
-
-
|
|
52
|
-
- **csp:** update Mult.tap() to use set semantics ([c9bc953](https://github.com/thi-ng/umbrella/commit/c9bc953))
|
|
116
|
+
- TS strictNullChecks, update various return types ([da909ac](https://github.com/thi-ng/umbrella/commit/da909ac))
|
|
53
117
|
|
|
54
|
-
|
|
118
|
+
### [1.0.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.0.9) (2019-03-10)
|
|
55
119
|
|
|
56
|
-
|
|
120
|
+
#### ♻️ Refactoring
|
|
57
121
|
|
|
58
|
-
-
|
|
122
|
+
- update Fn args in various packages ([e453ac3](https://github.com/thi-ng/umbrella/commit/e453ac3))
|
|
59
123
|
|
|
60
|
-
###
|
|
124
|
+
### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.0.5) (2019-02-15)
|
|
125
|
+
|
|
126
|
+
#### ♻️ Refactoring
|
|
127
|
+
|
|
128
|
+
- use [@thi.ng/arrays](https://github.com/thi-ng/umbrella/tree/main/packages/arrays), remove obsolete shuffle() ([64204a1](https://github.com/thi-ng/umbrella/commit/64204a1))
|
|
129
|
+
|
|
130
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.0.0) (2019-01-21)
|
|
131
|
+
|
|
132
|
+
#### 🛑 Breaking changes
|
|
61
133
|
|
|
62
134
|
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
135
|
+
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
136
|
+
- build scripts now first build ES6 modules in package root, then call
|
|
137
|
+
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
138
|
+
- all imports MUST be updated to only refer to package level
|
|
139
|
+
(not individual files anymore). tree shaking in user land will get rid of
|
|
140
|
+
all unused imported symbols.
|
|
141
|
+
|
|
142
|
+
#### 🩹 Bug fixes
|
|
143
|
+
|
|
144
|
+
- disable __State reverse enum lookup ([3b8576f](https://github.com/thi-ng/umbrella/commit/3b8576f))
|
|
145
|
+
|
|
146
|
+
#### ♻️ Refactoring
|
|
147
|
+
|
|
148
|
+
- use arrow fns ([5d53028](https://github.com/thi-ng/umbrella/commit/5d53028))
|
|
149
|
+
|
|
150
|
+
### [0.3.64](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@0.3.64) (2018-09-24)
|
|
151
|
+
|
|
152
|
+
#### ⏱ Performance improvements
|
|
153
|
+
|
|
154
|
+
- `State` => const enum ([c3e8d68](https://github.com/thi-ng/umbrella/commit/c3e8d68))
|
|
155
|
+
- export `__State` for reverse lookups
|
|
156
|
+
|
|
157
|
+
### [0.3.34](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@0.3.34) (2018-05-10)
|
|
158
|
+
|
|
159
|
+
#### ♻️ Refactoring
|
|
160
|
+
|
|
161
|
+
- update deps & imports in all packages due to [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) split ([bc45636](https://github.com/thi-ng/umbrella/commit/bc45636))
|
|
162
|
+
|
|
163
|
+
### [0.3.21](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@0.3.21) (2018-03-21)
|
|
63
164
|
|
|
64
|
-
|
|
165
|
+
#### ♻️ Refactoring
|
|
65
166
|
|
|
66
|
-
-
|
|
67
|
-
- build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
68
|
-
- all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
|
|
167
|
+
- update error handling ([5087ffe](https://github.com/thi-ng/umbrella/commit/5087ffe))
|
|
69
168
|
|
|
70
|
-
|
|
169
|
+
### [0.3.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@0.3.11) (2018-02-08)
|
|
71
170
|
|
|
72
|
-
|
|
171
|
+
#### 🩹 Bug fixes
|
|
73
172
|
|
|
74
|
-
-
|
|
173
|
+
- fix [#5](https://github.com/thi-ng/umbrella/issues/5), more example fixes (rfn calls) ([080c2ee](https://github.com/thi-ng/umbrella/commit/080c2ee))
|
|
174
|
+
- fix [#5](https://github.com/thi-ng/umbrella/issues/5), example in readme ([a10a487](https://github.com/thi-ng/umbrella/commit/a10a487))
|
|
75
175
|
|
|
76
|
-
|
|
176
|
+
### [0.3.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@0.3.1) (2018-01-24)
|
|
77
177
|
|
|
78
|
-
|
|
178
|
+
#### 🚀 Features
|
|
79
179
|
|
|
80
|
-
-
|
|
81
|
-
- **csp:** fix [#5](https://github.com/thi-ng/umbrella/issues/5), more example fixes (rfn calls) ([080c2ee](https://github.com/thi-ng/umbrella/commit/080c2ee))
|
|
180
|
+
- initial re-import as monorepo, update readme files, cleanup imports ([04ff6e9](https://github.com/thi-ng/umbrella/commit/04ff6e9))
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,101 +1,106 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "@thi.ng/csp",
|
|
3
|
+
"version": "2.1.2",
|
|
4
|
+
"description": "ES6 promise based CSP primitives & operations",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/csp#readme",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
12
18
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
+
"doc:readme": "yarn doc:stats && tools:readme",
|
|
32
|
+
"doc:stats": "tools:module-stats",
|
|
33
|
+
"pub": "yarn npm publish --access public",
|
|
34
|
+
"test": "testament test",
|
|
35
|
+
"testasync": "tsc -p test && node build/test/async.js",
|
|
36
|
+
"testfile": "tsc -p test && node build/test/file.js",
|
|
37
|
+
"testgraph": "tsc -p test && node build/test/graph.js",
|
|
38
|
+
"testnode": "tsc -p test && node build/test/node.js"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@thi.ng/api": "^8.3.2",
|
|
42
|
+
"@thi.ng/arrays": "^2.1.2",
|
|
43
|
+
"@thi.ng/checks": "^3.1.2",
|
|
44
|
+
"@thi.ng/dcons": "^3.1.2",
|
|
45
|
+
"@thi.ng/errors": "^2.1.2",
|
|
46
|
+
"@thi.ng/transducers": "^8.1.2"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
50
|
+
"@thi.ng/testament": "^0.2.2",
|
|
51
|
+
"rimraf": "^3.0.2",
|
|
52
|
+
"tools": "^0.0.1",
|
|
53
|
+
"typedoc": "^0.22.9",
|
|
54
|
+
"typescript": "^4.5.2"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"async",
|
|
58
|
+
"channel",
|
|
59
|
+
"csp",
|
|
60
|
+
"datastructure",
|
|
61
|
+
"multiplex",
|
|
62
|
+
"pipeline",
|
|
63
|
+
"promise",
|
|
64
|
+
"pubsub",
|
|
65
|
+
"transducer",
|
|
66
|
+
"typescript"
|
|
67
|
+
],
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=12.7"
|
|
73
|
+
},
|
|
74
|
+
"files": [
|
|
75
|
+
"*.js",
|
|
76
|
+
"*.d.ts"
|
|
77
|
+
],
|
|
78
|
+
"exports": {
|
|
79
|
+
".": {
|
|
80
|
+
"import": "./index.js"
|
|
39
81
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"@thi.ng/arrays": "^2.0.7",
|
|
43
|
-
"@thi.ng/checks": "^3.0.6",
|
|
44
|
-
"@thi.ng/dcons": "^3.0.8",
|
|
45
|
-
"@thi.ng/errors": "^2.0.6",
|
|
46
|
-
"@thi.ng/transducers": "^8.0.7"
|
|
82
|
+
"./api": {
|
|
83
|
+
"import": "./api.js"
|
|
47
84
|
},
|
|
48
|
-
"
|
|
49
|
-
|
|
85
|
+
"./buffer": {
|
|
86
|
+
"import": "./buffer.js"
|
|
50
87
|
},
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
"channel",
|
|
54
|
-
"csp",
|
|
55
|
-
"datastructure",
|
|
56
|
-
"multiplex",
|
|
57
|
-
"pipeline",
|
|
58
|
-
"promise",
|
|
59
|
-
"pubsub",
|
|
60
|
-
"transducer",
|
|
61
|
-
"typescript"
|
|
62
|
-
],
|
|
63
|
-
"publishConfig": {
|
|
64
|
-
"access": "public"
|
|
88
|
+
"./channel": {
|
|
89
|
+
"import": "./channel.js"
|
|
65
90
|
},
|
|
66
|
-
"
|
|
67
|
-
|
|
91
|
+
"./mult": {
|
|
92
|
+
"import": "./mult.js"
|
|
68
93
|
},
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
94
|
+
"./pubsub": {
|
|
95
|
+
"import": "./pubsub.js"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"thi.ng": {
|
|
99
|
+
"related": [
|
|
100
|
+
"rstream"
|
|
72
101
|
],
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"import": "./api.js"
|
|
79
|
-
},
|
|
80
|
-
"./buffer": {
|
|
81
|
-
"import": "./buffer.js"
|
|
82
|
-
},
|
|
83
|
-
"./channel": {
|
|
84
|
-
"import": "./channel.js"
|
|
85
|
-
},
|
|
86
|
-
"./mult": {
|
|
87
|
-
"import": "./mult.js"
|
|
88
|
-
},
|
|
89
|
-
"./pubsub": {
|
|
90
|
-
"import": "./pubsub.js"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"thi.ng": {
|
|
94
|
-
"related": [
|
|
95
|
-
"rstream"
|
|
96
|
-
],
|
|
97
|
-
"status": "deprecated",
|
|
98
|
-
"year": 2016
|
|
99
|
-
},
|
|
100
|
-
"gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
|
|
101
|
-
}
|
|
102
|
+
"status": "deprecated",
|
|
103
|
+
"year": 2016
|
|
104
|
+
},
|
|
105
|
+
"gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
|
|
106
|
+
}
|