Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 0 additions & 178 deletions .eslintrc

This file was deleted.

2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ console.log(randIds.map((b) => utils.toUUID(b)));
// Deterministic ids, equivalent to UUIDv5

const deteGen = new IdDeterministic({
namespace: 'foo'
namespace: 'foo',
});

const deteId1 = deteGen.get();
Expand All @@ -40,12 +40,10 @@ console.log(deteId2.toString() === deteId3.toString());

// Strictly monotonic sortable ids, equivalent to UUIDv7

let lastId = new Uint8Array(
[
0x06, 0x16, 0x3e, 0xf5, 0x6d, 0x8d, 0x70, 0x00,
0x87, 0xc4, 0x65, 0xd5, 0x21, 0x9b, 0x03, 0xd4,
]
);
let lastId = new Uint8Array([
0x06, 0x16, 0x3e, 0xf5, 0x6d, 0x8d, 0x70, 0x00, 0x87, 0xc4, 0x65, 0xd5, 0x21,
0x9b, 0x03, 0xd4,
]);

const sortGen = new IdSortable({ lastId });

Expand Down Expand Up @@ -106,7 +104,7 @@ npm install
# build the dist
npm run build
# run the repl (this allows you to import from ./src)
npm run ts-node
npm run tsx
# run the tests
npm run test
# lint the source code
Expand Down
6 changes: 3 additions & 3 deletions docs/assets/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

Loading
Loading