feat(identifiers): add slug, UUID, prefixed identifier and URI helpers #32

Merged
crapougnax merged 2 commits from feat/identifiers into develop 2026-11-14 08:30:36 +00:00
Owner

New package @quatrain/identifiers, without dependency:

  • slugify, isSlug, assertSlug: slugs valid in a path, a file name and a
    DNS label;
  • uniqueSlug: first free slug with a counter suffix;
  • uuid, isUuid, prefixedId, isPrefixedId: generated identifiers;
  • isOpaqueId, assertOpaqueId: sanity check of identifiers issued by
    another system;
  • isUri: absolute URI, optionally restricted to allowed schemes.

Uniqueness itself stays a storage concern.

Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com

New package @quatrain/identifiers, without dependency: - slugify, isSlug, assertSlug: slugs valid in a path, a file name and a DNS label; - uniqueSlug: first free slug with a counter suffix; - uuid, isUuid, prefixedId, isPrefixedId: generated identifiers; - isOpaqueId, assertOpaqueId: sanity check of identifiers issued by another system; - isUri: absolute URI, optionally restricted to allowed schemes. Uniqueness itself stays a storage concern. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
feat(identifiers): add slug, UUID, prefixed identifier and URI helpers
Some checks failed
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Successful in 6m16s
Quatrain Core Sovereign CI / Publish Changed Packages to npm (push) Has been skipped
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (pull_request) Has been cancelled
Quatrain Core Sovereign CI / Publish Changed Packages to npm (pull_request) Has been cancelled
1aeed6db03
New package @quatrain/identifiers, without dependency:

- slugify, isSlug, assertSlug: slugs valid in a path, a file name and a
  DNS label;
- uniqueSlug: first free slug with a counter suffix;
- uuid, isUuid, prefixedId, isPrefixedId: generated identifiers;
- isOpaqueId, assertOpaqueId: sanity check of identifiers issued by
  another system;
- isUri: absolute URI, optionally restricted to allowed schemes.

Uniqueness itself stays a storage concern.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merge branch 'develop' into feat/identifiers
All checks were successful
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Successful in 6m31s
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 6m31s
Quatrain Core Sovereign CI / Publish Changed Packages to npm (push) Has been skipped
Quatrain Core Sovereign CI / Publish Changed Packages to npm (pull_request) Has been skipped
27922753d4
crapougnax merged commit 52954e0e33 into develop 2026-11-14 08:30:36 +00:00
crapougnax deleted branch feat/identifiers 2026-11-14 08:30:36 +00:00
Sign in to join this conversation.
No description provided.