From d9be3f3f2a7148fa0c8bd61d166a3172cdec64b630b5e27f2ee5f66f0b338c65 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Mon, 17 Nov 2025 20:37:13 -0500 Subject: [PATCH] upgrade to 2025-09-13 --- quickjs-2024-01-13.tar.xz | 3 --- quickjs-2025-09-13-2.tar.xz | 3 +++ quickjs.changes | 40 +++++++++++++++++++++++++++++++++++++ quickjs.spec | 29 +++++++++++++-------------- 4 files changed, 57 insertions(+), 18 deletions(-) delete mode 100644 quickjs-2024-01-13.tar.xz create mode 100644 quickjs-2025-09-13-2.tar.xz diff --git a/quickjs-2024-01-13.tar.xz b/quickjs-2024-01-13.tar.xz deleted file mode 100644 index c5943f0..0000000 --- a/quickjs-2024-01-13.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c4bf8f895bfa54beb486c8d1218112771ecfc5ac3be1036851ef41568212e03 -size 765800 diff --git a/quickjs-2025-09-13-2.tar.xz b/quickjs-2025-09-13-2.tar.xz new file mode 100644 index 0000000..f581742 --- /dev/null +++ b/quickjs-2025-09-13-2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:996c6b5018fc955ad4d06426d0e9cb713685a00c825aa5c0418bd53f7df8b0b4 +size 596244 diff --git a/quickjs.changes b/quickjs.changes index 6d8c733..5646308 100644 --- a/quickjs.changes +++ b/quickjs.changes @@ -1,3 +1,43 @@ +------------------------------------------------------------------- +Tue Nov 18 01:35:26 UTC 2025 - Avindra Goolcharan + +- update to 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 + +------------------------------------------------------------------- +Wed Jun 18 00:26:00 UTC 2025 - Avindra Goolcharan + +- update to 2025-04-26: + * removed the bignum extensions and qjscalc to simplify the code. + The BFCalc calculator (web version) can be used as a + replacement for 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 + ------------------------------------------------------------------- Fri Feb 9 23:22:54 UTC 2024 - Avindra Goolcharan diff --git a/quickjs.spec b/quickjs.spec index f13a900..766eb6e 100644 --- a/quickjs.spec +++ b/quickjs.spec @@ -1,7 +1,7 @@ # # spec file for package quickjs # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,23 @@ # -%define ver 2024-01-13 +%define ver 2025-09-13-2 +%define ver2 2025-09-13 +%if 0%{?suse_version} && 0%{?suse_version} < 1500 +%define compiler CC=gcc-7 +# /usr/include/c++/12/stdatomic.h +BuildRequires: gcc7-c++ +%else +BuildRequires: gcc-c++ +%endif Name: quickjs -Version: 20240113 +Version: 20250913 Release: 0 Summary: Small and embeddable Javascript engine License: MIT URL: https://bellard.org/quickjs/ Source0: https://bellard.org/quickjs/%{name}-%{ver}.tar.xz Source10: quickjs-rpmlintrc -%if 0%{?suse_version} && 0%{?suse_version} < 1500 -# /usr/include/c++/12/stdatomic.h -BuildRequires: gcc7-c++ -%define compiler CC=gcc-7 -%else -BuildRequires: gcc-c++ -%endif BuildRequires: make %description @@ -50,7 +51,7 @@ Summary: Development headers for quickjs Development headers for quickjs %prep -%setup -q -n %{name}-%{ver} +%setup -q -n %{name}-%{ver2} # inject optflags (cannot be passed normally to build) cat >> "./Makefile" <<-EOF CFLAGS += %{optflags} @@ -62,16 +63,14 @@ EOF %install %make_install PREFIX=%{_prefix} -#remove extraneous binary +#remove extraneous binaries rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.lto.a +rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.a %files %{_bindir}/qjs %{_bindir}/qjsc -%{_bindir}/qjscalc %dir %{_prefix}/lib/%{name} -# qjsc relies on it -%{_prefix}/lib/%{name}/lib%{name}.a %files devel %{_includedir}/%{name}