@powersync/react 1.3.4 → 1.3.6
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/README.md
CHANGED
|
@@ -6,7 +6,9 @@ Configure a PowerSync DB connection and add it to a context provider.
|
|
|
6
6
|
|
|
7
7
|
```JSX
|
|
8
8
|
// App.jsx
|
|
9
|
-
import { PowerSyncDatabase } from '@powersync/
|
|
9
|
+
import { PowerSyncDatabase } from '@powersync/web';
|
|
10
|
+
// or for React Native
|
|
11
|
+
// import { PowerSyncDatabase } from '@powersync/react-native';
|
|
10
12
|
import { PowerSyncContext } from "@powersync/react";
|
|
11
13
|
export const App = () => {
|
|
12
14
|
const powerSync = React.useMemo(() => {
|
|
@@ -14,4 +14,4 @@ import { SQLWatchOptions } from '@powersync/common';
|
|
|
14
14
|
* </View>
|
|
15
15
|
* }
|
|
16
16
|
*/
|
|
17
|
-
export declare const usePowerSyncWatchedQuery: <T = any>(sqlStatement: string, parameters?: any[], options?: Omit<SQLWatchOptions,
|
|
17
|
+
export declare const usePowerSyncWatchedQuery: <T = any>(sqlStatement: string, parameters?: any[], options?: Omit<SQLWatchOptions, "signal">) => T[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"bugs": {
|
|
21
21
|
"url": "https://github.com/powersync-ja/powersync-js/issues"
|
|
22
22
|
},
|
|
23
|
-
"homepage": "https://docs.powersync.com
|
|
23
|
+
"homepage": "https://docs.powersync.com",
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "*",
|
|
26
|
-
"@powersync/common": "
|
|
26
|
+
"@powersync/common": "^1.13.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@testing-library/react": "^15.0.2",
|
|
30
30
|
"@types/react": "^18.2.34",
|
|
31
31
|
"jsdom": "^24.0.0",
|
|
32
32
|
"react": "18.2.0",
|
|
33
|
-
"typescript": "^5.
|
|
33
|
+
"typescript": "^5.5.3"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc -b",
|