npm package diff

Package: @forge/bundler

Versions: 4.17.6-next.4 - 4.17.6-next.5

Modified:package/out/config/node.js

Index: package/out/config/node.js
===================================================================
--- package/out/config/node.js
+++ package/out/config/node.js
@@ -1,9 +1,8 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.getNodeRuntimeBuildConfig = exports.getWrapperProvider = exports.NetworkWrapperProvider = exports.LocalWrapperProvider = exports.ParseWrapperCDNIndexError = exports.WrapperNetworkError = exports.LocalWrapperNotFoundError = exports.LOCAL_WRAPPER_PATH = exports.NODE_RUNTIME_VERSION_FILE = exports.NODE_WEBPACK_USER_CODE_DIR = exports.NODE_WEBPACK_CONFIG_NAME = void 0;
+exports.getNodeRuntimeBuildConfig = exports.getWrapperProvider = exports.NetworkWrapperProvider = exports.LocalWrapperProvider = exports.ParseWrapperCDNIndexError = exports.WrapperNetworkError = exports.LocalWrapperNotFoundError = exports.NODE_RUNTIME_VERSION_FILE = exports.NODE_WEBPACK_USER_CODE_DIR = exports.NODE_WEBPACK_CONFIG_NAME = void 0;
 const tslib_1 = require("tslib");
-const path_1 = tslib_1.__importDefault(require("path"));
 const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
 const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
 const cli_shared_1 = require("@forge/cli-shared");
 const common_1 = require("./common");
@@ -17,9 +16,8 @@
     RuntimeCDN["PROD"] = "https://forge-node-runtime.prod-east.frontend.public.atl-paas.net/";
     RuntimeCDN["FEDRAMP_MODERATE_STAGING"] = "https://forge-node-runtime.prod-east.frontend.public.atl-paas.net/";
     RuntimeCDN["FEDRAMP_MODERATE_PROD"] = "https://forge-node-runtime.prod-east.frontend.public.atl-paas.net/";
 })(RuntimeCDN || (RuntimeCDN = {}));
-exports.LOCAL_WRAPPER_PATH = path_1.default.resolve(__dirname, '..', '..', '..', 'forge-node-runtime', 'dist', 'wrapper.js');
 class LocalWrapperNotFoundError extends cli_shared_1.UserError {
     constructor() {
         super('Local node runtime wrapper not found.');
     }
@@ -39,9 +37,9 @@
 exports.ParseWrapperCDNIndexError = ParseWrapperCDNIndexError;
 class LocalWrapperProvider {
     filesystemReader;
     path;
-    constructor(filesystemReader, path = exports.LOCAL_WRAPPER_PATH) {
+    constructor(filesystemReader, path) {
         this.filesystemReader = filesystemReader;
         this.path = path;
     }
     async getNodeRuntimeWrapper() {
@@ -100,11 +98,8 @@
     }
 }
 exports.NetworkWrapperProvider = NetworkWrapperProvider;
 const getWrapperProvider = ({ fileSystemReader }) => {
-    if (process.env.FORGE_USE_LOCAL_WRAPPER === 'true') {
-        return new LocalWrapperProvider(fileSystemReader);
-    }
     if (process.env.FORGE_WRAPPER_PATH) {
         return new LocalWrapperProvider(fileSystemReader, process.env.FORGE_WRAPPER_PATH);
     }
     return new NetworkWrapperProvider();

Modified:package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/bundler",
-  "version": "4.17.6-next.4",
+  "version": "4.17.6-next.5",
   "description": "Default bundler for Forge apps",
   "license": "UNLICENSED",
   "author": "Atlassian",
   "main": "out/index.js",
@@ -18,9 +18,9 @@
     "@babel/plugin-transform-numeric-separator": "^7.23.4",
     "@babel/plugin-transform-optional-chaining": "^7.23.4",
     "@babel/plugin-transform-react-jsx": "^7.23.4",
     "@babel/preset-typescript": "^7.23.3",
-    "@forge/api": "3.9.0",
+    "@forge/api": "3.9.1-next.0",
     "@forge/babel-plugin-transform-ui": "1.1.18",
     "@forge/cli-shared": "5.4.0-next.4",
     "@forge/lint": "5.3.2-next.4",
     "@forge/util": "1.4.4",

Modified:package/out/config/node.d.ts.map

Index: package/out/config/node.d.ts.map
===================================================================
--- package/out/config/node.d.ts.map
+++ package/out/config/node.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAA6C,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AAO,MAAM,yBAAyB,oBAClB,eAAe,mBACnB,mBAAmB,EAAE,UAAU,aAAa,KAAG,mBA4D5D,CAAC"}
\ No newline at end of file

Modified:package/CHANGELOG.md

too-big

Modified:package/out/config/node.d.ts

Index: package/out/config/node.d.ts
===================================================================
--- package/out/config/node.d.ts
+++ package/out/config/node.d.ts
@@ -2,9 +2,8 @@
 import { CommonWebpackConfig, ConfigBuilder, FunctionsEntryPoint } from './common';
 export declare const NODE_WEBPACK_CONFIG_NAME = "node-runtime";
 export declare const NODE_WEBPACK_USER_CODE_DIR = "bundled";
 export declare const NODE_RUNTIME_VERSION_FILE = "runtime.json";
-export declare const LOCAL_WRAPPER_PATH: string;
 export declare class LocalWrapperNotFoundError extends UserError {
     constructor();
 }
 export declare class WrapperNetworkError extends BaseError {
@@ -22,9 +21,9 @@
 }
 export declare class LocalWrapperProvider implements WrapperProvider {
     private readonly filesystemReader;
     private readonly path;
-    constructor(filesystemReader: FileSystemReader, path?: string);
+    constructor(filesystemReader: FileSystemReader, path: string);
     getNodeRuntimeWrapper(): Promise<WrapperScript>;
 }
 export declare class NetworkWrapperProvider implements WrapperProvider {
     private wrapper;