@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 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-rc.2
28
- (https://github.com/pgxsinkit/pgwasm-postgres/releases/tag/19.0.0-rc.2), republished byte-identical (each file's size and sha256 are pinned in
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 19rc2 (the upstream tag REL_19_RC2, commit
38
- dffcca2e3c81178c64d4c1f44543a3507d0b7508) plus a patch series and an overlay derived
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-rc.2 is pgwasm-postgres commit
43
- 528131bf65a410e6a533a3cf67e69abe2a122842, built inside the builder image
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 19rc2, with changes derived from ElectricSQL's for PGlite (postgres.wasm, initdb.wasm, postgres.data, amcheck.tar.gz)
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 dffcca2e3c81178c64d4c1f44543a3507d0b7508,
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 RC2 compiled to WebAssembly with Emscripten, single-threaded, with the memory,
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
- This is the experimental PG19 release-candidate channel. Install matching `@rc` packages:
13
+ Install matching toolkit package versions:
14
14
 
15
15
  ```bash
16
- bun add @pgxsinkit/pgwasm@rc @pgxsinkit/pgwasm-c@rc
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-rc1" });
23
+ const pg = await createPgwasm({ build: cBuild, dataDir: "idb://my-app-pg19" });
24
24
  ```
25
25
 
26
- Use a fresh store with a separate name for PG19. This build uses data format 2 and refuses PG18
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. Keep the PG18 packages and store available while evaluating the RC; the stable
29
- `@latest` channel remains separate.
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.
Binary file
Binary file