@girs/tracker-3.0 3.6.0-3.2.4 → 3.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/tracker-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Tracker-3.0, generated from library version 3.6.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for Tracker-3.0, generated from library version 3.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 Tracker = imports.gi.Tracker;
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/tracker-3.0",
3
- "version": "3.6.0-3.2.4",
3
+ "version": "3.6.0-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for Tracker-3.0, generated from library version 3.6.0",
5
5
  "type": "module",
6
6
  "module": "tracker-3.0.js",
@@ -25,10 +25,10 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit tracker-3.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.4",
29
- "@girs/gjs": "^3.2.4",
30
- "@girs/glib-2.0": "^2.78.0-3.2.4",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.4"
28
+ "@girs/gio-2.0": "^2.78.0-3.2.6",
29
+ "@girs/gjs": "^3.2.6",
30
+ "@girs/glib-2.0": "^2.78.0-3.2.6",
31
+ "@girs/gobject-2.0": "^2.78.0-3.2.6"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "*"
@@ -1,9 +1,12 @@
1
1
 
2
-
3
2
  declare module 'gi://Tracker?version=3.0' {
4
3
  import Tracker30 from '@girs/tracker-3.0';
5
4
  export default Tracker30;
6
5
  }
7
6
 
7
+ declare module 'gi://Tracker' {
8
+ import Tracker30 from '@girs/tracker-3.0';
9
+ export default Tracker30;
10
+ }
8
11
 
9
12
 
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import Tracker30 from '@girs/tracker-3.0';
4
3
 
5
4
  declare global {
package/tracker-3.0.d.cts CHANGED
@@ -534,6 +534,10 @@ export module Endpoint {
534
534
  * The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
535
535
  */
536
536
  sparql_connection?: SparqlConnection | null
537
+ /**
538
+ * The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
539
+ */
540
+ sparqlConnection?: SparqlConnection | null
537
541
  }
538
542
 
539
543
  }
@@ -546,6 +550,10 @@ export interface Endpoint {
546
550
  * The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
547
551
  */
548
552
  readonly sparql_connection: SparqlConnection
553
+ /**
554
+ * The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
555
+ */
556
+ readonly sparqlConnection: SparqlConnection
549
557
 
550
558
  // Own fields of Tracker-3.0.Tracker.Endpoint
551
559
 
@@ -616,6 +624,14 @@ export module EndpointDBus {
616
624
  * The DBus object path that this endpoint manages.
617
625
  */
618
626
  object_path?: string | null
627
+ /**
628
+ * The [class`Gio`.DBusConnection] where the connection is proxied through.
629
+ */
630
+ dbusConnection?: Gio.DBusConnection | null
631
+ /**
632
+ * The DBus object path that this endpoint manages.
633
+ */
634
+ objectPath?: string | null
619
635
  }
620
636
 
621
637
  }
@@ -628,10 +644,18 @@ export interface EndpointDBus extends Gio.Initable {
628
644
  * The [class`Gio`.DBusConnection] where the connection is proxied through.
629
645
  */
630
646
  readonly dbus_connection: Gio.DBusConnection
647
+ /**
648
+ * The [class`Gio`.DBusConnection] where the connection is proxied through.
649
+ */
650
+ readonly dbusConnection: Gio.DBusConnection
631
651
  /**
632
652
  * The DBus object path that this endpoint manages.
633
653
  */
634
654
  readonly object_path: string | null
655
+ /**
656
+ * The DBus object path that this endpoint manages.
657
+ */
658
+ readonly objectPath: string | null
635
659
 
636
660
  // Class property signals of Tracker-3.0.Tracker.EndpointDBus
637
661
 
@@ -748,6 +772,14 @@ export module EndpointHttp {
748
772
  * HTTP port used to listen requests.
749
773
  */
750
774
  http_port?: number | null
775
+ /**
776
+ * [class`Gio`.TlsCertificate] to encrypt the communication.
777
+ */
778
+ httpCertificate?: Gio.TlsCertificate | null
779
+ /**
780
+ * HTTP port used to listen requests.
781
+ */
782
+ httpPort?: number | null
751
783
  }
752
784
 
753
785
  }
