# PLJS Change Log ## 1.0.0 Released _June 25, 2025_. - Support of PLV8 functionality - Documentation created - First initial release ### 1.0.1 Released _July 1, 2025_. - Remove extraneous include from `types.c` that stopped PG14/15 compilation - Add PG14/15 compilation to the CI ### 1.0.2 Released _August 20, 2025_. - Fix function name collision with QuickJS - Add missing `subtransaction` support - Fix memory context switching before `CopyErrorData()` ### 1.0.3 Released _August 20, 2025_. - PGXN release went out with an incorrect control file ### 1.0.4 Released _January 11, 2026_. - Up memory default limit to 512MB - Remove unnecessary include from modules.c - Remove extra running of GC after each execution - Better handling of SRF's, including freeing resources - Increased test timeouts to accommodate slower CI machines - Alter memory limit minimum to 64MB to facilitate testing - Alter some tests for s390x testing - Clean up parameter orders for function calls - Fixed potential memory leak in `pljs_jsvalue_to_datums` ### 1.0.5 Released _January 27, 2026_. - Fix key name issue in JSONB_DIRECT_CONVERSION path ### 1.0.6 Released _December 4, 2026_. - Support for PostgreSQL 19 - Use `PG_MODULE_MAGIC_EXT` in PostgreSQL 18 and later - Fix `SETOF` domain over composite returns failing with "using outdated tuple descriptor when deforming row type" on PostgreSQL minor releases with attribute versioning - Fix `localeCompare()` and `normalize()` crashing the backend on Linux, by building QuickJS with hidden symbols so the postgres binary's `unicode_normalize()` is no longer called in place of QuickJS's - Fix composite SRF (`RETURNS TABLE`) to correctly handle array returns - Fix use after free in cursor management - Fix mingw64/Windows JSONB crash - Memory safety fixes - Preserve the JavaScript error message and PostgreSQL detail across SPI - Expose the SQLSTATE of a caught error as `e.sqlstate`, and re-raise a caught PostgreSQL error under its own SQLSTATE - Give the argument count mismatch a real SQLSTATE - Name the mismatched column and properties in `return_next` errors - Say that a record-returning function needs a column definition list - Open, fetch, move and close cursors inside a subtransaction, so an error no longer tears down the SPI connection - Catch PostgreSQL errors raised in `pljs.return_next` as JavaScript exceptions - Connect to SPI in triggers, so a trigger function can query - Allocate prepared plan data in `CacheMemoryContext`, and use the parameter types given to `pljs.prepare` - Release the result set and per-call plan in `pljs.execute` - Fix leaks of property name enumerations, per-call parameter and result allocations, rendered numeric strings, validator state, and QuickJS state on cache reset - Fix reference counting of cached functions handed to JavaScript - Resolve window function argument types per call rather than per function - Pass every argument of a `VARIADIC "any"` function to JavaScript; only the first one was passed, and the rest were dropped - Convert types without a dedicated conversion (`uuid`, `money`, enums, etc.) through their own I/O functions instead of their internal bytes - Convert domains as their base type and check them against the domain, applying typmods and checking NULLs on every path - Report NULL composite and record results correctly, and return void from void functions