@nxgt/janus-drizzle 0.3.1 → 0.3.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/README.md +1 -1
- package/docs/guide/wiring.md +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ store of `@nxgt/janus/permissions`, over one database. It works through your
|
|
|
7
7
|
[`@nxgt/drizzle`](https://www.npmjs.com/package/@nxgt/drizzle) for
|
|
8
8
|
transactions and error translation.
|
|
9
9
|
|
|
10
|
-
It passes both `@nxgt/janus/conformance` suites on a real PostgreSQL 17 —
|
|
10
|
+
It passes both `@nxgt/janus/conformance` suites on a real PostgreSQL 17 and 15 —
|
|
11
11
|
over `node-postgres`, postgres.js and Bun's `SQL`, outages and concurrency
|
|
12
12
|
included — and on PGlite. `createDrizzleAdapter(db)`
|
|
13
13
|
returns both sides under the names `janus()` takes, so one spread wires them.
|
package/docs/guide/wiring.md
CHANGED
|
@@ -77,8 +77,8 @@ authenticates takes `createDrizzleStores(db)` alone, below.
|
|
|
77
77
|
| Bun's own `SQL` | `drizzle-orm/bun-sql` |
|
|
78
78
|
| PGlite, for tests | `drizzle-orm/pglite` |
|
|
79
79
|
|
|
80
|
-
The adapter's specs run on all four: on PGlite, and on PostgreSQL 17
|
|
81
|
-
of the other three, on every CI run.
|
|
80
|
+
The adapter's specs run on all four: on PGlite, and on PostgreSQL 17 and on
|
|
81
|
+
PostgreSQL 15, the floor, over each of the other three, on every CI run.
|
|
82
82
|
|
|
83
83
|
## `createDrizzleStores(db, options?)`
|
|
84
84
|
|
|
@@ -104,7 +104,7 @@ twenty concurrent attempts answer twenty distinct counts.
|
|
|
104
104
|
`spendUserTokens` is one `update … set spent_at = … where user_id = … and kind = …
|
|
105
105
|
and spent_at is null returning` — with `and token_hash <> …` when `except` is given: PostgreSQL re-checks `spent_at is null` on
|
|
106
106
|
a row a racing redemption just committed, so the two never both spend it.
|
|
107
|
-
All three are measured on PostgreSQL 17 on every CI run.
|
|
107
|
+
All three are measured on PostgreSQL 17 and 15 on every CI run.
|
|
108
108
|
|
|
109
109
|
Every method of the port is implemented, **including the optional
|
|
110
110
|
`deleteExpiredSessions`**. PostgreSQL has no TTL, so
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/janus-drizzle",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "The PostgreSQL adapter for @nxgt/janus on Drizzle and @nxgt/drizzle: users, sessions, one-time tokens and permission tuples",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@electric-sql/pglite": "0.5.8",
|
|
53
53
|
"@nxgt/drizzle": "0.6.1",
|
|
54
|
-
"@nxgt/janus": "^0.8.
|
|
54
|
+
"@nxgt/janus": "^0.8.6",
|
|
55
55
|
"@types/bun": "^1.4.2",
|
|
56
56
|
"@types/pg": "^8.23.1",
|
|
57
57
|
"drizzle-kit": "1.0.0-rc.4",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@nxgt/drizzle": ">=0.6.1 <1",
|
|
65
|
-
"@nxgt/janus": "^0.8.
|
|
65
|
+
"@nxgt/janus": "^0.8.6",
|
|
66
66
|
"drizzle-orm": ">=1.0.0-rc.4 <2",
|
|
67
67
|
"typescript": "^6.0.3"
|
|
68
68
|
}
|