github gajus/slonik @slonik/types@49.7.0

latest releases: @slonik/test-ssls@49.10.1, @slonik/types@49.10.1, @slonik/driver@49.10.1...
12 days ago

Minor Changes

  • 4a18a70 Thanks @gajus! - feat: widen SerializableValue to object and drop undefined

    SerializableValue is now boolean | null | number | object | string.

    • The previous { [key: string]: unknown } and unknown[] branches required
      TypeScript to see an explicit string index signature, so values typed as
      object or as interfaces with named properties (e.g.
      { name: string; payload: Record<string, unknown> }) still failed to
      type-check. Using object accepts both.
    • undefined is removed from the union. It was always rejected at runtime
      with JSON payload must not be undefined.; the type now matches.

Don't miss a new slonik release

NewReleases is sending notifications on new releases.