@porulle/adapter-pglite 0.9.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.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/package.json +2 -2
- package/src/index.ts +9 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -14,7 +14,7 @@
|
|
|
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.
|
|
17
|
+
"@porulle/core": "0.10.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^24.5.2",
|
package/src/index.ts
CHANGED
|
@@ -71,5 +71,13 @@ export async function pgliteAdapter(
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
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
|
}
|