@capacitor/core 8.3.6 → 8.3.8

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/cookies.md CHANGED
@@ -7,9 +7,16 @@ The Capacitor Cookies API provides native cookie support via patching `document.
7
7
  By default, the patching of `document.cookie` to use native libraries is disabled.
8
8
  If you would like to enable this feature, modify the configuration below in the `capacitor.config` file.
9
9
 
10
- | Prop | Type | Description | Default |
11
- | ------------- | -------------------- | ------------------------------------------------------------------------- | ------------------ |
12
- | **`enabled`** | <code>boolean</code> | Enable the patching of `document.cookie` to use native libraries instead. | <code>false</code> |
10
+ | Prop | Type | Description | Default | Since |
11
+ | -------------- | -------------------- | ------------------------------------------------------------------------------------ | ------------------ | ----- |
12
+ | **`enabled`** | <code>boolean</code> | Enable the patching of `document.cookie` to use native libraries instead. | <code>false</code> | 4.3.0 |
13
+ | **`disabled`** | <code>boolean</code> | Prevent the plugin from loading on iOS and Android. Takes precedence over `enabled`. | <code>false</code> | 8.3.8 |
14
+
15
+ `enabled` only controls the patching. With `enabled` unset or `false`, `CapacitorCookies.setCookie()` and the other methods below still work.
16
+ Set `disabled` to `true` to stop the plugin from loading at all: its methods then fail as unimplemented, and `document.cookie` is not patched even if `enabled` is `true`. The plugin's native code still ships in the app.
17
+
18
+ On Android, this plugin is also what shares cookies between the web view and native requests made with `HttpURLConnection` (including `CapacitorHttp` and plugins that download files, such as Filesystem's `downloadFile()`), and it clears session cookies when it loads.
19
+ With `disabled: true`, neither happens.
13
20
 
14
21
  ### Example Configuration
15
22
 
package/http.md CHANGED
@@ -7,9 +7,15 @@ The Capacitor Http API provides native http support via patching `fetch` and `XM
7
7
  By default, the patching of `window.fetch` and `XMLHttpRequest` to use native libraries is disabled.
8
8
  If you would like to enable this feature, modify the configuration below in the `capacitor.config` file.
9
9
 
10
- | Prop | Type | Description | Default |
11
- | ------------- | -------------------- | ------------------------------------------------------------------------------------ | ------------------ |
12
- | **`enabled`** | <code>boolean</code> | Enable the patching of `fetch` and `XMLHttpRequest` to use native libraries instead. | <code>false</code> |
10
+ | Prop | Type | Description | Default | Since |
11
+ | -------------- | -------------------- | -------------------------------------------------------------------------------------------------------- | ------------------ | ----- |
12
+ | **`enabled`** | <code>boolean</code> | Enable the patching of `fetch` and `XMLHttpRequest` to use native libraries instead. | <code>false</code> | 4.3.0 |
13
+ | **`disabled`** | <code>boolean</code> | Prevent the plugin from loading on iOS and Android. Takes precedence over `enabled`. | <code>false</code> | 8.3.8 |
14
+
15
+ `enabled` only controls the patching. With `enabled` unset or `false`, `CapacitorHttp.request()` and the other methods below still work.
16
+ Set `disabled` to `true` to stop the plugin from loading at all: its methods then fail as unimplemented, and `fetch` and `XMLHttpRequest` are not patched even if `enabled` is `true`. The plugin's native code still ships in the app.
17
+
18
+ On Android, `CapacitorHttp` requests only send and store web view cookies while `CapacitorCookies` is loaded. If `CapacitorCookies` has `disabled: true`, they go out without those cookies. iOS is not affected.
13
19
 
14
20
  ### Example Configuration
15
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/core",
3
- "version": "8.3.6",
3
+ "version": "8.3.8",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
package/system-bars.md CHANGED
@@ -77,6 +77,7 @@ const setStatusBarAnimation = async () => {
77
77
  | **`style`** | <code>string</code> | The style of the text and icons of the system bars. | <code>DEFAULT</code> |
78
78
  | **`hidden`** | <code>boolean</code> | Hide the system bars on start. | <code>false</code> |
79
79
  | **`animation`** | <code>string</code> | The type of status bar animation used when showing or hiding. This option is only supported on iOS. | <code>FADE</code> |
80
+ | **`disabled`** | <code>boolean</code> | Prevent the plugin from loading on iOS and Android, so its methods fail as unimplemented and the other options above are ignored. The plugin's native code still ships in the app.<br><br>On Android, this also turns off safe area insets handling, as with `insetsHandling: 'disable'`. | <code>false</code> |
80
81
 
81
82
 
82
83
  ### Example Configuration