@pgxsinkit/pgwasm-c 0.6.0-rc.2 → 0.6.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/NOTICE +8 -8
- package/README.md +7 -7
- package/artefacts/amcheck.tar.gz +0 -0
- package/artefacts/initdb.wasm +0 -0
- package/artefacts/postgres.data +283 -286
- package/artefacts/postgres.js +1 -1
- package/artefacts/postgres.wasm +0 -0
- package/artefacts/prepopulated.tar.gz +0 -0
- package/dist/artefact-pins.d.ts +17 -17
- package/dist/artefact-pins.d.ts.map +1 -1
- package/dist/artefacts.d.ts.map +1 -1
- package/dist/build.d.ts.map +1 -1
- package/dist/contrib/amcheck.d.ts.map +1 -1
- package/dist/host/artefact-loader.d.ts.map +1 -1
- package/dist/host/command-line.d.ts.map +1 -1
- package/dist/host/data-dir.d.ts.map +1 -1
- package/dist/host/emscripten.d.ts.map +1 -1
- package/dist/host/exit-code.d.ts.map +1 -1
- package/dist/host/extensions.d.ts.map +1 -1
- package/dist/host/initdb.d.ts.map +1 -1
- package/dist/host/mounts/file.d.ts.map +1 -1
- package/dist/host/mounts/idb.d.ts.map +1 -1
- package/dist/host/mounts/index.d.ts.map +1 -1
- package/dist/host/mounts/memory.d.ts.map +1 -1
- package/dist/host/mounts/storage-mount.d.ts.map +1 -1
- package/dist/host/mounts/vfs.d.ts.map +1 -1
- package/dist/host/paths.d.ts.map +1 -1
- package/dist/host/postgres-instance.d.ts.map +1 -1
- package/dist/host/vfs-mount.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +3 -3
- package/dist/postgres-version.d.ts.map +1 -1
- package/dist/prepopulated.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/artefact-pins.ts +11 -11
package/NOTICE
CHANGED
|
@@ -24,8 +24,8 @@ PostgreSQL License text is in LICENSE.
|
|
|
24
24
|
The artefacts, and what is compiled into them
|
|
25
25
|
------------------------------------------------------------------------------
|
|
26
26
|
|
|
27
|
-
`artefacts/` holds seven files: the assets of the pgwasm-postgres release 19.0.0
|
|
28
|
-
(https://github.com/pgxsinkit/pgwasm-postgres/releases/tag/19.0.0
|
|
27
|
+
`artefacts/` holds seven files: the assets of the pgwasm-postgres release 19.0.0
|
|
28
|
+
(https://github.com/pgxsinkit/pgwasm-postgres/releases/tag/19.0.0), republished byte-identical (each file's size and sha256 are pinned in
|
|
29
29
|
`src/artefact-pins.ts`, from the release's manifest.json checked against its
|
|
30
30
|
SHA256SUMS): `postgres.wasm` (the Postgres server), `postgres.data` (its filesystem
|
|
31
31
|
bundle: share files, loadable modules, time zone data, ICU data), `postgres.js` and
|
|
@@ -34,13 +34,13 @@ bundle: share files, loadable modules, time zone data, ICU data), `postgres.js`
|
|
|
34
34
|
the release's own initdb created, so it holds only what PostgreSQL itself wrote).
|
|
35
35
|
|
|
36
36
|
pgxsinkit/pgwasm-postgres (https://github.com/pgxsinkit/pgwasm-postgres) builds them
|
|
37
|
-
from PostgreSQL
|
|
38
|
-
|
|
37
|
+
from PostgreSQL 19.0 (the upstream tag REL_19_0, commit
|
|
38
|
+
5c839a2a08b9b87a349be97371fac6c5a2873b10) plus a patch series and an overlay derived
|
|
39
39
|
from ElectricSQL's PGlite fork of PostgreSQL
|
|
40
40
|
(https://github.com/electric-sql/postgres-pglite at
|
|
41
41
|
b133782cd759f08b3aeb263b80a963b39c7b7af1; PostgreSQL License, Copyright (c)
|
|
42
|
-
ElectricSQL and contributors). Release 19.0.0
|
|
43
|
-
|
|
42
|
+
ElectricSQL and contributors). Release 19.0.0 is pgwasm-postgres commit
|
|
43
|
+
77228df75b0b80e633c6153cbc17db69ca3a7f6e, built inside the builder image
|
|
44
44
|
ghcr.io/pgxsinkit/pgwasm-builder@sha256:cbb378a50de43cd2fbd8718b72ce4c7595ffe421148a3c32435906f096bc5130
|
|
45
45
|
(whose recipe is that repository's `builder/Containerfile`); its manifest.json records
|
|
46
46
|
every file's size and sha256, and the release was published only because a rebuild of
|
|
@@ -64,10 +64,10 @@ libraries are in it.
|
|
|
64
64
|
Each component's notice follows, copied from the file named with it.
|
|
65
65
|
|
|
66
66
|
------------------------------------------------------------------------------
|
|
67
|
-
PostgreSQL
|
|
67
|
+
PostgreSQL 19.0, with changes derived from ElectricSQL's for PGlite (postgres.wasm, initdb.wasm, postgres.data, amcheck.tar.gz)
|
|
68
68
|
------------------------------------------------------------------------------
|
|
69
69
|
|
|
70
|
-
Source: https://github.com/postgres/postgres at
|
|
70
|
+
Source: https://github.com/postgres/postgres at 5c839a2a08b9b87a349be97371fac6c5a2873b10,
|
|
71
71
|
file COPYRIGHT. The derived ElectricSQL changes are distributed under the same license.
|
|
72
72
|
|
|
73
73
|
PostgreSQL Database Management System
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @pgxsinkit/pgwasm-c
|
|
2
2
|
|
|
3
3
|
The C Postgres build for [`@pgxsinkit/pgwasm`](https://www.npmjs.com/package/@pgxsinkit/pgwasm):
|
|
4
|
-
PostgreSQL 19
|
|
4
|
+
PostgreSQL 19.0 compiled to WebAssembly with Emscripten, single-threaded, with the memory,
|
|
5
5
|
IndexedDB (`idb://`) and file (`file://`, Bun) filesystems, plus
|
|
6
6
|
[OPFS-repacked](https://pgxsinkit.github.io/packages/pgwasm/#the-opfs-repacked-store-pgxsinkitpgwasmopfs)
|
|
7
7
|
through `createOpfsPgwasm` from `@pgxsinkit/pgwasm/opfs`.
|
|
@@ -10,23 +10,23 @@ through `createOpfsPgwasm` from `@pgxsinkit/pgwasm/opfs`.
|
|
|
10
10
|
PostgreSQL 19 or later, including the 0.6 release candidates. The exact PostgreSQL release is
|
|
11
11
|
recorded in `C_BUILD_IDENTITY.release`.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Install matching toolkit package versions:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
bun add @pgxsinkit/pgwasm
|
|
16
|
+
bun add @pgxsinkit/pgwasm @pgxsinkit/pgwasm-c
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import { createPgwasm } from "@pgxsinkit/pgwasm";
|
|
21
21
|
import { cBuild } from "@pgxsinkit/pgwasm-c";
|
|
22
22
|
|
|
23
|
-
const pg = await createPgwasm({ build: cBuild, dataDir: "idb://my-app-pg19
|
|
23
|
+
const pg = await createPgwasm({ build: cBuild, dataDir: "idb://my-app-pg19" });
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
When upgrading from PG18, start with a fresh store. This build uses data format 2 and refuses PG18
|
|
27
27
|
format-1 stores and backups, including unmarked PG18 directories. It does not migrate or delete an
|
|
28
|
-
existing store.
|
|
29
|
-
|
|
28
|
+
existing store. Flush pending writes and export local-only data with the old application before
|
|
29
|
+
recreating the local store and re-syncing.
|
|
30
30
|
|
|
31
31
|
An unmarked directory from another PostgreSQL major raises `PostgresVersionMismatchError`.
|
|
32
32
|
The client treats it as a permanent refusal and does not retry the incompatible open.
|
package/artefacts/amcheck.tar.gz
CHANGED
|
Binary file
|
package/artefacts/initdb.wasm
CHANGED
|
Binary file
|