Serialize NoteDTO Long IDs as strings for JavaScript precision safety

Fixkamo-shared-library
Shipped
March 23, 2026 at 8:10 PM UTC
Author
Kamo
Commit
bde9c7a

CockroachDB unique_rowid() IDs exceed JavaScript's MAX_SAFE_INTEGER, causing precision loss when parsed as numbers. Add @JsonSerialize with ToStringSerializer to id and userId fields so they are serialized as JSON strings.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing