@thi.ng/ksuid 2.0.7 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +78 -52
  2. package/README.md +1 -1
  3. package/package.json +105 -100
package/CHANGELOG.md CHANGED
@@ -1,89 +1,115 @@
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.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@2.0.6...@thi.ng/ksuid@2.0.7) (2021-11-03)
7
-
8
- **Note:** Version bump only for package @thi.ng/ksuid
9
-
10
-
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
11
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
12
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
13
11
 
14
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@1.0.6...@thi.ng/ksuid@2.0.0) (2021-10-12)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * **tools:** update ksuid benchmarks ([6b3dbab](https://github.com/thi-ng/umbrella/commit/6b3dbabe41c4df6caca367037e7fc16c5441958b))
20
-
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@2.1.0) (2021-11-17)
21
13
 
22
- ### Build System
14
+ #### 🚀 Features
23
15
 
24
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
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
25
21
 
22
+ #### ♻️ Refactoring
26
23
 
27
- ### BREAKING CHANGES
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.
28
30
 
29
- * discontinue CommonJS & UMD versions
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@2.0.1) (2021-10-13)
30
32
 
31
- - only ESM modules will be published from now on
32
- - CJS obsolete due to ESM support in recent versions of node:
33
- - i.e. launch NodeJS via:
34
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
35
- - in the node REPL use `await import(...)` instead of `require()`
36
- - UMD obsolete due to widespread browser support for ESM
33
+ #### ♻️ Refactoring
37
34
 
38
- Also:
39
- - normalize/restructure/reorg all package.json files
40
- - cleanup all build scripts, remove obsolete
41
- - switch from mocha to @thi.ng/testament for all tests
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
42
38
 
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@2.0.0) (2021-10-12)
43
40
 
41
+ #### 🛑 Breaking changes
44
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
45
55
 
56
+ #### 🩹 Bug fixes
46
57
 
