data-table-postgres@0.3.0
Breaking Changes📦 remixView on GitHub →
⚠ 1 breaking✨ 1 features🔧 3 symbols
Summary
This release removes the deprecated adapter options argument from Postgres database adapter creation functions and constructors, requiring users to mutate capabilities directly. It also includes a type-only update to allow `Client` in `createPostgresDatabaseAdapter`.
⚠️ Breaking Changes
- Removed adapter options. The `options` argument has been removed from `PostgresDatabaseAdapterOptions` type, `createPostgresDatabaseAdapter` function, and `PostgresDatabaseAdapter` constructor. To override adapter capabilities, mutate the `capabilities` property directly on the adapter instance after creation, e.g., `adapter.capabilities = { ...adapter.capabilities, returning: false }`.
Migration Steps
- If you were passing an `options` argument to `createPostgresDatabaseAdapter` or the `PostgresDatabaseAdapter` constructor, remove it.
- If you relied on adapter options to override capabilities, mutate the `capabilities` property on the returned adapter instance instead.
✨ New Features
- The `createPostgresDatabaseAdapter` function now accepts a `Client` type in addition to `Pool` and `PoolClient` in its signature (type-only change).