@thi.ng/csp 2.0.9 → 2.1.3

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +132 -41
  2. package/package.json +98 -93
package/CHANGELOG.md CHANGED
@@ -1,89 +1,180 @@
1
1
  # Change Log
2
2
 
3
+ - **Last updated**: 2021-12-13T10:26:00Z
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
5
55
 
6
- ## [2.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@2.0.8...@thi.ng/csp@2.0.9) (2021-11-10)
56
+ #### ♻️ Refactoring
7
57
 
8
- **Note:** Version bump only for package @thi.ng/csp
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))
9
60
 
61
+ ### [1.1.74](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.74) (2021-09-03)
10
62
 
63
+ #### ♻️ Refactoring
11
64
 
65
+ - fix up TS4.4 changes ([993a458](https://github.com/thi-ng/umbrella/commit/993a458))
12
66
 
67
+ ### [1.1.43](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.43) (2020-12-07)
13
68
 
14
- ## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@2.0.7...@thi.ng/csp@2.0.8) (2021-11-03)
69
+ #### ♻️ Refactoring
15
70
 
16
- **Note:** Version bump only for package @thi.ng/csp
71
+ - update type-only imports ([7176302](https://github.com/thi-ng/umbrella/commit/7176302))
17
72
 
73
+ ### [1.1.41](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.41) (2020-11-24)
18
74
 
75
+ #### ♻️ Refactoring
19
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))
20
79
 
80
+ ### [1.1.38](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.38) (2020-09-13)
21
81
 
22
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.74...@thi.ng/csp@2.0.0) (2021-10-12)
82
+ #### ♻️ Refactoring
23
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))
24
86
 
25
- ### Build System
87
+ ### [1.1.37](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.37) (2020-08-28)
26
88
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
89
+ #### ♻️ Refactoring
28
90
 
91
+ - update delete op (TS4.0) ([5482bf4](https://github.com/thi-ng/umbrella/commit/5482bf4))
29
92
 
30
- ### BREAKING CHANGES
93
+ ### [1.1.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.16) (2020-04-05)
31
94
 
32
- * discontinue CommonJS & UMD versions
95
+ #### ♻️ Refactoring
33
96
 
34
- - only ESM modules will be published from now on
35
- - CJS obsolete due to ESM support in recent versions of node:
36
- - i.e. launch NodeJS via:
37
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
38
- - in the node REPL use `await import(...)` instead of `require()`
39
- - UMD obsolete due to widespread browser support for ESM
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))
40
99
 
41
- Also:
42
- - normalize/restructure/reorg all package.json files
43
- - cleanup all build scripts, remove obsolete
44
- - switch from mocha to @thi.ng/testament for all tests
100
+ ### [1.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.10) (2020-02-25)
45
101
 
102
+ #### ♻️ Refactoring
46
103
 
104
+ - update imports, internal restruct ([536cc17](https://github.com/thi-ng/umbrella/commit/536cc17))
47
105
 
106
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.1.0) (2019-07-07)
48
107
 
108
+ #### 🚀 Features
49
109
 
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))
50
113
 
51
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.0.19...@thi.ng/csp@1.1.0) (2019-07-07)
114
+ #### 🩹 Bug fixes
52
115
 
