simpleflakes 3.0.3 → 3.0.5

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/README.md +3 -3
  2. package/package.json +9 -6
package/README.md CHANGED
@@ -57,7 +57,7 @@ console.log(id); // 4234673179811182512n (BigInt)
57
57
  // Convert to different formats
58
58
  console.log(id.toString()); // "4234673179811182512"
59
59
  console.log(id.toString(16)); // "3ac494d21e84f7b0" (hex)
60
- console.log(id.toString(36)); // "20rfh5bt4k0g" (base36 - shortest)
60
+ console.log(id.toString(36)); // "w68acyhy50hc" (base36 - shortest)
61
61
  ```
62
62
 
63
63
  ### TypeScript / ES Modules
@@ -255,7 +255,7 @@ const id = uuidv4(); // "f47ac10b-58cc-4372-a567-0e02b2c3d479"
255
255
 
256
256
  // After (Simpleflake)
257
257
  import { simpleflake } from 'simpleflakes';
258
- const id = simpleflake().toString(36); // "20rfh5bt4k0g" (shorter!)
258
+ const id = simpleflake().toString(36); // "w68acyhy50hc" (shorter!)
259
259
  ```
260
260
 
261
261
  ### From Twitter Snowflake
@@ -286,7 +286,7 @@ const serviceBId = simpleflake(); // Service B
286
286
  ### Short URLs
287
287
  ```javascript
288
288
  // Generate compact URL identifiers
289
- const shortId = simpleflake().toString(36); // "20rfh5bt4k0g"
289
+ const shortId = simpleflake().toString(36); // "w68acyhy50hc"
290
290
  const url = `https://short.ly/${shortId}`;
291
291
  ```
292
292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpleflakes",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "Fast, and reliable, distributed 64-bit ID generation, in pure JavaScript, for Node.js.",
5
5
  "main": "dist/simpleflakes.js",
6
6
  "types": "dist/simpleflakes.d.ts",
@@ -33,14 +33,17 @@
33
33
  "snowflake",
34
34
  "flake",
35
35
  "id",
36
- "uuidv4",
36
+ "uuid",
37
+ "sequential",
38
+ "monotonic",
39
+ "ksuid",
40
+ "nanoid",
37
41
  "uuidv7",
38
42
  "database",
39
- "shards",
43
+ "distributed",
40
44
  "bigint",
41
- "sql",
42
- "nosql",
43
- "partition"
45
+ "time-ordered",
46
+ "typescript"
44
47
  ],
45
48
  "author": {
46
49
  "name": "Leonardo Dutra",