upgrade to 2025-09-13

This commit is contained in:
2025-11-17 20:37:13 -05:00
parent aff57b77f7
commit d9be3f3f2a
4 changed files with 57 additions and 18 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c4bf8f895bfa54beb486c8d1218112771ecfc5ac3be1036851ef41568212e03
size 765800

BIN
quickjs-2025-09-13-2.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,43 @@
-------------------------------------------------------------------
Tue Nov 18 01:35:26 UTC 2025 - Avindra Goolcharan <avindra@opensuse.org>
- 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 <avindra@opensuse.org>
- 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 <avindra@opensuse.org>

View File

@@ -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}