Minor Changes
-
BREAKING CHANGE: Removed adapter options
Affected APIs
PostgresDatabaseAdapterOptionstype: removedcreatePostgresDatabaseAdapterfunction:optionsarg removedPostgresDatabaseAdapterconstructor:optionsarg 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
createPostgresDatabaseAdapternow accept aClientin addition toPoolandPoolClient.This is a type-only change that aligns the function signature with existing runtime behavior.