github gajus/slonik v7.0.0

latest releases: @slonik/utilities@45.4.1, @slonik/types@45.4.1, @slonik/sql-tag@45.4.1...
5 years ago

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

Don't miss a new slonik release

NewReleases is sending notifications on new releases.