@girs/telepathyfarstream-0.6 0.6.0-3.2.4 → 0.6.0-3.2.6

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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/telepathyfarstream-0.6)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for TelepathyFarstream-0.6, generated from library version 0.6.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for TelepathyFarstream-0.6, generated from library version 0.6.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
9
9
 
10
10
 
11
11
  ## Install
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
81
81
  const TelepathyFarstream = imports.gi.TelepathyFarstream;
82
82
  ```
83
83
 
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
+
84
97
  ### Bundle
85
98
 
86
99
  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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/telepathyfarstream-0.6",
3
- "version": "0.6.0-3.2.4",
3
+ "version": "0.6.0-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for TelepathyFarstream-0.6, generated from library version 0.6.0",
5
5
  "type": "module",
6
6
  "module": "telepathyfarstream-0.6.js",
@@ -25,14 +25,14 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit telepathyfarstream-0.6.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/farstream-0.2": "^0.2.0-3.2.4",
29
- "@girs/gio-2.0": "^2.78.0-3.2.4",
30
- "@girs/gjs": "^3.2.4",
31
- "@girs/glib-2.0": "^2.78.0-3.2.4",
32
- "@girs/gmodule-2.0": "^2.0.0-3.2.4",
33
- "@girs/gobject-2.0": "^2.78.0-3.2.4",
34
- "@girs/gst-1.0": "^1.23.0-3.2.4",
35
- "@girs/telepathyglib-0.12": "^0.12.0-3.2.4"
28
+ "@girs/farstream-0.2": "^0.2.0-3.2.6",
29
+ "@girs/gio-2.0": "^2.78.0-3.2.6",
30
+ "@girs/gjs": "^3.2.6",
31
+ "@girs/glib-2.0": "^2.78.0-3.2.6",
32
+ "@girs/gmodule-2.0": "^2.0.0-3.2.6",
33
+ "@girs/gobject-2.0": "^2.78.0-3.2.6",
34
+ "@girs/gst-1.0": "^1.23.0-3.2.6",
35
+ "@girs/telepathyglib-0.12": "^0.12.0-3.2.6"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "*"
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  declare module 'gi://TelepathyFarstream?version=0.6' {
4
3
  import TelepathyFarstream06 from '@girs/telepathyfarstream-0.6';
5
4
  export default TelepathyFarstream06;
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import TelepathyFarstream06 from '@girs/telepathyfarstream-0.6';
4
3
 
5
4
  declare global {
@@ -77,7 +77,9 @@ export interface Channel extends Gio.AsyncInitable {
77
77
 
78
78
  readonly channel: TelepathyGLib.Channel
79
79
  readonly fs_conferences: any[]
80
+ readonly fsConferences: any[]
80
81
  readonly object_path: string | null
82
+ readonly objectPath: string | null
81
83
 
82
84
  // Owm methods of TelepathyFarstream-0.6.TelepathyFarstream.Channel
83
85
 
@@ -218,11 +220,17 @@ export interface Content {
218
220
  // Own properties of TelepathyFarstream-0.6.TelepathyFarstream.Content
219
221
 
220
222
  readonly fs_conference: Farstream.Conference
223
+ readonly fsConference: Farstream.Conference
221
224
  readonly fs_session: Farstream.Session
225
+ readonly fsSession: Farstream.Session
222
226
  readonly media_type: Farstream.MediaType
227
+ readonly mediaType: Farstream.MediaType
223
228
  readonly object_path: string | null
229
+ readonly objectPath: string | null
224
230
  readonly sink_pad: Gst.Pad
231
+ readonly sinkPad: Gst.Pad
225
232
  readonly tf_channel: Channel
233
+ readonly tfChannel: Channel
226
234
 
227
235
  // Owm methods of TelepathyFarstream-0.6.TelepathyFarstream.Content
228
236
 
@@ -79,7 +79,9 @@ interface Channel extends Gio.AsyncInitable {
79
79
 
80
80
  readonly channel: TelepathyGLib.Channel
81
81
  readonly fs_conferences: any[]
82
+ readonly fsConferences: any[]
82
83
  readonly object_path: string | null
84
+ readonly objectPath: string | null
83
85
 
84
86
  // Owm methods of TelepathyFarstream-0.6.TelepathyFarstream.Channel
85
87
 
@@ -220,11 +222,17 @@ interface Content {
220
222
  // Own properties of TelepathyFarstream-0.6.TelepathyFarstream.Content
221
223
 
222
224
  readonly fs_conference: Farstream.Conference
225
+ readonly fsConference: Farstream.Conference
223
226
  readonly fs_session: Farstream.Session
227
+ readonly fsSession: Farstream.Session
224
228
  readonly media_type: Farstream.MediaType
229
+ readonly mediaType: Farstream.MediaType
225
230
  readonly object_path: string | null
231
+ readonly objectPath: string | null
226
232
  readonly sink_pad: Gst.Pad
233
+ readonly sinkPad: Gst.Pad
227
234
  readonly tf_channel: Channel
235
+ readonly tfChannel: Channel
228
236
 
229
237
  // Owm methods of TelepathyFarstream-0.6.TelepathyFarstream.Content
230
238