expo-sqlite 57.0.4 → 57.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/sqlite/NativeDatabaseBinding.kt +1 -0
  4. package/android/src/main/java/expo/modules/sqlite/SQLiteModule.kt +9 -1
  5. package/expo-module.config.json +1 -1
  6. package/ios/SQLiteModule.swift +9 -1
  7. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5-sources.jar +0 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5-sources.jar.md5 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5-sources.jar.sha1 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5-sources.jar.sha256 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5-sources.jar.sha512 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.aar +0 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.aar.md5 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.aar.sha1 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.aar.sha256 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.aar.sha512 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/{57.0.4/expo.modules.sqlite-57.0.4.module → 57.0.5/expo.modules.sqlite-57.0.5.module} +22 -22
  18. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.module.md5 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.module.sha1 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.module.sha256 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.module.sha512 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/{57.0.4/expo.modules.sqlite-57.0.4.pom → 57.0.5/expo.modules.sqlite-57.0.5.pom} +1 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.pom.md5 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.pom.sha1 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.pom.sha256 +1 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.5/expo.modules.sqlite-57.0.5.pom.sha512 +1 -0
  27. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/maven-metadata.xml +4 -4
  28. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/maven-metadata.xml.md5 +1 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/maven-metadata.xml.sha1 +1 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/maven-metadata.xml.sha256 +1 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/maven-metadata.xml.sha512 +1 -1
  32. package/package.json +4 -4
  33. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4-sources.jar +0 -0
  34. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4-sources.jar.md5 +0 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4-sources.jar.sha1 +0 -1
  36. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4-sources.jar.sha256 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4-sources.jar.sha512 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.aar +0 -0
  39. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.aar.md5 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.aar.sha1 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.aar.sha256 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.aar.sha512 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.module.md5 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.module.sha1 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.module.sha256 +0 -1
  46. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.module.sha512 +0 -1
  47. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.pom.md5 +0 -1
  48. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.pom.sha1 +0 -1
  49. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.pom.sha256 +0 -1
  50. package/local-maven-repo/host/exp/exponent/expo.modules.sqlite/57.0.4/expo.modules.sqlite-57.0.4.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,13 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 57.0.5 — 2026-11-12
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS][Android] Fix every later transaction on a connection failing with `cannot commit transaction - SQL statements in progress` after a statement fails with `database is locked`, by resetting the statement when its run fails. ([#51413](https://github.com/expo/expo/pull/51413) by [@kudo](https://github.com/kudo))
18
+ - [iOS][Android] Fix `finalizeAsync()` and `finalizeSync()` not reporting the earlier error of a failed `run()`, by resetting the statement only when the run fails with `database is locked`. ([#53339](https://github.com/expo/expo/pull/53339) by [@kudo](https://github.com/kudo))
19
+
13
20
  ## 57.0.4 — 2026-10-06
14
21
 
15
22
  ### 🐛 Bug fixes
@@ -47,13 +47,13 @@ def reactNativeArchitectures() {
47
47
  }
48
48
 
49
49
  group = 'host.exp.exponent'
50
- version = '57.0.4'
50
+ version = '57.0.5'
51
51
 
52
52
  android {
53
53
  namespace "expo.modules.sqlite"
54
54
  defaultConfig {
55
55
  versionCode 18
56
- versionName "57.0.4"
56
+ versionName "57.0.5"
57
57
  buildConfigField "boolean", "USE_LIBSQL", project.ext.USE_LIBSQL.toString()
58
58
  buildConfigField "boolean", "WITH_SQLITE_VEC", project.ext.WITH_SQLITE_VEC.toString()
59
59
 
@@ -93,6 +93,7 @@ internal class NativeDatabaseBinding : Closeable {
93
93
 
94
94
  // These error code should be synced with sqlite3.h
95
95
  const val SQLITE_OK = 0
96
+ const val SQLITE_BUSY = 5
96
97
 
97
98
  const val SQLITE_ROW = 100
98
99
  const val SQLITE_DONE = 101
@@ -417,7 +417,15 @@ class SQLiteModule : Module() {
417
417
 
418
418
  val ret = statement.ref.sqlite3_step()
419
419
  if (ret != NativeDatabaseBinding.SQLITE_ROW && ret != NativeDatabaseBinding.SQLITE_DONE) {
420
- throw SQLiteErrorException(database.ref.convertSqlLiteErrorToString())
420
+ // A step that fails with SQLITE_BUSY leaves the statement running, so every later COMMIT
421
+ // on the connection fails until the statement is reset.
422
+ // Reset only for SQLITE_BUSY. A reset also clears other errors, which finalize() must still report.
423
+ // Read the message first. sqlite3_reset() replaces the error message.
424
+ val message = database.ref.convertSqlLiteErrorToString()
425
+ if ((ret and 0xff) == NativeDatabaseBinding.SQLITE_BUSY) {
426
+ statement.ref.sqlite3_reset()
427
+ }
428
+ throw SQLiteErrorException(message)
421
429
  }
422
430
  val firstRowValues: SQLiteColumnValues =
423
431
  if (ret == NativeDatabaseBinding.SQLITE_ROW) {
@@ -9,7 +9,7 @@
9
9
  "publication": {
10
10
  "groupId": "host.exp.exponent",
11
11
  "artifactId": "expo.modules.sqlite",
12
- "version": "57.0.4",
12
+ "version": "57.0.5",
13
13
  "repository": "local-maven-repo"
14
14
  }
15
15
  },
@@ -413,7 +413,15 @@ public final class SQLiteModule: Module {
413
413
 
414
414
  let ret = exsqlite3_step(statement.pointer)
415
415
  if ret != SQLITE_ROW && ret != SQLITE_DONE {
416
- throw SQLiteErrorException(convertSqlLiteErrorToString(database))
416
+ // A step that fails with `SQLITE_BUSY` leaves the statement running, so every later `COMMIT`
417
+ // on the connection fails with "SQL statements in progress" until the statement is reset.
418
+ // Reset only for `SQLITE_BUSY`. A reset also clears other errors, which `finalize()` must still report.
419
+ // Read the message first. `sqlite3_reset` replaces the error message.
420
+ let message = convertSqlLiteErrorToString(database)
421
+ if ret & 0xff == SQLITE_BUSY {
422
+ exsqlite3_reset(statement.pointer)
423
+ }
424
+ throw SQLiteErrorException(message)
417
425
  }
418
426
  let firstRowValues: SQLiteColumnValues = (ret == SQLITE_ROW) ? try getColumnValues(statement: statement) : []
419
427
  return [
@@ -0,0 +1 @@
1
+ 246e4dc5d5ea9cec2e91193b6fe95946f29674d2a9762171daf01c60f8bdd7a9
@@ -0,0 +1 @@
1
+ d54e01c015f2c8f7ff965d4afe4a76b297b9bf4a63c60b173f904aad0ca11100ac6e50cc62f27066068fa28453b6305020c428568dedd94a61fbce8abfc4db24
@@ -0,0 +1 @@
1
+ 21dfa7a364f93fdac8f5dd3bbc73949d836079d79f900905ec0ced8034873759
@@ -0,0 +1 @@
1
+ b4f071be26571e04e9451e10b9f27219b7b6719b54be9c3f8cea1550efe6f219d175171e325f91a80ee087df944a1e53c886af61afc7982c1cfd8c8604b4f60c
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.sqlite",
6
- "version": "57.0.4",
6
+ "version": "57.0.5",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.sqlite-57.0.4.aar",
28
- "url": "expo.modules.sqlite-57.0.4.aar",
29
- "size": 3823428,
30
- "sha512": "9125c2a3ff328bf8a1491d7e235a9b77e842b01ff3b02013eba7769fcca0f486a3d56e08da83757b9ea429667fca726d92de122440b2b0e9df1d9711a379bab9",
31
- "sha256": "fafd65cc002c5173fe1935d4db3a860f7fb248e1252a18cd45374fd951183125",
32
- "sha1": "7324fa7559653d19ad9e9997f8e9bf98308e805c",
33
- "md5": "8a8943ce1632fc9989a6d5276e673c06"
27
+ "name": "expo.modules.sqlite-57.0.5.aar",
28
+ "url": "expo.modules.sqlite-57.0.5.aar",
29
+ "size": 1147519,
30
+ "sha512": "b4f071be26571e04e9451e10b9f27219b7b6719b54be9c3f8cea1550efe6f219d175171e325f91a80ee087df944a1e53c886af61afc7982c1cfd8c8604b4f60c",
31
+ "sha256": "21dfa7a364f93fdac8f5dd3bbc73949d836079d79f900905ec0ced8034873759",
32
+ "sha1": "69de56b1948910c75d4c51ddea38ff3567706dc6",
33
+ "md5": "d6631a5fb1bd6725a6b4cc14e11d853f"
34
34
  }
35
35
  ]
36
36
  },
@@ -67,13 +67,13 @@
67
67
  ],
68
68
  "files": [
69
69
  {
70
- "name": "expo.modules.sqlite-57.0.4.aar",
71
- "url": "expo.modules.sqlite-57.0.4.aar",
72
- "size": 3823428,
73
- "sha512": "9125c2a3ff328bf8a1491d7e235a9b77e842b01ff3b02013eba7769fcca0f486a3d56e08da83757b9ea429667fca726d92de122440b2b0e9df1d9711a379bab9",
74
- "sha256": "fafd65cc002c5173fe1935d4db3a860f7fb248e1252a18cd45374fd951183125",
75
- "sha1": "7324fa7559653d19ad9e9997f8e9bf98308e805c",
76
- "md5": "8a8943ce1632fc9989a6d5276e673c06"
70
+ "name": "expo.modules.sqlite-57.0.5.aar",
71
+ "url": "expo.modules.sqlite-57.0.5.aar",
72
+ "size": 1147519,
73
+ "sha512": "b4f071be26571e04e9451e10b9f27219b7b6719b54be9c3f8cea1550efe6f219d175171e325f91a80ee087df944a1e53c886af61afc7982c1cfd8c8604b4f60c",
74
+ "sha256": "21dfa7a364f93fdac8f5dd3bbc73949d836079d79f900905ec0ced8034873759",
75
+ "sha1": "69de56b1948910c75d4c51ddea38ff3567706dc6",
76
+ "md5": "d6631a5fb1bd6725a6b4cc14e11d853f"
77
77
  }
78
78
  ]
79
79
  },
@@ -87,13 +87,13 @@
87
87
  },
88
88
  "files": [
89
89
  {
90
- "name": "expo.modules.sqlite-57.0.4-sources.jar",
91
- "url": "expo.modules.sqlite-57.0.4-sources.jar",
92
- "size": 11596,
93
- "sha512": "37442b363d616ef7fd204893efb02ac15d4829aa5e2a3fe91be4b3cb17d9826f1d0abfdc9b3017b7618dfd85aa8156c234f39bc3ac7abd676072783d25e93125",
94
- "sha256": "02bdb019cd014cbe43cff391ee53f9eed49ff6c78e425113af3a892390822f29",
95
- "sha1": "c386518214d8885ee76a3a74d1fe9f1d3b4cbd26",
96
- "md5": "2a2a61f4c3d0acedc5a7bcb4b9e57d6b"
90
+ "name": "expo.modules.sqlite-57.0.5-sources.jar",
91
+ "url": "expo.modules.sqlite-57.0.5-sources.jar",
92
+ "size": 11795,
93
+ "sha512": "d54e01c015f2c8f7ff965d4afe4a76b297b9bf4a63c60b173f904aad0ca11100ac6e50cc62f27066068fa28453b6305020c428568dedd94a61fbce8abfc4db24",
94
+ "sha256": "246e4dc5d5ea9cec2e91193b6fe95946f29674d2a9762171daf01c60f8bdd7a9",
95
+ "sha1": "14aee4e10a29fa128eac15592d7d2615b925b4ba",
96
+ "md5": "34e7fea693f36611af7d552e9c477a03"
97
97
  }
98
98
  ]
99
99
  }
@@ -0,0 +1 @@
1
+ 09bfabf57d1e2fe9807bc15dcd5c2c82352618cda400a621dbdc913021434349
@@ -0,0 +1 @@
1
+ c522663f3ea1aa4fa23869e41e6fdacd3e2b24a54c71ae928ffa9b3f064ac1d7a7fb54d25271d1c942f2a238b917a80e9c86f6d0f781f3f42e0977a94a67fd0b
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.sqlite</artifactId>
12
- <version>57.0.4</version>
12
+ <version>57.0.5</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.sqlite</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 175b8d0b117dd21841ad39dcf829c54c8f71e11b0b4bb0662df25e422b25813c
@@ -0,0 +1 @@
1
+ f4302aaa17f006f0e9b1f6ee231f6598fbc6f0c7d4cd7514326361d13067d1c2a287fc6fa54fbf911059e64e4aaef0b4ac766f3d7a0c879589aed2836e52da41
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.sqlite</artifactId>
5
5
  <versioning>
6
- <latest>57.0.4</latest>
7
- <release>57.0.4</release>
6
+ <latest>57.0.5</latest>
7
+ <release>57.0.5</release>
8
8
  <versions>
9
- <version>57.0.4</version>
9
+ <version>57.0.5</version>
10
10
  </versions>
11
- <lastUpdated>20261006120125</lastUpdated>
11
+ <lastUpdated>20261112131753</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- d4a2192c71378c23486cb4d637c45b26
1
+ dccdb3d0f6e21b82da4026c5964c250f
@@ -1 +1 @@
1
- 6385eb786defeadab4c7efc41b425bd8940c4162
1
+ f600d5787ea2bdfd0922dd260c30b940bc2fe248
@@ -1 +1 @@
1
- 14c9e125a492e31b4f9e6767f02b6cac50a969754bf68978c7ad7bc6dff7cd23
1
+ 039aeb06e7d3d367792bf461f21b1d5647d4b72d4bd1b191f14cd302530a3ccf
@@ -1 +1 @@
1
- d5d1d62ea565ab63307ca35a0dd0c23d5a5a332214ed02980dbb236d81be9f108e200b6d0214123236de38591f0c26f6cb5cee17362230aa83f71643810336e9
1
+ 5b2af984e10d8f78bcd71adda7c3ff62500e17c682452f9d3469df91cdff1a6d440db6c3b6f0fdc58fc90e71a8ad71c707cfc24776d21bf15607c7395525112f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-sqlite",
3
- "version": "57.0.4",
3
+ "version": "57.0.5",
4
4
  "description": "Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -55,15 +55,15 @@
55
55
  "@types/react": "~19.2.0",
56
56
  "better-sqlite3": "^11.6.0",
57
57
  "react-error-boundary": "^4.0.11",
58
- "expo-module-scripts": "56.0.3",
59
- "expo": "57.0.27"
58
+ "expo": "57.0.33",
59
+ "expo-module-scripts": "56.0.3"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "expo": "*",
63
63
  "react": "*",
64
64
  "react-native": "*"
65
65
  },
66
- "gitHead": "50ac74f1ab5682c8e32b24da6e5e97dd4dbbb80f",
66
+ "gitHead": "968a9dcec304789b2ccc1a41ef5d301938e91478",
67
67
  "scripts": {
68
68
  "build": "expo-module build",
69
69
  "bundle:webui": "pushd dev-plugin-webui && bun run build && popd && rm -rf dev-plugin-dist && mv dev-plugin-webui/dist dev-plugin-dist",
@@ -1 +0,0 @@
1
- 02bdb019cd014cbe43cff391ee53f9eed49ff6c78e425113af3a892390822f29
@@ -1 +0,0 @@
1
- 37442b363d616ef7fd204893efb02ac15d4829aa5e2a3fe91be4b3cb17d9826f1d0abfdc9b3017b7618dfd85aa8156c234f39bc3ac7abd676072783d25e93125
@@ -1 +0,0 @@
1
- 7324fa7559653d19ad9e9997f8e9bf98308e805c
@@ -1 +0,0 @@
1
- fafd65cc002c5173fe1935d4db3a860f7fb248e1252a18cd45374fd951183125
@@ -1 +0,0 @@
1
- 9125c2a3ff328bf8a1491d7e235a9b77e842b01ff3b02013eba7769fcca0f486a3d56e08da83757b9ea429667fca726d92de122440b2b0e9df1d9711a379bab9
@@ -1 +0,0 @@
1
- 32006cd7b6db719b0d1128927fb263d3fd32c3603ba2d693d136f8164c28d396
@@ -1 +0,0 @@
1
- 50966a95d994aa5fd02e79b140949ad4b67107454db1ee207f18e4ee3d3834c9ffadef7e4dc388bcbd926e8471118f1acb55f17d5ecbdb5f84d8171bf4f79c17
@@ -1 +0,0 @@
1
- ad5c7092249e91005b5bb98a0039f0067f5bdc74
@@ -1 +0,0 @@
1
- 62d81beab910b4ef587a515c384b64afe2ad0be9dbe55dd2a0104cd0b053f4cc
@@ -1 +0,0 @@
1
- c27968915e38ad2bb3a17d96c0fd73d651a4153d72b41b1f728836ec1d31460db2a5181c61301cf812f17c7af1fe0e3fd8bebb6ac3c4b37754b297e2522eb175