@girs/meta-13 13.0.0-4.0.0-beta.2 → 13.0.0-4.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -19
  2. package/meta-13.d.ts +12 -13
  3. package/package.json +21 -22
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/meta-13)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Meta-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.2.
8
+ GJS TypeScript type definitions for Meta-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.3.
9
9
 
10
10
 
11
11
  ## Install
@@ -22,11 +22,6 @@ You can import this package into your project like this:
22
22
  import Meta from '@girs/meta-13';
23
23
  ```
24
24
 
25
- Or if you prefer CommonJS, you can also use this:
26
- ```ts
27
- const Meta = require('@girs/meta-13');
28
- ```
29
-
30
25
  ### Ambient Modules
31
26
 
32
27
  You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
@@ -81,19 +76,6 @@ Now you have also type support for this, too:
81
76
  const Meta = imports.gi.Meta;
82
77
  ```
83
78
 
84
-
85
- ### ESM vs. CommonJS
86
-
87
- GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
88
-
89
- In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
90
-
91
- On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
92
-
93
- This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
94
-
95
- Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
96
-
97
79
  ### Bundle
98
80
 
99
81
  Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
package/meta-13.d.ts CHANGED
@@ -27,7 +27,6 @@ import type Pango from '@girs/pango-1.0';
27
27
  import type HarfBuzz from '@girs/harfbuzz-0.0';
28
28
  import type freetype2 from '@girs/freetype2-2.0';
29
29
  import type Gio from '@girs/gio-2.0';
30
- import type GModule from '@girs/gmodule-2.0';
31
30
  import type Cogl from '@girs/cogl-13';
32
31
  import type GL from '@girs/gl-1.0';
33
32
  import type Clutter from '@girs/clutter-13';
