expo-sqlite 12.2.0 → 12.2.1

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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 12.2.1 — 2023-11-18
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed `expo-sqlite/next` integer overflow crashes on iOS. ([#25322](https://github.com/expo/expo/pull/25322) by [@peterferguson](https://github.com/peterferguson))
18
+
13
19
  ## 12.2.0 — 2023-11-14
14
20
 
15
21
  ### 🐛 Bug fixes
@@ -4,7 +4,7 @@ apply plugin: 'maven-publish'
4
4
  apply plugin: 'de.undercouch.download'
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '12.2.0'
7
+ version = '12.2.1'
8
8
 
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10
10
  if (expoModulesCorePlugin.exists()) {
@@ -106,7 +106,7 @@ android {
106
106
  namespace "expo.modules.sqlite"
107
107
  defaultConfig {
108
108
  versionCode 18
109
- versionName "12.2.0"
109
+ versionName "12.2.1"
110
110
 
111
111
  externalNativeBuild {
112
112
  cmake {
@@ -432,7 +432,7 @@ public final class SQLiteModuleNext: Module {
432
432
 
433
433
  switch type {
434
434
  case SQLITE_INTEGER:
435
- return sqlite3_column_int(instance, index)
435
+ return sqlite3_column_int64(instance, index)
436
436
  case SQLITE_FLOAT:
437
437
  return sqlite3_column_double(instance, index)
438
438
  case SQLITE_TEXT:
@@ -460,8 +460,8 @@ public final class SQLiteModuleNext: Module {
460
460
  sqlite3_bind_null(instance, index)
461
461
  case _ as NSNull:
462
462
  sqlite3_bind_null(instance, index)
463
- case let param as Int:
464
- sqlite3_bind_int(instance, index, Int32(param))
463
+ case let param as Int64:
464
+ sqlite3_bind_int64(instance, index, Int64(param))
465
465
  case let param as Double:
466
466
  sqlite3_bind_double(instance, index, param)
467
467
  case let param as String:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-sqlite",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
4
4
  "description": "Provides access to a database that can be queried through a WebSQL-like API (https://www.w3.org/TR/webdatabase/). The database is persisted across restarts of your app.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -46,5 +46,5 @@
46
46
  "peerDependencies": {
47
47
  "expo": "*"
48
48
  },
49
- "gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
49
+ "gitHead": "92ad380bed8f14ac4f161b50c7f14ce1b3617a5d"
50
50
  }