Skip to content

Commit e2118e9

Browse files
committed
Merge branch 'main' into feat/update-upstream-sqlite
2 parents 51f68aa + 8a95b4f commit e2118e9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

sqlite3/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.7.1
2+
3+
- Web: Fix a crash when using version `2.7.0` of this package with an older
4+
WebAssembly bundle.
5+
Note: Version `2.7.0` has been retracted from pub.dev for this reason.
6+
17
## 2.7.0
28

39
- Add support for commit and rollback hooks as well as a predicate that can

sqlite3/lib/src/wasm/wasm_interop.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,11 @@ class WasmBindings {
297297
}
298298

299299
void dart_sqlite3_commits(Pointer db, int id) {
300-
return _commit_hooks!.callReturningVoid2(db.toJS, id.toJS);
300+
return _commit_hooks?.callReturningVoid2(db.toJS, id.toJS);
301301
}
302302

303303
void dart_sqlite3_rollbacks(Pointer db, int id) {
304-
return _rollback_hooks!.callReturningVoid2(db.toJS, id.toJS);
304+
return _rollback_hooks?.callReturningVoid2(db.toJS, id.toJS);
305305
}
306306

307307
int sqlite3_exec(Pointer db, Pointer sql, Pointer callback,

sqlite3/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sqlite3
22
description: Provides lightweight yet convenient bindings to SQLite by using dart:ffi
3-
version: 2.7.0
3+
version: 2.7.1
44
homepage: https://github.com/simolus3/sqlite3.dart/tree/main/sqlite3
55
issue_tracker: https://github.com/simolus3/sqlite3.dart/issues
66

0 commit comments

Comments
 (0)