pglite-test 0.2.1 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.d.ts +1 -1
  3. package/package.json +2 -2
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`), and `authenticated_client`, using the same
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` / `authenticated_client`) with the same attributes
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.1",
3
+ "version": "0.2.2",
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",
@@ -57,5 +57,5 @@
57
57
  "peerDependencies": {
58
58
  "@electric-sql/pglite": ">=0.5.0"
59
59
  },
60
- "gitHead": "43b73b3014cb9388ca3218611455c7e0f202f042"
60
+ "gitHead": "3c1c2020b1e5fc5962c28218de1c1c5405968584"
61
61
  }