Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
with SQLite 3.30.1
  • Loading branch information
Christopher J. Brody committed Dec 3, 2019
1 parent 140d646 commit ac9a8ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### cordova-sqlite-storage 3.4.1-dev

TBD
- SQLite 3.31.1 update from [email protected]

#### cordova-sqlite-storage 3.4.0

Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ See the [Sample section](#sample) for a sample with a more detailed explanation
- Cordova versions older than `6.0.0` are missing the `[email protected]` security fixes.
- This plugin version uses a `before_plugin_install` hook to install sqlite3 library dependencies from `cordova-sqlite-storage-dependencies` via npm.
- Use of other systems such as Cordova Plugman, PhoneGap CLI, PhoneGap Build, and Intel XDK is no longer supported by this plugin version since they do not honor the `before_plugin_install` hook. The supported solution is to use [litehelpers / Cordova-sqlite-evcore-extbuild-free](https://github.com/litehelpers/Cordova-sqlite-evcore-extbuild-free) (GPL or commercial license terms); deprecated alternative with permissive license terms is available at: [brodybits / cordova-sqlite-legacy-build-support](https://github.com/brodybits/cordova-sqlite-legacy-build-support) (very limited testing, very limited updates).
- SQLite `3.28.0` included when building (all platforms), with the following compile-time definitions:
- SQLite `3.30.1` included when building (all platforms), with the following compile-time definitions:
- `SQLITE_THREADSAFE=1`
- `SQLITE_DEFAULT_SYNCHRONOUS=3` (EXTRA DURABLE build setting) ref: [xpbrew/cordova-sqlite-storage#736](https://github.com/xpbrew/cordova-sqlite-storage/issues/736)
- `SQLITE_DEFAULT_MEMSTATUS=0`
Expand Down Expand Up @@ -235,7 +235,11 @@ See the [Sample section](#sample) for a sample with a more detailed explanation

## Announcements

- Using recent version of SQLite3 (`3.28.0`) with security updates ([xpbrew/cordova-sqlite-storage#867](https://github.com/xpbrew/cordova-sqlite-storage/issues/867) & [xpbrew/cordova-sqlite-storage#837](https://github.com/xpbrew/cordova-sqlite-storage/issues/837)) and window functions
- Using recent version of SQLite3 (`3.30.1`) with window functions and recent security updates:
- [xpbrew/cordova-sqlite-storage#895](https://github.com/xpbrew/cordova-sqlite-storage/issues/895)
- [xpbrew/cordova-sqlite-storage#867](https://github.com/xpbrew/cordova-sqlite-storage/issues/867)
- [xpbrew/cordova-sqlite-storage#837](https://github.com/xpbrew/cordova-sqlite-storage/issues/837)
and window functions
- Using `SQLITE_DEFAULT_SYNCHRONOUS=3` (EXTRA DURABLE) build setting to be extra robust against possible database corruption ref: [xpbrew/cordova-sqlite-storage#736](https://github.com/xpbrew/cordova-sqlite-storage/issues/736)
- `SQLITE_DBCONFIG_DEFENSIVE` flag is used for extra SQL safety, as described above
- Nice overview of alternatives for storing local data in Cordova apps at: <https://www.sitepoint.com/storing-local-data-in-a-cordova-app/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"homepage": "https://github.com/xpbrew/cordova-sqlite-storage",
"dependencies": {
"cordova-sqlite-storage-dependencies": "2.1.0"
"cordova-sqlite-storage-dependencies": "2.1.1"
},
"scripts": {
"clean-spec": "rm -rf spec/[mnp]* && git cl spec/config.xml && git status --ignored",
Expand Down
2 changes: 1 addition & 1 deletion spec/www/spec/sqlite-version-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var mytests = function() {
expect(rs).toBeDefined();
expect(rs.rows).toBeDefined();
expect(rs.rows.length).toBe(1);
expect(rs.rows.item(0).myResult).toBe('3.28.0');
expect(rs.rows.item(0).myResult).toBe('3.30.1');

// Close (plugin only) & finish:
(isWebSql) ? done() : db.close(done, done);
Expand Down

0 comments on commit ac9a8ea

Please sign in to comment.