@metaobjectsdev/tanstack 0.24.4 → 0.24.5
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 +14 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
TanStack runtime for metaobjects: `EntityFetcherProvider`, `<EntityGrid>`, `CellRendererProvider`, and `defaultCellRenderers`. Pairs with `@metaobjectsdev/codegen-ts-tanstack`, which generates `<Entity>.hooks.ts` (every entity) plus `<Entity>.columns.tsx` and `<Entity>.grid.ts` (entities declaring a `layout.dataGrid`) that import from this package. `<EntityGrid>` is fully controlled — pair the generated columns with the generated `use<Entity><Grid>Grid()` hook, which returns its whole prop shape.
|
|
4
4
|
|
|
5
|
+
## Install: TanStack Table v8 is required
|
|
6
|
+
|
|
7
|
+
This package supports `@tanstack/react-table` **v8** (`^8.20.0`). The registry's
|
|
8
|
+
`latest` is v9, which removed `useReactTable` and `getCoreRowModel` — both used by
|
|
9
|
+
`<EntityGrid>` — so v9 is a migration, not a version bump.
|
|
10
|
+
|
|
11
|
+
Install the supported major explicitly:
|
|
12
|
+
|
|
13
|
+
npm i @tanstack/react-table@^8.21.3
|
|
14
|
+
|
|
15
|
+
A bare `npm i @tanstack/react-table` resolves v9, which does not satisfy this package's
|
|
16
|
+
peer range. npm then fails **every subsequent install in that project** with `ERESOLVE`
|
|
17
|
+
until v8 is pinned — so this is worth getting right the first time.
|
|
18
|
+
|
|
5
19
|
## Install
|
|
6
20
|
|
|
7
21
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metaobjectsdev/tanstack",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.5",
|
|
4
4
|
"description": "TanStack runtime for metaobjects: EntityFetcherProvider, EntityGrid, default cell renderers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@metaobjectsdev/runtime-web": "0.24.
|
|
48
|
+
"@metaobjectsdev/runtime-web": "0.24.5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@tanstack/react-query": "^5.90.0",
|