@itwin/core-electron 4.5.0-dev.8 → 4.5.0

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/CHANGELOG.md CHANGED
@@ -1,6 +1,72 @@
1
1
  # Change Log - @itwin/core-electron
2
2
 
3
- This log was last generated on Wed, 03 Jan 2024 19:29:41 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 02 Apr 2024 19:06:00 GMT and should not be manually modified.
4
+
5
+ ## 4.5.0
6
+ Tue, 02 Apr 2024 19:06:00 GMT
7
+
8
+ ### Updates
9
+
10
+ - Add support for Electron 29
11
+
12
+ ## 4.4.8
13
+ Mon, 25 Mar 2024 22:22:26 GMT
14
+
15
+ _Version update only_
16
+
17
+ ## 4.4.7
18
+ Fri, 15 Mar 2024 19:15:14 GMT
19
+
20
+ _Version update only_
21
+
22
+ ## 4.4.6
23
+ Fri, 08 Mar 2024 15:57:11 GMT
24
+
25
+ _Version update only_
26
+
27
+ ## 4.4.5
28
+ Tue, 05 Mar 2024 20:37:18 GMT
29
+
30
+ _Version update only_
31
+
32
+ ## 4.4.4
33
+ Fri, 01 Mar 2024 18:21:01 GMT
34
+
35
+ _Version update only_
36
+
37
+ ## 4.4.3
38
+ Fri, 23 Feb 2024 21:26:07 GMT
39
+
40
+ _Version update only_
41
+
42
+ ## 4.4.2
43
+ Fri, 16 Feb 2024 14:22:01 GMT
44
+
45
+ _Version update only_
46
+
47
+ ## 4.4.1
48
+ Fri, 16 Feb 2024 14:17:48 GMT
49
+
50
+ _Version update only_
51
+
52
+ ## 4.4.0
53
+ Mon, 12 Feb 2024 18:15:58 GMT
54
+
55
+ ### Updates
56
+
57
+ - Add support for Electron 27.
58
+ - Add support for Node 20.
59
+ - Add support for Electron 28
60
+
61
+ ## 4.3.5
62
+ Mon, 25 Mar 2024 16:54:36 GMT
63
+
64
+ _Version update only_
65
+
66
+ ## 4.3.4
67
+ Fri, 22 Mar 2024 13:30:31 GMT
68
+
69
+ _Version update only_
4
70
 
5
71
  ## 4.3.3
6
72
  Wed, 03 Jan 2024 19:28:38 GMT
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright © 2017-2023 Bentley Systems, Incorporated. All rights reserved.
3
+ Copyright © 2017-2024 Bentley Systems, Incorporated. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -21,14 +21,14 @@ const frontendApi = {
21
21
  },
22
22
  addListener(channel, listener) {
23
23
  checkPrefix(channel);
24
- return electron_1.ipcRenderer.addListener(channel, listener);
24
+ electron_1.ipcRenderer.addListener(channel, listener);
25
25
  },
26
26
  removeListener(channel, listener) {
27
- return electron_1.ipcRenderer.removeListener(channel, listener);
27
+ electron_1.ipcRenderer.removeListener(channel, listener);
28
28
  },
29
29
  once(channel, listener) {
30
30
  checkPrefix(channel);
31
- return electron_1.ipcRenderer.once(channel, listener);
31
+ electron_1.ipcRenderer.once(channel, listener);
32
32
  },
