@forge/jira-bridge

0.40.00.40.1-next.0
~

Modified (4 files)

Index: package/out/bridge.js
===================================================================
--- package/out/bridge.js
+++ package/out/bridge.js
@@ -1,7 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.getCallBridge = void 0;
 const getCallBridge = () => {
-    return window.__bridge.callBridge;
+    return globalThis.__bridge.callBridge;
 };
 exports.getCallBridge = getCallBridge;
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/jira-bridge",
-  "version": "0.40.0",
+  "version": "0.40.1-next.0",
   "description": "Forge Jira bridge API for custom UI apps",
   "author": "Atlassian",
   "license": "SEE LICENSE IN LICENSE.txt",
   "browser": "out/index.js",
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
 # @forge/jira-bridge
 
+## 0.40.1-next.0
+
+### Patch Changes
+
+- 0b7cde8: replace window with globalThis to ensure the bridge packages can work in both browser and worker environment
+
 ## 0.40.0
 
 ### Minor Changes
Index: package/LICENSE.txt
===================================================================
--- package/LICENSE.txt
+++ package/LICENSE.txt
@@ -1,5 +1,5 @@
-Copyright (c) 2025 Atlassian
+Copyright (c) 2026 Atlassian
 Permission is hereby granted to use this software in accordance with the terms 
 and conditions outlined in the Atlassian Developer Terms, which can be found 
 at the following URL:
 https://developer.atlassian.com/platform/marketplace/atlassian-developer-terms/