@girs/trackerminer-1.0 1.0.0-3.2.4 → 1.0.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/trackerminer-1.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for TrackerMiner-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for TrackerMiner-1.0, generated from library version 1.0.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 TrackerMiner = imports.gi.TrackerMiner;
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/trackerminer-1.0",
3
- "version": "1.0.0-3.2.4",
3
+ "version": "1.0.0-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for TrackerMiner-1.0, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "trackerminer-1.0.js",
@@ -25,12 +25,12 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit trackerminer-1.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/gmodule-2.0": "^2.0.0-3.2.4",
32
- "@girs/gobject-2.0": "^2.78.0-3.2.4",
33
- "@girs/tracker-1.0": "^1.0.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/gmodule-2.0": "^2.0.0-3.2.6",
32
+ "@girs/gobject-2.0": "^2.78.0-3.2.6",
33
+ "@girs/tracker-1.0": "^1.0.0-3.2.6"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "*"
@@ -1,9 +1,12 @@
1
1
 
2
-
3
2
  declare module 'gi://TrackerMiner?version=1.0' {
4
3
  import TrackerMiner10 from '@girs/trackerminer-1.0';
5
4
  export default TrackerMiner10;
6
5
  }
7
6
 
7
+ declare module 'gi://TrackerMiner' {
8
+ import TrackerMiner10 from '@girs/trackerminer-1.0';
9
+ export default TrackerMiner10;
10
+ }
8
11
 
9
12
 
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import TrackerMiner10 from '@girs/trackerminer-1.0';
4
3
 
5
4
  declare global {
@@ -648,6 +648,10 @@ export module Decorator {
648
648
  commit_batch_size?: number | null
649
649
  data_source?: string | null
650
650
  priority_rdf_types?: string[] | null
651
+ classNames?: string[] | null
652
+ commitBatchSize?: number | null
653
+ dataSource?: string | null
654
+ priorityRdfTypes?: string[] | null
651
655
  }
652
656
 
653
657
  }
@@ -657,9 +661,13 @@ export interface Decorator extends Gio.Initable {
657
661
  // Own properties of TrackerMiner-1.0.TrackerMiner.Decorator
658
662
 
659
663
  class_names: string[]
664
+ classNames: string[]
660
665
  commit_batch_size: number
666
+ commitBatchSize: number
661
667
  readonly data_source: string | null
668
+ readonly dataSource: string | null
662
669
  priority_rdf_types: string[]
670
+ priorityRdfTypes: string[]
663
671
 
664
672
  // Own fields of TrackerMiner-1.0.TrackerMiner.Decorator
665
673
 
@@ -929,6 +937,7 @@ export module IndexingTree {
929
937
 
930
938
  filter_hidden?: boolean | null
931
939
  root?: Gio.File | null
940
+ filterHidden?: boolean | null
932
941
  }
933
942
 
934
943
  }
@@ -938,6 +947,7 @@ export interface IndexingTree {
938
947
  // Own properties of TrackerMiner-1.0.TrackerMiner.IndexingTree
939
948
 
940
949
  filter_hidden: boolean
950
+ filterHidden: boolean
941
951
  readonly root: Gio.File
942
952
 
943
953
  // Own fields of TrackerMiner-1.0.TrackerMiner.IndexingTree
@@ -1233,6 +1243,9 @@ export module Miner {
1233
1243
  progress?: number | null
1234
1244
  remaining_time?: number | null
1235
1245
  status?: string | null
1246
+ introspectionHandler?: any | null
1247
+ introspectionXml?: string | null
1248
+ remainingTime?: number | null
1236
1249
  }
1237
1250
 
1238
1251
  }
@@ -1242,10 +1255,13 @@ export interface Miner extends Gio.Initable {
1242
1255
  // Own properties of TrackerMiner-1.0.TrackerMiner.Miner
1243
1256
 
1244
1257
  introspection_handler: any
1258
+ introspectionHandler: any
1245
1259
  introspection_xml: string | null
1260
+ introspectionXml: string | null
1246
1261
  readonly name: string | null
1247
1262
  progress: number
1248
1263
  remaining_time: number
1264
+ remainingTime: number
1249
1265
  status: string | null
1250
1266
 
1251
1267
  // Own fields of TrackerMiner-1.0.TrackerMiner.Miner
@@ -1472,6 +1488,11 @@ export module MinerFS {
1472
1488
  processing_pool_wait_limit?: number | null
1473
1489
  root?: Gio.File | null
1474
1490
  throttle?: number | null
1491
+ dataProvider?: DataProvider | null
1492
+ initialCrawling?: boolean | null
1493
+ mtimeChecking?: boolean | null
1494
+ processingPoolReadyLimit?: number | null
1495
+ processingPoolWaitLimit?: number | null
1475
1496
  }
1476
1497
 
1477
1498
  }