53
- ### Bug Fixes
116
+ - TS strictNullChecks, update various return types ([da909ac](https://github.com/thi-ng/umbrella/commit/da909ac))
54
117
 
55
- - **csp:** TS strictNullChecks, update various return types ([da909ac](https://github.com/thi-ng/umbrella/commit/da909ac))
118
+ ### [1.0.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.0.9) (2019-03-10)
56
119
 
57
- ### Features
120
+ #### ♻️ Refactoring
58
121
 
59
- - **csp:** enable TS strict compiler flags (refactor) ([3d7fba2](https://github.com/thi-ng/umbrella/commit/3d7fba2))
60
- - **csp:** update Mult.tap() to use set semantics ([c9bc953](https://github.com/thi-ng/umbrella/commit/c9bc953))
122
+ - update Fn args in various packages ([e453ac3](https://github.com/thi-ng/umbrella/commit/e453ac3))
61
123
 
62
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.79...@thi.ng/csp@1.0.0) (2019-01-21)
124
+ ### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.0.5) (2019-02-15)
63
125
 
64
- ### Bug Fixes
126
+ #### ♻️ Refactoring
65
127
 
66
- - **csp:** disable __State reverse enum lookup ([3b8576f](https://github.com/thi-ng/umbrella/commit/3b8576f))
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))
67
129
 
68
- ### Build System
130
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@1.0.0) (2019-01-21)
131
+
132
+ #### 🛑 Breaking changes
69
133
 
70
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)
71
164
 
72
- ### BREAKING CHANGES
165
+ #### ♻️ Refactoring
73
166
 
74
- - enabled multi-outputs (ES6 modules, CJS, UMD)
75
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
76
- - 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))
77
168
 
78
- ## [0.3.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.63...@thi.ng/csp@0.3.64) (2018-09-24)
169
+ ### [0.3.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@0.3.11) (2018-02-08)
79
170
 
80
- ### Performance Improvements
171
+ #### 🩹 Bug fixes
81
172
 
82
- - **csp:** `State` => const enum ([c3e8d68](https://github.com/thi-ng/umbrella/commit/c3e8d68))
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))
83
175
 
84
- ## [0.3.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.10...@thi.ng/csp@0.3.11) (2018-02-08)
176
+ ### [0.3.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/csp@0.3.1) (2018-01-24)
85
177
 
86
- ### Bug Fixes
178
+ #### 🚀 Features
87
179
 
88
- - **csp:** fix [#5](https://github.com/thi-ng/umbrella/issues/5), example in readme ([a10a487](https://github.com/thi-ng/umbrella/commit/a10a487))
89
- - **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/package.json CHANGED
@@ -1,101 +1,106 @@
1
1
  {
2
- "name": "@thi.ng/csp",
3
- "version": "2.0.9",
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"
2
+ "name": "@thi.ng/csp",
3
+ "version": "2.1.3",
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
- "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"
18
- },
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 && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn 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"
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.3",
42
+ "@thi.ng/arrays": "^2.1.3",
43
+ "@thi.ng/checks": "^3.1.3",
44
+ "@thi.ng/dcons": "^3.1.3",
45
+ "@thi.ng/errors": "^2.1.3",
46
+ "@thi.ng/transducers": "^8.1.3"
47
+ },
48
+ "devDependencies": {
49
+ "@microsoft/api-extractor": "^7.19.2",
50
+ "@thi.ng/testament": "^0.2.3",
51
+ "rimraf": "^3.0.2",
52
+ "tools": "^0.0.1",
53
+ "typedoc": "^0.22.10",
54
+ "typescript": "^4.5.3"
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
- "dependencies": {
41
- "@thi.ng/api": "^8.2.0",
42
- "@thi.ng/arrays": "^2.0.8",
43
- "@thi.ng/checks": "^3.0.7",
44
- "@thi.ng/dcons": "^3.0.9",
45
- "@thi.ng/errors": "^2.0.6",
46
- "@thi.ng/transducers": "^8.0.8"
82
+ "./api": {
83
+ "import": "./api.js"
47
84
  },
48
- "devDependencies": {
49
- "@thi.ng/testament": "^0.1.6"
85
+ "./buffer": {
86
+ "import": "./buffer.js"
50
87
  },
51
- "keywords": [
52
- "async",
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
- "engines": {
67
- "node": ">=12.7"
91
+ "./mult": {
92
+ "import": "./mult.js"
68
93
  },
69
- "files": [
70
- "*.js",
71
- "*.d.ts"
94
+ "./pubsub": {
95
+ "import": "./pubsub.js"
96
+ }
97
+ },
98
+ "thi.ng": {
99
+ "related": [
100
+ "rstream"
72
101
  ],
73
- "exports": {
74
- ".": {
75
- "import": "./index.js"
76
- },
77
- "./api": {
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": "5fe52419af63984ebe53032201b2a6174b9cb159"
101
- }
102
+ "status": "deprecated",
103
+ "year": 2016
104
+ },
105
+ "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
106
+ }