electron 11.1.1 → 11.2.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 +3 -6
  2. package/electron.d.ts +27 -16
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -28,15 +28,12 @@ The preferred method is to install Electron as a development dependency in your
28
28
  app:
29
29
 
30
30
  ```sh
31
- npm install electron --save-dev [--save-exact]
31
+ npm install electron --save-dev
32
32
  ```
33
33
 
34
- The `--save-exact` flag is recommended for Electron prior to version 2, as it does not follow semantic
35
- versioning. As of version 2.0.0, Electron follows semver, so you don't need `--save-exact` flag. For info on how to manage Electron versions in your apps, see
36
- [Electron versioning](docs/tutorial/electron-versioning.md).
37
-
38
34
  For more installation options and troubleshooting tips, see
39
- [installation](docs/tutorial/installation.md).
35
+ [installation](docs/tutorial/installation.md). For info on how to manage Electron versions in your apps, see
36
+ [Electron versioning](docs/tutorial/electron-versioning.md).
40
37
 
41
38
  ## Quick start & Electron Fiddle
42
39
 
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 11.1.1
1
+ // Type definitions for Electron 11.2.3
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/electron-typescript-definitions
@@ -2599,7 +2599,8 @@ On Linux always returns `true`.
2599
2599
  * and height are within the content view--only that they exist. Sum any extra
2600
2600
  * width and height areas you have within the overall content view.
2601
2601
  *
2602
- * @platform darwin,linux
2602
+ * The aspect ratio is not respected when window is resized programmingly with APIs
2603
+ * like `win.setSize`.
2603
2604
  */
2604
2605
  setAspectRatio(aspectRatio: number, extraSize?: Size): void;
2605
2606
  /**
@@ -4898,9 +4899,13 @@ Retrieves the product descriptions.
4898
4899
  * included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw
4899
4900
  * an exception.
4900
4901
  *
4901
- * > **NOTE**: Sending non-standard JavaScript types such as DOM objects or special
4902
- * Electron objects is deprecated, and will begin throwing an exception starting
4903
- * with Electron 9.
4902
+ * > **NOTE:** Sending non-standard JavaScript types such as DOM objects or special
4903
+ * Electron objects will throw an exception.
4904
+ *
4905
+ * Since the main process does not have support for DOM objects such as
4906
+ * `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
4907
+ * Electron's IPC to the main process, as the main process would have no way to
4908
+ * decode them. Attempting to send such objects over IPC will result in an error.
4904
4909
  *
4905
4910
  * The main process should listen for `channel` with `ipcMain.handle()`.
4906
4911
  *
@@ -4952,9 +4957,13 @@ Retrieves the product descriptions.
4952
4957
  * Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an
4953
4958
  * exception.
4954
4959
  *
4955
- * > **NOTE**: Sending non-standard JavaScript types such as DOM objects or special
4956
- * Electron objects is deprecated, and will begin throwing an exception starting
4957
- * with Electron 9.
4960
+ * > **NOTE:** Sending non-standard JavaScript types such as DOM objects or special
4961
+ * Electron objects will throw an exception.
4962
+ *
4963
+ * Since the main process does not have support for DOM objects such as
4964
+ * `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
4965
+ * Electron's IPC to the main process, as the main process would have no way to
4966
+ * decode them. Attempting to send such objects over IPC will result in an error.
4958
4967
  *
4959
4968
  * The main process handles it by listening for `channel` with the `ipcMain`
4960
4969
  * module.
@@ -4975,9 +4984,13 @@ Retrieves the product descriptions.
4975
4984
  * Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an
4976
4985
  * exception.
4977
4986
  *
4978
- * > **NOTE**: Sending non-standard JavaScript types such as DOM objects or special
4979
- * Electron objects is deprecated, and will begin throwing an exception starting
4980
- * with Electron 9.
4987
+ * > **NOTE:** Sending non-standard JavaScript types such as DOM objects or special
4988
+ * Electron objects will throw an exception.
4989
+ *
4990
+ * Since the main process does not have support for DOM objects such as
4991
+ * `ImageBitmap`, `File`, `DOMMatrix` and so on, such objects cannot be sent over
4992
+ * Electron's IPC to the main process, as the main process would have no way to
4993
+ * decode them. Attempting to send such objects over IPC will result in an error.
4981
4994
  *
4982
4995
  * The main process handles it by listening for `channel` with `ipcMain` module,
4983
4996
  * and replies by setting `event.returnValue`.
@@ -10122,8 +10135,7 @@ An example of `webContents.printToPDF`:
10122
10135
  * Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an exception.
10123
10136
  *
10124
10137
  * > **NOTE**: Sending non-standard JavaScript types such as DOM objects or special
10125
- * Electron objects is deprecated, and will begin throwing an exception starting
10126
- * with Electron 9.
10138
+ * Electron objects will throw an exception.
10127
10139
  *
10128
10140
  * The renderer process can handle the message by listening to `channel` with the
10129
10141
  * `ipcRenderer` module.
@@ -10143,9 +10155,8 @@ An example of sending messages from the main process to the renderer process:
10143
10155
  * not be included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets
10144
10156
  * will throw an exception.
10145
10157
  *
10146
- * > **NOTE**: Sending non-standard JavaScript types such as DOM objects or special
10147
- * Electron objects is deprecated, and will begin throwing an exception starting
10148
- * with Electron 9.
10158
+ * > **NOTE:** Sending non-standard JavaScript types such as DOM objects or special
10159
+ * Electron objects will throw an exception.
10149
10160
  *
10150
10161
  * The renderer process can handle the message by listening to `channel` with the
10151
10162
  * `ipcRenderer` module.
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "node": ">= 8.6"
17
17
  },
18
18
  "name": "electron",
19
- "version": "11.1.1",
19
+ "version": "11.2.3",
20
20
  "repository": "https://github.com/electron/electron",
21
21
  "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
22
22
  "license": "MIT",