@@ -760,10 +792,18 @@ export interface EndpointHttp extends Gio.Initable {
760
792
  * [class`Gio`.TlsCertificate] to encrypt the communication.
761
793
  */
762
794
  readonly http_certificate: Gio.TlsCertificate
795
+ /**
796
+ * [class`Gio`.TlsCertificate] to encrypt the communication.
797
+ */
798
+ readonly httpCertificate: Gio.TlsCertificate
763
799
  /**
764
800
  * HTTP port used to listen requests.
765
801
  */
766
802
  readonly http_port: number
803
+ /**
804
+ * HTTP port used to listen requests.
805
+ */
806
+ readonly httpPort: number
767
807
 
768
808
  // Own signals of Tracker-3.0.Tracker.EndpointHttp
769
809
 
@@ -2389,6 +2429,10 @@ export interface SparqlCursor {
2389
2429
  * Number of columns available in the result set.
2390
2430
  */
2391
2431
  readonly n_columns: number
2432
+ /**
2433
+ * Number of columns available in the result set.
2434
+ */
2435
+ readonly nColumns: number
2392
2436
 
2393
2437
  // Own fields of Tracker-3.0.Tracker.SparqlCursor
2394
2438
 
package/tracker-3.0.d.ts CHANGED
@@ -536,6 +536,10 @@ module Endpoint {
536
536
  * The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
537
537
  */
538
538
  sparql_connection?: SparqlConnection | null
539
+ /**
540
+ * The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
541
+ */
542
+ sparqlConnection?: SparqlConnection | null
539
543
  }
540
544
 
541
545
  }
@@ -548,6 +552,10 @@ interface Endpoint {
548
552
  * The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
549
553
  */
550
554
  readonly sparql_connection: SparqlConnection
555
+ /**
556
+ * The [class`Tracker`.SparqlConnection] being proxied by this endpoint.
557
+ */
558
+ readonly sparqlConnection: SparqlConnection
551
559
 
552
560
  // Own fields of Tracker-3.0.Tracker.Endpoint
553
561
 
@@ -618,6 +626,14 @@ module EndpointDBus {
618
626
  * The DBus object path that this endpoint manages.
619
627
  */
620
628
  object_path?: string | null
629
+ /**
630
+ * The [class`Gio`.DBusConnection] where the connection is proxied through.
631
+ */
632
+ dbusConnection?: Gio.DBusConnection | null
633
+ /**
634
+ * The DBus object path that this endpoint manages.
635
+ */
636
+ objectPath?: string | null
621
637
  }
622
638
 
623
639
  }
@@ -630,10 +646,18 @@ interface EndpointDBus extends Gio.Initable {
630
646
  * The [class`Gio`.DBusConnection] where the connection is proxied through.
631
647
  */
632
648
  readonly dbus_connection: Gio.DBusConnection
649
+ /**
650
+ * The [class`Gio`.DBusConnection] where the connection is proxied through.
651
+ */
652
+ readonly dbusConnection: Gio.DBusConnection
633
653
  /**
634
654
  * The DBus object path that this endpoint manages.
635
655
  */
636
656
  readonly object_path: string | null
657
+ /**
658
+ * The DBus object path that this endpoint manages.
659
+ */
660
+ readonly objectPath: string | null
637
661
 
638
662
  // Class property signals of Tracker-3.0.Tracker.EndpointDBus
639
663
 
@@ -750,6 +774,14 @@ module EndpointHttp {
750
774
  * HTTP port used to listen requests.
751
775
  */
752
776
  http_port?: number | null
777
+ /**
778
+ * [class`Gio`.TlsCertificate] to encrypt the communication.
779
+ */
780
+ httpCertificate?: Gio.TlsCertificate | null
781
+ /**
782
+ * HTTP port used to listen requests.
783
+ */
784
+ httpPort?: number | null
753
785
  }
754
786
 
755
787
  }
@@ -762,10 +794,18 @@ interface EndpointHttp extends Gio.Initable {
762
794
  * [class`Gio`.TlsCertificate] to encrypt the communication.
763
795
  */
764
796
  readonly http_certificate: Gio.TlsCertificate
797
+ /**
798
+ * [class`Gio`.TlsCertificate] to encrypt the communication.
799
+ */
800
+ readonly httpCertificate: Gio.TlsCertificate
765
801
  /**
766
802
  * HTTP port used to listen requests.
767
803
  */
768
804
  readonly http_port: number
805
+ /**
806
+ * HTTP port used to listen requests.
807
+ */
808
+ readonly httpPort: number
769
809
 
770
810
  // Own signals of Tracker-3.0.Tracker.EndpointHttp
771
811
 
@@ -2391,6 +2431,10 @@ interface SparqlCursor {
2391
2431
  * Number of columns available in the result set.
2392
2432
  */
2393
2433
  readonly n_columns: number
2434
+ /**
2435
+ * Number of columns available in the result set.
2436
+ */
2437
+ readonly nColumns: number
2394
2438
 
2395
2439
  // Own fields of Tracker-3.0.Tracker.SparqlCursor
2396
2440