Releases: gajus/slonik
Releases · gajus/slonik
v8.1.0
v8.0.4
v8.0.3
v8.0.2
v8.0.1
v8.0.0
8.0.0 (2018-11-14)
Bug Fixes
Features
- add pool#connect((connection) => {}) API (453ca43)
- add poolId, connectionId, transactionId (f278a68)
- make query logger connection instance specific (95908b6)
- restrict creating transaction from within a transaction (397d1d9)
- use exact objects (2a7f891)
BREAKING CHANGES
- previous release (wrongly) allowed to create a transaction from within a transaction.
v7.0.3
v7.0.2
v7.0.1
v7.0.0
7.0.0 (2018-10-23)
Bug Fixes
- update dependencies (e15bd72)
Features
BREAKING CHANGES
- Removing ability to configure NotFoundError.
Instead use a helper function to check if error is of certain type, e.g.
// @flow
import {
NotFoundError as SlonikNotFoundError
} from 'slonik';
import {
NotFoundError as LocalNotFoundError
} from '../types';
export default (error: Error) => {
return error instanceof SlonikNotFoundError || error instanceof LocalNotFoundError;
};