@thi.ng/bitstream 2.0.6 → 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 CHANGED
@@ -1,105 +1,106 @@
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.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.5...@thi.ng/bitstream@2.0.6) (2021-10-28)
7
-
8
- **Note:** Version bump only for package @thi.ng/bitstream
9
-
10
-
11
-
12
-
13
-
14
- ## [2.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.4...@thi.ng/bitstream@2.0.5) (2021-10-28)
15
-
16
- **Note:** Version bump only for package @thi.ng/bitstream
17
-
18
-
19
-
20
-
21
-
22
- ## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.3...@thi.ng/bitstream@2.0.4) (2021-10-25)
23
-
24
- **Note:** Version bump only for package @thi.ng/bitstream
25
-
26
-
27
-
28
-
29
-
30
- ## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.2...@thi.ng/bitstream@2.0.3) (2021-10-15)
31
-
32
- **Note:** Version bump only for package @thi.ng/bitstream
33
-
34
-
35
-
36
-
37
-
38
- ## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.1...@thi.ng/bitstream@2.0.2) (2021-10-15)
39
-
40
- **Note:** Version bump only for package @thi.ng/bitstream
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
41
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
42
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
43
11
 
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@2.1.0) (2021-11-17)
44
13
 
14
+ #### 🚀 Features
45
15
 
46
- ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@2.0.0...@thi.ng/bitstream@2.0.1) (2021-10-13)
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
47
21
 
48
- **Note:** Version bump only for package @thi.ng/bitstream
22
+ #### ♻️ Refactoring
49
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.
50
30
 
31
+ ### [2.0.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@2.0.7) (2021-11-10)
51
32
 
33
+ #### ♻️ Refactoring
52
34
 
35
+ - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
53
36
 
54
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.43...@thi.ng/bitstream@2.0.0) (2021-10-12)
37
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@2.0.1) (2021-10-13)
55
38
 
39
+ #### ♻️ Refactoring
56
40
 
57
- ### Build System
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
58
44
 
59
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
45
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@2.0.0) (2021-10-12)
60
46
 
47
+ #### 🛑 Breaking changes
61
48
 
62
- ### BREAKING CHANGES
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
63
61
 
64
- * discontinue CommonJS & UMD versions
62
+ #### ♻️ Refactoring
65
63
 
