github remix-run/remix data-table-postgres@0.3.0
data-table-postgres v0.3.0

latest release: assert@0.1.0...
11 hours ago

Minor Changes

  • BREAKING CHANGE: Removed adapter options

    Affected APIs

    • PostgresDatabaseAdapterOptions type: removed
    • createPostgresDatabaseAdapter function: options arg removed
    • PostgresDatabaseAdapter constructor: options arg removed

    Why

    Adapter options existed solely for tests to override adapter capabilities.
    If you must override capabilities, you can do so directly via mutation:

    let adapter = createPostgresDatabaseAdapter(postgres)
    adapter.capabilities = {
      ...adapter.capabilities,
      returning: false,
    }
  • Types for createPostgresDatabaseAdapter now accept a Client in addition to Pool and PoolClient.

    This is a type-only change that aligns the function signature with existing runtime behavior.

Don't miss a new remix release

NewReleases is sending notifications on new releases.