@@ -2036,7 +2035,7 @@ export namespace Meta {
2036
2035
  * static void
2037
2036
  * my_object_class_init (MyObjectClass *klass)
2038
2037
  * {
2039
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
2038
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
2040
2039
  * 0, 100,
2041
2040
  * 50,
2042
2041
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -2809,7 +2808,7 @@ export namespace Meta {
2809
2808
  * static void
2810
2809
  * my_object_class_init (MyObjectClass *klass)
2811
2810
  * {
2812
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
2811
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
2813
2812
  * 0, 100,
2814
2813
  * 50,
2815
2814
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -3354,7 +3353,7 @@ export namespace Meta {
3354
3353
  * static void
3355
3354
  * my_object_class_init (MyObjectClass *klass)
3356
3355
  * {
3357
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
3356
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
3358
3357
  * 0, 100,
3359
3358
  * 50,
3360
3359
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -4052,7 +4051,7 @@ export namespace Meta {
4052
4051
  * static void
4053
4052
  * my_object_class_init (MyObjectClass *klass)
4054
4053
  * {
4055
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
4054
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
4056
4055
  * 0, 100,
4057
4056
  * 50,
4058
4057
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -4672,7 +4671,7 @@ export namespace Meta {
4672
4671
  * static void
4673
4672
  * my_object_class_init (MyObjectClass *klass)
4674
4673
  * {
4675
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
4674
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
4676
4675
  * 0, 100,
4677
4676
  * 50,
4678
4677
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -6724,7 +6723,7 @@ export namespace Meta {
6724
6723
  * static void
6725
6724
  * my_object_class_init (MyObjectClass *klass)
6726
6725
  * {
6727
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
6726
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
6728
6727
  * 0, 100,
6729
6728
  * 50,
6730
6729
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -6941,7 +6940,7 @@ export namespace Meta {
6941
6940
  // Constructor properties interface
6942
6941
 
6943
6942
  interface ConstructorProps<A extends Clutter.Actor = Clutter.Actor>
6944
- extends Clutter.Stage.ConstructorProps<A>,
6943
+ extends Clutter.Stage.ConstructorProps,
6945
6944
  Atk.ImplementorIface.ConstructorProps,
6946
6945
  Clutter.Animatable.ConstructorProps,
6947
6946
  Clutter.Container.ConstructorProps,
@@ -6949,7 +6948,7 @@ export namespace Meta {
6949
6948
  }
6950
6949
 
6951
6950
  class Stage<A extends Clutter.Actor = Clutter.Actor>
6952
- extends Clutter.Stage<A>
6951
+ extends Clutter.Stage
6953
6952
  implements Atk.ImplementorIface, Clutter.Animatable, Clutter.Container<A>, Clutter.Scriptable
6954
6953
  {
6955
6954
  static $gtype: GObject.GType<Stage>;
@@ -7298,7 +7297,7 @@ export namespace Meta {
7298
7297
  * static void
7299
7298
  * my_object_class_init (MyObjectClass *klass)
7300
7299
  * {
7301
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
7300
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
7302
7301
  * 0, 100,
7303
7302
  * 50,
7304
7303
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -8539,7 +8538,7 @@ export namespace Meta {
8539
8538
  * static void
8540
8539
  * my_object_class_init (MyObjectClass *klass)
8541
8540
  * {
8542
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
8541
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
8543
8542
  * 0, 100,
8544
8543
  * 50,
8545
8544
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -9323,7 +9322,7 @@ export namespace Meta {
9323
9322
  * static void
9324
9323
  * my_object_class_init (MyObjectClass *klass)
9325
9324
  * {
9326
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
9325
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
9327
9326
  * 0, 100,
9328
9327
  * 50,
9329
9328
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -10008,7 +10007,7 @@ export namespace Meta {
10008
10007
  * static void
10009
10008
  * my_object_class_init (MyObjectClass *klass)
10010
10009
  * {
10011
- * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
10010
+ * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
10012
10011
  * 0, 100,
10013
10012
  * 50,
10014
10013
  * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/meta-13",
3
- "version": "13.0.0-4.0.0-beta.2",
3
+ "version": "13.0.0-4.0.0-beta.3",
4
4
  "description": "GJS TypeScript type definitions for Meta-13, generated from library version 13.0.0",
5
5
  "type": "module",
6
6
  "module": "meta-13.js",
@@ -26,27 +26,26 @@
26
26
  "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit meta-13.d.ts"
27
27
  },
28
28
  "dependencies": {
29
- "@girs/atk-1.0": "^2.52.0-4.0.0-beta.2",
30
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.2",
31
- "@girs/clutter-13": "^13.0.0-4.0.0-beta.2",
32
- "@girs/cogl-13": "^13.0.0-4.0.0-beta.2",
33
- "@girs/coglpango-13": "^13.0.0-4.0.0-beta.2",
34
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.2",
35
- "@girs/gdesktopenums-3.0": "^3.0.0-4.0.0-beta.2",
36
- "@girs/gio-2.0": "^2.80.0-4.0.0-beta.2",
37
- "@girs/gjs": "^4.0.0-beta.2",
38
- "@girs/gl-1.0": "^1.0.0-4.0.0-beta.2",
39
- "@girs/glib-2.0": "^2.80.0-4.0.0-beta.2",
40
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.2",
41
- "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.2",
42
- "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.2",
43
- "@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.2",
44
- "@girs/json-1.0": "^1.7.1-4.0.0-beta.2",
45
- "@girs/mtk-13": "^13.0.0-4.0.0-beta.2",
46
- "@girs/pango-1.0": "^1.51.2-4.0.0-beta.2",
47
- "@girs/pangocairo-1.0": "^1.0.0-4.0.0-beta.2",
48
- "@girs/xfixes-4.0": "^4.0.0-4.0.0-beta.2",
49
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.2"
29
+ "@girs/atk-1.0": "^2.52.0-4.0.0-beta.3",
30
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.3",
31
+ "@girs/clutter-13": "^13.0.0-4.0.0-beta.3",
32
+ "@girs/cogl-13": "^13.0.0-4.0.0-beta.3",
33
+ "@girs/coglpango-13": "^13.0.0-4.0.0-beta.3",
34
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.3",
35
+ "@girs/gdesktopenums-3.0": "^3.0.0-4.0.0-beta.3",
36
+ "@girs/gio-2.0": "^2.80.0-4.0.0-beta.3",
37
+ "@girs/gjs": "^4.0.0-beta.3",
38
+ "@girs/gl-1.0": "^1.0.0-4.0.0-beta.3",
39
+ "@girs/glib-2.0": "^2.80.0-4.0.0-beta.3",
40
+ "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.3",
41
+ "@girs/graphene-1.0": "^1.0.0-4.0.0-beta.3",
42
+ "@girs/harfbuzz-0.0": "^8.3.1-4.0.0-beta.3",
43
+ "@girs/json-1.0": "^1.8.0-4.0.0-beta.3",
44
+ "@girs/mtk-13": "^13.0.0-4.0.0-beta.3",
45
+ "@girs/pango-1.0": "^1.51.0-4.0.0-beta.3",
46
+ "@girs/pangocairo-1.0": "^1.0.0-4.0.0-beta.3",
47
+ "@girs/xfixes-4.0": "^4.0.0-4.0.0-beta.3",
48
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.3"
50
49
  },
51
50
  "devDependencies": {
52
51
  "typescript": "*"