@thi.ng/ksuid 3.2.95 → 3.2.100
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/package.json +121 -121
- package/CHANGELOG.md +0 -78
package/package.json
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
2
|
+
"name": "@thi.ng/ksuid",
|
|
3
|
+
"version": "3.2.100",
|
|
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
|
+
"bin": "bin/ksuid",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://thi.ng/ksuid",
|
|
15
|
+
"funding": [
|
|
16
|
+
{
|
|
17
|
+
"type": "github",
|
|
18
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "patreon",
|
|
22
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "liberapay",
|
|
26
|
+
"url": "https://liberapay.com/thi.ng"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
30
|
+
"license": "Apache-2.0",
|
|
31
|
+
"scripts": {
|
|
32
|
+
"bench": "bun bench/index.ts",
|
|
33
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
34
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
35
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
36
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
37
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
38
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
39
|
+
"pub": "npm publish --access public",
|
|
40
|
+
"test": "bun test",
|
|
41
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@thi.ng/base-n": "^2.7.52",
|
|
45
|
+
"@thi.ng/errors": "^2.5.46",
|
|
46
|
+
"@thi.ng/random": "^4.1.31",
|
|
47
|
+
"@thi.ng/strings": "^3.9.26"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"esbuild": "^0.25.11",
|
|
51
|
+
"typedoc": "^0.28.14",
|
|
52
|
+
"typescript": "^5.9.3"
|
|
53
|
+
},
|
|
54
|
+
"keywords": [
|
|
55
|
+
"32bit",
|
|
56
|
+
"64bit",
|
|
57
|
+
"base62",
|
|
58
|
+
"bigint",
|
|
59
|
+
"binary",
|
|
60
|
+
"bytes",
|
|
61
|
+
"cli",
|
|
62
|
+
"crypto",
|
|
63
|
+
"database",
|
|
64
|
+
"dynamodb",
|
|
65
|
+
"encode",
|
|
66
|
+
"epoch",
|
|
67
|
+
"generator",
|
|
68
|
+
"id",
|
|
69
|
+
"millisecond",
|
|
70
|
+
"random",
|
|
71
|
+
"sort",
|
|
72
|
+
"timestamp",
|
|
73
|
+
"tool",
|
|
74
|
+
"typescript",
|
|
75
|
+
"ulid",
|
|
76
|
+
"uuid"
|
|
77
|
+
],
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"access": "public"
|
|
80
|
+
},
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=18"
|
|
83
|
+
},
|
|
84
|
+
"files": [
|
|
85
|
+
"./*.js",
|
|
86
|
+
"./*.d.ts",
|
|
87
|
+
"bin"
|
|
88
|
+
],
|
|
89
|
+
"exports": {
|
|
90
|
+
".": {
|
|
91
|
+
"default": "./index.js"
|
|
92
|
+
},
|
|
93
|
+
"./aksuid": {
|
|
94
|
+
"default": "./aksuid.js"
|
|
95
|
+
},
|
|
96
|
+
"./api": {
|
|
97
|
+
"default": "./api.js"
|
|
98
|
+
},
|
|
99
|
+
"./cli": {
|
|
100
|
+
"default": "./cli.js"
|
|
101
|
+
},
|
|
102
|
+
"./ksuid32": {
|
|
103
|
+
"default": "./ksuid32.js"
|
|
104
|
+
},
|
|
105
|
+
"./ksuid64": {
|
|
106
|
+
"default": "./ksuid64.js"
|
|
107
|
+
},
|
|
108
|
+
"./ulid": {
|
|
109
|
+
"default": "./ulid.js"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"thi.ng": {
|
|
113
|
+
"related": [
|
|
114
|
+
"base-n",
|
|
115
|
+
"idgen",
|
|
116
|
+
"random"
|
|
117
|
+
],
|
|
118
|
+
"status": "stable",
|
|
119
|
+
"year": 2020
|
|
120
|
+
},
|
|
121
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
122
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-08-04T09:13:01Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [3.2.53](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@3.2.53) (2024-06-21)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- dedupe fromEpochBinary() ([5cd474c](https://github.com/thi-ng/umbrella/commit/5cd474c))
|
|
19
|
-
|
|
20
|
-
### [3.2.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@3.2.15) (2023-11-09)
|
|
21
|
-
|
|
22
|
-
#### ♻️ Refactoring
|
|
23
|
-
|
|
24
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
25
|
-
|
|
26
|
-
## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@3.2.0) (2023-08-12)
|
|
27
|
-
|
|
28
|
-
#### 🚀 Features
|
|
29
|
-
|
|
30
|
-
- add optional buffer args for various methods ([def0db4](https://github.com/thi-ng/umbrella/commit/def0db4))
|
|
31
|
-
- update IKSUID interface
|
|
32
|
-
- update AKSUID to re-use internal byte buffer for string IDs,
|
|
33
|
-
avoiding allocating new temp arrays
|
|
34
|
-
- refactor .timeOnlyBinary() to avoid internal temp array
|
|
35
|
-
- update tests (re-ordered random bytes, due to [770dbe5d8](https://github.com/thi-ng/umbrella/commit/770dbe5d8))
|
|
36
|
-
|
|
37
|
-
#### ⏱ Performance improvements
|
|
38
|
-
|
|
39
|
-
- update .parse() ([da6765d](https://github.com/thi-ng/umbrella/commit/da6765d))
|
|
40
|
-
- avoid allocation
|
|
41
|
-
|
|
42
|
-
### [3.1.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@3.1.15) (2023-08-06)
|
|
43
|
-
|
|
44
|
-
#### 🩹 Bug fixes
|
|
45
|
-
|
|
46
|
-
- fix [#403](https://github.com/thi-ng/umbrella/issues/403), update KSUID32 epoch handling ([abbfc5a](https://github.com/thi-ng/umbrella/commit/abbfc5a))
|
|
47
|
-
- update .ensureTime() to check against optional max value
|
|
48
|
-
- fix int coercion in KSUID32.timeOnlyBinary()
|
|
49
|
-
- update readme
|
|
50
|
-
|
|
51
|
-
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@3.1.0) (2023-02-10)
|
|
52
|
-
|
|
53
|
-
#### 🚀 Features
|
|
54
|
-
|
|
55
|
-
- add CLI wrapper ([36fdc08](https://github.com/thi-ng/umbrella/commit/36fdc08))
|
|
56
|
-
|
|
57
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@3.0.0) (2023-01-17)
|
|
58
|
-
|
|
59
|
-
#### 🛑 Breaking changes
|
|
60
|
-
|
|
61
|
-
- update readme w/ v3.0.0 info ([f8d83c8](https://github.com/thi-ng/umbrella/commit/f8d83c8))
|
|
62
|
-
- BREAKING CHANGE: `epoch` config unified to use milliseconds
|
|
63
|
-
- add new section to readme
|
|
64
|
-
- see [3d73b1766](https://github.com/thi-ng/umbrella/commit/3d73b1766) for code details
|
|
65
|
-
|
|
66
|
-
#### 🚀 Features
|
|
67
|
-
|
|
68
|
-
- fix [#372](https://github.com/thi-ng/umbrella/issues/372), add fromEpoch() methods ([e416e91](https://github.com/thi-ng/umbrella/commit/e416e91))
|
|
69
|
-
- add fromEpoch/fromEpochBinary() to IKSUID interface
|
|
70
|
-
- add impls in AKSUID
|
|
71
|
-
- add tests for all 3 classes
|
|
72
|
-
|
|
73
|
-
#### ♻️ Refactoring
|
|
74
|
-
|
|
75
|
-
- use milliseconds as unified epoch offsets ([3d73b17](https://github.com/thi-ng/umbrella/commit/3d73b17))
|
|
76
|
-
- clarify KSUIDOpts.epoch docs
|
|
77
|
-
- refactor KSUID32 to use milliseconds as `epoch` offset
|
|
78
|
-
- update tests
|