pglite-test 0.2.1 → 0.2.3
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 +2 -2
- package/index.d.ts +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -107,8 +107,8 @@ await getConnections(
|
|
|
107
107
|
|
|
108
108
|
On a server, `pgsql-test` bootstraps the standard app roles at `createdb`. PGlite
|
|
109
109
|
has no `createdb` — it boots as a lone superuser — so by default `getConnections()`
|
|
110
|
-
creates the same roles for you before seeding: `anonymous`, `authenticated`,
|
|
111
|
-
`administrator` (with `BYPASSRLS`),
|
|
110
|
+
creates the same roles for you before seeding: `anonymous`, `authenticated`, and
|
|
111
|
+
`administrator` (with `BYPASSRLS`), using the same
|
|
112
112
|
attributes as the server bootstrap. That's why `db.setContext({ role: 'authenticated' })`
|
|
113
113
|
just works with no manual `CREATE ROLE`. Custom role *names* come from `db.roles`
|
|
114
114
|
(a `RoleMapping`), exactly like `pgsql-test`.
|
package/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface PgliteConnectionOpts extends GetConnectionOpts {
|
|
|
44
44
|
extensionSql?: string[];
|
|
45
45
|
/**
|
|
46
46
|
* Auto-create the standard app roles (`anonymous` / `authenticated` /
|
|
47
|
-
* `administrator`
|
|
47
|
+
* `administrator`) with the same attributes
|
|
48
48
|
* pgsql-test's server bootstrap uses, before seeding. This is what lets a
|
|
49
49
|
* bare `getConnections()` switch into an app role via `db.setContext()`
|
|
50
50
|
* with no manual `CREATE ROLE`. Defaults to `true`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pglite-test",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Drop-in pgsql-test getConnections backed by an in-process PGlite instance — no Postgres server, instance-per-suite isolation",
|
|
6
6
|
"main": "index.js",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"makage": "^0.3.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@pgpmjs/core": "^6.28.
|
|
49
|
+
"@pgpmjs/core": "^6.28.2",
|
|
50
50
|
"@pgpmjs/env": "^2.26.4",
|
|
51
|
-
"@pgpmjs/pglite-adapter": "^0.1.
|
|
51
|
+
"@pgpmjs/pglite-adapter": "^0.1.4",
|
|
52
52
|
"pg-cache": "^3.14.3",
|
|
53
53
|
"pg-env": "^1.17.1",
|
|
54
|
-
"pgsql-client": "^3.20.
|
|
55
|
-
"pgsql-test": "^4.18.
|
|
54
|
+
"pgsql-client": "^3.20.4",
|
|
55
|
+
"pgsql-test": "^4.18.7"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@electric-sql/pglite": ">=0.5.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "113036fa4fb581e4d8418a9309524495a423b624"
|
|
61
61
|
}
|