durcno@1.0.0-alpha.15
Minor Changes
-
6506b08 - Thanks to @almahdi404 !
change(pgvector): simplify vector/halfvec value type to number[]
The
vectorandhalfvecpgvector columns no longer infer a fixed-length tuple type whendimensionsis a numeric literal. Both columns now always returnnumber[].Previously, providing a literal
dimensionsvalue would cause the TypeScript type to be inferred as a fixed-length tuple (e.g.,[number, number, number]fordimensions: 3). This behavior has been removed in favor of the simplernumber[]type.The
zodTypeScalergetter was also updated — instead of producing az.tuple(...)schema for fixed dimensions, it now usesz.array(z.number()).length(dimensions), which validates the length at runtime without requiring tuple types.