33
33
  async invoke(channel, ...data) {
34
34
  checkPrefix(channel);
@@ -1 +1 @@
1
- {"version":3,"file":"ElectronPreload.js","sourceRoot":"","sources":["../../../src/backend/ElectronPreload.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;AAE/F,uCAAsD;AAGtD;;;GAGG;AAEH,SAAS,WAAW,CAAC,OAAe;IAClC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,yBAAyB,OAAO,GAAG,CAAC,CAAC;AACzD,CAAC;AAED,+HAA+H;AAC/H,MAAM,WAAW,GAAqB;IACpC,IAAI,CAAC,OAAe,EAAE,GAAG,IAAW;QAClC,WAAW,CAAC,OAAO,CAAC,CAAC;QACrB,sBAAW,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IACrC,CAAC;IACD,WAAW,CAAC,OAAe,EAAE,QAA0B;QACrD,WAAW,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO,sBAAW,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;IACD,cAAc,CAAC,OAAe,EAAE,QAA0B;QACxD,OAAO,sBAAW,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACvD,CAAC;IACD,IAAI,CAAC,OAAe,EAAE,QAA0B;QAC9C,WAAW,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO,sBAAW,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,GAAG,IAAW;QAC1C,WAAW,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO,sBAAW,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IAC9C,CAAC;CACF,CAAC;AAEF,qGAAqG;AACrG,wBAAa,CAAC,iBAAiB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nimport { contextBridge, ipcRenderer } from \"electron\";\r\nimport type { ElectronListener, ITwinElectronApi } from \"../common/ITwinElectronApi\";\r\n\r\n/**\r\n * This file is loaded as an Electron preload script\r\n * (see https://www.electronjs.org/docs/api/browser-window#class-browserwindow) from ElectronMain.ts\r\n */\r\n\r\nfunction checkPrefix(channel: string) {\r\n if (!channel.startsWith(\"itwin.\"))\r\n throw new Error(`illegal channel name '${channel}'`);\r\n}\r\n\r\n/** the implementation of the private api between the frontend (renderer) and backend (main) iTwin.js processes in Electron. */\r\nconst frontendApi: ITwinElectronApi = {\r\n send(channel: string, ...data: any[]) {\r\n checkPrefix(channel);\r\n ipcRenderer.send(channel, ...data);\r\n },\r\n addListener(channel: string, listener: ElectronListener) {\r\n checkPrefix(channel);\r\n return ipcRenderer.addListener(channel, listener);\r\n },\r\n removeListener(channel: string, listener: ElectronListener) {\r\n return ipcRenderer.removeListener(channel, listener);\r\n },\r\n once(channel: string, listener: ElectronListener) {\r\n checkPrefix(channel);\r\n return ipcRenderer.once(channel, listener);\r\n },\r\n async invoke(channel: string, ...data: any[]): Promise<any> {\r\n checkPrefix(channel);\r\n return ipcRenderer.invoke(channel, ...data);\r\n },\r\n};\r\n\r\n// this adds the frontendApi object under the name `window.itwinjs` in the frontend Electron process.\r\ncontextBridge.exposeInMainWorld(\"itwinjs\", frontendApi);\r\n"]}
1
+ {"version":3,"file":"ElectronPreload.js","sourceRoot":"","sources":["../../../src/backend/ElectronPreload.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;AAE/F,uCAAsD;AAGtD;;;GAGG;AAEH,SAAS,WAAW,CAAC,OAAe;IAClC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,yBAAyB,OAAO,GAAG,CAAC,CAAC;AACzD,CAAC;AAED,+HAA+H;AAC/H,MAAM,WAAW,GAAqB;IACpC,IAAI,CAAC,OAAe,EAAE,GAAG,IAAW;QAClC,WAAW,CAAC,OAAO,CAAC,CAAC;QACrB,sBAAW,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IACrC,CAAC;IACD,WAAW,CAAC,OAAe,EAAE,QAA0B;QACrD,WAAW,CAAC,OAAO,CAAC,CAAC;QACrB,sBAAW,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACD,cAAc,CAAC,OAAe,EAAE,QAA0B;QACxD,sBAAW,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC;IACD,IAAI,CAAC,OAAe,EAAE,QAA0B;QAC9C,WAAW,CAAC,OAAO,CAAC,CAAC;QACrB,sBAAW,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,GAAG,IAAW;QAC1C,WAAW,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO,sBAAW,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IAC9C,CAAC;CACF,CAAC;AAEF,qGAAqG;AACrG,wBAAa,CAAC,iBAAiB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nimport { contextBridge, ipcRenderer } from \"electron\";\r\nimport type { ElectronListener, ITwinElectronApi } from \"../common/ITwinElectronApi\";\r\n\r\n/**\r\n * This file is loaded as an Electron preload script\r\n * (see https://www.electronjs.org/docs/api/browser-window#class-browserwindow) from ElectronMain.ts\r\n */\r\n\r\nfunction checkPrefix(channel: string) {\r\n if (!channel.startsWith(\"itwin.\"))\r\n throw new Error(`illegal channel name '${channel}'`);\r\n}\r\n\r\n/** the implementation of the private api between the frontend (renderer) and backend (main) iTwin.js processes in Electron. */\r\nconst frontendApi: ITwinElectronApi = {\r\n send(channel: string, ...data: any[]) {\r\n checkPrefix(channel);\r\n ipcRenderer.send(channel, ...data);\r\n },\r\n addListener(channel: string, listener: ElectronListener) {\r\n checkPrefix(channel);\r\n ipcRenderer.addListener(channel, listener);\r\n },\r\n removeListener(channel: string, listener: ElectronListener) {\r\n ipcRenderer.removeListener(channel, listener);\r\n },\r\n once(channel: string, listener: ElectronListener) {\r\n checkPrefix(channel);\r\n ipcRenderer.once(channel, listener);\r\n },\r\n async invoke(channel: string, ...data: any[]): Promise<any> {\r\n checkPrefix(channel);\r\n return ipcRenderer.invoke(channel, ...data);\r\n },\r\n};\r\n\r\n// this adds the frontendApi object under the name `window.itwinjs` in the frontend Electron process.\r\ncontextBridge.exposeInMainWorld(\"itwinjs\", frontendApi);\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-electron",
3
- "version": "4.5.0-dev.8",
3
+ "version": "4.5.0",
4
4
  "description": "iTwin.js ElectronHost and ElectronApp",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -21,11 +21,11 @@
21
21
  "url": "http://www.bentley.com"
22
22
  },
23
23
  "peerDependencies": {
24
- "@itwin/core-backend": "^4.5.0-dev.8",
25
- "@itwin/core-bentley": "^4.5.0-dev.8",
26
- "@itwin/core-common": "^4.5.0-dev.8",
27
- "@itwin/core-frontend": "^4.5.0-dev.8",
28
- "electron": ">=23.0.0 <29.0.0"
24
+ "@itwin/core-backend": "^4.5.0",
25
+ "@itwin/core-bentley": "^4.5.0",
26
+ "@itwin/core-common": "^4.5.0",
27
+ "@itwin/core-frontend": "^4.5.0",
28
+ "electron": ">=23.0.0 <30.0.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@itwin/eslint-plugin": "4.0.0-dev.44",
@@ -33,7 +33,7 @@
33
33
  "@types/mocha": "^10.0.6",
34
34
  "@types/node": "~18.16.20",
35
35
  "chai": "^4.3.10",
36
- "electron": "^28.0.0",
36
+ "electron": "^29.0.0",
37
37
  "eslint": "^8.44.0",
38
38
  "glob": "^7.1.2",
39
39
  "mocha": "^10.2.0",
@@ -42,12 +42,12 @@
42
42
  "typescript": "~5.0.2",
43
43
  "webpack": "^5.76.0",
44
44
  "webpack-cli": "^5.0.1",
45
- "@itwin/certa": "4.5.0-dev.8",
46
- "@itwin/build-tools": "4.5.0-dev.8",
47
- "@itwin/core-common": "4.5.0-dev.8",
48
- "@itwin/core-bentley": "4.5.0-dev.8",
49
- "@itwin/core-backend": "4.5.0-dev.8",
50
- "@itwin/core-frontend": "4.5.0-dev.8"
45
+ "@itwin/build-tools": "4.5.0",
46
+ "@itwin/core-backend": "4.5.0",
47
+ "@itwin/core-bentley": "4.5.0",
48
+ "@itwin/core-common": "4.5.0",
49
+ "@itwin/certa": "4.5.0",
50
+ "@itwin/core-frontend": "4.5.0"
51
51
  },
52
52
  "dependencies": {
53
53
  "@openid/appauth": "^1.2.6",