-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathNEWS
3963 lines (3232 loc) · 168 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Version 1.83.1
--------------
- GJS now supports source maps. If you use build tools such as TypeScript for
source code transformation, you can ship source map files alongside your built
JS files and make sure your build tool adds the magic source map comment. You
will then get the original source locations printed in stack traces and in the
debugger.
- In the interactive interpreter (gjs-console), command history is now saved
between runs. You can set the environment variable GJS_REPL_HISTORY to save
the command history to a custom file, or set it to an empty string to switch
this feature off.
- The debugger now supports examining private fields.
- Some performance and memory usage improvements around calling GNOME platform
functions and accessing properties of GNOME platform objects.
- Backwards-incompatible change: Gettext.setlocale() now only affects the locale
of the current thread. This will not affect your JS code, but it may affect
your app if you use a C library with worker threads and you relied on being
able to set the locale in those worker threads from JS.
- Closed bugs and merge requests:
* Rewrite arguments cache using C++ inheritance [!519, Marco Trevisan, Philip
Chimento]
* package: Try to load resource module name if available [!839, Marco
Trevisan]
* object, args-cache: Improve performance with properties basic types [!866,
Marco Trevisan, Philip Chimento]
* Use property accessors and setters directly [#524, !867, Marco Trevisan,
Philip Chimento]
* gjs-util: make gjs_setlocale thread-safe [!893, Ray Strode]
* Support Source Maps [#474, !938, Gary Li]
* Fix return value of load_contents_async [!956, Sebastian Wiesner]
* Various maintenance [!957, !961, !967, Philip Chimento]
* Add history support to REPL [#645, !958, Gary Li]
* Some prep for type safety refactors [!959, Philip Chimento]
* Update to latest gobject-introspection-tests [!962, Philip Chimento]
* Build failure regression for i686 [#669, !963, Philip Chimento]
* Segfault when using GtkListView and custom widgets [#443, !964, Gary Li]
* ci: Switch to GNOME GitLab mirror of ci-templates [!965, Bartłomiej
Piotrowski]
* Connecting to signal of a GstElement errors with "too much recursion" [#557,
!966, Gary Li]
* Update to use GNOME Release Service [!968, Philip Chimento]
* Enable inspecting symbol properties and private fields in the debugger
[#455, !969, Gary Li]
Version 1.82.1
--------------
- Closed bugs and merge requests:
* gnome-shell crash when switching user after upgrade from Fedora 40 to Fedora
41 [#647, !955, Philip Chimento]
Version 1.82.0
--------------
- Closed bugs and merge requests:
* installed tests are failing because they can't load internal typelibs from
parent directory [#639, !953, Simon McVittie]
* GIMarshalling test has 3 failures with 1.81.90 on i686 [#642, !954, Philip
Chimento]
Version 1.81.90
---------------
- Closed bugs and merge requests:
* callbacks: fix sweeping check for incremental GC [!859, !950, Evan Welsh,
Gary Li]
* GJS doesn't handle query parameters in imports [#618, !944, Gary Li]
* Integrate gobject-introspection-tests as submodule [!946, Philip Chimento]
* module: Include full module specifier in import.meta.url [!947, Philip
Chimento]
* doap: Remove invalid maintainer entry [!948, Sophie Herold]
* installed tests have the wrong libexecdir [#636, !949, Jeremy Bicha]
* Inheriting final class crashes GJS [#640, !951, Gary Li]
* Various maintenance [!952, Philip Chimento]
Version 1.81.2
--------------
- New JavaScript features! This version of GJS is based on SpiderMonkey 128, an
upgrade from the previous ESR (Extended Support Release) of SpiderMonkey 115.
Here are the highlights of the new JavaScript features.
For more information, look them up on MDN or devdocs.io.
* New APIs
+ The new `Object.groupBy()` and `Map.groupBy()` static methods group the
elements of an iterable according to the return value of a key function.
+ The new `Promise.withResolvers()` static method returns a Promise as well
as its resolve and reject functions, shorthand for a common pattern used
when promisifying event-based APIs.
+ Strings have gained the `isWellFormed()` and `toWellFormed()` methods
which help when interoperating with strings that may have unpaired
Unicode surrogates. This usually does not come up in the GNOME platform.
+ ArrayBuffers have gained the `transfer()` and `transferToFixedLength()`
methods, which transfer ownership of a data buffer to a new ArrayBuffer
object, without copying it, and invalidating ("detaching") any existing
references to the buffer. There is also a new property, `detached`, which
allows checking whether an ArrayBuffer is in the detached state.
+ The new `Intl.Segmenter` class allows splitting a string into graphemes,
words, or sentences, in a locale-aware way.
+ `Intl.NumberFormat` has gained `formatRange()` and `formatRangeToParts()`
methods, which allow formatting number ranges, like "3–5".
+ `Intl.PluralRules` has gained a `selectRange()` method, which allows
selecting the proper plural form based on a range of numbers, like
"30–50 feral hogs".
* New behaviour
+ The `Intl.NumberFormat` and `Intl.PluralRules` constructors support new
options: `roundingIncrement`, `roundingMode`, `roundingPriority`, and
`trailingZeroDisplay`.
+ The `Intl.NumberFormat` constructor also supports the new option
`useGrouping`.
* Backwards-incompatible changes
+ The behaviour of `Date.parse()` has been changed to be more consistent
with other JavaScript engines. (But don't use `Date.parse()`.)
- Closed bugs and merge requests:
* Invalid search paths cause failed assertions when printing imports.gi
[#629, !935, Gary Li]
* SpiderMonkey 128 [#630, !936, !945, Philip Chimento]
* Pretty-printing byte array in gjs-console throws a type conversion
error [#434, !937, Gary Li]
* js: Add gjs_debug_callable() debug function [!940, Philip Chimento]
* build: Build Cairo from subproject if not found [!941, Philip
Chimento]
* Bump CI image to Fedora 40 [!942, Philip Chimento]
* CI tools updates [!943, Philip Chimento]
Version 1.81.1
--------------
- Breaking change: When creating a GObject with the `new` operator, the
constructor takes a single argument consisting of a property bag with
GObject construct properties and their values.
This was often confused with the `new` static method that may take
arguments that are not interpreted as property bags.
For example, Gio.FileIcon was one of the many affected APIs:
new Gio.FileIcon({file: myFile})
vs
Gio.FileIcon.new(myFile)
Confusion between the two often lead to bug reports when confusing
these two and calling `new Gio.FileIcon(myFile)` - the constructor
would look for a nonexistent `file` property on `myFile`, causing an
improperly initialized object.
This is now no longer allowed. The argument to `new Gio.FileIcon(...)`
must be a plain JS object, not a GObject.
It's possible that existing code legitimately used a GObject here. If
your code does this and a quick migration is impractical, please get
in touch and we will revert this change before 1.82.0 in favour of a
longer deprecation period.
- The `get_data()`, `get_qdata()`, `set_data()`, `steal_data()`,
`steal_qdata()`, `ref()`, `unref()`, `ref_sink()`, and
`force_floating()` methods of GObject now throw if called.
These methods never worked, but sometimes they would silently appear
to succeed, then cause crashes or memory leaks later.
If you were trying to use the `get_data()` family of methods, just set
a JS property instead. If you were trying to modify the refcount of a
GObject in JS, instead set the object as the value of a JS property on
some other object.
- Closed bugs and merge requests:
* doc: Document how to get a stack trace [!864, Sonny Piers]
* TextDecoder should accept GBytes [#587, !903, Sriyansh Shivam]
* Possible use-after-free with GLib.Regex.match/GLib.MatchInfo [#589,
!920, Philip Chimento]
* method `get_line` of `Pango.Layout` doesn't work. [#547, !921,
Philip Chimento]
* Block calls to g_object_get_data and friends [#423, !922, Philip
Chimento]
* Crash when calling Pango.Layout.get_pixel_size() with a badly
init:ed Pango.Layout [#580, !923, Philip Chimento]
* doc: avoid reference to Gio.UnixInputStream [!925, Andy Holmes]
* Add a CI check for config.h, and some other useful checks [#447,
!926, Philip Chimento]
* Incorrect UnixOutputStream warning [#610, !928, Philip Chimento]
* Various maintenance [!929, !931, Philip Chimento]
* Docs: Various markdown fixes [!930, Frank Dana]
* Some build fixes for the main (and gnome-46) branches for Visual
Studio [!932, Chun-wei Fan]
* GJS doesn't log undefined values [#621, !933, Gary Li]
* property objects are printed as empty js objects [#622, !934, Gary
Li]
Version 1.80.2
--------------
- Quick follow-up release to fix crash on ppc64.
- Closed bugs and merge requests:
* 1.79.90 failing tests on ppc64 [#605, !927, Daniel Kolesa]
Version 1.80.1
--------------
- Quick follow-up release to fix build failure on MacPorts and Homebrew.
- Closed bugs and merge requests:
* 1.79.90: gi/arg-inl.h: expression is not assignable [#608, !924,
Philip Chimento]
Version 1.78.5
--------------
- You may have noticed that WeakRef and FinalizationRegistry... never
actually worked as they were supposed to. They work now!
- Closed bugs and merge requests:
* Workspace switching performance degradation due to leaked WeakRefs
in JS [#600, !913, Philip Chimento]
Version 1.80.0
--------------
- In GNOME 46 and later, platform-specific GLib and Gio APIs have moved
to the separate libraries GLibUnix, GioUnix, GLibWin32, and GioWin32.
They are still available in the main GLib and Gio libraries, so your
code will continue to work, but you will get a deprecation message.
To migrate your code, import the new libraries (e.g.,
`import GioUnix from 'gi://GioUnix';`) and consider the 'Unix' or
'Win32' prefix part of the namespace, rather than class or function
name: e.g.,
* Gio.UnixInputStream -> GioUnix.InputStream
* GLib.unix_open_pipe -> GLibUnix.open_pipe
Exceptions to the above rule are Gio.UnixConnection,
Gio.UnixCredentialsMessage, Gio.UnixFDList, Gio.UnixSocketAddress, and
Gio.UnixSocketAddressType. These remain in Gio, because they are
actually cross-platform despite being named "Unix".
- Closed bugs and merge requests:
* meson: fix automagic dependency lookup for cairo [!917, Eli
Schwartz]
* Deprecate accessing GLibUnix/GLibWin32 APIs through GLib [#599,
!918, Philip Chimento]
* CI: Build newer GLib in debug Docker image [!919, Philip Chimento]
Version 1.79.90
---------------
- You may have noticed that WeakRef and FinalizationRegistry... never
actually worked as they were supposed to. They work now!
- Closed bugs and merge requests:
* Workspace switching performance degradation due to leaked WeakRefs
in JS [#600, !913, Philip Chimento]
* GTop.glibtop_get_mountlist invocation causes GNOME Shell Crash
[#601, !914, Philip Chimento]
* Progress towards some performance improvements in accessing GObject
properties [!915, Marco Trevisan]
* Various maintenance [!916, Philip Chimento]
Version 1.79.3
--------------
- Closed bugs and merge requests:
* Various maintenance [!912, Philip Chimento]
Version 1.78.4
--------------
- Closed bugs and merge requests:
* package: Specify GIRepository version [!910, !911, Florian Müllner]
Version 1.76.3
--------------
- Various fixes ported from the development branch.
- Closed bugs and merge requests:
* gi/gerror: Fix version of the GIRepository typelib import [!906, Jordan
Petridis]
* package: Specify GIRepository version [!910, !911, Florian Müllner]
Version 1.79.2
--------------
- Progress towards some performance improvements in accessing GObject
properties [Marco Trevisan]
- Regression fix also released in 1.78.3 [Philip Chimento]
- Closed bugs and merge requests:
* value, object: Honor signal arguments transfer annotation [!862,
Marco Trevisan]
Version 1.78.3
--------------
- Closed bugs and merge requests:
* GJS 1.78.2 causes all Gnome extensions preference settings windows
to disappears after 3-7 seconds [#598, !909, Philip Chimento]
Version 1.79.1
--------------
- Closed bugs and merge requests:
* Improve console output [#511, !890, Sriyansh Shivam]
* Name the GC source [!897, Ivan Molodetskikh]
* Various maintenance [!898, !907, Philip Chimento]
* build: Fix meson deprecations [Rick Calixte]
* doc: fix broken link in Mainloop.md [!899, Andy Holmes]
* overrides: Make class object a parameter of register type hooks [!900,
Philip Chimento]
* Display correct stack trace on SyntaxError [#584, !901, Philip Chimento]
* HTTP server stops listening [#569, !904, Akshay Warrier]
Version 1.78.2
--------------
- Closed bugs and merge requests:
* Uninitialized memory in float out values can lead to crashes in mozjs gc
code later on [#591, !902, Philip Chimento]
* Garbage collection of Gdk surfaces [#592, !905, Philip Chimento]
* gi/gerror: Fix version of the GIRepository typelib import [!906, Jordan
Petridis]
Version 1.78.1
--------------
- Closed bugs and merge requests:
* Gtk template signals cause a reference cycle that is not detected [#576,
!891, James Westman]
* Modules from resources may get loaded twice [#577, !892, Philip Chimento]
* docs: add examples for creating cairo image surfaces [!894, Andy Holmes]
* Deadlocks between GJS GC and dconf gsettings when a setting value is changed
[#558, !895, msizanoen]
* Gtk3: Fix leak in GtkBuilder template signal connections [!896, Philip
Chimento]
Version 1.78.0
--------------
- Closed bugs and merge requests:
* Improved Console.log Output [!886, Sriyansh Shivam]
* `gjs:dbus / Gtk4` unit test fails: Function Gtk.SectionModel.get_section()
cannot be called [#575, !889, Matt Turner]
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 [#95, !858, Marco Trevisan]
* Using a Gio.Appinfo().launch with context may crash gjs [#553, !858, Marco
Trevisan]
* Fixed-size and Zero-terminated arrays are leaked when used as in or inout
arguments with transfer none [#561, !858, Marco Trevisan]
* Crash due to bad memory usage when calling a function taking an inout array
with length parameter and transfer full [#562, !858, Marco Trevisan]
* Various maintenance [!875, !888, Philip Chimento, Marco Trevisan, Andy
Holmes]
* README.MSVC.md: Update for SpiderMonkey-115.x [!877, Chun-wei Fan]
* GJS returns pointers instead of numbers for function with output parameters
[#570, !878, Philip Chimento, Marco Trevisan]
* Profiler spuriously records GJS.boxed_instance and GJS.boxed_prototype
[#551, !879, Philip Chimento]
* installed-tests/js/meson: Add tests dependencies to dbus tests [!880, Marco
Trevisan]
* eslint: Make multi-line imports to always include a trailing comma [!881,
Marco Trevisan]
* Make console.error format GError correctly [#572, !883, Sriyansh Shivam]
* Gtk: Throw an error for an invalid Template string [!884, Andy Holmes]
* Gtk: Attempt to load Template from a string, if it appears valid [!885, Andy
Holmes]
* global: Really enable non-mutating Array methods [!887, Philip Chimento]
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 [#556, !855, !871, !874, Xi Ruoyao, Philip Chimento]
* Various maintenance [!856, Philip Chimento]
* arg: Preserve transfer when freeing out arrays [!857, Marco Trevisan]
* Some values leak fixes and cleanups [!860, Marco Trevisan]
* Does not parse hash tables in signals [#488, !861, Marco Trevisan]
* docs: fix minor URL mistakes and behavioural omissions [!865, Andy Holmes]
* gjs: Listen to GMemoryMonitor::low-memory-warning to trigger GC [!870, Marco
Trevisan]
* GSettings override in Gio.js may fail on construction [#418, !873, Onur
Şahin]
* Gio: Fix constructing Settings with a SettingsSchema object [!876, James
Westman, Philip Chimento]
Version 1.77.1
--------------
- Includes all fixes from 1.76.1 and 1.76.2.
- 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 [!763, Marco Trevisan]
* bug(build, tests): broken dependency cycle associated with the `have_gtk4`
variable [#532, !830, Dominik Opyd]
* Better handling of callbacks during GC [!832, Sebastian Keller]
* doc: Add Gio and GLib runAsync overrides [!833, Sonny Piers]
* installed-tests/meson: Add tests dependencies on gjs console and GjsPrivate
[!835, Marco Trevisan]
* gi/arg: Cleanup handling of C arrays and GValue arrays [!836, Marco
Trevisan]
* Various maintenance [!838, !848, Philip Chimento]
* doc: Fix http-client.js example [!840, Sonny Piers]
* use `meson setup` instead of ambiguous `meson` [!842, Angelo Verlain]
* docs: document `GObject.gtypeNameBasedOnJSPath` [!844, Andy Holmes]
* docs: fix formatting for `Signals.md` [!845, Andy Holmes]
* Provide API to get GTypes defined in a module [#536, !846, Philip Chimento]
* doc: Update inroduction [!847, Sonny Piers]
* gi/args.cpp: Fix build with Visual Studio [!854, Chun-wei Fan]
Version 1.76.2
--------------
- Various fixes ported from the development branch.
- Closed bugs and merge requests:
* GJS freezes, program stops responding, error states Gtk4 EventController
GestureClick returns incorrect state- Gdk.ModifierType on mouse button press
in X11 [#507, !829, !850, Sundeep Mediratta]
* Caller allocated boxed types or structs are not fully released [#543, !837,
!849, Marco Trevisan]
* Gjs console leaks invalid option errors [#544, !837, !849, Marco Trevisan]
Version 1.76.1
--------------
- Various fixes ported from the development branch.
- Closed bugs and merge requests:
* gnome-shell crashes on exit in js::gc::Cell::storeBuffer [#472, !834, Daniel
van Vugt]
* Memory leak with GError [#36, !837, Marco Trevisan]
* GVariant return values leaked [#499, !837, Marco Trevisan]
* GBytes's are leaked when passed as-is to a function [#539, !837, Marco
Trevisan]
* Transformed GValues are leaking temporary instances [#540, !837, Marco
Trevisan]
* GHash value infos are leaked [#541, !837, Marco Trevisan]
* "flat" arrays of GObject's are leaked [#542, !837, Marco Trevisan]
* gjs can't print null [#545, !841, Angelo Verlain]
Version 1.74.3
--------------
- Various fixes ported from the development branch.
- Closed bugs and merge requests:
* Possible errors in cairo enums [#516, !811, !852, Vítor Vasconcellos]
* cairo.SVGSurface need finish() and flush() to finalize painting [#515, !816,
!852, tuberry]
* Handle transfer-none string return value from vfunc implemented in JS [#519,
!821, !823, !852, Marco Trevisan, Daniel van Vugt]
* GJS freezes, program stops responding, error states Gtk4 EventController
GestureClick returns incorrect state- Gdk.ModifierType on mouse button press
in X11 [#507, !829, !852, Sundeep Mediratta]
* gnome-shell crashes on exit in js::gc::Cell::storeBuffer [#472, !834, !852,
Daniel van Vugt]
* Memory leak with GError [#36, !837, !852, Marco Trevisan]
* GVariant return values leaked [#499, !837, !852, Marco Trevisan]
* GBytes's are leaked when passed as-is to a function [#539, !837, !852, Marco
Trevisan]
* Transformed GValues are leaking temporary instances [#540, !837, !852, Marco
Trevisan]
* GHash value infos are leaked [#541, !837, !852, Marco Trevisan]
* "flat" arrays of GObject's are leaked [#542, !837, !852, Marco Trevisan]
* Gjs console leaks invalid option errors [#544, !837, !852, Marco Trevisan]
Version 1.72.4
--------------
- Various fixes ported from the development branch.
- Closed bugs and merge requests:
* log_set_writer_func is not safe to use [#481, !766, !851, Evan Welsh]
* Gnome-Shell 42 - crash after login (general protection fault) [#479, !740,
!851, Xi Ruoyao]
* Static methods on classes from GObject introspection are now present on JS
classes that inherit from those classes. [!851, Marco Trevisan]
* Enabling window-list extension causes gnome-shell to crash when running
"dconf update" as root [#510, !813, !851, Philip Chimento]
* Possible errors in cairo enums [#516, !811, !851, Vítor Vasconcellos]
* cairo.SVGSurface need finish() and flush() to finalize painting [#515, !816,
!851, tuberry]
* Handle transfer-none string return value from vfunc implemented in JS [#519,
!821, !823, !851, Marco Trevisan, Daniel van Vugt]
* GJS freezes, program stops responding, error states Gtk4 EventController
GestureClick returns incorrect state- Gdk.ModifierType on mouse button press
in X11 [#507, !829, !851, Sundeep Mediratta]
* gnome-shell crashes on exit in js::gc::Cell::storeBuffer [#472, !834, !851,
Daniel van Vugt]
* Memory leak with GError [#36, !837, !851, Marco Trevisan]
* GVariant return values leaked [#499, !837, !851, Marco Trevisan]
* GBytes's are leaked when passed as-is to a function [#539, !837, !851, Marco
Trevisan]
* Transformed GValues are leaking temporary instances [#540, !837, !851, Marco
Trevisan]
* GHash value infos are leaked [#541, !837, !851, Marco Trevisan]
* "flat" arrays of GObject's are leaked [#542, !837, !851, Marco Trevisan]
* Gjs console leaks invalid option errors [#544, !837, !851, Marco Trevisan]
Version 1.76.0
--------------
- No changes from release candidate 1.75.90.
Version 1.75.90
---------------
- Closed bugs and merge requests:
* NEWS: fix a typo causing codespell to fail [!824, Marco Trevisan]
* doc: Add more apps written in GJS [!822, Sonny Piers]
* Gio: Use proper default priority on async generators [!827, Marco Trevisan]
* gjs 1.75.2 GObjectValue build test failing on ARM [#529, !825, Marco
Trevisan]
* testGObjectValue: Enable creating object with a string property [!826, Marco
Trevisan]
* Handle transfer-none string return value from vfunc implemented in JS [#519,
823, Marco Trevisan, Daniel van Vugt]
* Various maintenance, performance improvements [!828, Philip Chimento]
Version 1.75.2
--------------
- There are new `Gio.Application.prototype.runAsync()` and
`GLib.MainLoop.prototype.runAsync()` methods which do the same thing as
`run()` but return a Promise which resolves when the main loop ends, instead
of blocking while the main loop runs. Use one of these methods (by awaiting
it) if you use async operations with Promises in your application. Previously,
it was easy to get into a state where Promises never resolved if you didn't
run the main loop inside a callback. [Evan Welsh]
- There are new `Gio.InputStream.prototype.createSyncIterator()` and
`Gio.InputStream.prototype.createAsyncIterator()` methods which allow easy
iteration of input streams in consecutive chunks of bytes, either with a
for-of loop or a for-await-of loop. [Sonny Piers]
- DBus proxy wrapper classes now have a static `newAsync()` method, which
returns a Promise that resolves to an instance of the proxy wrapper class on
which `initAsync()` has completed. [Marco Trevisan]
- DBus property getters can now return GLib.Variant instances directly, if they
have the correct type, instead of returning JS values and having them be
packed into GLib.Variants. [Andy Holmes]
- Dramatic performance improvements in the legacy `imports.signals` module,
which has also gained a `connectAfter()` method that works like the same-named
method in GObject signals. (However, the signals module remains legacy, and is
mostly there for historical reasons with GNOME Shell. Don't use it in new
code.) [Marco Trevisan]
- For years we have had a typo in `Cairo.LineCap.SQUARE`, incorrectly naming it
`SQUASH`. This is fixed and the typoed name is retained as an alias. [Vítor
Vasconcellos]
- Also in Cairo, the value of `Cairo.Format.RGB16_565` was wrong. This was fixed
with a breaking change, because anyone using it was probably already not
getting the results they expected. [Vítor Vasconcellos]
- Continuing the Cairo improvements, SVG surfaces have gained
`Cairo.SVGSurface.prototype.finish()` and `Cairo.SVGSurface.prototype.flush()`
because previously SVG surfaces were only written to disk when the SVGSurface
object was garbage collected, making it uncertain to rely on them. [tuberry]
- The debugger now handles Symbol values and Symbol property keys of objects.
Previously, these were not displayed correctly. [Philip Chimento]
- Various type-safety refactors [Marco Trevisan]
- Many bug fixes and performance improvements.
- Closed bugs and merge requests:
* Promises in application.run do not fulfill until loop exit [#468, !732, Evan
Welsh]
* console: Various cleanups to tracing functions and increase structured
logging metadata [!756, Marco Trevisan]
* Legacy signals code optimizations [!757, Marco Trevisan]
* meson: Depend on g-i 1.71 and enable newly supported tests [!761, Marco
Trevisan]
* Gio: Add support for initializing a DBus Proxy via a promise [#494, !794,
Marco Trevisan, Philip Chimento]
* Make GInputStream iterable and async iterable [!573, !797, Sonny Piers]
* Gio: allow D-Bus implementations to return pre-packed variants [!796, Andy
Holmes]
* Update ESLint tooling [!798, Sonny Piers]
* Various maintenance [!804, !814, !820, Philip Chimento]
* Add legacy signals connectAfter method [!805, Marco Trevisan]
* arg-cache: Add support passing caller-allocated C-arrays [!806, Marco
Trevisan]
* Crash when passing an introspected function as a callback argument [#518,
!809, Philip Chimento]
* CI: Upgrade CI images to F37 [!810, Philip Chimento]
* Possible errors in cairo enums [#516, !811, Vítor Vasconcellos]
* ci: Only run source check jobs if relevant files have been changed [!812,
Marco Trevisan]
* cairo.SVGSurface need finish() and flush() to finalize painting [#515, !816,
tuberry]
* signals: Fix bugs when multiple handlers are connected and disconnect is
called [!818, Evan Welsh]
* Handle Symbol values in pretty-printer and debugger [!819, Philip Chimento]
Version 1.74.2
--------------
- Various fixes ported from the development branch.
- Closed bugs and merge requests:
* build error with clang [#514, !807, Philip Chimento]
* can't compile current version with mozjs 102 [#503, !808, Philip Chimento]
* Enabling window-list extension causes gnome-shell to crash when running
"dconf update" as root [#510, !813, Philip Chimento]
* log: Fix an off-by-one buffer overflow [!817, Valentin David]
Version 1.75.1
--------------
- Static methods on classes from GObject introspection are now present on JS
classes that inherit from those classes. [Marco Trevisan]
Version 1.74.1
--------------
- Closed bugs and merge requests:
* Problem calling promisified D-Bus wrappers with callback [#494, !790, Marco
Trevisan]
* docs: Fix link in issue template [!799, Jan Tojnar]
* doc: Document Gio.FileEnumerator iteration [!800, Sonny Piers]
* doc: Fix Markdown formatting in README.MSVC.md [!803, Kisaragi Hiu]
Version 1.74.0
--------------
- Many improvements to the examples and documentation.
- Build fixes for Windows.
- Overrides to certain non-introspectable functions that will now gracefully
throw an exception instead of crashing.
- Closed bugs and merge requests:
* Various maintenance [!786, Philip Chimento]
* http example not reliable, relies on server provided content-length. [#498,
!787, Andy Holmes]
* Gio set_attribute SIGSEGV (Address boundary error) [#496, !788, Philip
Chimento]
* Fix Visual Studio builds after migration to SpiderMonkey 102.x [!789,
Chun-wei Fan]
* Update Visual Studio build instructions [!791, Chun-wei Fan]
* doc: reformat for better scraping with DevDocs [!792, Andy Holmes]
* doc: Update Home [!793, Sonny Piers]
* GLib: override GThread functions [!795, Andy Holmes]
Version 1.73.90
---------------
- Skipped.
Version 1.72.3
--------------
- Fix for crash after build against libffi 3.4.2 ported from the development
branch.
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 [#487, !765, !785, Evan Welsh, Philip Chimento]
* Object connections / signal emissions optimizations [#485, !758, Marco
Trevisan]
* tests/Gio: Cleanup Gio._promisify [!767, Marco Trevisan]
* Include JUnit reports in builds [!768, Marco Trevisan]
* Integrate pretty print to the debugger [!769, Nasah Kuma]
* doc: Edit GJS description [!771, Sonny Piers]
* doc: note the version `constructor()` became supported [!774, Andy Holmes]
* build: disable sysprof agent for subproject fallback [!775, Christian
Hergert]
* Update CI images [!776, !777, !778, Philip Chimento]
* GListModel.get_n_items returns garbage value [#493, !779, Florian Müllner]
* Add override for g_binding_group_bind_full() [!780, Florian Müllner]
* doc: Modernize examples [!781, Sonny Piers]
* doc: Document byteArray deprecation and migration [!782, Sonny Piers]
* doc: add simple Gtk.TickCallback example [!783, Andy Holmes]
* Make GFileEnumerator iterable and async iterable [!784, Sonny Piers]
Version 1.72.2
--------------
- Various fixes ported from the development branch.
- Closed bugs and merge requests:
* gi/arg-cache.cpp: Fix building on Visual Studio [!772, Chun-wei Fan]
* doc: Reflect support for constructor with GObject [!773, Sonny Piers]
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 [#107, !587, Nasah Kuma]
* Add support for JS async calls in DBusProxyWrapper [!731, Sergio Costas]
* Crash after build against libffi 3.4.2 [#428, !737, Evan Welsh]
* Handle reference cycles in new console pretty print function [#469, !739,
Nasah Kuma]
* Gnome-Shell 42 - crash after login (general protection fault) [#479, !740,
Xi Ruoyao]
* Various maintenance [!741, Philip Chimento]
* jsapi-util-strings: Ignore locale to compute the upper case of a char (i.e.
fix implicit properties on Turkish locale) [!742, Marco Trevisan]
* Dockerfile: Install Turkish locale in CI for UTF-8 locale too [!743, Marco
Trevisan]
* Improve pretty-print output for GObject-introspected objects [#476, !744,
Nasah Kuma]
* Expose pretty print function to tests [!745, Nasah Kuma]
* build: track changes to Sysprof meson options [!747, Christian Hergert]
* Make Gio.ActionMap.add_action_entries work [#407, !749, Sonny Piers]
* Make DBus session and system props non-enumerable [!750, Sonny Piers]
* gi/arg-inl: Mark the arg functions as constexpr [!752, Marco Trevisan]
* build: Do not use verbose GJS debug logging in tests by default [!753, Marco
Trevisan]
* minijasmine: Print test JS errors output if any [!754, Marco Trevisan]
* doc: document the existence of the console object in GJS [!759, Andy Holmes]
* arg-cache: Use a switch to select the not-introspectable error [!762, Marco
Trevisan]
* log_set_writer_func is not safe to use [#481, !766, Evan Welsh]
Version 1.72.1
--------------
- Various fixes ported from the development branch.
- Closed bugs and merge requests:
* Compilation error: call to deleted function 'js_value_to_c' [#473, !738,
Evan Miller]
* jsapi-util-strings: Ignore locale to compute the upper case of a char (i.e.
fix implicit properties on Turkish locale) [!742, Marco Trevisan]
* Fix memory leak when passing a "transfer none" GBytes parameter to a native
function [!746, msizanoen1]
* arg-cache: Do not leak an interface info structures on Callbacks [!751,
Marco Trevisan]
* test-ci: Ignore safe directory errors on CI [!755, Marco Trevisan]
Version 1.72.0
--------------
- No changes from release candidate 1.71.90.
Version 1.70.2
--------------
- Build and compatibility fixes backported from the development branch.
- Closed bugs and merge requests:
* package: Reverse order of running-from-source checks [!734, Philip Chimento]
- Fix build error on Darwin [Evan Miller]
Version 1.68.6
--------------
- Build and compatibility fixes backported from the development branch.
- Closed bugs and merge requests:
* package: Reverse order of running-from-source checks [!734, Philip Chimento]
- Fix build error on Darwin [Evan Miller]
Version 1.71.90
---------------
- Closed bugs and merge requests:
* Cairo test broken with commit ea52cf92 [#461, !724, Philip Chimento]
* native: Convert to singleton class [!725, Nasah Kuma]
* Checking `instanceof` for primitive types may lead to a crash or error
[#464, !726, Marco Trevisan]
* Change the GObject Introspection development branch [!727, Emmanuele Bassi]
* gi_marshalling_tests_long_in_max test fails on i686 [#462, !728, Philip
Chimento, Evan Welsh]
* GNOME Shell crashes at startup with the AppIndicator extension enabled
[#466, !729, Marco Trevisan]
* Instances of classes implementing interfaces can override functions for all
implementations of an interface [#467, !730, Evan Welsh]
* package: Reverse order of running-from-source checks [!734, Philip Chimento]
* Various maintenance [!735, Philip Chimento]
* Various maintenance [!736, Evan Welsh]
Version 1.71.1
--------------
- New JavaScript features! This version of GJS is based on SpiderMonkey 91, an
upgrade from the previous ESR (Extended Support Release) of SpiderMonkey 78.
Here are the highlights of the new JavaScript features.
For more information, look them up on MDN or devdocs.io.
* New syntax
+ Private class fields and methods are now supported. They start with `#`
and are not accessible outside the class in which they are defined.
+ The `??=` logical nullish assignment operator, which assigns the
right-hand side value to the left-hand side variable if the variable is
null or undefined.
+ The `&&=` logical-and assignment operator, which assigns the right-hand
side value to the left-hand side variable if the variable is truthy.
+ The `||=` logical-or assignment operator, which assigns the right-hand
side value to the left-hand side variable if the variable is falsey.
+ `export * as ... from ...` can be used to aggregate modules.
+ Regular expressions add the `d` flag, which if defined causes the
resulting match object to have an `indices` property giving the positions
in the string where capturing and named groups matched.
+ `static { ... }` blocks in classes allow initialization of classes at the
time of creation of the class.
* New APIs
+ Arrays, strings, and typed arrays have gained the `at()` method, which
does the same thing as indexing with square brackets but also allows
negative numbers, which count from the end, as in Python.
+ `Promise.any()`, which is similar to `Promise.race()` but resolves on the
first successful sub-promise, instead of the first to resolve.
+ `Error()` now takes an options object as its second parameter, which may
contain a `cause` property. This option is used to indicate when an error
is caused by another error, but the first error is caught during error
handling.
+ `WeakRef`, which allows you to hold a reference to an object while still
allowing it to be garbage collected.
+ `dateStyle`, `timeStyle`, `fractionalSecondDigits`, and `dayPeriod` are
now accepted as options in `Intl.DateTimeFormat()` and
`Date.prototype.toLocaleString()`.
+ `collation` is now accepted as an option in `Intl.Collator()`.
+ `Intl.DisplayNames` has been added, which allows you to get translations
of language, region, currency, and script names.
+ `Intl.DateTimeFormat` has gained the `formatRange()` and
`formatRangeToParts()` methods.
* New behaviour
+ More numbering systems are supported in `Intl.NumberFormat`.
+ Top-level await (https://v8.dev/features/top-level-await) allows you to
use `await` statements outside of an `async` function in an ES module.
+ There are a lot of minor behaviour changes as SpiderMonkey's JS
implementation conforms ever closer to existing ECMAScript standards and
adopts new ones. For complete information, read the Firefox developer
release notes:
https://developer.mozilla.org/en-US/Firefox/Releases/79#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/80#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/81#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/82#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/83#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/84#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/85#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/86#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/87#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/88#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/89#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/90#JavaScript
https://developer.mozilla.org/en-US/Firefox/Releases/91#JavaScript
- It's now possible to pass BigInt values to GObject-introspected functions with
64-bit parameters. This way, you can finally work with large numbers that
cannot be accurately stored as a JS Number value and pass them correctly into
C. For example, `GLib.Variant.new_int64(2n ** 62n)`.
- New API: GJS now has a standards-compliant `setTimeout()` and `setInterval()`.
These can now be used as in web browsers, while still integrating with GLib's
main loop.
- New API: `Cairo.Context.prototype.textExtents()` which makes the
`cairo_text_extents()` C function available to JavaScript.
- New overrides: `GLib.MAXINT64_BIGINT`, `GLib.MININT64_BIGINT`, and
`GLib.MAXUINT64_BIGINT` are BigInt-typed versions of `GLib.MAXINT64` etc.
- It's now possible to use a regular `constructor()` in GObject classes instead
of an `_init()` method.
- It's now possible to use class fields in GObject classes.
- `Gio._promisify()` now tries to guess the name of the finish function, if it
is omitted.
- It's now possible to monkeypatch methods on the prototype of a GObject
interface. The most common use case for this is probably promisifying methods
on `Gio.File`, so you can now do things like
`Gio._promisify(Gio.File.prototype, 'read_async')` without resorting to the
`Gio._LocalFilePrototype` workaround.
- GObject interfaces are now enumerable, so you can now do things like
`Object.keys(Gio.File.prototype)` and get a list of the methods, like you can
with other GObject types.
- Improvements to the performance of promises, making them more predictable
under higher load.
- Several performance and type-safety improvements.
- Closed bugs and merge requests:
* [Mainloop 1/3] Add custom GSource for promise queueing [#1, !557, Evan
Welsh, Marco Trevisan]
* Upgrade to SpiderMonkey 91 [#413, !632, !687, Evan Welsh, Philip Chimento,
Chun-wei Fan]
* Promise rejections from signal handlers are silent [#417, !632, Philip
Chimento]
* Add a binding for GObject.Object.new [#48, !664, Evan Welsh, Philip
Chimento]
* Object resolve should consider prototypes of GObject interfaces [#189, !665,
Evan Welsh, Philip Chimento]
* File corruption on file.replace_contents_async [#192, !665, Evan Welsh]
* Overriding inherited interface vfuncs clobbers base class implementation
[#89, !671, Evan Welsh]
* Errors in __init__.js are silenced [#343, !672, Evan Welsh]
* Allocate structs which contain pointers [!674, Evan Welsh]
* [Mainloop 3/3] WHATWG Timers [!677, Evan Welsh]
* [Mainloop 2/3] Implement "implicit" mainloop which only blocks on unresolved
imports [!678, Evan Welsh]
* Correctly chain constructor prototypes to enable static inheritance [!679,