Accepting request 1005094 from GNOME:Factory

OBS-URL: https://build.opensuse.org/request/show/1005094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gjs?expand=0&rev=105
This commit is contained in:
Dominique Leuenberger 2022-09-21 12:41:37 +00:00 committed by Git OBS Bridge
commit 195995e84f
4 changed files with 130 additions and 10 deletions

View File

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

3
gjs-1.74.0.tar.xz Normal file
View File

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

View File

@ -1,3 +1,124 @@
-------------------------------------------------------------------
Wed Sep 21 05:15:05 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 1.74.0:
+ Many improvements to the examples and documentation.
+ Overrides to certain non-introspectable functions that will now
gracefully throw an exception instead of crashing.
+ Closed bugs and merge requests:
- Various maintenance.
- http example not reliable, relies on server provided
content-length.
- Gio set_attribute SIGSEGV (Address boundary error).
- doc:
. Reformat for better scraping with DevDocs.
. Update Home.
- GLib: override GThread functions.
-------------------------------------------------------------------
Mon Sep 19 09:35:42 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Use ldconfig_scriptlets macro for post(un) handling.
-------------------------------------------------------------------
Thu Sep 15 15:25:18 UTC 2022 - Michael Gorse <mgorse@suse.com>
- Require xorg-x11-Xvfb on SLE-15-SP5, rather than
xorg-11-server-Xvfb (bsc#1203274).
-------------------------------------------------------------------
Fri Aug 26 18:31:37 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 1.73.2:
+ New JavaScript features! This version of GJS is based on
SpiderMonkey 102, an upgrade from the previous ESR (Extended
Support Release) of SpiderMonkey 91. Here are the highlights of
the new JavaScript features. For more information, look them up
on MDN or devdocs.io.
+ New APIs
- The `Object.hasOwn()` static method can be used as an easier
replacement for `Object.prototype.hasOwnProperty.call(...)`.
- `Intl.supportedValuesOf()` lets you enumerate which
calendars, currencies, collation strategies, numbering
systems, time zones, and units are available for
internationalization.
+ It's now possible to use
`GObject.BindingGroup.prototype.bind_full()` with JS functions.
Previously this method was unusable in JS.
+ Gio.FileEnumerator is now iterable, both synchronously (with
for-of or array spread syntax) and asynchronously (with
for-await-of).
+ Performance improvements in the built-in `imports.signals`
module.
+ Many improvements to the examples and documentation.
+ Closed bugs and merge requests:
- Spidermonkey 102
- Object connections / signal emissions optimizations
- tests/Gio: Cleanup Gio._promisify
- Include JUnit reports in builds
- Integrate pretty print to the debugger
- doc:
. Edit GJS description
. note the version `constructor()` became supported
. Modernize examples
. Document byteArray deprecation and migration
. add simple Gtk.TickCallback example
- build: disable sysprof agent for subproject fallback
- Update CI images
- GListModel.get_n_items returns garbage value
- Add override for g_binding_group_bind_full()
- Make GFileEnumerator iterable and async iterable
- Replace pkgconfig(mozjs-91) with pkgconfig(mozjs-102)
BuildRequires following upstreams changes.
-------------------------------------------------------------------
Tue Aug 9 12:23:46 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 1.73.1:
+ The interactive interpreter now displays its output more
intelligently, pretty-printing the properties and values of
objects based on their type. This improvement also applies to
the log() and logError() functions.
+ New API: DBus proxy classes now include methods named with the
suffix 'Async', which perform async calls to DBus APIs and
return Promises. This is in addition to the existing suffixes
'Sync' (for blocking calls) and 'Remote' (for async calls with
callbacks.)
+ There is an override for
Gio.ActionMap.prototype.add_action_entries(). Previously this
method wouldn't work because it required an array of
Gio.ActionEntry objects, which are not possible to construct in
GJS. Now it can be used with an array of plain objects. (e.g.
`this.add_action_entries
([{name: 'open', activate() { ... }}]);`
+ GJS is now compatible with libffi 3.4.2 and later. All earlier
versions of GJS are not compatible with libffi 3.4.2 and later
unless libffi is built with the --disable-exec-static-tramp
flag.
+ GJS now requires Meson 0.54 to build.
+ Closed bugs and merge requests:
- Verbose Object Print Output
- Add support for JS async calls in DBusProxyWrapper
- Crash after build against libffi 3.4.2
- Handle reference cycles in new console pretty print function
- Gnome-Shell 42 - crash after login (general protection fault)
- Various maintenance
- jsapi-util-strings: Ignore locale to compute the upper case
of a char (i.e. fix implicit properties on Turkish locale)
- Dockerfile: Install Turkish locale in CI for UTF-8 locale too
- Improve pretty-print output for GObject-introspected objects
- Expose pretty print function to tests
- build: track changes to Sysprof meson options
- Make Gio.ActionMap.add_action_entries work
- Make DBus session and system props non-enumerable
- gi/arg-inl: Mark the arg functions as constexpr
- build: Do not use verbose GJS debug logging in tests by
default
- minijasmine: Print test JS errors output if any
- doc: document the existence of the console object in GJS
- arg-cache: Use a switch to select the not-introspectable error
- log_set_writer_func is not safe to use
-------------------------------------------------------------------
Mon Aug 8 08:39:36 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -17,21 +17,21 @@
Name: gjs
Version: 1.72.2
Version: 1.74.0
# FIXME # Disable tests for unstable 1.71.1 - Try tests again on next versionbump
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.72/%{name}-%{version}.tar.xz
Source0: https://download.gnome.org/sources/gjs/1.74/%{name}-%{version}.tar.xz
BuildRequires: c++_compiler
BuildRequires: git
BuildRequires: meson >= 0.52.0
BuildRequires: meson >= 0.54.0
BuildRequires: pkgconfig
BuildRequires: readline-devel
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
%if 0%{?sle_version} && 0%{?sle_version} <= 150500
BuildRequires: xorg-x11-Xvfb
%else
BuildRequires: xorg-x11-server-Xvfb
@ -48,7 +48,7 @@ BuildRequires: pkgconfig(gthread-2.0) >= 2.50.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libffi)
BuildRequires: pkgconfig(mozjs-91)
BuildRequires: pkgconfig(mozjs-102)
# Hack - fix sysprof static devel requires instead
BuildRequires: pkgconfig(sysprof-4)
BuildRequires: pkgconfig(sysprof-capture-4)
@ -114,8 +114,7 @@ Mozilla SpiderMonkey JavaScript engine.
#sleep 10
#%%meson_test
%post -n libgjs0 -p /sbin/ldconfig
%postun -n libgjs0 -p /sbin/ldconfig
%ldconfig_scriptlets -n libgjs0
%files
%license COPYING