@tauri-apps/cli 2.0.0-beta.3 → 2.0.0-beta.4

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/CHANGELOG.md +14 -0
  2. package/package.json +11 -11
  3. package/schema.json +26 -40
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## \[2.0.0-beta.4]
4
+
5
+ ### Bug Fixes
6
+
7
+ - [`e538ba58`](https://www.github.com/tauri-apps/tauri/commit/e538ba586c5b8b50955586c8ef2704adb5d7cc43)([#8949](https://www.github.com/tauri-apps/tauri/pull/8949)) Fixes android and iOS process spawning not working on Node.js.
8
+
9
+ ### Dependencies
10
+
11
+ - Upgraded to `tauri-cli@2.0.0-beta.4`
12
+
13
+ ### Breaking Changes
14
+
15
+ - [`a76fb118`](https://www.github.com/tauri-apps/tauri/commit/a76fb118ce2de22e1bdb4216bf0ac01dfc3e5799)([#8950](https://www.github.com/tauri-apps/tauri/pull/8950)) Changed the capability format to allow configuring both `remote: { urls: Vec<String> }` and `local: bool (default: true)` instead of choosing one on the `context` field.
16
+
3
17
  ## \[2.0.0-beta.3]
4
18
 
5
19
  ### Enhancements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/cli",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Command line interface for building Tauri apps",
5
5
  "funding": {
6
6
  "type": "opencollective",
@@ -68,15 +68,15 @@
68
68
  "format:check": "prettier --check ./package.json ./tauri.js"
69
69
  },
70
70
  "optionalDependencies": {
71
- "@tauri-apps/cli-win32-x64-msvc": "2.0.0-beta.3",
72
- "@tauri-apps/cli-darwin-x64": "2.0.0-beta.3",
73
- "@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.3",
74
- "@tauri-apps/cli-darwin-arm64": "2.0.0-beta.3",
75
- "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.3",
76
- "@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.3",
77
- "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.3",
78
- "@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.3",
79
- "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.3",
80
- "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.3"
71
+ "@tauri-apps/cli-win32-x64-msvc": "2.0.0-beta.4",
72
+ "@tauri-apps/cli-darwin-x64": "2.0.0-beta.4",
73
+ "@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.4",
74
+ "@tauri-apps/cli-darwin-arm64": "2.0.0-beta.4",
75
+ "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.4",
76
+ "@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.4",
77
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.4",
78
+ "@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.4",
79
+ "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.4",
80
+ "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.4"
81
81
  }
82
82
  }
package/schema.json CHANGED
@@ -1085,15 +1085,22 @@
1085
1085
  "default": "",
1086
1086
  "type": "string"
1087
1087
  },
1088
- "context": {
1089
- "description": "Execution context of the capability.\n\nAt runtime, Tauri filters the IPC command together with the context to determine whether it is allowed or not and its scope.",
1090
- "default": "local",
1091
- "allOf": [
1088
+ "remote": {
1089
+ "description": "Configure remote URLs that can use the capability permissions.",
1090
+ "anyOf": [
1092
1091
  {
1093
- "$ref": "#/definitions/CapabilityContext"
1092
+ "$ref": "#/definitions/CapabilityRemote"
1093
+ },
1094
+ {
1095
+ "type": "null"
1094
1096
  }
1095
1097
  ]
1096
1098
  },
1099
+ "local": {
1100
+ "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.",
1101
+ "default": true,
1102
+ "type": "boolean"
1103
+ },
1097
1104
  "windows": {
1098
1105
  "description": "List of windows that uses this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.",
1099
1106
  "type": "array",
@@ -1131,42 +1138,21 @@
1131
1138
  }
1132
1139
  }
1133
1140
  },
1134
- "CapabilityContext": {
1135
- "description": "Context of the capability.",
1136
- "oneOf": [
1137
- {
1138
- "description": "Capability refers to local URL usage.",
1139
- "type": "string",
1140
- "enum": [
1141
- "local"
1142
- ]
1143
- },
1144
- {
1145
- "description": "Capability refers to remote usage.",
1146
- "type": "object",
1147
- "required": [
1148
- "remote"
1149
- ],
1150
- "properties": {
1151
- "remote": {
1152
- "type": "object",
1153
- "required": [
1154
- "urls"
1155
- ],
1156
- "properties": {
1157
- "urls": {
1158
- "description": "Remote domains this capability refers to. Can use glob patterns.",
1159
- "type": "array",
1160
- "items": {
1161
- "type": "string"
1162
- }
1163
- }
1164
- }
1165
- }
1166
- },
1167
- "additionalProperties": false
1141
+ "CapabilityRemote": {
1142
+ "description": "Configuration for remote URLs that are associated with the capability.",
1143
+ "type": "object",
1144
+ "required": [
1145
+ "urls"
1146
+ ],
1147
+ "properties": {
1148
+ "urls": {
1149
+ "description": "Remote domains this capability refers to. Can use glob patterns.",
1150
+ "type": "array",
1151
+ "items": {
1152
+ "type": "string"
1153
+ }
1168
1154
  }
1169
- ]
1155
+ }
1170
1156
  },
1171
1157
  "PermissionEntry": {
1172
1158
  "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.",