Skip to content

Commit

Permalink
Use monotonicFactory for ULID
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Jun 24, 2024
1 parent 6748388 commit 08382ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { createId } from "@paralleldrive/cuid2";
import { json } from "@remix-run/cloudflare";
import { useLoaderData } from "@remix-run/react";
import { useId } from "react";
import { ulid } from "ulidx";
import { monotonicFactory } from "ulidx";
import { v7 } from "uuid";

export function loader() {
return json({
uuidv4: crypto.randomUUID(),
uuidv7: v7(),
cuid: createId(),
ulid: ulid(),
ulid: monotonicFactory()(),
});
}

Expand Down

0 comments on commit 08382ac

Please sign in to comment.