@thi.ng/ksuid 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 +78 -60
  2. package/package.json +105 -100
package/CHANGELOG.md CHANGED
@@ -1,97 +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.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@2.0.7...@thi.ng/ksuid@2.0.8) (2021-11-10)
7
-
8
- **Note:** Version bump only for package @thi.ng/ksuid
9
-
10
-
11
-
12
-
13
-
14
- ## [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)
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
15
5
 
16
- **Note:** Version bump only for package @thi.ng/ksuid
17
-
18
-
19
-
20
-
21
-
22
- # [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)
23
-
24
-
25
- ### Bug Fixes
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
26
8
 
27
- * **tools:** update ksuid benchmarks ([6b3dbab](https://github.com/thi-ng/umbrella/commit/6b3dbabe41c4df6caca367037e7fc16c5441958b))
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
28
11
 
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@2.1.0) (2021-11-17)
29
13
 
30
- ### Build System
14
+ #### 🚀 Features
31
15
 
32
- * 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
33
21
 
22
+ #### ♻️ Refactoring
34
23
 
35
- ### 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.
36
30
 
37
- * discontinue CommonJS & UMD versions
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@2.0.1) (2021-10-13)
38
32
 
39
- - only ESM modules will be published from now on
40
- - CJS obsolete due to ESM support in recent versions of node:
41
- - i.e. launch NodeJS via:
42
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
43
- - in the node REPL use `await import(...)` instead of `require()`
44
- - UMD obsolete due to widespread browser support for ESM
33
+ #### ♻️ Refactoring
45
34
 
46
- Also:
47
- - normalize/restructure/reorg all package.json files
48
- - cleanup all build scripts, remove obsolete
49
- - 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
50
38
 
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@2.0.0) (2021-10-12)
51
40
 
41
+ #### 🛑 Breaking changes
52
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
53
55
 
56
+ #### 🩹 Bug fixes
54
57
 
58
+ - update ksuid benchmarks ([6b3dbab](https://github.com/thi-ng/umbrella/commit/6b3dbab))
55
59
 
56
- ## [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
57
61
 
58
- **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)
59
71
 
60
- # [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)
61
73
 
62
- ### Features
74
+ #### 🚀 Features
63
75
 
64
- - **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))
65
77
 
66
- # [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)
67
79
 
68
- ### Code Refactoring
80
+ #### 🛑 Breaking changes
69
81
 
70
- - **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
71
87
 
72
- ### Features
88
+ #### 🚀 Features
73
89
 
74
- - **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
75
95
 
76
- ### BREAKING CHANGES
96
+ #### ♻️ Refactoring
77
97
 
78
- - **ksuid:** Rename KSUID => KSUID32 / defKSUID32()
79
- - update readme
80
- - update tests
81
- - update pkg meta
98
+ - better re-use, add docs/tests ([023b630](https://github.com/thi-ng/umbrella/commit/023b630))
82
99
 
83
- # [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)
84
101
 
85
- ### Features
102
+ #### 🚀 Features
86
103
 
87
- - **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()
88
106
 
89
- # 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)
90
108
 
91
- ### Features
109
+ #### 🚀 Features
92
110
 
93
- - **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))
94
112
 
95
- ### Performance Improvements
113
+ #### ⏱ Performance improvements
96
114
 
97
- - **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/package.json CHANGED
@@ -1,108 +1,113 @@
1
1
  {
2
- "name": "@thi.ng/ksuid",
3
- "version": "2.0.8",
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.3",
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.3.0"
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.7",
39
- "@thi.ng/errors": "^2.0.6",
40
- "@thi.ng/random": "^3.1.4",
41
- "@thi.ng/strings": "^3.1.4"
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": "5fe52419af63984ebe53032201b2a6174b9cb159"
108
- }
109
+ "status": "stable",
110
+ "year": 2020
111
+ },
112
+ "gitHead": "32cf1a96854f9bb97aca65ffa05ca862ea377059\n"
113
+ }