File tree 4 files changed +18373
-23220
lines changed
packages/powersync-op-sqlite
4 files changed +18373
-23220
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @powersync/op-sqlite ' : patch
3
+ ---
4
+
5
+ Update op-sqlite to v10.1.0 for compatibility with React Native >0.76
Original file line number Diff line number Diff line change 65
65
"access" : " public"
66
66
},
67
67
"peerDependencies" : {
68
- "@op-engineering/op-sqlite" : " ^9.2.1 " ,
68
+ "@op-engineering/op-sqlite" : " ^10.1.0 " ,
69
69
"@powersync/common" : " workspace:^1.21.0" ,
70
70
"react" : " *" ,
71
71
"react-native" : " *"
75
75
"async-lock" : " ^1.4.0"
76
76
},
77
77
"devDependencies" : {
78
- "@op-engineering/op-sqlite" : " ^9.2.1 " ,
78
+ "@op-engineering/op-sqlite" : " ^10.1.0 " ,
79
79
"@react-native/eslint-config" : " ^0.73.1" ,
80
80
"@types/async-lock" : " ^1.4.0" ,
81
81
"@types/react" : " ^18.2.44" ,
133
133
"javaPackageName" : " com.powersync.opsqlite"
134
134
}
135
135
}
136
- }
136
+ }
Original file line number Diff line number Diff line change @@ -64,12 +64,12 @@ export class OPSQLiteConnection extends BaseObserver<DBAdapterListener> {
64
64
65
65
async getAll < T > ( sql : string , parameters ?: any [ ] ) : Promise < T [ ] > {
66
66
const result = await this . DB . execute ( sql , parameters ) ;
67
- return result . rows ?? [ ] ;
67
+ return ( result . rows ?? [ ] ) as T [ ] ;
68
68
}
69
69
70
70
async getOptional < T > ( sql : string , parameters ?: any [ ] ) : Promise < T | null > {
71
71
const result = await this . DB . execute ( sql , parameters ) ;
72
- return result . rows ?. [ 0 ] ?? null ;
72
+ return ( result . rows ?. [ 0 ] as T ) ?? null ;
73
73
}
74
74
75
75
async get < T > ( sql : string , parameters ?: any [ ] ) : Promise < T > {
You can’t perform that action at this time.
0 commit comments