@forge/bridge

7.3.0-next.77.3.0-next.8
~

Modified (3 files)

Index: package/out/fetch/fetch.js
===================================================================
--- package/out/fetch/fetch.js
+++ package/out/fetch/fetch.js
@@ -77,9 +77,9 @@
     if (!restPath || typeof restPath !== 'string') {
         throw new Error('Request target must be a path string or an object with a non-empty `path` string.');
     }
     if (contextAri !== undefined && (typeof contextAri !== 'string' || !contextAri.startsWith('ari:'))) {
-        throw new Error(`Invalid contextAri '${String(contextAri)}'. Expected an ARI such as 'ari:cloud:jira::site/<cloudId>'.`);
+        throw new Error(`Invalid contextAri '${String(contextAri)}'. Expected an ARI such as 'ari:cloud:jira::site/<cloudId>' or 'ari:cloud:jira:<cloudId>:workspace/<activationId>'.`);
     }
     return { restPath, contextAri };
 };
 const productFetchApi = (callBridge) => {
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/bridge",
-  "version": "7.3.0-next.7",
+  "version": "7.3.0-next.8",
   "description": "Forge bridge API for custom UI apps",
   "author": "Atlassian",
   "license": "SEE LICENSE IN LICENSE.txt",
   "main": "out/index.js",
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
 # @forge/bridge
 
+## 7.3.0-next.8
+
+### Patch Changes
+
+- bca5721: Improve error message on new contextAri arg
+
 ## 7.3.0-next.7
 
 ### Patch Changes