Skip to content

v4.0.1 Release

Latest
Compare
Choose a tag to compare
@theogravity theogravity released this 04 Apr 21:56
· 91 commits to master since this release

New major version 4!

This version has been written in Typescript with a target of node.js v10 or greater.

If you are using an older version of node < 10, use the 3.x version of the library instead.

What's new:

  • ZERO dependencies!
    • This should make troubleshooting the library vs the sqlite3 driver easier. Most issues relate
      to the sqlite3 driver vs the library.
    • Allows support for alternative drivers such as sqlite3-offline as long as they match the node-sqlite3
      API.
  • Re-written in Typescript.
  • All existing features maintained.
  • Existing unit tests were cleaned up and pass, new tests added.
  • Better documentation. See README.md.
  • New CI process - pull requests merged into master will run tests, build, and auto-publish to NPM.
  • Parity with the node-sqlite3 API.
    • Exceptions are serialize and parallelize (PRs are welcomed!)

Breaking Changes:

  • sqlite3 is no longer a dependency of this project. You must install it first
    before using this wrapper library.
    • This allows for usage of alternative libraries.
    • This means verbose and cache modes must be enabled before using the library.
    • The README.md file explains how to do this.
  • Opening a new database has changed. See README.md for example.
  • migrations API: force is now a boolean.
  • Can no longer specify a custom Promise library. Uses native Promise instead.