@comapeo/core-react 0.1.0 → 0.1.2
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 +14 -0
- package/README.md +3 -1
- package/dist/lib/react-query/client.d.ts +1 -1
- package/dist/lib/react-query/client.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.1.2](https://github.com/digidem/comapeo-core-react/compare/v0.1.1...v0.1.2) (2024-12-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fix return value of getIsArchiveDeviceQueryKey() ([8742fc2](https://github.com/digidem/comapeo-core-react/commit/8742fc24379564f64f9ec25c4c2e9179083d659d))
|
|
11
|
+
|
|
12
|
+
## [0.1.1](https://github.com/digidem/comapeo-core-react/compare/v0.1.0...v0.1.1) (2024-12-12)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* adjust peer dep specification for react query ([df090c3](https://github.com/digidem/comapeo-core-react/commit/df090c3b57032cf51d25b77afaa0e562163297c5))
|
|
18
|
+
|
|
5
19
|
## 0.1.0 (2024-12-12)
|
|
6
20
|
|
|
7
21
|
### Features
|
package/README.md
CHANGED
|
@@ -4,8 +4,10 @@ React wrapper for working with [`@comapeo/core`](https://github.com/digidem/coma
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
`@comapeo/schema`, `@comapeo/core`, and `@comapeo/ipc` are peer deps and must be installed alongside this package. You may want to pin these to specific versions depending on your needs.
|
|
8
|
+
|
|
7
9
|
```sh
|
|
8
|
-
npm install @comapeo/core-react
|
|
10
|
+
npm install @comapeo/core-react @comapeo/schema @comapeo/core @comapeo/ipc
|
|
9
11
|
```
|
|
10
12
|
|
|
11
13
|
## API Documentation
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MapeoClientApi } from '@comapeo/ipc';
|
|
2
2
|
export declare function getClientQueryKey(): readonly ["@comapeo/core-react", "client"];
|
|
3
3
|
export declare function getDeviceInfoQueryKey(): readonly ["@comapeo/core-react", "client", "device_info"];
|
|
4
|
-
export declare function getIsArchiveDeviceQueryKey(): readonly ["@comapeo/core-react", "client", "
|
|
4
|
+
export declare function getIsArchiveDeviceQueryKey(): readonly ["@comapeo/core-react", "client", "is_archive_device"];
|
|
5
5
|
export declare function deviceInfoQueryOptions({ clientApi, }: {
|
|
6
6
|
clientApi: MapeoClientApi;
|
|
7
7
|
}): import("@tanstack/query-core").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
@@ -7,7 +7,7 @@ export function getDeviceInfoQueryKey() {
|
|
|
7
7
|
return [ROOT_QUERY_KEY, 'client', 'device_info'];
|
|
8
8
|
}
|
|
9
9
|
export function getIsArchiveDeviceQueryKey() {
|
|
10
|
-
return [ROOT_QUERY_KEY, 'client', '
|
|
10
|
+
return [ROOT_QUERY_KEY, 'client', 'is_archive_device'];
|
|
11
11
|
}
|
|
12
12
|
export function deviceInfoQueryOptions({ clientApi, }) {
|
|
13
13
|
return queryOptions({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comapeo/core-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "React wrapper for working with @comapeo/core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@comapeo/core": "*",
|
|
48
48
|
"@comapeo/ipc": "*",
|
|
49
49
|
"@comapeo/schema": "*",
|
|
50
|
-
"@tanstack/react-query": "^5
|
|
50
|
+
"@tanstack/react-query": "^5",
|
|
51
51
|
"react": "^18 || ^19"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|