@pgxsinkit/pgwasm-c 0.5.2 → 0.6.0-rc.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.
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 18.6.1
28
- (https://github.com/pgxsinkit/pgwasm-postgres/releases/tag/18.6.1), 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-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
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,14 +34,14 @@ 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 18.6 (the upstream tag REL_18_6, commit
38
- 724edf9bde9d356724ad384a2e196edc3c9f80f7) plus a patch series and an overlay derived
37
+ from PostgreSQL 19rc2 (the upstream tag REL_19_RC2, commit
38
+ dffcca2e3c81178c64d4c1f44543a3507d0b7508) 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 18.6.1 is pgwasm-postgres commit
43
- 28f0c1551db8c7f5df143ef1e424c641af93072d, built inside the builder image
44
- ghcr.io/pgxsinkit/pgwasm-builder@sha256:0c4d5255c5f1824216d1eb347cc231a6f881574c3d5b8172796a8cbe5f9f63c8
42
+ ElectricSQL and contributors). Release 19.0.0-rc.2 is pgwasm-postgres commit
43
+ 528131bf65a410e6a533a3cf67e69abe2a122842, built inside the builder image
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
47
47
  the tag gave the gated build's manifest.
@@ -50,9 +50,9 @@ The components below, and their versions, come from:
50
50
 
51
51
  - the configure line: --with-icu --with-zlib --with-libxml --with-openssl=no
52
52
  --without-llvm, and the server's link line (-lxml2 -lz, and ICU through ICU_LIBS);
