mocha-slonik

Slonik transaction support for Mocha test framework ☕️🐘

BSD-2-CLAUSE License

Downloads
148
Stars
4
Committers
4

Bot releases are hidden (Show)

mocha-slonik - v9.0.2 Latest Release

Published by AndrewJo 3 months ago

9.0.2 (2024-07-11)

Bug Fixes

  • package.json & package-lock.json to reduce vulnerabilities (#28) (c803a30)
mocha-slonik - v9.0.1

Published by AndrewJo 4 months ago

9.0.1 (2024-06-11)

Bug Fixes

  • upgrade ts-mock-imports from 1.3.8 to 1.3.16 (#27) (13b5fb6)
mocha-slonik - v9.0.0

Published by AndrewJo about 1 year ago

9.0.0 (2023-10-16)

  • chore!: update supported Slonik version to ≥35.0.0 <38 (#24) (1830b68), closes #24

BREAKING CHANGES

  • Drops support for Slonik v34 and earlier.
mocha-slonik - v8.0.0

Published by AndrewJo about 1 year ago

8.0.0 (2023-09-29)

  • chore!: update supported Slonik version to ≥34.0.0 <35 (#23) (1f4d4e4), closes #23

BREAKING CHANGES

  • copyFromBinary has been removed and Node.js v16 support has been dropped.
mocha-slonik - v7.0.1

Published by AndrewJo over 1 year ago

7.0.1 (2023-06-06)

Bug Fixes

  • upgrade sinon from 15.0.3 to 15.0.4 (#20) (31d5266)
mocha-slonik - v7.0.0

Published by AndrewJo over 1 year ago

7.0.0 (2023-04-22)

  • fix(types)!: add support for slonik >= 33.1.1 (#18) (77cb4f7), closes #18

BREAKING CHANGES

  • mocha-slonik will no longer compile with slonik version < 33.1.1

  • fix: always call .end() on PgClient setup instance

  • fix: use end method from PgPool

  • refactor: remove processID in debug logs

  • chore(deps): update dev dependency to 33.3.1

  • chore(deps): update sinon v15.0.2

  • chore(ci): test against slonik 33.3.1

  • docs: update version compatibility chart

mocha-slonik - v6.0.1

Published by AndrewJo over 1 year ago

6.0.1 (2023-04-21)

Bug Fixes

  • limit slonik version range between 33.0.0 - 33.1.0 (75b53af)

Reverts

  • switch back to lockfile v2 (19a89ee)
mocha-slonik - v6.0.0

Published by AndrewJo over 1 year ago

6.0.0 (2023-01-27)

  • feat(deps)!: upgrade to slonik 33.x.y (c2b25d1)

BREAKING CHANGES

  • Slonik v33 introduces changes to the library API that
    is not backwards compatible.
mocha-slonik - v5.0.0

Published by AndrewJo almost 2 years ago

🚨 Breaking Changes

  • Peer dependency to slonik has been updated to ^30.0.0, ^31.0.0, and ^32.0.0 (bumps major semver)
  • Drops support for mocha ^9

New Features

  • Follows the slonik API changes: createPool is now an async function
mocha-slonik - v4.2.0

Published by AndrewJo almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/AndrewJo/mocha-slonik/compare/v4.1.0...v4.2.0

mocha-slonik - v4.1.0

Published by AndrewJo over 2 years ago

Changes

  • Tested against Slonik v28.0.0. Peer dependency for Slonik updated to ^27.0.0 || ^28.0.0

Full Changelog: https://github.com/AndrewJo/mocha-slonik/compare/v4.0.1...v4.1.0

mocha-slonik - v4.0.1

Published by AndrewJo over 2 years ago

Fixes

  • Closes GHSA-64g7-mvw6-v9qj security vulnerability.

Full Changelog: https://github.com/AndrewJo/mocha-slonik/compare/v4.0.0...v4.0.1

mocha-slonik - v4.0.0

Published by AndrewJo almost 3 years ago

🚨 Breaking Changes

  • Peer dependency to slonik has been updated to 27.0.0 from 26.0.0 (bumps major semver)

New Features

  • Follows the slonik API changes and drops Type suffix from all exported types
mocha-slonik - v3.0.0

Published by AndrewJo almost 3 years ago

🚨 Breaking Changes

  • Peer dependency to slonik has been updated to 26.0.0 from 25.0.0 (bumps major semver)

New Features

  • createPool factory function reflects breaking changes in slonik and no longer extends PgPool in addition to removing support for native native pg driver support
mocha-slonik - v2.0.0

Published by AndrewJo almost 3 years ago

🚨 Breaking Changes

  • Peer dependency to slonik has been updated to 25.0.0 from 24.0.0 (bumps major semver)

New Features

  • Adds support for transactionRetryLimit argument in the transaction function (bdf8261)
mocha-slonik - v1.2.0

Published by AndrewJo almost 3 years ago

New Features

  • Adds currentTransaction getter property that returns the global DatabaseTransactionConnectionType object.

Bug Fixes

  • Fixes typing conflict with internal DatabasePoolType vs Slonik version
mocha-slonik - v1.1.1

Published by AndrewJo almost 3 years ago

Bug Fixes

  • Fixes module not found error when using in TypeScript projects
  • Fixes main field of package.json to point to compiled JavaScript file in dist/index.js
mocha-slonik - v1.1.0

Published by AndrewJo almost 3 years ago

New Feature

  • Adds createPool factory method that returns the custom bound pool object with rollback method.
  • Updated documentation on how to use createPool in tests that require better control over when to apply rollbacks.

Special thanks to @gajus for suggesting the factory design pattern!

mocha-slonik - v1.0.0

Published by AndrewJo about 3 years ago

Initial Release

  • mocha-slonik/register module for registering global test hooks in Mocha
  • mocha-slonik/bindPoolMock class for overriding Slonik's bindPool function