@thi.ng/ksuid 3.2.51 → 3.2.53

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,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-23T07:02:18Z
3
+ - **Last updated**: 2024-06-21T19:34:38Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [3.2.53](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@3.2.53) (2024-06-21)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - dedupe fromEpochBinary() ([5cd474c](https://github.com/thi-ng/umbrella/commit/5cd474c))
17
+
12
18
  ### [3.2.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/ksuid@3.2.15) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 192 standalone projects, maintained as part
10
+ > This is one of 193 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -122,7 +122,7 @@ For Node.js REPL:
122
122
  const ksuid = await import("@thi.ng/ksuid");
123
123
  ```
124
124
 
125
- Package sizes (brotli'd, pre-treeshake): ESM: 997 bytes
125
+ Package sizes (brotli'd, pre-treeshake): ESM: 990 bytes
126
126
 
127
127
  ## Dependencies
128
128
 
package/aksuid.js CHANGED
@@ -24,8 +24,7 @@ class AKSUID {
24
24
  return this.format(this.nextBinary(this.tmp));
25
25
  }
26
26
  nextBinary(buf) {
27
- buf = this.timeOnlyBinary(void 0, buf);
28
- return this.rnd ? randomBytesFrom(this.rnd, buf, this.epochSize) : randomBytes(buf, this.epochSize);
27
+ return this.fromEpochBinary(void 0, buf);
29
28
  }
30
29
  timeOnly(epoch) {
31
30
  return this.format(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/ksuid",
3
- "version": "3.2.51",
3
+ "version": "3.2.53",
4
4
  "description": "Configurable K-sortable unique IDs, ULIDs, binary & base-N encoded, 32/48/64bit time resolutions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/thi-ng/umbrella.git"
13
13
  },
14
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/ksuid#readme",
14
+ "homepage": "https://thi.ng/ksuid",
15
15
  "funding": [
16
16
  {
17
17
  "type": "github",
@@ -38,16 +38,16 @@
38
38
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@thi.ng/base-n": "^2.7.13",
42
- "@thi.ng/errors": "^2.5.6",
43
- "@thi.ng/random": "^3.7.5",
44
- "@thi.ng/strings": "^3.7.32"
41
+ "@thi.ng/base-n": "^2.7.15",
42
+ "@thi.ng/errors": "^2.5.8",
43
+ "@thi.ng/random": "^3.8.1",
44
+ "@thi.ng/strings": "^3.7.34"
45
45
  },
46
46
  "devDependencies": {
47
- "@microsoft/api-extractor": "^7.43.0",
48
- "esbuild": "^0.20.2",
49
- "typedoc": "^0.25.12",
50
- "typescript": "^5.4.3"
47
+ "@microsoft/api-extractor": "^7.47.0",
48
+ "esbuild": "^0.21.5",
49
+ "typedoc": "^0.25.13",
50
+ "typescript": "^5.5.2"
51
51
  },
52
52
  "keywords": [
53
53
  "32bit",
@@ -114,5 +114,5 @@
114
114
  "status": "stable",
115
115
  "year": 2020
116
116
  },
117
- "gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
117
+ "gitHead": "154c95cf9d6bab32174498ec3b5b5d87e42be7f9\n"
118
118
  }