Up to [cvs.NetBSD.org] / pkgsrc / lang / quickjs
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
quickjs: fix typo
lang/quickjs: Conflict with lang/quickjs-ng
quickjs: fix for NetBSD sparc https://github.com/quickjs-ng/quickjs/issues/1663 From vom513 on pkgsrc-users. Bump PKGREVISION. Shorten DESCR while here, regen patches.
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.
quickjs: Fix build on all !NetBSD OS.
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: Backport patch to fix CVE-2025-12745 Bump PKGREVISION.
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: update to 2024-01-13
2024-01-13:
- top-level-await support in modules
- allow 'await' in the REPL
- added Array.prototype.{with,toReversed,toSpliced,toSorted} and
TypedArray.prototype.{with,toReversed,toSorted}
- added String.prototype.isWellFormed and String.prototype.toWellFormed
- added Object.groupBy and Map.groupBy
- added Promise.withResolvers
- class static block
- 'in' operator support for private fields
- optional chaining fixes
- added RegExp 'd' flag
- fixed RegExp zero length match logic
- fixed RegExp case insensitive flag
- added os.getpid() and os.now()
- added cosmopolitan build
- misc bug fixes
2023-12-09:
- added Object.hasOwn, {String|Array|TypedArray}.prototype.at,
{Array|TypedArray}.prototype.findLast{Index}
- BigInt support is enabled even if CONFIG_BIGNUM disabled
- updated to Unicode 15.0.0
- 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.
quickjs: Requires c11 atomics support
quickjs: make it build on macppc again, or more generally... on non-CONFIG_BIGNUM platforms. Bump PKGREVISION.
lang/quickjs: import DESCR from wip/quickjs
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
quickjs: fix PLIST on Darwin
lang/quickjs: install documentation and examples
lang/quickjs: update to 2020-04-12 Changes since 2020-01-19: 2020-04-12: - added cross realm support - added AggregateError and Promise.any - added env, uid and gid options in os.exec() - misc bug fixes 2020-03-16: - reworked error handling in std and os libraries: suppressed I/O exceptions in std FILE functions and return a positive errno value when it is explicit - output exception messages to stderr - added std.loadFile(), std.strerror(), std.FILE.prototype.tello() - added JS_GetRuntimeOpaque(), JS_SetRuntimeOpaque(), JS_NewUint32() - updated to Unicode 13.0.0 - misc bug fixes
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.
Fix a pkglint NOTE (spaces around plist var assignment).
Use a pkgsrc-compatible version number. Bignum is conditional on 64-bit atomics; mimic that in Makefile and conditionalize in PLIST.
Update to 2020-01-19 version. Pkgsrc changes: * adapt patches * If NetBSD platform misses 64-bit atomics, turn off all atomics (Trying to just disable BIGNUM fails; workaround suggested by Fabrice Bellard) Upstream changes: - keep CONFIG_BIGNUM in the makefile - added os.chdir() - qjs: added -I option - more memory checks in the bignum operations - modified operator overloading semantics to be closer to the TC39 proposal - suppressed "use bigint" mode. Simplified "use math" mode - BigDecimal: changed suffix from 'd' to 'm' - misc bug fixes
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.