Up to [cvs.NetBSD.org] / pkgsrc / lang / quickjs
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
lang/quickjs: update from 2025-12-22 to 2026-06-04 Sponsored by: tipi.work <ChangeLog> - added custom malloc for small blocks (11% faster on bench-v8) - micro optimizations (30% faster on bench-v8) - added resizable array buffers - added ArrayBuffer.prototype.transfer - added the Iterator object and methods - added set methods - added Atomics.pause - added added Map and WeakMap upsert methods - added Math.sumPrecise() - added regexp duplicate named groups - added base64 and hexadecimal encodings for Uint8Array - misc bug fixes </ChangeLog>
lang/quickjs: Fix shared library by installing both .so and .so.0 Previously the Makefile would create libquickjs.so with DT_SONAME set to "libquickjs.so.0" but it wouldn't actually install the .so.0 file. This caused any packages (including www/elinks) that depend on the shared library to fail, because "ld -o obj -lquickjs" inserts DT_NEEDED to the non-existent .so.0 to the "obj". Setting DT_SONAME to .so.0 is fine, but then we actually need to install that file. While here, now that we build a shared library let's link qjs and qjsc dynamically.
lang/quickjs: update to the recent snapshot While I'm here enable building/installing a shared library, it may require to build nginx javascript module. Discussed: https://mail-index.netbsd.org/pkgsrc-users/2026/03/05/msg042691.html
quickjs: LTO is not enabled by default
quickjs: Readd lto entry Accidentally missed as part of 20250913 update.
quickjs: Update to 20250913 pkgsrc changes: - Remove patches no longer needed because applied upstream Changes: 2025-09-13: - added JSON modules and import attributes - added JS_PrintValue() API - qjs: pretty print objects in print() and console.log() - qjs: better promise rejection tracker heuristics - added RegExp v flag - added RegExp modifiers - added RegExp.escape - added Float16Array - added Promise.try - improved JSON parser spec conformance - qjs: improved compatibility of std.parseExtJSON() with JSON5 and accept JSON5 modules - added JS_FreePropertyEnum() and JS_AtomToCStringLen() API - added Error.isError() - misc bug fixes 2025-04-26: - removed the bignum extensions and qjscalc - new BigInt implementation optimized for small numbers - added WeakRef, FinalizationRegistry and symbols as weakrefs - added builtin float64 printing and parsing functions for more correctness - faster repeated string concatenation - qjs: promise unhandled rejections are fatal errors by default - added column number in debug information - removed the "use strip" extension - qjs: added -s and --strip-source options - qjsc: added -s and --keep-source options - added JS_GetAnyOpaque() - added more callbacks for exotic objects in JSClassExoticMethods - misc bug fixes
lang/quickjs: Install libquickjs.a in the standard path
It installs the library in ${PREFIX}/lib/quickjs/ by default, which makes
its users hard to find it. Let's just move it to ${PREFIX}/lib to make our
lives easier.
quickjs didn't have buildlink3.mk until very recently so it should be safe
to move it now.
lang/quickjs: update to 2021-03-27 version. Pkgsrc changes: * adjust patches and checksums as needed * Update request from PR#56675 should be fulfilled by this; thanks to Kimihiro Nonaka Upstream changes: 2021-03-27: - faster Array.prototype.push and Array.prototype.unshift - added JS_UpdateStackTop() - fixed Windows console - misc bug fixes 2020-11-08: - improved function parameter initializers - added std.setenv(), std.unsetenv() and std.getenviron() - added JS_EvalThis() - misc bug fixes 2020-09-06: - added logical assignment operators - added IsHTMLDDA support - faster for-of loops - os.Worker now takes a module filename as parameter - qjsc: added -D option to compile dynamically loaded modules or workers - misc bug fixes 2020-07-05: - modified JS_GetPrototype() to return a live value - REPL: support unicode characters larger than 16 bits - added os.Worker - improved object serialization - added std.parseExtJSON - misc bug fixes
lang/quickjs: install documentation and examples
Make some adjustments to fix the issues from PR#54912: * Don't use DATE as a variable, as it's used elsewhere, use QJS_DATE instead * Don't use the "bignum" PLIST variable anymore, the "bn" variants are no longer being built * Add "lto" PLIST variable, supported by and used on Linux * Move the setting of CONFIG_BIGNUM to the pkg Makefile instead of always setting it, should support 32-bit NetBSD ports. Bump PKGREVISION.
Use a pkgsrc-compatible version number. Bignum is conditional on 64-bit atomics; mimic that in Makefile and conditionalize in PLIST.
lang/quickjs: imported version 2019-10-27 QuickJS is a small and embeddable Javascript engine. It supports the ES2020 specification including modules, asynchronous generators and proxies. It optionally supports mathematical extensions such as big integers (BigInt), big floating point numbers (BigFloat) and operator overloading.