@@ -1481,10 +1502,15 @@ export interface MinerFS extends Gio.Initable {
1481
1502
  // Own properties of TrackerMiner-1.0.TrackerMiner.MinerFS
1482
1503
 
1483
1504
  readonly data_provider: DataProvider
1505
+ readonly dataProvider: DataProvider
1484
1506
  initial_crawling: boolean
1507
+ initialCrawling: boolean
1485
1508
  mtime_checking: boolean
1509
+ mtimeChecking: boolean
1486
1510
  processing_pool_ready_limit: number
1511
+ processingPoolReadyLimit: number
1487
1512
  processing_pool_wait_limit: number
1513
+ processingPoolWaitLimit: number
1488
1514
  readonly root: Gio.File
1489
1515
  throttle: number
1490
1516
 
@@ -1846,6 +1872,7 @@ export interface MinerOnline extends Gio.Initable {
1846
1872
  // Own properties of TrackerMiner-1.0.TrackerMiner.MinerOnline
1847
1873
 
1848
1874
  readonly network_type: NetworkType
1875
+ readonly networkType: NetworkType
1849
1876
 
1850
1877
  // Own fields of TrackerMiner-1.0.TrackerMiner.MinerOnline
1851
1878
 
@@ -650,6 +650,10 @@ module Decorator {
650
650
  commit_batch_size?: number | null
651
651
  data_source?: string | null
652
652
  priority_rdf_types?: string[] | null
653
+ classNames?: string[] | null
654
+ commitBatchSize?: number | null
655
+ dataSource?: string | null
656
+ priorityRdfTypes?: string[] | null
653
657
  }
654
658
 
655
659
  }
@@ -659,9 +663,13 @@ interface Decorator extends Gio.Initable {
659
663
  // Own properties of TrackerMiner-1.0.TrackerMiner.Decorator
660
664
 
661
665
  class_names: string[]
666
+ classNames: string[]
662
667
  commit_batch_size: number
668
+ commitBatchSize: number
663
669
  readonly data_source: string | null
670
+ readonly dataSource: string | null
664
671
  priority_rdf_types: string[]
672
+ priorityRdfTypes: string[]
665
673
 
666
674
  // Own fields of TrackerMiner-1.0.TrackerMiner.Decorator
667
675
 
@@ -931,6 +939,7 @@ module IndexingTree {
931
939
 
932
940
  filter_hidden?: boolean | null
933
941
  root?: Gio.File | null
942
+ filterHidden?: boolean | null
934
943
  }
935
944
 
936
945
  }
@@ -940,6 +949,7 @@ interface IndexingTree {
940
949
  // Own properties of TrackerMiner-1.0.TrackerMiner.IndexingTree
941
950
 
942
951
  filter_hidden: boolean
952
+ filterHidden: boolean
943
953
  readonly root: Gio.File
944
954
 
945
955
  // Own fields of TrackerMiner-1.0.TrackerMiner.IndexingTree
@@ -1235,6 +1245,9 @@ module Miner {
1235
1245
  progress?: number | null
1236
1246
  remaining_time?: number | null
1237
1247
  status?: string | null
1248
+ introspectionHandler?: any | null
1249
+ introspectionXml?: string | null
1250
+ remainingTime?: number | null
1238
1251
  }
1239
1252
 
1240
1253
  }
@@ -1244,10 +1257,13 @@ interface Miner extends Gio.Initable {
1244
1257
  // Own properties of TrackerMiner-1.0.TrackerMiner.Miner
1245
1258
 
1246
1259
  introspection_handler: any
1260
+ introspectionHandler: any
1247
1261
  introspection_xml: string | null
1262
+ introspectionXml: string | null
1248
1263
  readonly name: string | null
1249
1264
  progress: number
1250
1265
  remaining_time: number
1266
+ remainingTime: number
1251
1267
  status: string | null
1252
1268
 
1253
1269
  // Own fields of TrackerMiner-1.0.TrackerMiner.Miner
@@ -1474,6 +1490,11 @@ module MinerFS {
1474
1490
  processing_pool_wait_limit?: number | null
1475
1491
  root?: Gio.File | null
1476
1492
  throttle?: number | null
1493
+ dataProvider?: DataProvider | null
1494
+ initialCrawling?: boolean | null
1495
+ mtimeChecking?: boolean | null
1496
+ processingPoolReadyLimit?: number | null
1497
+ processingPoolWaitLimit?: number | null
1477
1498
  }
1478
1499
 
1479
1500
  }
@@ -1483,10 +1504,15 @@ interface MinerFS extends Gio.Initable {
1483
1504
  // Own properties of TrackerMiner-1.0.TrackerMiner.MinerFS
1484
1505
 
1485
1506
  readonly data_provider: DataProvider
1507
+ readonly dataProvider: DataProvider
1486
1508
  initial_crawling: boolean
1509
+ initialCrawling: boolean
1487
1510
  mtime_checking: boolean
1511
+ mtimeChecking: boolean
1488
1512
  processing_pool_ready_limit: number
1513
+ processingPoolReadyLimit: number
1489
1514
  processing_pool_wait_limit: number
1515
+ processingPoolWaitLimit: number
1490
1516
  readonly root: Gio.File
1491
1517
  throttle: number
1492
1518
 
@@ -1848,6 +1874,7 @@ interface MinerOnline extends Gio.Initable {
1848
1874
  // Own properties of TrackerMiner-1.0.TrackerMiner.MinerOnline
1849
1875
 
1850
1876
  readonly network_type: NetworkType
1877
+ readonly networkType: NetworkType
1851
1878
 
1852
1879
  // Own fields of TrackerMiner-1.0.TrackerMiner.MinerOnline
1853
1880