diff --git a/gjs-1.76.2.tar.xz b/gjs-1.76.2.tar.xz deleted file mode 100644 index 2437963..0000000 --- a/gjs-1.76.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f7d8c9d653ea6fd78afe4a50720e046aa2bfc078fda635dd13067dd199c625d4 -size 646232 diff --git a/gjs-1.77.90.tar.xz b/gjs-1.77.90.tar.xz new file mode 100644 index 0000000..b50cc64 --- /dev/null +++ b/gjs-1.77.90.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70db967ae98bde69b38475ef60bb9a3302990fa615baf46820194b302a29dbf8 +size 653204 diff --git a/gjs.changes b/gjs.changes index ce24d02..0e504a9 100644 --- a/gjs.changes +++ b/gjs.changes @@ -1,3 +1,112 @@ +------------------------------------------------------------------- +Wed Sep 6 01:06:31 UTC 2023 - Luciano Santos + +- Drop pkgconfig(sysprof-4) BuildRequires. This was only needed + because sysprof-capture-static-devel was lacking header files, + which was mistakenly being packaged with sysprof-devel, and it's + fixed now. +- Add with(out) "profiling" build switch and disable it, by + default, as profiling isn't meant for general use. This nests + pkgconfig(sysprof-capture-4) BuildRequires under an if-with + expression and passes profiler=(enabled|disabled) to meson, + depending on the profiling switch. + +------------------------------------------------------------------- +Tue Sep 5 09:49:41 UTC 2023 - Bjørn Lie + +- Update to version 1.77.90: + + Building GJS with -fno-exceptions is now the default. To retain + the previous behaviour, invoke Meson with -Dcpp_eh=default. + + Closed bugs and merge requests: + - testEverything fails make check + - Using a Gio.Appinfo().launch with context may crash gjs + - Fixed-size and Zero-terminated arrays are leaked when used as + in or inout arguments with transfer none + - Crash due to bad memory usage when calling a function taking + an inout array with length parameter and transfer full + - Various maintenance + - README.MSVC.md: Update for SpiderMonkey-115.x + - GJS returns pointers instead of numbers for function with + output parameters + - Profiler spuriously records GJS.boxed_instance and + GJS.boxed_prototype + - installed-tests/js/meson: Add tests dependencies to dbus + tests + - eslint: Make multi-line imports to always include a trailing + comma + - Make console.error format GError correctly + - Gtk: + . Throw an error for an invalid Template string + . Attempt to load Template from a string, if it appears valid + - global: Really enable non-mutating Array methods + +------------------------------------------------------------------- +Sun Aug 13 07:05:21 UTC 2023 - Bjørn Lie + +- Update to version 1.77.2: + + New JavaScript features! This version of GJS is based on + SpiderMonkey 115, an upgrade from the previous ESR (Extended + Support Release) of SpiderMonkey 102. Here are the highlights + of the new JavaScript features. For more information, look them + up on MDN or devdocs.io. + + New APIs: + - Arrays and typed arrays have gained `findLast()` and + `findLastIndex()` methods, which act like `find()` and + `findIndex()` respectively, but start searching at the end of + the array. + - Arrays and typed arrays have gained the `with()` method, + which returns a copy of the array with one element replaced. + - Arrays and typed arrays have gained `toReversed()`, + `toSorted()`, and `toSpliced()` methods, which act like + `reverse()`, `sort()`, and `splice()` respectively, but + return a copy of the array instead of modifying it in-place. + - The `Array.fromAsync()` static method acts like + `Array.from()` but with async iterables, and returns a + Promise that fulfills to the new Array. + + It is now possible to build GJS with -fno-exceptions, by + invoking Meson with -Dcpp_eh=none. + + Closed bugs and merge requests: + - Port to mozjs115 + - Various maintenance + - arg: Preserve transfer when freeing out arrays + - Some values leak fixes and cleanups + - Does not parse hash tables in signals + - docs: fix minor URL mistakes and behavioural omissions + - gjs: Listen to GMemoryMonitor::low-memory-warning to trigger + GC + - GSettings override in Gio.js may fail on construction + - Gio: Fix constructing Settings with a SettingsSchema object +- Replace pkgconfig(mozjs-102) with pkgconfig(mozjs-115) + BuildRequires following upstreams port. + +------------------------------------------------------------------- +Mon Jul 10 15:21:24 UTC 2023 - Bjørn Lie + +- Update to version 1.77.1: + + Many documentation improvements and cleanups. + + New API for C programs embedding GJS: + gjs_context_run_in_realm(). This allows using the SpiderMonkey + API, for advanced use cases, while having entered the main + realm where GJS code runs. Most programs will not need to use + this. + + Closed bugs and merge requests: + - Cleanups: Use more autopointers. + - bug(build, tests): broken dependency cycle associated with + the `have_gtk4` variable. + - Better handling of callbacks during GC. + - doc: Add Gio and GLib runAsync overrides. + - installed-tests/meson: Add tests dependencies on gjs console + and GjsPrivate. + - gi/arg: Cleanup handling of C arrays and GValue arrays. + - Various maintenance. + - doc: Fix http-client.js example. + - use `meson setup` instead of ambiguous `meson`. + - docs: document `GObject.gtypeNameBasedOnJSPath`. + - docs: fix formatting for `Signals.md`. + - Provide API to get GTypes defined in a module. + - doc: Update inroduction. + - gi/args.cpp: Fix build with Visual Studio. + ------------------------------------------------------------------- Thu Jun 15 07:27:19 UTC 2023 - Bjørn Lie diff --git a/gjs.spec b/gjs.spec index a1e3b48..035bc93 100644 --- a/gjs.spec +++ b/gjs.spec @@ -16,14 +16,16 @@ # +%bcond_with profiling + Name: gjs -Version: 1.76.2 +Version: 1.77.90 Release: 0 Summary: JavaScript bindings based on gobject-introspection and Mozilla License: LGPL-2.0-or-later AND MIT Group: Development/Libraries/GNOME URL: https://wiki.gnome.org/Projects/Gjs -Source0: https://download.gnome.org/sources/gjs/1.76/%{name}-%{version}.tar.xz +Source0: https://download.gnome.org/sources/gjs/1.77/%{name}-%{version}.tar.xz BuildRequires: c++_compiler BuildRequires: git @@ -47,10 +49,10 @@ BuildRequires: pkgconfig(gthread-2.0) >= 2.50.0 BuildRequires: pkgconfig(gtk+-3.0) >= 3.20 BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libffi) -BuildRequires: pkgconfig(mozjs-102) -# Hack - fix sysprof static devel requires instead -BuildRequires: pkgconfig(sysprof-4) +BuildRequires: pkgconfig(mozjs-115) +%if %{with profiling} BuildRequires: pkgconfig(sysprof-capture-4) +%endif Requires: libgjs0 = %{version} ExcludeArch: s390 @@ -100,6 +102,7 @@ Mozilla SpiderMonkey JavaScript engine. %build %meson \ -Dinstalled_tests=false \ + -Dprofiler=%{?with_profiling:enabled}%{!?with_profiling:disabled} \ %{nil} %meson_build