@pgxsinkit/pgwasm-pg-dump 0.5.0 → 0.5.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 (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -65,11 +65,13 @@ All three are `PgwasmError`s from `@pgxsinkit/pgwasm`; `PgDumpUnsupportedBuildEr
65
65
  ## Bundlers
66
66
 
67
67
  The package ships pg_dump's WebAssembly next to its code, referenced as `new URL("…", import.meta.url)`,
68
- so bundlers copy and fingerprint it. With Vite, exclude the package from dependency pre-bundling:
68
+ so bundlers copy and fingerprint it. With Vite, exclude the package from dependency pre-bundling.
69
+ Exclude `@pgxsinkit/pgwasm` with it, so the dev server loads pgwasm once, and list both in the app's own
70
+ dependencies: Vite resolves an excluded package from the app, even when another package imports it.
69
71
 
70
72
  ```ts
71
73
  // vite.config.ts
72
- export default defineConfig({ optimizeDeps: { exclude: ["@pgxsinkit/pgwasm-pg-dump"] } });
74
+ export default defineConfig({ optimizeDeps: { exclude: ["@pgxsinkit/pgwasm", "@pgxsinkit/pgwasm-pg-dump"] } });
73
75
  ```
74
76
 
75
77
  pg_dump is built by [pgxsinkit/pgwasm-postgres](https://github.com/pgxsinkit/pgwasm-postgres) from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgxsinkit/pgwasm-pg-dump",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "license": "PostgreSQL",
5
5
  "files": [
6
6
  "artefacts",
@@ -39,7 +39,7 @@
39
39
  "build": "bun --cwd ../.. run build:public-packages"
40
40
  },
41
41
  "peerDependencies": {
42
- "@pgxsinkit/pgwasm": "0.5.0"
42
+ "@pgxsinkit/pgwasm": "0.5.2"
43
43
  },
44
44
  "repository": {
45
45
  "type": "git",