github gajus/slonik @slonik/sql-tag@49.14.0

latest releases: @slonik/types@49.14.0, slonik-interceptor-query-logging@49.14.0, slonik@49.14.0...
one hour ago

Minor Changes

  • 625c3e7 Thanks @gajus! - fix: the types no longer accept arrays and buffers as values interpolated in a query, or as members of sql.join, sql.list, sql.and and sql.or. They passed type-checking, but always threw at runtime (e.g. "Unexpected value expression."). Bind arrays using sql.array and buffers using sql.binary. Code that interpolates a value typed as PrimitiveValueExpression (which includes arrays and buffers) no longer compiles; type the value as ValueExpression instead.

Patch Changes

  • Updated dependencies [6090a3c]:
    • @slonik/errors@49.14.0
    • @slonik/types@49.14.0

Don't miss a new slonik release

NewReleases is sending notifications on new releases.