Skip to content
Tags give the ability to mark specific points in history as being important
  • 1.57.1
    Version 1.57.1
    
    - Closed bugs and merge requests:
      * Various maintenance [!279, Philip Chimento]
      * mainloop: Assign null to property instead of deleting [!280, Jason Hicks]
      * Added -d version note README.md [!282, Nauman Umer]
      * Extra help for debugger commands [#236, !283, Nauman Umer]
      * Crash in BoxedInstance when struct could not be allocated directly [#240,
        !285, Philip Chimento]
      * Cairo conversion bugs [!286, Philip Chimento]
  • 1.56.1
    Version 1.56.1
    
    - Closed bugs and merge requests:
      * Calling dumpHeap() on non-existent directory causes crash [#134, !277,
        Philip Chimento]
      * Using Gio.MemoryInputStream.new_from_data ("string") causes segfault [#221,
        !278, Philip Chimento]
      * Fix gjs_context_eval() for non-zero-terminated strings [!281, Philip
        Chimento]
  • 1.56.0
    Version 1.56.0
    
    - No change from 1.55.92.
  • 1.55.92
    Version 1.55.92
    
    - Closed bugs and merge requests:
      * Fix CI failures [!269, Philip Chimento]
      * Possible memory allocation/deallocation bug (possibly in js_free() in GJS)
        [!270, Chun-wei Fan, Philip Chimento]
      * cairo-context: Special-case 0-sized vector [!271, Florian Müllner]
      * Add some more eslint rules [!272, Florian Müllner]
      * win32/NMake: Fix introspection builds [!274, Chun-wei Fan]
      * NMake/libgjs-private: Export all the public symbols there [!275, Chun-wei
        Fan]
  • 1.55.91
    Version 1.55.91
    
    - The problem of freezing while running the tests using GCC's sanitizers was
      determined to be a bug in GCC, which was fixed in GCC 9.0.1.
    
    - Closed bugs and merge requests:
      * gnome-sound-recorder crashes deep inside libgjs [#223, !266, Philip
        Chimento]
      * Various maintenance [!267, Philip Chimento]
      * wrapperutils: Define $gtype property as non-enumerable [!268, Philip
        Chimento]
  • 1.55.90
    Version 1.55.90
    
    - New JS API: It's now possible to call and implement DBus methods whose
      parameters or return types include file descriptor lists (type signature 'h'.)
      This involves passing or receiving a Gio.UnixFDList instance along with the
      parameters or return values.
    
      To call a method with a file descriptor list, pass the Gio.UnixFDList along
      with the rest of the parameters, in any order, the same way you would pass a
      Gio.Cancellable or async callback.
    
      For return values, things are a little more complicated, in order to avoid
      breaking existing code. Previously, synchronously called DBus proxy methods
      would return an unpacked GVariant. Now, but only if called with a
      Gio.UnixFDList, they will return [unpacked GVariant, Gio.UnixFDList]. This
      does not break existing code because it was not possible to call a method with
      a Gio.UnixFDList before, and the return value is unchanged if not calling with
      a Gio.UnixFDList. This does mean, unfortunately, that if you have a method
      with an 'h' in its return signature but not in its argument signatures, you
      will have to call it with an empty FDList in order to receive an FDList with
      the return value, when calling synchronously.
    
      On the DBus service side, when receiving a method call, we now pass the
      Gio.UnixFDList received from DBus to the called method. Previously, sync
      methods were passed the parameters, and async methods were passed the
      parameters plus the Gio.DBusInvocation object. Appending the Gio.UnixFDList to
      those parameters also should not break existing code.
    
      See the new tests in installed-tests/js/testGDBus.js for examples of calling
      methods with FD lists.
    
    - We have observed on the CI server that GJS 1.55.90 will hang forever while
      running the test suite compiled with GCC 9.0.0 and configured with the
      --enable-asan and --enable-ubsan arguments. This should be addressed in one of
      the following 1.55.x releases.
    
    - Closed bugs and merge requests:
      * GDBus proxy overrides should support Gio.DBusProxy.call_with_unix_fd_list()
        [#204, !263, Philip Chimento]
      * Add regression tests for GObject vfuncs [!259, Jason Hicks]
      * GjsPrivate: Sources should be C files [!262, Philip Chimento]
      * build: Vendor last-good version of AX_CODE_COVERAGE [!264, Philip Chimento]
  • 1.55.4
    Version 1.55.4
    
    - Closed bugs and merge requests:
      * Various maintenance [!258, Philip Chimento]
      * Boxed copy constructor should not be called, split Boxed into prototype and
        instance structs [#215, !260, Philip Chimento]
  • 1.55.3
    Version 1.55.3
    
    - Closed bugs and merge requests:
      * Manually constructed ByteArray toString segfaults [#219, !254, Philip
        Chimento]
      * signals: Add _signalHandlerIsConnected method [!255, Jason Hicks]
      * Various maintenance [!257, Philip Chimento]
  • 1.52.5
    Version 1.52.5
    
    - This release includes the "Big Hammer" patch from GNOME 3.30 to reduce memory
      usage. For more information, read the blog post at
      https://feaneron.com/2018/04/20/the-infamous-gnome-shell-memory-leak/
      It was not originally intended to be backported to GNOME 3.28, but in practice
      several Linux distributions already backported it, and it has been working
      well to reduce memory usage, and the bugs have been ironed out of it.
    
      It does decrease performance somewhat, so if you don't want that then don't
      install this update.
    
    - Closed bugs and merge requests:
    
      * Ensure not to miss the force_gc flag [#150, !132, Carlos Garnacho]
      * Make GC much more aggressive [#62, !50, Giovanni Campagna, Georges Basile
        Stavracas Neto, Philip Chimento]
      * Queue GC when a GObject reference is toggled down [#140, !114, !127, Georges
        Basile Stavracas Neto]
      * Reduce memory overhead of g_object_weak_ref() [#144, !122, Carlos Garnacho,
        Philip Chimento]
      * context: Defer and therefore batch forced GC runs [performance] [!236,
        Daniel van Vugt]
      * context: use timeout with seconds to schedule a gc trigger [!239, Marco
        Trevisan]
      * Use compacting GC on RSS size growth [!133, #151, Carlos Garnacho]
      * GType memleak fixes [!244, Marco Trevisan]
  • 1.55.2
    Version 1.55.2
    
    - Closed bugs and merge requests:
      * Gnome-shell crashes on destroying cached param specs [#213, !240, Marco
        Trevisan]
      * Various maintenance [!235, !250, Philip Chimento]
      * Auto pointers builder [!243, Marco Trevisan]
      * configure.ac: Update bug link [!245, Andrea Azzarone]
      * SIGSEGV when exiting gnome-shell [#212, !247, Andrea Azzarone, Philip
        Chimento]
      * Fix build with --enable-dtrace and create CI job to ensure it doesn't break
        in the future [#196, !237, !253, Philip Chimento]
      * Delay JSString-to-UTF8 conversion [!249, Philip Chimento]
      * Annotate return values [!251, Philip Chimento]
      * Fix a regression with GError toString() [!252, Philip Chimento]
      * GType memleak fixes [!244, Marco Trevisan]
      * Atoms refactor [!233, Philip Chimento, Marco Trevisan]
      * Write a "Code Hospitable" README file [#17, !248, Philip Chimento, Andy
        Holmes, Avi Zajac]
      * object: Method lookup repeatedly traverses introspection [#54, !53, Colin
        Walters, Philip Chimento]
      * Handler of GtkEditable::insert-text signal is not run [#147, !143, Tomasz
        Miąsko, Philip Chimento]
  • 1.54.3
    Version 1.54.3
    
    - Closed bugs and merge requests:
      * object: Fix write-only properties [!246, Philip Chimento]
      * SIGSEGV when exiting gnome-shell [#212, !247, Andrea Azzarone]
      * SelectionData.get_targets crashes with "Unable to resize vector" [#201,
        !241, Philip Chimento]
      * Gnome-shell crashes on destroying cached param specs [#213, !240, Marco
        Trevisan]
      * GType memleak fixes [!244, Marco Trevisan]
      * Fix build with --enable-dtrace and create CI job to ensure it doesn't break
        in the future [#196, !253, Philip Chimento]
  • 1.54.2
    Version 1.54.2
    
    - Closed bugs and merge requests:
      * context: Defer and therefore batch forced GC runs [performance] [!236,
        Daniel van Vugt]
      * context: use timeout with seconds to schedule a gc trigger [!239, Marco
        Trevisan]
      * fundamental: Check if gtype is valid before using it [!242, Georges Basile
        Stavracas Neto]
    
    - Backported a fix for a crash in the interactive interpreter when executing
      something like `throw "foo"` [Philip Chimento]
    
    - Backported various maintenance from 3.31 [Philip Chimento]
  • 1.55.1
    Version 1.55.1
    
    - New API for programs that embed GJS: gjs_memory_report(). This was already an
      internal API, but now it is exported.
    
    - Closed bugs and merge requests:
    
      * object: Implement newEnumerate hook for GObject [!155, Ole Jørgen Brønner]
      * Various maintenance [!228, Philip Chimento]
      * ByteArray.toString should stop at null bytes [#195, !232, Philip Chimento]
      * Byte arrays that represent encoded strings should be 0-terminated [#203,
        !232, Philip Chimento]
      * context: Defer and therefore batch forced GC runs [performance] [!236,
        Daniel van Vugt]
      * context: use timeout with seconds to schedule a gc trigger [!239, Marco
        Trevisan]
      * arg: Add special-case for byte arrays going to C [#67, !49, Jasper
        St. Pierre, Philip Chimento]
  • 1.52.4
    Version 1.52.4
    
    - Closed bugs and merge requests:
    
      * `ARGV` encoding issues [#22, !108, Evan Welsh]
      * Segfault on enumeration of GjSFileImporter properties when a searchpath
        entry contains a symlink [#154, !144, Ole Jørgen Brønner]
      * Possible refcounting bug around GtkListbox signal handlers [#24, !154,
        Philip Chimento]
      * Fix up GJS_DISABLE_JIT flag now the JIT is enabled by default in
        SpiderMonkey [!159, Christopher Wheeldon]
      * Expose GObject static property symbols. [!197, Evan Welsh]
      * Do not run linters on tagged commits [!181, Claudio André]
      * gjs-1.52.0 fails to compile against x86_64 musl systems [#132, !214, Philip
        Chimento]
      * gjs no longer builds after recent autoconf-archive updates [#149, !217,
        Philip Chimento]
  • 1.54.1
    Version 1.54.1
    
    - Closed bugs and merge requests:
      * legacy: Ensure generated GType names are valid [!229, Florian Müllner]
      * Fix GJS profiler with MozJS 60 [!230, Georges Basile Stavracas Neto]
      * Regression with DBus proxies [#202, !231, Philip Chimento]
  • 1.54.0
    Version 1.54.0
    
    - Compatibility fix for byte arrays: the legacy toString() behaviour of byte
      arrays returned from GObject-introspected functions is now restored. If you
      use the functionality, a warning will be logged asking you to upgrade your
      code.
    
    - Closed bugs and merge requests:
      * byteArray: Add compatibility toString property [Philip Chimento, !227]
  • 1.53.92
    Version 1.53.92
    
    - Technology preview of a GNOME 3.32 feature: native Promises for GIO-style
      asynchronous operations. This is the result of Avi Zajac's summer internship.
      To use it, you can opt in once for each specific asynchronous method, by
      including code such as the following:
    
          Gio._promisify(Gio.InputStream.prototype, 'read_bytes_async',
              'read_bytes_finish');
    
      After executing this, you will be able to use native Promises with the
      Gio.InputStream.prototype.read_async() method, simply by not passing a
      callback to it:
    
          try {
              let bytes = await stream.read_bytes_async(count, priority, cancel);
          } catch (e) {
              logError(e, 'Failed to read bytes');
          }
    
      Note that any "success" boolean return values are deleted from the array of
      return values from the async method. That is,
    
          let [contents, etag] = file.load_contents_async(cancel);
    
      whereas the callback version still returns a useless [ok, contents, etag]
      that can never be false, since on false an exception would be thrown. In the
      callback version, we must keep this for compatibility reasons.
    
      Note that due to a bug in GJS (https://gitlab.gnome.org/GNOME/gjs/issues/189),
      promisifying methods on Gio.File.prototype and other interface prototypes will
      not work. We provide the API Gio._LocalFilePrototype on which you can
      promisify methods that will work on Gio.File instances on the local disk only:
    
          Gio._promisify(Gio._LocalFilePrototype, 'load_contents_async',
              'load_contents_finish');
    
      We estimate this will cover many common use cases.
    
      Since this is a technology preview, we do not guarantee API stability with
      the version coming in GNOME 3.32. These APIs are marked with underscores to
      emphasize that they are not stable yet. Use them at your own risk.
    
    - Closed bugs and merge requests:
      * Added promisify to GJS GIO overrides [!225, Avi Zajac]
      * Temporary fix for Gio.File.prototype [!226, Avi Zajac]
  • 1.53.91
    Version 1.53.91
    
    - Closed bugs and merge requests:
      * CI: add webkit and gtk-app tests [!222, Claudio André]
      * Fix example eslint errors [!207, Claudio André, Philip Chimento]
      * Fix more "lost" GInterface properties [!223, Florian Müllner]
      * Fix --enable-installed-tests when built from a tarball [!224, Simon
        McVittie]
  • 1.53.90
    Version 1.53.90
    
    - GJS now depends on SpiderMonkey 60 and requires a compiler capable of C++14.
    
    - GJS includes a simple debugger now. It has basic stepping, breaking, and
      printing commands, that work like GDB. Activate it by running the GJS console
      interpreter with the -d or --debugger flag before the name of the JS program
      on the command line.
    
    - New API for programs that embed GJS: gjs_context_setup_debugger_console().
      To integrate the debugger into programs that embed the GJS interpreter, call
      this before executing the JS program.
    
    - New JavaScript features! This version of GJS is based on SpiderMonkey 60, an
      upgrade from the previous ESR (Extended Support Release) of SpiderMonkey 52.
      Here are the highlights of the new JavaScript features.
      For more information, look them up on MDN or devdocs.io.
    
      * New syntax
        + `for await (... of ...)` syntax is used for async iteration.
        + The rest operator is now supported in object destructuring: e.g.
          `({a, b, ...cd} = {a: 1, b: 2, c: 3, d: 4});`
        + The spread operator is now supported in object literals: e.g.
          `mergedObject = {...obj1, ...obj2};`
        + Generator methods can now be async, using the `async function*` syntax,
          or `async* f() {...}` method shorthand.
        + It's now allowed to omit the variable binding from a catch statement, if
          you don't need to access the thrown exception: `try {...} catch {}`
    
      * New APIs
        + Promise.prototype.finally(), popular in many third-party Promise
          libraries, is now available natively.
        + String.prototype.toLocaleLowerCase() and
          String.prototype.toLocaleUpperCase() now take an optional locale or
          array of locales.
        + Intl.PluralRules is now available.
        + Intl.NumberFormat.protoype.formatToParts() is now available.
        + Intl.Collator now has a caseFirst option.
        + Intl.DateTimeFormat now has an hourCycle option.
    
      * New behaviour
        + There are a lot of minor behaviour changes as SpiderMonkey's JS
          implementation conforms ever closer to ECMAScript standards. For complete
          information, read the Firefox developer release notes:
          https://developer.mozilla.org/en-US/Firefox/Releases/53#JavaScript
          https://developer.mozilla.org/en-US/Firefox/Releases/54#JavaScript
          https://developer.mozilla.org/en-US/Firefox/Releases/55#JavaScript
          https://developer.mozilla.org/en-US/Firefox/Releases/56#JavaScript
          https://developer.mozilla.org/en-US/Firefox/Releases/57#JavaScript
          https://developer.mozilla.org/en-US/Firefox/Releases/58#JavaScript
          https://developer.mozilla.org/en-US/Firefox/Releases/59#JavaScript
          https://developer.mozilla.org/en-US/Firefox/Releases/60#JavaScript
    
      * Backwards-incompatible changes
        + Conditional catch clauses have been removed, as they were a Mozilla
          extension which will not be standardized. This requires some attention in
          GJS programs, as previously we condoned code like `catch (e if
          e.matches(Gio.IOError, Gio.IOError.EXISTS))`  with a comment in
          overrides/GLib.js, so it's likely this is used in several places.
        + The nonstandard `for each (... in ...)` loop was removed.
        + The nonstandard legacy lambda syntax (`function(x) x*x`) was removed.
        + The nonstandard Mozilla iteration protocol was removed, as well as
          nonstandard Mozilla generators, including the Iterator and StopIteration
          objects, and the Function.prototype.isGenerator() method.
        + Array comprehensions and generator comprehensions have been removed.
        + Several nonstandard methods were removed: ArrayBuffer.slice() (but not
          the standard version, ArrayBuffer.prototype.slice()),
          Date.prototype.toLocaleFormat(), Function.prototype.isGenerator(),
          Object.prototype.watch(), and Object.prototype.unwatch().
    
    - Many of the above backwards-incompatible changes can be caught by scanning
      your source code using https://gitlab.gnome.org/ptomato/moz60tool, or
      https://extensions.gnome.org/extension/1455/spidermonkey-60-migration-validator/
    
    - Deprecation: the custom ByteArray is now discouraged. Instead of ByteArray,
      use Javascript's native Uint8Array. The ByteArray module still contains
      functions for converting between byte arrays, strings, and GLib.Bytes
      instances.
    
      The old ByteArray will continue to work as before, except that Uint8Array
      will now be returned from introspected functions that previously returned a
      ByteArray. To keep your old code working, change this:
    
          let byteArray = functionThatReturnsByteArray();
    
      to this:
    
          let byteArray = new ByteArray.ByteArray(functionThatReturnsByteArray());
    
      To port to the new code:
    
      * ByteArray.ByteArray -> Uint8Array
      * ByteArray.fromArray() -> Uint8Array.from()
      * ByteArray.ByteArray.prototype.toString() -> ByteArray.toString()
      * ByteArray.ByteArray.prototype.toGBytes() -> ByteArray.toGBytes()
      * ByteArray.fromString(), ByteArray.fromGBytes() remain the same
    
      * Unlike ByteArray, Uint8Array's length is fixed. Assigning an element past
        the end of a ByteArray would lengthen the array. Now, it is ignored.
        Instead use Uint8Array.of(), for example, this code:
    
            let a = ByteArray.fromArray([97, 98, 99, 100]);
            a[4] = 101;
    
        should be replaced by this code:
    
            let a = Uint8Array.from([97, 98, 99, 100]);
            a = Uint8Array.of(...a, 101);
    
        The length of the byte array must be set at creation time. This code will
        not work anymore:
    
            let a = new ByteArray.ByteArray();
            a[0] = 255;
    
        Instead, use "new Uint8Array(1)" to reserve the correct length.
    
    - Closed bugs and merge requests:
    
      * Run tests using real software [#178, !192, Claudio André]
      * Script tests are missing some errors [#179, !192, Claudio André]
      * Create a '--disable-readline' option and use it [!196, Claudio André]
      * CI: stop using Fedora for clang builds [!198, Claudio André]
      * Expose GObject static property symbols. [!197, Evan Welsh]
      * CI fixes [!200, Claudio André]
      * Docker images creation [!201, Claudio André]
      * Get Docker images built and stored in GJS registry [#185, !203, !208,
        Claudio André, Philip Chimento]
      * Clear the static analysis image a bit more [!205, Claudio André]
      * Rename the packaging job to flatpak [!210, Claudio André]
      * Create SpiderMonkey 60 docker images [!202, Claudio André]
      * Debugger [#110, !204, Philip Chimento]
      * Add convenience g_object_set() replacement [!213, Florian Müllner]
      * Add dependencies of the real tests (examples) [!215, Claudio André]
      * CWE-126 [#174, !218, Philip Chimento]
      * gjs no longer builds after recent autoconf-archive updates [#149, !217,
        Philip Chimento]
      * gjs-1.52.0 fails to compile against x86_64 musl systems [#132, !214, Philip
        Chimento]
      * Run the GTK real tests (recently added) [!212, Claudio André]
      * Fix thorough tests failures [!220, Philip Chimento]
      * Port to SpiderMonkey 60 [#161, !199, Philip Chimento]
      * Replace ByteArray with native ES6 TypedArray [#5, !199, Philip Chimento]
      * Overriding GInterface properties broke [#186, !216, Florian Müllner, Philip
        Chimento]
      * Avoid segfault when checking for GByteArray [!221, Florian Müllner]
    
    - Various build fixes [Philip Chimento]
  • 1.53.4
    Version 1.53.4
    
    - Refactored the way GObject properties are accessed. This should be a bit more
      efficient, as property info (GParamSpec) is now cached for every object type.
      There may still be some regressions from this; please be on the lookout so
      we can fix them in the next release.
    
    - The memory usage for each object instance has been reduced, resulting in
      several dozens of megabytes less memory usage in GNOME Shell.
    
    - The CI pipeline was refactored, now runs a lot faster, detects more failure
      situations, builds on different architectures, uses the GitLab Docker
      registry, and publishes code coverage statistics to
      https://gnome.pages.gitlab.gnome.org/gjs/
    
    - For contributors, the C++ style guide has been updated, and there is now a
      script in the tools/ directory that will install a Git hook to automatically
      format your code when you commit it. The configuration may not be perfect yet,
      so bear with us while we get it right.
    
    - Closed bugs and merge requests:
    
      * Define GObject properties and fields as JS properties [#160, !151, Philip
        Chimento]
      * Possible refcounting bug around GtkListbox signal handlers [#24, !154,
        Philip Chimento]
      * Fix up GJS_DISABLE_JIT flag now the JIT is enabled by default in
        SpiderMonkey [!159, Christopher Wheeldon]
      * Various CI maintenance [!160, !161, !162, !169, !172, !180, !191, !193,
        Claudio André]
      * Update GJS wiki URL [!157, Seth Woodworth]
      * Build failure in GNOME Continuous [#104, !156, Philip Chimento]
      * Refactor ObjectInstance into C++ class [!158, !164, Philip Chimento]
      * Use Ubuntu in the coverage job [!163, Claudio André]
      * Remove unused files [!165, Claudio André]
      * Add a ARMv8 build test [!166, Claudio André]
      * Make CI faster [!167, Claudio André]
      * Add a PPC4LE build test [!168, Claudio André]
      * gdbus: Fix deprecated API [!170, Philip Chimento]
      * Change Docker images names pattern [#173, !174, Claudio André]
      * Assert failure on a GC_ZEAL run [#165, !173, Philip Chimento]
      * Do not run linters on tagged commits [!181, Claudio André]
      * Fail on compiler warnings [!182, Claudio André]
      * Save code statistics in GitLab Pages [!183, Claudio André]
      * Build static analysis Docker image in GitLab [!184, !185, !187, !189,
        Claudio André]
      * GNOME Shell always crashes with SIGBUS [#171, !188, Georges Basile
        Stavracas Neto]
      * Coverage badge is no longer able to show its value [#177, !186, Claudio
        André]
      * Move the Docker images creation to GitLab [!190, Claudio André]
      * Cut the Gordian knot of coding style [#172, !171, Philip Chimento]
      * Some GObect/GInterface properties broke [#182, !195, Philip Chimento]