@pgxsinkit/react 0.1.50 → 0.1.53
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/package.json +3 -3
- package/skills/react/SKILL.md +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgxsinkit/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"tanstack-intent"
|
|
6
6
|
],
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"build": "bun --cwd ../.. run build:public-packages"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pgxsinkit/client": "0.1.
|
|
31
|
-
"@pgxsinkit/contracts": "0.1.
|
|
30
|
+
"@pgxsinkit/client": "0.1.53",
|
|
31
|
+
"@pgxsinkit/contracts": "0.1.53"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@electric-sql/pglite": "0.5.4",
|
package/skills/react/SKILL.md
CHANGED
|
@@ -16,7 +16,7 @@ metadata:
|
|
|
16
16
|
type: framework
|
|
17
17
|
framework: react
|
|
18
18
|
library: "@pgxsinkit/react"
|
|
19
|
-
library_version: "0.1.
|
|
19
|
+
library_version: "0.1.53"
|
|
20
20
|
source: https://pgxsinkit.github.io/
|
|
21
21
|
requires:
|
|
22
22
|
- react
|
|
@@ -105,7 +105,11 @@ const { rows } = useLiveDrizzleRows((c) => c.drizzle.select().from(c.views.todos
|
|
|
105
105
|
|
|
106
106
|
Raw `useLiveRows(sql, { params })` does **no** remap — its rows carry the raw DB column names. Use it for
|
|
107
107
|
ad-hoc SQL where you control the column names; prefer `useLiveDrizzleRows` for typed reads. The Drizzle
|
|
108
|
-
builder is rebuilt when the `deps` array changes (same contract as `useEffect`).
|
|
108
|
+
builder is rebuilt when the `deps` array changes (same contract as `useEffect`). When you pass `params`,
|
|
109
|
+
the positional `$N` placeholders in the raw SQL must be strictly sequential `$1..$n`, each used exactly
|
|
110
|
+
once — PGlite bug #1055 inlines live-query params textually rather than positionally, so any other shape
|
|
111
|
+
mis-binds; the client now rejects it with a clear error naming the bug. A Drizzle builder always compiles
|
|
112
|
+
to that safe shape, so this only affects hand-written raw SQL.
|
|
109
113
|
|
|
110
114
|
## Writes go through `client.tables`, not the hooks
|
|
111
115
|
|