@thi.ng/bencode 2.0.8 → 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 +77 -38
  2. package/package.json +79 -74
package/CHANGELOG.md CHANGED
@@ -1,77 +1,116 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@2.0.7...@thi.ng/bencode@2.0.8) (2021-11-10)
7
-
8
- **Note:** Version bump only for package @thi.ng/bencode
9
-
3
+ - **Last updated**: 2021-12-13T10:26:00Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
10
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
11
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
12
11
 
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@2.1.0) (2021-11-17)
13
13
 
14
- ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@2.0.6...@thi.ng/bencode@2.0.7) (2021-11-03)
14
+ #### 🚀 Features
15
15
 
16
- **Note:** Version bump only for package @thi.ng/bencode
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
17
21
 
22
+ #### ♻️ Refactoring
18
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.
19
30
 
31
+ ### [2.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@2.0.8) (2021-11-10)
20
32
 
33
+ #### ♻️ Refactoring
21
34
 
22
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@1.0.5...@thi.ng/bencode@2.0.0) (2021-10-12)
35
+ - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
23
36
 
37
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@2.0.1) (2021-10-13)
24
38
 
25
- ### Build System
39
+ #### ♻️ Refactoring
26
40
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
41
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
42
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
43
+ - add .js suffix for all relative imports
28
44
 
45
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@2.0.0) (2021-10-12)
29
46
 
30
- ### BREAKING CHANGES
47
+ #### 🛑 Breaking changes
31
48
 
