Skip to content

Releases: gajus/slonik

v8.1.0

15 Nov 00:48
Compare
Choose a tag to compare

8.1.0 (2018-11-15)

Features

  • remove overloaded pool#connect(); too many edge cases to cover (fb595bf)

v8.0.4

15 Nov 00:27
Compare
Choose a tag to compare

8.0.4 (2018-11-15)

Bug Fixes

  • release connection in case of an error (f00b9de)

v8.0.3

15 Nov 00:03
Compare
Choose a tag to compare

8.0.3 (2018-11-15)

Bug Fixes

  • add database connection types (ae848cf)

v8.0.2

14 Nov 23:54
Compare
Choose a tag to compare

8.0.2 (2018-11-14)

Bug Fixes

v8.0.1

14 Nov 23:43
Compare
Choose a tag to compare

8.0.1 (2018-11-14)

Bug Fixes

v8.0.0

14 Nov 23:33
Compare
Choose a tag to compare

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

30 Oct 15:39
Compare
Choose a tag to compare

7.0.3 (2018-10-30)

Bug Fixes

v7.0.2

25 Oct 13:30
Compare
Choose a tag to compare

7.0.2 (2018-10-25)

Bug Fixes

v7.0.1

25 Oct 12:49
Compare
Choose a tag to compare

7.0.1 (2018-10-25)

Bug Fixes

v7.0.0

23 Oct 12:35
Compare
Choose a tag to compare

7.0.0 (2018-10-23)

Bug Fixes

Features

  • expose instance specific error constructors (c00b21f)
  • remove ability to customise errors (9c5b8b3)

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;
};