66
- - only ESM modules will be published from now on
67
- - CJS obsolete due to ESM support in recent versions of node:
68
- - i.e. launch NodeJS via:
69
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
70
- - in the node REPL use `await import(...)` instead of `require()`
71
- - UMD obsolete due to widespread browser support for ESM
64
+ - update imports ([f64e597](https://github.com/thi-ng/umbrella/commit/f64e597))
65
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
66
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
72
67
 
73
- Also:
74
- - normalize/restructure/reorg all package.json files
75
- - cleanup all build scripts, remove obsolete
76
- - switch from mocha to @thi.ng/testament for all tests
68
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@1.1.0) (2019-07-07)
77
69
 
70
+ #### 🚀 Features
78
71
 
72
+ - enable TS strict compiler flags (refactor) ([ab18310](https://github.com/thi-ng/umbrella/commit/ab18310))
79
73
 
74
+ #### ♻️ Refactoring
80
75
 
76
+ - address TS strictNullChecks flag ([ba7d31e](https://github.com/thi-ng/umbrella/commit/ba7d31e))
81
77
 
78
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@1.0.0) (2019-01-21)
82
79
 
83
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.0.6...@thi.ng/bitstream@1.1.0) (2019-07-07)
80
+ #### 🛑 Breaking changes
84
81
 
85
- ### Features
82
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
83
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
84
+ - build scripts now first build ES6 modules in package root, then call
85
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
86
+ - all imports MUST be updated to only refer to package level
87
+ (not individual files anymore). tree shaking in user land will get rid of
88
+ all unused imported symbols.
86
89
 
87
- - **bitstream:** enable TS strict compiler flags (refactor) ([ab18310](https://github.com/thi-ng/umbrella/commit/ab18310))
90
+ ### [0.4.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@0.4.9) (2018-05-10)
88
91
 
89
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@0.4.21...@thi.ng/bitstream@1.0.0) (2019-01-21)
92
+ #### ♻️ Refactoring
90
93
 
91
- ### Build System
94
+ - 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))
92
95
 
93
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
96
+ ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@0.4.0) (2018-03-21)
94
97
 
95
- ### BREAKING CHANGES
98
+ #### 🚀 Features
96
99
 
97
- - enabled multi-outputs (ES6 modules, CJS, UMD)
98
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
99
- - 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.
100
+ - update error handling, add [@thi.ng/atom](https://github.com/thi-ng/umbrella/tree/main/packages/atom) dep ([0fc1038](https://github.com/thi-ng/umbrella/commit/0fc1038))
100
101
 
101
- # [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@0.3.7...@thi.ng/bitstream@0.4.0) (2018-03-21)
102
+ ### [0.3.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/bitstream@0.3.1) (2018-01-24)
102
103
 
103
- ### Features
104
+ #### 🚀 Features
104
105
 
105
- - **bitstream:** update error handling, add [@thi](https://github.com/thi).ng/atom dep ([0fc1038](https://github.com/thi-ng/umbrella/commit/0fc1038))
106
+ - initial re-import as monorepo, update readme files, cleanup imports ([04ff6e9](https://github.com/thi-ng/umbrella/commit/04ff6e9))
package/README.md CHANGED
@@ -58,7 +58,7 @@ node --experimental-repl-await
58
58
  > const bitstream = await import("@thi.ng/bitstream");
59
59
  ```
60
60
 
61
- Package sizes (gzipped, pre-treeshake): ESM: 1.11 KB
61
+ Package sizes (gzipped, pre-treeshake): ESM: 1.10 KB
62
62
 
63
63
  ## Dependencies
64
64
 
package/input.js CHANGED
@@ -62,7 +62,7 @@ export class BitInputStream {
62
62
  }
63
63
  readWords(n, wordSize = 8) {
64
64
  let out = [];
65
- while (--n >= 0) {
65
+ while (n-- > 0) {
66
66
  out.push(this.read(wordSize));
67
67
  }
68
68
  return out;
package/package.json CHANGED
@@ -1,77 +1,82 @@
1
1
  {
2
- "name": "@thi.ng/bitstream",
3
- "version": "2.0.6",
4
- "description": "ES6 iterator based read/write bit streams with support for variable word widths",
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/bitstream",
3
+ "version": "2.1.2",
4
+ "description": "ES6 iterator based read/write bit streams with support for variable word widths",
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/bitstream#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/bitstream#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/errors": "^2.1.2"
38
+ },
39
+ "devDependencies": {
40
+ "@microsoft/api-extractor": "^7.18.19",
41
+ "@thi.ng/testament": "^0.2.2",
42
+ "rimraf": "^3.0.2",
43
+ "tools": "^0.0.1",
44
+ "typedoc": "^0.22.9",
45
+ "typescript": "^4.5.2"
46
+ },
47
+ "keywords": [
48
+ "binary",
49
+ "datastructure",
50
+ "iterator",
51
+ "stream",
52
+ "typescript"
53
+ ],
54
+ "publishConfig": {
55
+ "access": "public"
56
+ },
57
+ "engines": {
58
+ "node": ">=12.7"
59
+ },
60
+ "files": [
61
+ "*.js",
62
+ "*.d.ts"
63
+ ],
64
+ "exports": {
65
+ ".": {
66
+ "import": "./index.js"
35
67
  },
36
- "dependencies": {
37
- "@thi.ng/errors": "^2.0.6"
68
+ "./input": {
69
+ "import": "./input.js"
38
70
  },
39
- "devDependencies": {
40
- "@thi.ng/testament": "^0.1.6"
41
- },
42
- "keywords": [
43
- "binary",
44
- "datastructure",
45
- "iterator",
46
- "stream",
47
- "typescript"
48
- ],
49
- "publishConfig": {
50
- "access": "public"
51
- },
52
- "engines": {
53
- "node": ">=12.7"
54
- },
55
- "files": [
56
- "*.js",
57
- "*.d.ts"
58
- ],
59
- "exports": {
60
- ".": {
61
- "import": "./index.js"
62
- },
63
- "./input": {
64
- "import": "./input.js"
65
- },
66
- "./output": {
67
- "import": "./output.js"
68
- }
69
- },
70
- "thi.ng": {
71
- "related": [
72
- "range-coder",
73
- "rle-pack"
74
- ]
75
- },
76
- "gitHead": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
77
- }
71
+ "./output": {
72
+ "import": "./output.js"
73
+ }
74
+ },
75
+ "thi.ng": {
76
+ "related": [
77
+ "range-coder",
78
+ "rle-pack"
79
+ ]
80
+ },
81
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
82
+ }