@porulle/adapter-pglite 0.10.0 → 0.10.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgC,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAGnF,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,aAAa,CACjC,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,eAAe,CAAC,CA0B1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgC,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAGnF,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,aAAa,CACjC,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,eAAe,CAAC,CAkC1B"}
package/dist/index.js CHANGED
@@ -47,5 +47,13 @@ export async function pgliteAdapter(options = {}) {
47
47
  throw error;
48
48
  }
49
49
  }
50
- return { provider: "postgresql", db, transaction };
50
+ // Signal the runtime to push any plugin-declared tables at boot: PGlite has
51
+ // no separate migration step, and plugin schemas aren't known until plugins
52
+ // run in defineConfig (after this adapter was constructed). Honors `migrate`.
53
+ return {
54
+ provider: "postgresql",
55
+ db,
56
+ transaction,
57
+ autoMigrate: options.migrate !== false,
58
+ };
51
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porulle/adapter-pglite",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -14,15 +14,15 @@
14
14
  "@electric-sql/pglite": "^0.3.15",
15
15
  "drizzle-kit": "^0.31.9",
16
16
  "drizzle-orm": "^0.45.1",
17
- "@porulle/core": "0.10.0"
17
+ "@porulle/core": "0.10.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^24.5.2",
21
21
  "eslint": "^9.39.1",
22
22
  "typescript": "5.9.2",
23
23
  "vitest": "^3.2.4",
24
- "@porulle/typescript-config": "0.1.0",
25
- "@porulle/eslint-config": "0.1.0"
24
+ "@porulle/eslint-config": "0.1.0",
25
+ "@porulle/typescript-config": "0.1.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
package/src/index.ts CHANGED
@@ -71,5 +71,13 @@ export async function pgliteAdapter(
71
71
  }
72
72
  }
73
73
 
74
- return { provider: "postgresql", db, transaction };
74
+ // Signal the runtime to push any plugin-declared tables at boot: PGlite has
75
+ // no separate migration step, and plugin schemas aren't known until plugins
76
+ // run in defineConfig (after this adapter was constructed). Honors `migrate`.
77
+ return {
78
+ provider: "postgresql",
79
+ db,
80
+ transaction,
81
+ autoMigrate: options.migrate !== false,
82
+ };
75
83
  }