@tnid/core 0.0.4 → 0.0.6

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/README.md CHANGED
@@ -94,6 +94,7 @@ import {
94
94
  TnidValue, // Branded string type
95
95
  TnidVariant, // "v0" | "v1" | "v2" | "v3"
96
96
  UuidLike, // UUID string operations (type + namespace)
97
+ ValidateName, // Compile-time name validation (for library authors)
97
98
  } from "@tnid/core";
98
99
  ```
99
100
 
@@ -284,7 +285,7 @@ await db.query("INSERT INTO users (id) VALUES ($1)", [uuid]);
284
285
 
285
286
  ## Related Packages
286
287
 
287
- - **@tnid/encryption** - Format-preserving encryption to convert V0 (time-ordered) to V1 (random-looking) IDs
288
+ - **@tnid/encryption** - Encrypt V0 TNIDs to V1 to hide timestamp information
288
289
 
289
290
  ## License
290
291
 
package/esm/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { TnidValue, TnidVariant, Case, NamedTnid, TnidType, } from "./types.js";
1
+ export type { TnidValue, TnidVariant, Case, NamedTnid, TnidType, ValidateName, } from "./types.js";
2
2
  export { DynamicTnid } from "./dynamic.js";
3
3
  export { UuidLike } from "./uuidlike.js";
4
4
  export { Tnid } from "./factory.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,GACT,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tnid/core",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Type-safe, named, unique identifiers (TNIDs) - UUID-compatible IDs with embedded type names",
5
5
  "keywords": [
6
6
  "uuid",
package/script/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { TnidValue, TnidVariant, Case, NamedTnid, TnidType, } from "./types.js";
1
+ export type { TnidValue, TnidVariant, Case, NamedTnid, TnidType, ValidateName, } from "./types.js";
2
2
  export { DynamicTnid } from "./dynamic.js";
3
3
  export { UuidLike } from "./uuidlike.js";
4
4
  export { Tnid } from "./factory.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,GACT,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}