react-native-nitro-sqlite 9.1.10 → 9.1.11
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/nitrogen/generated/.gitattributes +1 -1
- package/nitrogen/generated/android/c++/JHybridNitroSQLiteOnLoadSpec.cpp +5 -0
- package/nitrogen/generated/android/c++/JHybridNitroSQLiteOnLoadSpec.hpp +1 -0
- package/nitrogen/generated/ios/RNNitroSQLite-Swift-Cxx-Umbrella.hpp +2 -1
- package/nitrogen/generated/shared/c++/ColumnType.hpp +5 -5
- package/nitrogen/generated/shared/c++/HybridNativeQueryResultSpec.hpp +3 -3
- package/nitrogen/generated/shared/c++/HybridNitroSQLiteSpec.hpp +2 -2
- package/nitrogen/generated/shared/c++/NativeBatchQueryCommand.hpp +3 -3
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
** linguist-generated=true
|
|
@@ -28,6 +28,11 @@ namespace margelo::nitro::rnnitrosqlite {
|
|
|
28
28
|
return method(_javaPart);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
void JHybridNitroSQLiteOnLoadSpec::dispose() noexcept {
|
|
32
|
+
static const auto method = javaClassStatic()->getMethod<void()>("dispose");
|
|
33
|
+
method(_javaPart);
|
|
34
|
+
}
|
|
35
|
+
|
|
31
36
|
// Properties
|
|
32
37
|
|
|
33
38
|
|
|
@@ -39,6 +39,7 @@ namespace margelo::nitro::rnnitrosqlite {
|
|
|
39
39
|
|
|
40
40
|
public:
|
|
41
41
|
size_t getExternalMemorySize() noexcept override;
|
|
42
|
+
void dispose() noexcept override;
|
|
42
43
|
|
|
43
44
|
public:
|
|
44
45
|
inline const jni::global_ref<JHybridNitroSQLiteOnLoadSpec::javaobject>& getJavaPart() const noexcept {
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
// Common C++ types used in Swift
|
|
20
20
|
#include <NitroModules/ArrayBufferHolder.hpp>
|
|
21
|
-
#include <NitroModules/
|
|
21
|
+
#include <NitroModules/AnyMapUtils.hpp>
|
|
22
22
|
#include <NitroModules/RuntimeError.hpp>
|
|
23
|
+
#include <NitroModules/DateToChronoDate.hpp>
|
|
23
24
|
|
|
24
25
|
// Forward declarations of Swift defined types
|
|
25
26
|
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
|
-
#include <cmath>
|
|
11
10
|
#if __has_include(<NitroModules/JSIConverter.hpp>)
|
|
12
11
|
#include <NitroModules/JSIConverter.hpp>
|
|
13
12
|
#else
|
|
@@ -54,10 +53,11 @@ namespace margelo::nitro {
|
|
|
54
53
|
if (!value.isNumber()) {
|
|
55
54
|
return false;
|
|
56
55
|
}
|
|
57
|
-
double
|
|
58
|
-
|
|
59
|
-
if (
|
|
60
|
-
//
|
|
56
|
+
double number = value.getNumber();
|
|
57
|
+
int integer = static_cast<int>(number);
|
|
58
|
+
if (number != integer) {
|
|
59
|
+
// The integer is not the same value as the double - we truncated floating points.
|
|
60
|
+
// Enums are all integers, so the input floating point number is obviously invalid.
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
63
63
|
// Check if we are within the bounds of the enum.
|
|
@@ -21,12 +21,12 @@ namespace margelo::nitro::rnnitrosqlite { struct SQLiteNullValue; }
|
|
|
21
21
|
namespace margelo::nitro::rnnitrosqlite { struct SQLiteQueryColumnMetadata; }
|
|
22
22
|
|
|
23
23
|
#include <optional>
|
|
24
|
-
#include <vector>
|
|
25
|
-
#include <unordered_map>
|
|
26
24
|
#include <string>
|
|
27
|
-
#include <variant>
|
|
28
25
|
#include <NitroModules/ArrayBuffer.hpp>
|
|
29
26
|
#include "SQLiteNullValue.hpp"
|
|
27
|
+
#include <variant>
|
|
28
|
+
#include <unordered_map>
|
|
29
|
+
#include <vector>
|
|
30
30
|
#include "SQLiteQueryColumnMetadata.hpp"
|
|
31
31
|
|
|
32
32
|
namespace margelo::nitro::rnnitrosqlite {
|
|
@@ -30,10 +30,10 @@ namespace margelo::nitro::rnnitrosqlite { struct FileLoadResult; }
|
|
|
30
30
|
#include <optional>
|
|
31
31
|
#include <memory>
|
|
32
32
|
#include "HybridNativeQueryResultSpec.hpp"
|
|
33
|
-
#include <vector>
|
|
34
|
-
#include <variant>
|
|
35
33
|
#include <NitroModules/ArrayBuffer.hpp>
|
|
36
34
|
#include "SQLiteNullValue.hpp"
|
|
35
|
+
#include <variant>
|
|
36
|
+
#include <vector>
|
|
37
37
|
#include <NitroModules/Promise.hpp>
|
|
38
38
|
#include "BatchQueryResult.hpp"
|
|
39
39
|
#include "NativeBatchQueryCommand.hpp"
|
|
@@ -24,11 +24,11 @@ namespace NitroModules { class ArrayBuffer; }
|
|
|
24
24
|
namespace margelo::nitro::rnnitrosqlite { struct SQLiteNullValue; }
|
|
25
25
|
|
|
26
26
|
#include <string>
|
|
27
|
-
#include <optional>
|
|
28
|
-
#include <variant>
|
|
29
|
-
#include <vector>
|
|
30
27
|
#include <NitroModules/ArrayBuffer.hpp>
|
|
31
28
|
#include "SQLiteNullValue.hpp"
|
|
29
|
+
#include <variant>
|
|
30
|
+
#include <vector>
|
|
31
|
+
#include <optional>
|
|
32
32
|
|
|
33
33
|
namespace margelo::nitro::rnnitrosqlite {
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-sqlite",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.11",
|
|
4
4
|
"description": "Fast SQLite library for React Native built using Nitro Modules",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index",
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"jest": "^29.7.0",
|
|
73
|
-
"nitro-codegen": "
|
|
73
|
+
"nitro-codegen": "0.27.2",
|
|
74
74
|
"react": "19.0.0",
|
|
75
75
|
"react-native": "0.78.0",
|
|
76
76
|
"react-native-builder-bob": "^0.31.0",
|
|
77
|
-
"react-native-nitro-modules": "0.
|
|
77
|
+
"react-native-nitro-modules": "0.27.2"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"react": ">=17.0.0",
|
|
81
81
|
"react-native": ">=0.75.0",
|
|
82
|
-
"react-native-nitro-modules": ">=0.
|
|
82
|
+
"react-native-nitro-modules": ">=0.27.2"
|
|
83
83
|
},
|
|
84
84
|
"resolutions": {
|
|
85
85
|
"@types/react": "^18.2.44"
|