53
- - the builder recipe: Emscripten 6.0.10, zlib 1.3.2, libxml2 2.15.4, ICU 76.1. The
54
- binaries confirm Emscripten 6.0.10 (in the server's version string) and ICU 76
55
- (its data package, icudt76l);
53
+ - the builder recipe: Emscripten 6.0.13, zlib 1.3.2, libxml2 2.15.4, ICU 79.1. The
54
+ binaries confirm Emscripten 6.0.13 (in the server's version string) and ICU 79
55
+ (its data package, icudt79l);
56
56
  - the files of postgres.data (dict_snowball.so, the time zone data, the ICU data and
57
57
  its LICENSE).
58
58
 
@@ -64,11 +64,11 @@ libraries are in it.
64
64
  Each component's notice follows, copied from the file named with it.
65
65
 
66
66
  ------------------------------------------------------------------------------
67
- PostgreSQL 18.6, with changes derived from ElectricSQL's for PGlite (postgres.wasm, initdb.wasm, postgres.data, amcheck.tar.gz)
67
+ PostgreSQL 19rc2, 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/electric-sql/postgres-pglite at b133782cd759f08b3aeb263b80a963b39c7b7af1,
71
- file COPYRIGHT. ElectricSQL's changes in that tree are distributed under the same file.
70
+ Source: https://github.com/postgres/postgres at dffcca2e3c81178c64d4c1f44543a3507d0b7508,
71
+ file COPYRIGHT. The derived ElectricSQL changes are distributed under the same license.
72
72
 
73
73
  PostgreSQL Database Management System
74
74
  (also known as Postgres, formerly known as Postgres95)
@@ -812,7 +812,7 @@ lacks the function; all are listed. Each is reproduced from the same tree:
812
812
  * SUCH DAMAGE.
813
813
  */
814
814
 
815
- The time zone data in postgres.data (IANA tzdata 2025c, from src/timezone/data/tzdata.zi)
815
+ The time zone data in postgres.data (IANA tzdata 2026f, from src/timezone/data/tzdata.zi)
816
816
  is in the public domain, as that file states.
817
817
 
818
818
  ------------------------------------------------------------------------------
@@ -820,13 +820,13 @@ Snowball (dict_snowball.so and its stopword files, in postgres.data)
820
820
  ------------------------------------------------------------------------------
821
821
 
822
822
  PostgreSQL's snowball module is synced with Snowball commit
823
- d19326ac6c1b9a417fc872f7c2f845265a5e9ece (src/backend/snowball/README).
824
- Source: https://raw.githubusercontent.com/snowballstem/snowball/d19326ac6c1b9a417fc872f7c2f845265a5e9ece/COPYING
823
+ 2d2e312df56f2ede014a4ffb3e91e6dea43c24be (src/backend/snowball/README).
824
+ Source: https://raw.githubusercontent.com/snowballstem/snowball/2d2e312df56f2ede014a4ffb3e91e6dea43c24be/COPYING
825
825
 
826
826
  Copyright (c) 2001, Dr Martin Porter
827
827
  Copyright (c) 2004,2005, Richard Boulton
828
828
  Copyright (c) 2013, Yoshiki Shibukawa
829
- Copyright (c) 2006,2007,2009,2010,2011,2014-2019, Olly Betts
829
+ Copyright (c) 2006-2025, Olly Betts
830
830
  All rights reserved.
831
831
 
832
832
  Redistribution and use in source and binary forms, with or without
@@ -854,10 +854,10 @@ Source: https://raw.githubusercontent.com/snowballstem/snowball/d19326ac6c1b9a41
854
854
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
855
855
 
856
856
  ------------------------------------------------------------------------------
857
- ICU 76.1 (postgres.wasm, initdb.wasm, and its data in postgres.data)
857
+ ICU 79.1 (postgres.wasm, initdb.wasm, and its data in postgres.data)
858
858
  ------------------------------------------------------------------------------
859
859
 
860
- Source: https://raw.githubusercontent.com/unicode-org/icu/release-76-1/LICENSE
860
+ Source: https://raw.githubusercontent.com/unicode-org/icu/release-79.1/LICENSE
861
861
  The same file travels inside postgres.data at /pgwasm/icu/LICENSE (byte-identical).
862
862
  PostgreSQL's own Unicode tables are generated from the Unicode Character Database,
863
863
  whose terms are the Unicode License v3 at the start of this file.
@@ -866,7 +866,7 @@ whose terms are the Unicode License v3 at the start of this file.
866
866
 
867
867
  COPYRIGHT AND PERMISSION NOTICE
868
868
 
869
- Copyright © 2016-2024 Unicode, Inc.
869
+ Copyright © 1991-2026 Unicode, Inc.
870
870
 
871
871
  NOTICE TO USER: Carefully read the following legal agreement. BY
872
872
  DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
@@ -1405,6 +1405,32 @@ whose terms are the Unicode License v3 at the start of this file.
1405
1405
  suitability of this software for any purpose. It is provided "as is"
1406
1406
  without express or implied warranty.
1407
1407
 
1408
+ ----------------------------------------------------------------------
1409
+
1410
+ File: sorttable.js (only for ICU4J)
1411
+
1412
+ The MIT Licence, for code from kryogenix.org
1413
+
1414
+ Code downloaded from the Browser Experiments section of kryogenix.org is
1415
+ licenced under the so-called MIT licence. The licence is below.
1416
+
1417
+ Copyright (c) 1997-date Stuart Langridge
1418
+
1419
+ Permission is hereby granted, free of charge, to any person obtaining a
1420
+ copy of this software and associated documentation files (the "Software"),
1421
+ to deal in the Software without restriction, including without limitation
1422
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
1423
+ and/or sell copies of the Software, and to permit persons to whom the
1424
+ Software is furnished to do so, subject to the following conditions:
1425
+
1426
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1427
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1428
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1429
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1430
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1431
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1432
+ SOFTWARE.
1433
+
1408
1434
  ------------------------------------------------------------------------------
1409
1435
  libxml2 2.15.4 (postgres.wasm)
1410
1436
  ------------------------------------------------------------------------------
@@ -1466,10 +1492,10 @@ Source: https://raw.githubusercontent.com/madler/zlib/v1.3.2/LICENSE
1466
1492
  jloup@gzip.org madler@alumni.caltech.edu
1467
1493
 
1468
1494
  ------------------------------------------------------------------------------
1469
- Emscripten 6.0.10 (the runtime in postgres.js and initdb.js, and its system libraries in postgres.wasm and initdb.wasm)
1495
+ Emscripten 6.0.13 (the runtime in postgres.js and initdb.js, and its system libraries in postgres.wasm and initdb.wasm)
1470
1496
  ------------------------------------------------------------------------------
1471
1497
 
1472
- Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/LICENSE
1498
+ Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.13/LICENSE
1473
1499
 
1474
1500
  Emscripten is available under 2 licenses, the MIT license and the
1475
1501
  University of Illinois/NCSA Open Source License.
@@ -1574,10 +1600,10 @@ Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/LICE
1574
1600
  flag will run closure compiler from third_party/).
1575
1601
 
1576
1602
  ------------------------------------------------------------------------------
1577
- musl libc, as bundled in Emscripten 6.0.10 (postgres.wasm, initdb.wasm)
1603
+ musl libc, as bundled in Emscripten 6.0.13 (postgres.wasm, initdb.wasm)
1578
1604
  ------------------------------------------------------------------------------
1579
1605
 
1580
- Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/system/lib/libc/musl/COPYRIGHT
1606
+ Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.13/system/lib/libc/musl/COPYRIGHT
1581
1607
 
1582
1608
  musl as a whole is licensed under the following standard MIT license:
1583
1609
 
@@ -1774,7 +1800,7 @@ Source: https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/syst
1774
1800
  obstacle to adoption, that text has been removed.
1775
1801
 
1776
1802
  ------------------------------------------------------------------------------
1777
- LLVM runtime libraries, as bundled in Emscripten 6.0.10 (compiler-rt, libc++, libc++abi; postgres.wasm, initdb.wasm)
1803
+ LLVM runtime libraries, as bundled in Emscripten 6.0.13 (compiler-rt, libc++, libc++abi; postgres.wasm, initdb.wasm)
1778
1804
  ------------------------------------------------------------------------------
1779
1805
 
1780
1806
  These are under the Apache License v2.0 with LLVM Exceptions. Their object code is
@@ -1799,7 +1825,7 @@ library's LICENSE.TXT, where it is identical):
1799
1825
 
1800
1826
  Each library's LICENSE.TXT also carries the legacy LLVM licence:
1801
1827
 
1802
- compiler-rt — https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/system/lib/compiler-rt/LICENSE.TXT
1828
+ compiler-rt — https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.13/system/lib/compiler-rt/LICENSE.TXT
1803
1829
  Legacy licence (dual NCSA / MIT; the MIT notice is reproduced):
1804
1830
 
1805
1831
  The compiler_rt library is dual licensed under both the University of Illinois
@@ -1829,7 +1855,7 @@ Each library's LICENSE.TXT also carries the legacy LLVM licence:
1829
1855
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1830
1856
  THE SOFTWARE.
1831
1857
 
1832
- libc++ — https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/system/lib/libcxx/LICENSE.TXT
1858
+ libc++ — https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.13/system/lib/libcxx/LICENSE.TXT
1833
1859
  Legacy licence (dual NCSA / MIT; the MIT notice is reproduced):
1834
1860
 
1835
1861
  The libc++ library is dual licensed under both the University of Illinois
@@ -1859,7 +1885,7 @@ Each library's LICENSE.TXT also carries the legacy LLVM licence:
1859
1885
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1860
1886
  THE SOFTWARE.
1861
1887
 
1862
- libc++abi — https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.10/system/lib/libcxxabi/LICENSE.TXT
1888
+ libc++abi — https://raw.githubusercontent.com/emscripten-core/emscripten/6.0.13/system/lib/libcxxabi/LICENSE.TXT
1863
1889
  Legacy licence (dual NCSA / MIT; the MIT notice is reproduced):
1864
1890
 
1865
1891
  The libc++abi library is dual licensed under both the University of Illinois
package/README.md CHANGED
@@ -1,20 +1,36 @@
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 18 compiled to WebAssembly with Emscripten, single-threaded, with the memory,
5
- IndexedDB (`idb://`) and file (`file://`, Bun) filesystems.
4
+ PostgreSQL 19 RC2 compiled to WebAssembly with Emscripten, single-threaded, with the memory,
5
+ IndexedDB (`idb://`) and file (`file://`, Bun) filesystems, plus
6
+ [OPFS-repacked](https://pgxsinkit.github.io/packages/pgwasm/#the-opfs-repacked-store-pgxsinkitpgwasmopfs)
7
+ through `createOpfsPgwasm` from `@pgxsinkit/pgwasm/opfs`.
8
+
9
+ **Release mapping:** pgxsinkit 0.5.x and earlier use PostgreSQL 18; 0.6.x and later use
10
+ PostgreSQL 19 or later, including the 0.6 release candidates. The exact PostgreSQL release is
11
+ recorded in `C_BUILD_IDENTITY.release`.
12
+
13
+ This is the experimental PG19 release-candidate channel. Install matching `@rc` packages:
6
14
 
7
15
  ```bash
8
- bun add @pgxsinkit/pgwasm @pgxsinkit/pgwasm-c
16
+ bun add @pgxsinkit/pgwasm@rc @pgxsinkit/pgwasm-c@rc
9
17
  ```
10
18
 
11
19
  ```ts
12
20
  import { createPgwasm } from "@pgxsinkit/pgwasm";
13
21
  import { cBuild } from "@pgxsinkit/pgwasm-c";
14
22
 
15
- const pg = await createPgwasm({ build: cBuild, dataDir: "idb://my-app" });
23
+ const pg = await createPgwasm({ build: cBuild, dataDir: "idb://my-app-pg19-rc1" });
16
24
  ```
17
25
 
26
+ Use a fresh store with a separate name for PG19. This build uses data format 2 and refuses PG18
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.
30
+
31
+ An unmarked directory from another PostgreSQL major raises `PostgresVersionMismatchError`.
32
+ The client treats it as a permanent refusal and does not retry the incompatible open.
33
+
18
34
  The package ships its WebAssembly module, filesystem bundle and initdb as files next to its code,
19
35
  referenced as `new URL("…", import.meta.url)`, so bundlers copy and fingerprint them.
20
36
 
Binary file