@comapeo/core-react 2.0.0 → 2.0.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.
@@ -106,9 +106,9 @@ export declare function useManyDocs<D extends WriteableDocumentType>({ projectId
106
106
  docType: D;
107
107
  includeDeleted?: boolean;
108
108
  lang?: string;
109
- }): ReadHookResult<Extract<MapeoDoc, {
109
+ }): ReadHookResult<Array<Extract<MapeoDoc, {
110
110
  schemaName: D;
111
- }>>;
111
+ }>>>;
112
112
  /**
113
113
  * Create a document for a project.
114
114
  *
@@ -106,9 +106,9 @@ export declare function useManyDocs<D extends WriteableDocumentType>({ projectId
106
106
  docType: D;
107
107
  includeDeleted?: boolean;
108
108
  lang?: string;
109
- }): ReadHookResult<Extract<MapeoDoc, {
109
+ }): ReadHookResult<Array<Extract<MapeoDoc, {
110
110
  schemaName: D;
111
- }>>;
111
+ }>>>;
112
112
  /**
113
113
  * Create a document for a project.
114
114
  *
package/docs/API.md CHANGED
@@ -508,7 +508,7 @@ Retrieve all documents of a specific `docType`.
508
508
 
509
509
  | Function | Type |
510
510
  | ---------- | ---------- |
511
- | `useManyDocs` | `<D extends WriteableDocumentType>({ projectId, docType, includeDeleted, lang, }: { projectId: string; docType: D; includeDeleted?: boolean or undefined; lang?: string or undefined; }) => ReadHookResult<Extract<{ schemaName: "deviceInfo"; name: string; deviceType: "device_type_unspecified" or ... 4 more ... or "UNRECOGNI...` |
511
+ | `useManyDocs` | `<D extends WriteableDocumentType>({ projectId, docType, includeDeleted, lang, }: { projectId: string; docType: D; includeDeleted?: boolean or undefined; lang?: string or undefined; }) => ReadHookResult<(Extract<{ schemaName: "deviceInfo"; name: string; deviceType: "device_type_unspecified" or ... 4 more ... or "UNRECOGN...` |
512
512
 
513
513
  Parameters:
514
514
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comapeo/core-react",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "React wrapper for working with @comapeo/core",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,11 +67,14 @@
67
67
  "react": "^18 || ^19"
68
68
  },
69
69
  "devDependencies": {
70
+ "@comapeo/core": "2.3.0",
71
+ "@comapeo/schema": "1.3.0",
70
72
  "@eslint/compat": "1.2.5",
71
73
  "@eslint/js": "9.18.0",
72
74
  "@ianvs/prettier-plugin-sort-imports": "4.4.1",
73
75
  "@mapeo/crypto": "1.0.0-alpha.10",
74
76
  "@tanstack/eslint-plugin-query": "5.62.16",
77
+ "@tanstack/react-query": "5.64.1",
75
78
  "@testing-library/dom": "10.4.0",
76
79
  "@testing-library/react": "16.1.0",
77
80
  "@types/lint-staged": "13.3.0",
@@ -87,10 +90,11 @@
87
90
  "npm-run-all2": "7.0.2",
88
91
  "prettier": "3.4.2",
89
92
  "random-access-memory": "6.2.1",
93
+ "react": "19.0.0",
90
94
  "tsdoc-markdown": "1.1.0",
91
95
  "tshy": "3.0.2",
92
96
  "typescript": "5.7.3",
93
- "typescript-eslint": "8.19.1",
97
+ "typescript-eslint": "8.20.0",
94
98
  "vitest": "2.1.8"
95
99
  }
96
100
  }