32
- * discontinue CommonJS & UMD versions
49
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
50
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
51
+ - only ESM modules will be published from now on
52
+ - CJS obsolete due to ESM support in recent versions of node:
53
+ - i.e. launch NodeJS via:
54
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
55
+ - in the node REPL use `await import(...)` instead of `require()`
56
+ - UMD obsolete due to widespread browser support for ESM
57
+ Also:
58
+ - normalize/restructure/reorg all package.json files
59
+ - cleanup all build scripts, remove obsolete
60
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
33
61
 
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
62
+ #### ♻️ Refactoring
40
63
 
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
64
+ - update defmulti impls ([c807c38](https://github.com/thi-ng/umbrella/commit/c807c38))
65
+ - restructure/split source files ([fa3b4b6](https://github.com/thi-ng/umbrella/commit/fa3b4b6))
66
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
67
+ - largely related to recent updates/restructuring of these packages:
68
+ - api
69
+ - defmulti
70
+ - errors
71
+ - logger
72
+ - update imports (transducers) ([e2db0dd](https://github.com/thi-ng/umbrella/commit/e2db0dd))
73
+ - update imports ([7b00120](https://github.com/thi-ng/umbrella/commit/7b00120))
74
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
75
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
45
76
 
77
+ ### [0.3.43](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@0.3.43) (2020-12-07)
46
78
 
79
+ #### ♻️ Refactoring
47
80
 
81
+ - update type-only imports ([ad267a2](https://github.com/thi-ng/umbrella/commit/ad267a2))
48
82
 
83
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@0.3.0) (2019-07-07)
49
84
 
85
+ #### 🚀 Features
50
86
 
51
- ## [1.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@1.0.4...@thi.ng/bencode@1.0.5) (2021-09-03)
87
+ - enable TS strict compiler flags (refactor) ([1be1a14](https://github.com/thi-ng/umbrella/commit/1be1a14))
52
88
 
53
- **Note:** Version bump only for package @thi.ng/bencode
89
+ #### ♻️ Refactoring
54
90
 
55
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.2.17...@thi.ng/bencode@0.3.0) (2019-07-07)
91
+ - TS strictNullChecks ([9d0b1f1](https://github.com/thi-ng/umbrella/commit/9d0b1f1))
56
92
 
57
- ### Features
93
+ ### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@0.2.1) (2019-02-20)
58
94
 
59
- - **bencode:** enable TS strict compiler flags (refactor) ([1be1a14](https://github.com/thi-ng/umbrella/commit/1be1a14))
95
+ #### 🩹 Bug fixes
60
96
 
61
- ## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.2.0...@thi.ng/bencode@0.2.1) (2019-02-20)
97
+ - string list val decoding, add tests, update readme ([9f2b8ae](https://github.com/thi-ng/umbrella/commit/9f2b8ae))
62
98
 
63
- ### Bug Fixes
99
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@0.2.0) (2019-02-15)
64
100
 
65
- - **bencode:** string list val decoding, add tests, update readme ([9f2b8ae](https://github.com/thi-ng/umbrella/commit/9f2b8ae))
101
+ #### 🚀 Features
66
102
 
67
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.1.1...@thi.ng/bencode@0.2.0) (2019-02-15)
103
+ - add decode(), fix string length handling ([c1bbc6f](https://github.com/thi-ng/umbrella/commit/c1bbc6f))
104
+ - add decode() w/ opt utf8 string decoding
105
+ - use utf8Length() for string encoding
68
106
 
69
- ### Features
107
+ #### ♻️ Refactoring
70
108
 
71
- - **bencode:** add decode(), fix string length handling ([c1bbc6f](https://github.com/thi-ng/umbrella/commit/c1bbc6f))
109
+ - update to use [@thi.ng/arrays](https://github.com/thi-ng/umbrella/tree/main/packages/arrays) ([83260ed](https://github.com/thi-ng/umbrella/commit/83260ed))
72
110
 
73
- # 0.1.0 (2019-02-05)
111
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bencode@0.1.0) (2019-02-05)
74
112
 
75
- ### Features
113
+ #### 🚀 Features
76
114
 
77
- - **bencode:** re-import updated bencode pkg ([cf7dc3a](https://github.com/thi-ng/umbrella/commit/cf7dc3a))
115
+ - re-import updated bencode pkg ([cf7dc3a](https://github.com/thi-ng/umbrella/commit/cf7dc3a))
116
+ - re-import updated bencode pkg ([f2612a6](https://github.com/thi-ng/umbrella/commit/f2612a6))
package/package.json CHANGED
@@ -1,78 +1,83 @@
1
1
  {
2
- "name": "@thi.ng/bencode",
3
- "version": "2.0.8",
4
- "description": "Bencode binary encoder / decoder with optional UTF8 encoding & floating point support",
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/bencode",
3
+ "version": "2.1.3",
4
+ "description": "Bencode binary encoder / decoder with optional UTF8 encoding & floating point support",
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/bencode#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/bencode#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"
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
+ },
36
+ "dependencies": {
37
+ "@thi.ng/arrays": "^2.1.3",
38
+ "@thi.ng/checks": "^3.1.3",
39
+ "@thi.ng/defmulti": "^2.1.3",
40
+ "@thi.ng/errors": "^2.1.3",
41
+ "@thi.ng/transducers": "^8.1.3",
42
+ "@thi.ng/transducers-binary": "^2.1.3"
43
+ },
44
+ "devDependencies": {
45
+ "@microsoft/api-extractor": "^7.19.2",
46
+ "@thi.ng/testament": "^0.2.3",
47
+ "rimraf": "^3.0.2",
48
+ "tools": "^0.0.1",
49
+ "typedoc": "^0.22.10",
50
+ "typescript": "^4.5.3"
51
+ },
52
+ "keywords": [
53
+ "array",
54
+ "bencode",
55
+ "binary",
56
+ "encode",
57
+ "fileformat",
58
+ "transducer",
59
+ "typescript"
60
+ ],
61
+ "publishConfig": {
62
+ "access": "public"
63
+ },
64
+ "engines": {
65
+ "node": ">=12.7"
66
+ },
67
+ "files": [
68
+ "*.js",
69
+ "*.d.ts"
70
+ ],
71
+ "exports": {
72
+ ".": {
73
+ "import": "./index.js"
35
74
  },
36
- "dependencies": {
37
- "@thi.ng/arrays": "^2.0.8",
38
- "@thi.ng/checks": "^3.0.7",
39
- "@thi.ng/defmulti": "^2.0.8",
40
- "@thi.ng/errors": "^2.0.6",
41
- "@thi.ng/transducers": "^8.0.8",
42
- "@thi.ng/transducers-binary": "^2.0.8"
75
+ "./decode": {
76
+ "import": "./decode.js"
43
77
  },
44
- "devDependencies": {
45
- "@thi.ng/testament": "^0.1.6"
46
- },
47
- "keywords": [
48
- "array",
49
- "bencode",
50
- "binary",
51
- "encode",
52
- "fileformat",
53
- "transducer",
54
- "typescript"
55
- ],
56
- "publishConfig": {
57
- "access": "public"
58
- },
59
- "engines": {
60
- "node": ">=12.7"
61
- },
62
- "files": [
63
- "*.js",
64
- "*.d.ts"
65
- ],
66
- "exports": {
67
- ".": {
68
- "import": "./index.js"
69
- },
70
- "./decode": {
71
- "import": "./decode.js"
72
- },
73
- "./encode": {
74
- "import": "./encode.js"
75
- }
76
- },
77
- "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
78
- }
78
+ "./encode": {
79
+ "import": "./encode.js"
80
+ }
81
+ },
82
+ "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
83
+ }