58
+ - update ksuid benchmarks ([6b3dbab](https://github.com/thi-ng/umbrella/commit/6b3dbab))
47
59
 
48
- ## [1.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@1.0.4...@thi.ng/ksuid@1.0.5) (2021-08-24)
60
+ #### ♻️ Refactoring
49
61
 
50
- **Note:** Version bump only for package @thi.ng/ksuid
62
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
63
+ - largely related to recent updates/restructuring of these packages:
64
+ - api
65
+ - defmulti
66
+ - errors
67
+ - logger
68
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
69
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
70
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
51
71
 
52
- # [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@0.3.0...@thi.ng/ksuid@0.4.0) (2021-08-07)
72
+ ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@0.4.0) (2021-08-07)
53
73
 
54
- ### Features
74
+ #### 🚀 Features
55
75
 
56
- - **ksuid:** add ULID impl, update IKSUID & tests ([566846b](https://github.com/thi-ng/umbrella/commit/566846b7cfa735f15d07b25e4514fa3ee540adbf))
76
+ - add ULID impl, update IKSUID & tests ([566846b](https://github.com/thi-ng/umbrella/commit/566846b))
57
77
 
58
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@0.2.6...@thi.ng/ksuid@0.3.0) (2021-08-07)
78
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@0.3.0) (2021-08-07)
59
79
 
60
- ### Code Refactoring
80
+ #### 🛑 Breaking changes
61
81
 
62
- - **ksuid:** extract IKSUID, update impls, docs ([1276c94](https://github.com/thi-ng/umbrella/commit/1276c940d6e7b584d90eb871261ff6a28352de4f))
82
+ - extract IKSUID, update impls, docs ([1276c94](https://github.com/thi-ng/umbrella/commit/1276c94))
83
+ - BREAKING CHANGE: Rename KSUID => KSUID32 / defKSUID32()
84
+ - update readme
85
+ - update tests
86
+ - update pkg meta
63
87
 
64
- ### Features
88
+ #### 🚀 Features
65
89
 
66
- - **ksuid:** pkg restructure, add 64bit version ([9c40b20](https://github.com/thi-ng/umbrella/commit/9c40b2053afb9067723bfb0377e5e3ea2a38c52a))
90
+ - pkg restructure, add 64bit version ([9c40b20](https://github.com/thi-ng/umbrella/commit/9c40b20))
91
+ - move KSUIDOpts to api.ts
92
+ - extract abstact AKSUID base class
93
+ - add KSUID64 & defKSUID64()
94
+ - update pkg meta
67
95
 
68
- ### BREAKING CHANGES
96
+ #### ♻️ Refactoring
69
97
 
70
- - **ksuid:** Rename KSUID => KSUID32 / defKSUID32()
71
- - update readme
72
- - update tests
73
- - update pkg meta
98
+ - better re-use, add docs/tests ([023b630](https://github.com/thi-ng/umbrella/commit/023b630))
74
99
 
75
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@0.1.10...@thi.ng/ksuid@0.2.0) (2021-03-28)
100
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@0.2.0) (2021-03-28)
76
101
 
77
- ### Features
102
+ #### 🚀 Features
78
103
 
79
- - **ksuid:** add .parse() & .timeOnly() ([80a0f70](https://github.com/thi-ng/umbrella/commit/80a0f70a2593af1c4e77a33dd3f98e36d9231c1c))
104
+ - add .parse() & .timeOnly() ([80a0f70](https://github.com/thi-ng/umbrella/commit/80a0f70))
105
+ - refactor next() to re-use format()
80
106
 
81
- # 0.1.0 (2021-01-13)
107
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@0.1.0) (2021-01-13)
82
108
 
83
- ### Features
109
+ #### 🚀 Features
84
110
 
85
- - **ksuid:** import as new pkg ([67a2e61](https://github.com/thi-ng/umbrella/commit/67a2e611a52ecd8870b43848e95d457f63185428))
111
+ - import as new pkg ([67a2e61](https://github.com/thi-ng/umbrella/commit/67a2e61))
86
112
 
87
- ### Performance Improvements
113
+ #### ⏱ Performance improvements
88
114
 
89
- - **ksuid:** add benchmarks ([aace41c](https://github.com/thi-ng/umbrella/commit/aace41ce8ec0864d38a27d9b0461b705e9e122dc))
115
+ - add benchmarks ([aace41c](https://github.com/thi-ng/umbrella/commit/aace41c))
package/README.md CHANGED
@@ -87,7 +87,7 @@ node --experimental-repl-await
87
87
  > const ksuid = await import("@thi.ng/ksuid");
88
88
  ```
89
89
 
90
- Package sizes (gzipped, pre-treeshake): ESM: 827 bytes
90
+ Package sizes (gzipped, pre-treeshake): ESM: 854 bytes
91
91
 
92
92
  ## Dependencies
93
93
 
package/package.json CHANGED
@@ -1,108 +1,113 @@
1
1
  {
2
- "name": "@thi.ng/ksuid",
3
- "version": "2.0.7",
4
- "description": "Configurable K-sortable unique IDs, ULIDs, binary & base-N encoded, 32/48/64bit time resolutions",
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/ksuid",
3
+ "version": "2.1.2",
4
+ "description": "Configurable K-sortable unique IDs, ULIDs, binary & base-N encoded, 32/48/64bit time resolutions",
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/master/packages/ksuid#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/master/packages/ksuid#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
- "bench": "../../scripts/node-esm bench/index.ts",
28
- "build": "yarn clean && tsc --declaration",
29
- "clean": "rimraf *.js *.d.ts *.map doc",
30
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
31
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
32
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
33
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
34
- "pub": "yarn build && yarn publish --access public",
35
- "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
+ "bench": "tools:node-esm bench/index.ts",
28
+ "build": "yarn clean && tsc --declaration",
29
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
30
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
31
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
32
+ "doc:readme": "yarn doc:stats && tools:readme",
33
+ "doc:stats": "tools:module-stats",
34
+ "pub": "yarn npm publish --access public",
35
+ "test": "testament test"
36
+ },
37
+ "dependencies": {
38
+ "@thi.ng/base-n": "^2.1.2",
39
+ "@thi.ng/errors": "^2.1.2",
40
+ "@thi.ng/random": "^3.2.2",
41
+ "@thi.ng/strings": "^3.2.2"
42
+ },
43
+ "devDependencies": {
44
+ "@microsoft/api-extractor": "^7.18.19",
45
+ "@thi.ng/testament": "^0.2.2",
46
+ "rimraf": "^3.0.2",
47
+ "tools": "^0.0.1",
48
+ "typedoc": "^0.22.9",
49
+ "typescript": "^4.5.2"
50
+ },
51
+ "keywords": [
52
+ "32bit",
53
+ "64bit",
54
+ "base62",
55
+ "bigint",
56
+ "binary",
57
+ "bytes",
58
+ "crypto",
59
+ "database",
60
+ "dynamodb",
61
+ "encode",
62
+ "epoch",
63
+ "generator",
64
+ "id",
65
+ "millisecond",
66
+ "random",
67
+ "sort",
68
+ "timestamp",
69
+ "typescript",
70
+ "ulid",
71
+ "uuid"
72
+ ],
73
+ "publishConfig": {
74
+ "access": "public"
75
+ },
76
+ "engines": {
77
+ "node": ">=12.7"
78
+ },
79
+ "files": [
80
+ "*.js",
81
+ "*.d.ts"
82
+ ],
83
+ "exports": {
84
+ ".": {
85
+ "import": "./index.js"
36
86
  },
37
- "dependencies": {
38
- "@thi.ng/base-n": "^2.0.6",
39
- "@thi.ng/errors": "^2.0.6",
40
- "@thi.ng/random": "^3.1.3",
41
- "@thi.ng/strings": "^3.1.3"
87
+ "./aksuid": {
88
+ "import": "./aksuid.js"
42
89
  },
43
- "devDependencies": {
44
- "@thi.ng/testament": "^0.1.6"
90
+ "./api": {
91
+ "import": "./api.js"
45
92
  },
46
- "keywords": [
47
- "32bit",
48
- "64bit",
49
- "base62",
50
- "bigint",
51
- "binary",
52
- "bytes",
53
- "crypto",
54
- "database",
55
- "dynamodb",
56
- "encode",
57
- "epoch",
58
- "generator",
59
- "id",
60
- "millisecond",
61
- "random",
62
- "sort",
63
- "timestamp",
64
- "typescript",
65
- "ulid",
66
- "uuid"
67
- ],
68
- "publishConfig": {
69
- "access": "public"
93
+ "./ksuid32": {
94
+ "import": "./ksuid32.js"
70
95
  },
71
- "engines": {
72
- "node": ">=12.7"
96
+ "./ksuid64": {
97
+ "import": "./ksuid64.js"
73
98
  },
74
- "files": [
75
- "*.js",
76
- "*.d.ts"
99
+ "./ulid": {
100
+ "import": "./ulid.js"
101
+ }
102
+ },
103
+ "thi.ng": {
104
+ "related": [
105
+ "base-n",
106
+ "idgen",
107
+ "random"
77
108
  ],
78
- "exports": {
79
- ".": {
80
- "import": "./index.js"
81
- },
82
- "./aksuid": {
83
- "import": "./aksuid.js"
84
- },
85
- "./api": {
86
- "import": "./api.js"
87
- },
88
- "./ksuid32": {
89
- "import": "./ksuid32.js"
90
- },
91
- "./ksuid64": {
92
- "import": "./ksuid64.js"
93
- },
94
- "./ulid": {
95
- "import": "./ulid.js"
96
- }
97
- },
98
- "thi.ng": {
99
- "related": [
100
- "base-n",
101
- "idgen",
102
- "random"
103
- ],
104
- "status": "stable",
105
- "year": 2020
106
- },
107
- "gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
108
- }
109
+ "status": "stable",
110
+ "year": 2020
111
+ },
112
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
113
+ }