-
Notifications
You must be signed in to change notification settings - Fork 30
/
NEWS
3576 lines (2920 loc) · 153 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.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 CjsPrivate
[!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,
Evan Welsh]
* Upgrade CI to Fedora 34 [!683, !684, Philip Chimento]
* Various maintenance [!685, !691, !709, !719, Philip Chimento]
* doc: Add Junction to applications written in GJS [!688, Sonny Piers]
* C++ argument cache [!689, Marco Trevisan, Philip Chimento]
* Gio: Make _promisify to guess the finish function by default [!692, Marco
Trevisan]
* Fails to build with Meson 0.60.2 [#446, !694, !705, Jan Beich, Eli Schwartz]
* doc: Add Oh My SVG to standalone applications [!695, Sonny Piers]
* ci: Ensure forever callbacks do not leak [!698, Evan Welsh]
* gi: Refactor resolving prototypes in GIWrapperInstance constructors [!699,
Evan Welsh]
* Class fields don't work with GObject classes [#331, !700, Evan Welsh]
* gi: Add enumeration hook for Interface prototypes [!701, Evan Welsh]
* Fix Visual Studio builds [!706, Chun-wei Fan]
* tools: Add iwyu-tool as a binary name for iwyu [!707, Evan Welsh]
* gi: Allow GObject.Value boxed type in nested contexts [!708, Evan Welsh,
Philip Chimento]
* Implemented check for null out-params in some functions in context.cpp
[!710, Nasah Kuma]
* Broken links on the doc/Home.md file [#458, !711, Andy Holmes]
* Accept BigInt values as input for 64-bit parameters to introspected
functions [!712, Marco Trevisan, Philip Chimento]
* Enable top-level await [!713, Evan Welsh]
* modules: Remove double '//' from internal module URIs [!714, Evan Welsh]
* modules: Ensure ImportError is an instance of globalThis.Error [!715, Evan
Welsh]
* global: Enable WeakRefs [!716, Evan Welsh]
* global: Enable static class blocks [!717, Evan Welsh]
* overrides: Allow users to implement construct-only props with getters [!718,
Evan Welsh]
* cairo: Add binding for cairo_text_extents() [!720, Philip Chimento]
* Non-integer numbers can not be converted to (u)int64 [#459, !721, Philip
Chimento]
* Print error cause when logging an error [#454, !722, Philip Chimento]
* GtkCustomSorter callbacks receives undefined params [#460, !723, Philip
Chimento]
Version 1.70.1
--------------
- Build and crash fixes backported from the development branch.
- Closed bugs and merge requests:
* Fix size_t/gsize conversion errors on 32-bit systems [!680, Evan Miller]
* Handle optional out parameters in callbacks [#439, !681, Evan Welsh]
* installed-tests: Install matchers.js [!682, Simon McVittie]
* Link fails on Debian armel|mipsel|powerpc: needs more -latomic [#442, !686,
Simon McVittie]
* gjs/jsapi-util.cpp: fix build on gcc-12 [!697, Sergei Trofimovich]
Version 1.68.5
--------------
- Crash fix backported from the development branch. [#439, !681, Evan Welsh]
Version 1.70.0
--------------
- No changes from release candidate 1.69.90.
Version 1.68.4
--------------
- Build fix backported from the development branch. [#436, !667, Evan Welsh]
Version 1.69.90
---------------
- Closed bugs and merge requests:
* Update ESLint to v8 [!657, Evan Welsh]
* gi: Enable pending tests which are now correctly handled [!658, Evan Welsh]
* gi: Return null if return argument is a pointer type [!659, Evan Welsh]
* gi: Assume native enums are signed, avoid asserting. [!660, Evan Welsh]
* Fix cppcheck failure [!661, Philip Chimento]
* Strange behavior for strings with NUL character [#285, !662, Evan Welsh]
* 64-bit int GObject properties have some problems with values > G_MAXINT32
[#92, !663, Evan Welsh]
* Crash on dynamic import in interactive interpreter [#429, !666, Evan Welsh]
* 1.69.1: gjs test suite is failing when gjs is build with -DG_DISABLE_ASSERT
[#436, !667, Evan Welsh]
* function: Warn about unhandled promise rejections in System.exit() [!669,
Philip Chimento]
* attempting to wrap a new GObject mid-construction blows up [#50, !675, Evan
Welsh]
* Fix IWYU CI job [!676, Evan Welsh]
- Build fixes [Evan Welsh, Philip Chimento]
Version 1.69.2
--------------
- The TextEncoder and TextDecoder global objects are now available. In most
cases, these will be able to replace usage of the imports.byteArray module. We
recommend that new code use TextEncoder and TextDecoder to convert strings to
UTF-8 encoded Uint8Arrays and vice versa.
MDN is a good source of information on how to use these APIs:
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder
https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder
- The 'console' global object is now available. This is for compatibility with
Node.js and browser environments, and for familiarity for developers
accustomed to them. The previously existing print(), printerr(), log(),
logError() functions continue to exist, and are not deprecated. The console
methods use GLib structured logging as their backend.
- Cairo.Surface has gained getDeviceScale(), setDeviceScale(),
getDeviceOffset(), and setDeviceOffset() methods. These wrap the corresponding
C functions.
- GLib.log_set_writer_func() and GObject.Object.bind_property_full() now work.
Previously, they had introspection problems.
- There is also a 'console' built-in module which exports functions
setConsoleLogDomain() and getConsoleLogDomain(), for controlling the GLib
log domain that the console methods use.
- The debugger has gained a 'set ignoreCaughtExceptions (true/false)' option.
Previously, when an exception was thrown, the debugger would stop, even if the
exception was thrown intentionally in order to be caught. With this option,
which is now the default, the debugger will keep going on exceptions that are
thrown while inside the scope of a try-catch block.
- Closed bugs and merge requests:
* Implement WHATWG Encoding specification. [!534, Evan Welsh]
* cairo-surface: Add setDevice{Offset,Scale} functions [!605, Daniel van Vugt,
Philip Chimento]
* WHATWG Console Implementation [!634, Evan Welsh]
* Add support for GLib.log_set_writer_func [!637, Evan Welsh]
* Various maintenance [!649, Philip Chimento]
* examples: improve the gettext example [!651, Sonny Piers]
* Unable to use bind_property_full [#241, !653, Florian Müllner]
* Allow continuing for handled exceptions [#431, !655, Florian Müllner]
* text-encoding.cpp: Fix builds on 64-bit Windows [!656, Chun-wei Fan]
Version 1.68.3
--------------
- Crash and bug fixes backported from the development branch.
- Build fixes [Philip Chimento]
- Closed bugs and merge requests:
* win32: Fix resource-based imports [!652, Evan Welsh]
* overrides/GLib: Guard Error.new_literal against invalid domains [!654,
Florian Müllner]
Version 1.69.1
--------------
- Memory usage improvements and bug fixes.
- Progress on TextEncoder/TextDecoder.
- Closed bugs and merge requests:
* Cleanup gjs_closure_invoke [#382, !592, Philip Chimento]
* Various maintenance [!600, !616, !624, !630, Philip Chimento, Marco
Trevisan, Evan Welsh]
* doc: Add simple sysprof example [!606, Andy Holmes]
* examples: add examples of GtkBuilder templates [!607, Andy Holmes]
* doc: document shebang for ESModules [!608, Sonny Piers]
* Gio.ListStore.insert_sorted's compare_func isn't handled correctly [#326,
!610, Veena Nagar]
* object: Block access to object only if it is finalized [!611, Marco
Trevisan]
* tests: Add unit tests for ToggleQueue and ObjectInstance usage of it [!615,
Marco Trevisan]
* gjs-test-tools: Throw error if we can't create threads [!618, Marco
Trevisan]
* build: Support meson unity builds [!619, Marco Trevisan]
* build: Support building with precompiled headers [!620, Marco Trevisan]
* Support GObject properties with GByteArray type [#276, !621, Veena Nagar]
* Regression in running tests with log output redirected to file [#410, !622,
Philip Chimento]
* doc: add Commit and Almond to applications [!623, Sonny Piers]
* closure (and trampoline): Reimplement to be a C++ class with custom heap
allocator [!625, Marco Trevisan]
* gjs-test-utils: Be more liberal in comparing values of different types
[!626, Marco Trevisan]
* [regression] gjs main can't build today [#414, !627, Daniel van Vugt]
* Add memory counter profiling [#292, !629, Philip Chimento]
* Promisify should complain if the async or finish function doesn't exist
[#200, !631, Veena Nagar]
* Add 'S' conversion specifier to gjs_parse_call_args [!638, Philip Chimento]
* Fix builds on Windows/Visual Studio with the latest GIT main [!639,
Chun-wei Fan]
* meson: fix version check for precompiled headers [!640, Jordan Petridis]
* GjsDBusImplementation.emit_property_changed(..., null): assertion failed
[#427, !642, Andy Holmes]
* gi: Only enumerate properties which GJS defines [!643, Evan Welsh]
* Add Internship Getting Started documentation [!645, Philip Chimento]
* arg-cache: Handle notified callbacks without destroy [!647, Florian Müllner]
* esm/gi: Improve check for version conflicts [!650, Florian Müllner]
Version 1.68.2
--------------
- Crash and regression fixes backported from the development branch.
- Build fix to adjust to GLib renaming its main branch.
- Closed bugs and merge requests:
* Fix crash in ByteArray.fromGBytes / ByteArray.fromString with 0-length input
[!628, Philip Chimento]
* subprojects: Use GLib main branch [!633, Philip Withnall]
* Construct-only properties and GTK Builder. [#422, !635, Carlos Garnacho]
* Data corruption when passing a 0-terminated array of GVariant [#269, !636,
Evan Welsh]
* Fix race condition in dynamic module resolution. [!641, Evan Welsh]
* Ensure the correct realm is entered in the async executor [!644, Evan Welsh]
* Assertion failure in toggle refs with debug mozjs [#416, !646, Evan Welsh]
Version 1.68.1
--------------
- Many stability fixes due to refactoring how disposed GObjects are handled.
Special thanks to Marco Trevisan for the substantial effort.
- Closed bugs and merge requests:
* Accessing GLib.ByteArray throws [#386, !590, Philip Chimento]
* Missing hyphen and camelCase getters for CONSTRUCT_ONLY GObject properties
defined in JavaScript [#391, !591, Philip Chimento]
* gnome-shell crashes on dereferencing a destroyed wrapper object [#395, !593,
!617, Marco Trevisan]
* GNOME crash "JS object wrapper for GObject 0x563bf88f5f50 (GSettings) is
being released..." [#294, !593, !617, Marco Trevisan]
* Finalizing wrapper for an already freed object [#399, !593, !617, Marco
Trevisan]
* Calling implemented methods or getters on disposed objects returns function
pointers [#396, !594, Marco Trevisan]
* overrides/Gio: Fix _LocalFilePrototype [!595, Florian Müllner]
* doc: Fix documentation for dynamic imports [!596, Sonny Piers]
* Added the meson installation command in dependencies [!597, Veena Nagar]
* Upgrade codespell to 2.0.0 in CI [#367, !598, Kajal Sah]
* cairo: Add missing semi-colons from dummy class declarations [!599, Matt
Turner]
* Fixed System.addressOfGObject and System.dumpHeap missing from System ES
module [!600, Philip Chimento]
* `Error: Failed to convert GValue to a fundamental instance` in
Gtk.EventControllerLegacy [#398, !601, Marco Trevisan]
* doc: add an example to get relative filename and dirname with
import.meta.url [!603, Sonny Piers]
* wrapperutils: Use native ostringstream pointer to string conversion [!604,
Marco Trevisan]
* testFundamental: Add more tests ensuring we properly handle subtypes [!602,
Marco Trevisan]
* Some simple Visual Studio fixes for main [!612, Chun-wei Fan]
* Using GFileMonitor crashes GNOME Shell with toggling down object error
[#297, !613, !617, Marco Trevisan]
* Deadlock on toggle queue due to GWeakRef [#404, !613, !617, Marco Trevisan]
* Using g_thread_join from JS is crashing [#406, !613, !617, Marco Trevisan]
* GObject: Ensure to call setter methods for construct-only properties [!614,
Carlos Garnacho]
Version 1.68.0
--------------
- Closed bugs and merge requests:
* 40.rc session crashes in gjs on unlocking (sometimes) [#387, !588, Marco
Trevisan]
* 40.rc: installed-tests installed despite explicitly disabled [#388, !589,
Philip Chimento]
Version 1.67.3
--------------
- Closed bugs and merge requests:
* System.exit() doesn't work inside signal handler [#19, !565, Evan Welsh]
* GdkEvent subtypes trigger assert in Gtk4 [#365, !566, Evan Welsh]
* Replace g_memdup [#375, !567, Philip Chimento]
* 1.67.2: build fails with gcc 11 [#376, !568, Philip Chimento]
* Warnings introspecting array of boxed type as signal argument. [#377, !569,
Carlos Garnacho]
* Add list command to debugger [!571, Nasah Kuma]
* Assertion failure in enqueuePromiseJob [#349, !572, Philip Chimento]
* in interpreter Ctrl-c should exit inner shell if stuck [#98, !574, Philip
Chimento]
* Compiler ambiguity in enum-utils.h on operator overloading [#368, !576,
Chun-wei Fan]
* Fix GJS_DISABLE_JIT not fully disabling JIT [!575, Ivan Molodetskikh]
* Error running gjs built with prefix: g_object_new_is_valid_property: object
class 'GjsContext' has no property named 'program-path' [#381, !577, Sonny
Piers]
* Various maintenance [!578, !586, Philip Chimento]
* Add some profiling labels [!579, Ivan Molodetskikh]
* Some installed tests (introspection) segfault when GTK isn't available
[#383, !580, Olivier Tilloy]
* Installed tests do not install the js/modules subdir [#384, !581, Olivier
Tilloy]
* Installed tests fail because expected path doesn't include project name
[#385, !582, Olivier Tilloy]
* 1.67.2: Regress test hangs / timeouts on i686 [#379, !583, Marco Trevisan]
* object: Do not call any function on disposed GObject pointers [!585, Marco
Trevisan]
Version 1.67.2
--------------
- New language features: Importing ES modules is now supported, both statically
with import statements and dynamically with the import() function. For more
information on how to use modules, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
Four built-in modules exist: cairo, gettext, gi, and system. Except for gi,
they work similarly to the old-style modules imports.cairo, imports.gettext,
and imports.system. Consult the documentation in doc/Modules.md on how to use
them.
- The debugger now has a "list" command which works very similarly to its GDB
equivalent.
- New API: GObject.ParamSpec.jsobject() works like the other GObject.ParamSpec
types, and allows you to have a GObject property whose value is a JavaScript
object (plain object, Date, Array, etc.)
- New API: System.programPath is the name of the JS program that GJS is running,
or null if there isn't one (for example, in the interactive interpreter.)
- New API: System.programArgs is an array of arguments given to the JS program.
It is the same as ARGV but is consistently always present. (ARGV was not
defined in the interactive interpreter or when embedding GJS in a C program.)
- Closed bugs and merge requests:
* Support Native JSObject GType for Signals and Properties [!305, Marco
Trevisan, Philip Chimento]
* Add 'system.programPath' API. [!443, Evan Welsh]
* ESM: Enable static imports. (Part 3) [!450, Evan Welsh, Philip Chimento]
* Refactor ARGV handling and add `system.programArgs` [!455, Evan Welsh,
Philip Chimento]
* Function make the object more C++ friendly [!514, Marco Trevisan]
* ESM: Enable dynamic imports. [!525, Evan Welsh, Philip Chimento]
* Remove JSClass macros from Ns, GType, and Cairo types [!549, Philip
Chimento]
* various documentation improvements [!551, Sonny Piers]
* Replace remaining mentions of window with globalThis [!552, Sonny Piers]
* add .editorconfig file [!553, Sonny Piers]
* Display current line of source code when displaying current frame in
debugger [!554, Nasah Kuma]
* doc: add Clapper and Flatseal to thirty party applications written in GJS
[!555, Sonny Piers]
* Multiline template literals are missing newlines when entered at interactive
prompt [#371, !556, Ales Huzik]
* function: Remove JSClass macros [!558, Philip Chimento, Marco Trevisan]
* Missing classes on global. [#372, !559, Philip Chimento]
* arg: fix build failure with glib main branch [!560, Michael Catanzaro]
* Update to Jasmine 2.9.1 [!561, Evan Welsh]
* Various maintenance [!562, Philip Chimento]
* Add list command to debugger [!563, Nasah Kuma]
* Upgrade to Jasmine 3.6.0 [!564, Evan Welsh]
- Various refactors in preparation for BigInt support in gobject-introspection
[Marco Trevisan]
Version 1.67.1
--------------
- The debugger now has a "backtrace full" command which works very similarly to
its GDB equivalent.
- The GObject.ParamFlags.CONSTRUCT_ONLY flag is now correctly enforced, when
using it on GObject classes defined in JavaScript. This might break code that
was incorrectly trying to set a property that it had previously defined as
construct-only. The workaround is to remove the CONSTRUCT_ONLY flag.
- Fixed exception when calling GObject.Type().
- Several performance improvements.
- Progress on ES Modules.
- Closed bugs and merge requests:
* gobject: Handle CONSTRUCT_ONLY flag [!377, Florian Müllner]
* Add native module registry to global (Part 2) [!456, Evan Welsh]
* testGIMarshalling: Expand test coverage for flags [!479, Simon McVittie]
* Private Objects: Use native allocators and structs [!494, Marco Trevisan]
* Pass-by-reference GValue arguments do not work right [#74, !496, !507, Marco
Trevisan]