Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add import readMigrations function in the Database class #179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# You need to add a deploy key with write permission in order for the CI to commit changes
# back to the repo
# https://circleci.com/docs/2.0/gh-bb-integration/#adding-readwrite-deployment-keys-to-github-or-bitbucket
- "30:87:05:71:0d:09:ab:2f:d6:02:5e:24:64:1a:ce:6a"
- '30:87:05:71:0d:09:ab:2f:d6:02:5e:24:64:1a:ce:6a'
# Download and cache dependencies so subsequent builds run faster
- restore_cache:
keys:
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
# You need to add a deploy key with write permission in order for the CI to commit changes
# back to the repo
# https://circleci.com/docs/2.0/gh-bb-integration/#adding-readwrite-deployment-keys-to-github-or-bitbucket
- "c0:d3:c4:b7:ee:55:37:0e:3a:a4:ba:42:a4:c6:9b:04"
- 'c0:d3:c4:b7:ee:55:37:0e:3a:a4:ba:42:a4:c6:9b:04'
# Download and cache dependencies so subsequent builds run faster
- restore_cache:
keys:
Expand Down
62 changes: 44 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## 5.1.1 - Wed Nov 01 2023 23:59:09

**Contributor:** Theo Gravity

- Update vendor typings to use sqlite3 (#176)

## 5.1.1 - Wed Nov 01 2023 23:59:09
**Contributor:** Theo Gravity
- Update vendor typings to use sqlite3 (#176)
## 5.0.1 - Tue Jul 11 2023 17:36:14

**Contributor:** Aleksandr Ananin
Expand Down Expand Up @@ -76,6 +76,7 @@ that may handle errors in their own way prior to this fix.
- Bump browserslist from 4.16.3 to 4.16.6 (#145)

Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.

- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6)
Expand All @@ -91,6 +92,7 @@ Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.c
- Bump handlebars from 4.7.6 to 4.7.7 (#141)

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.

- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)
Expand All @@ -112,6 +114,7 @@ Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.c
- Bump y18n from 4.0.0 to 4.0.1 (#139)

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.

- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)
Expand All @@ -127,6 +130,7 @@ Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.c
- Bump ini from 1.3.5 to 1.3.8 (#135)

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.

- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Expand All @@ -141,6 +145,7 @@ Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.c
- Bump highlight.js from 10.1.2 to 10.4.1 (#133)

Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.1.2 to 10.4.1.

- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/10.1.2...10.4.1)
Expand Down Expand Up @@ -192,6 +197,7 @@ This allows for the specification of an anonymous database.
- Bump lodash from 4.17.15 to 4.17.19 (#122)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.

- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Expand Down Expand Up @@ -281,41 +287,43 @@ If you are using an older version of node < 10, use the 3.x version of the libra
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.
- 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!)
- 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.
- `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.


###### [v3.0.3]

> 2019-03-22

- Export class types for flow [##88](https://github.com/kriasoft/node-sqlite/pull/88)

###### [v3.0.2]

> 2019-02-14

- Flow: Add Flow typings [##86](https://github.com/kriasoft/node-sqlite/pull/86)

###### [v3.0.1]

> 2019-01-28

- Typescript: Add cached option to open function [##81](https://github.com/kriasoft/node-sqlite/pull/81)
Expand All @@ -324,21 +332,25 @@ before using this wrapper library.
- Apply `npm audit` fixes (`mocha` updated to latest)

###### [v3.0.0]

> 2018-08-22

- Add support for ES6 tagged template strings ([##66](https://github.com/kriasoft/node-sqlite/pull/66))

###### [v2.9.3]

> 2018-08-22

- Change baseline `sqlite3` version from `4.0.0` -> `^4.0.0` ([##71](https://github.com/kriasoft/node-sqlite/pull/71))

###### [v2.9.2]

> 2018-04-20

- Bump up baseline `sqlite3` version from `3.1.13` -> `4.0.0` ([##56](https://github.com/kriasoft/node-sqlite/pull/56))

###### [v2.9.1]

> 2018-01-13

- Expose the `sqlite3##configure` method ([##53](https://github.com/kriasoft/node-sqlite/pull/53))
Expand All @@ -348,71 +360,84 @@ before using this wrapper library.
- Typescript updates ([##47](https://github.com/kriasoft/node-sqlite/pull/47))

###### [v2.9.0]

> 2017-11-27

- Move away from global db object in readme ([##45](https://github.com/kriasoft/node-sqlite/pull/45))
- Fix typescript 2.6.1 issue where *.d.ts contains executable code when it is no longer allowed ([##47](https://github.com/kriasoft/node-sqlite/pull/47))
- Fix typescript 2.6.1 issue where \*.d.ts contains executable code when it is no longer allowed ([##47](https://github.com/kriasoft/node-sqlite/pull/47))
- Fix readme typo ([##46](https://github.com/kriasoft/node-sqlite/pull/49))
- Bump up baseline `sqlite3` version from `3.1.8` -> `3.1.13`

###### [v2.8.0]

> 2017-05-21

- Match only “down” as separator in migration files ([##32](https://github.com/kriasoft/node-sqlite/pull/32))

###### [v2.7.0]

> 2017-05-01

- Added support to use the [database object cache](https://github.com/mapbox/node-sqlite3/wiki/Caching) as an option (see readme)

###### [v2.6.0]

> 2017-04-30

- Migration bug fixed where valid multiple dashes (eg a PEM string) was being removed ([##28](https://github.com/kriasoft/node-sqlite/pull/28))

###### [v2.5.0]

> 2017-03-23

- npm publish'd from the wrong area. 2.4.0 is unpublished, 2.5.0 is the latest.

###### [v2.4.0]

> 2017-03-23

- Typescript updates - Make ambient declarations more useful for type inference ([##26](https://github.com/kriasoft/node-sqlite/pull/26))

###### [v2.3.0]

> 2017-01-31

- Fix a bug sorting of schemas during migrations ([##25](https://github.com/kriasoft/node-sqlite/pull/17))

###### [v2.2.4]

> 2016-12-10

- Add TypeScript definition ([##21](https://github.com/kriasoft/node-sqlite/pull/21))

###### [v2.2.3]

> 2016-11-10

- Update `sqlite3` package to 3.1.8
- Use `external-helpers` plugin in Babel config (ref [##12](https://github.com/kriasoft/node-sqlite/issues/12))

###### [v2.2.2]

> 2016-11-02

- Fix duplicate migration application when db.migrate() is run multiple times ([##19](https://github.com/kriasoft/node-sqlite/pull/9))

###### [v2.2.1]

> 2016-10-26

- Update `sqlite3` package to 3.1.7 ([##17](https://github.com/kriasoft/node-sqlite/pull/17), [changelog](https://github.com/mapbox/node-sqlite3/blob/master/CHANGELOG.md))

###### [v2.2.0]

> 2016-07-22

- Add named parameters support (https://github.com/kriasoft/node-sqlite/pull/10)
- `Statement` now has `sql()`, `lastId()`, `changes()`

###### [v2.0.2]

> 2016-05-21

- Add SQL-based migrations API: `db.migrate({ force: 'last' })`
Expand All @@ -421,6 +446,7 @@ before using this wrapper library.
- Add async wrapper for `sqlite3` Statement object

###### [v1.0.0]

> 2016-05-19

- The initial release after a couple of preview versions earlier this year
Expand Down
Loading