Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions configs/jsactions/rollup-plugin-bigjs-import-replacer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ export function bigJsImportReplacer() {
const [filename] = Object.keys(bundle);
const fileInfo = bundle[filename];

// Remove Big import entirely - mxbuild will add it in the header at line 8
fileInfo.code = fileInfo.code.replace(/^import\s*\{\s*Big\s*\}\s*from\s*['"]big\.js['"];?\s*\r?\n/m, "");
// Keep the Big import (Studio Pro does not re-add it at runtime), normalized to Studio Pro's quote style
fileInfo.code = fileInfo.code.replace(
/^import\s*\{\s*Big\s*\}\s*from\s*['"]big\.js['"];?/m,
`import { Big } from "big.js";`
);
}
};
}
4 changes: 4 additions & 0 deletions packages/jsActions/mobile-resources-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- Fixed an issue where actions using decimal values threw a "Big is not defined" error at runtime.

## [11.3.14] Native Mobile Resources - 2026-10-8

## [2.1.1] Gallery
Expand Down
5 changes: 5 additions & 0 deletions packages/jsActions/nanoflow-actions-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- Fixed an issue where the "Get straight line distance" action threw an error at runtime.
- Fixed an issue where actions using decimal values threw a "Big is not defined" error at runtime.

## [6.2.3] Nanoflow Commons - 2026-9-2

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { Big } from "big.js";

// BEGIN EXTRA CODE

type DistanceUnit = "KILOMETER" | "STATUTE_MILE" | "NAUTICAL_MILE";

function deg2rad(deg: Big): Big {
return deg.times(Math.PI / 180);
}
Expand All @@ -23,6 +21,8 @@ function kmToNauticalMile(km: Big): Big {
return km.div(1.852);
}

type DistanceUnit = "KILOMETER" | "STATUTE_MILE" | "NAUTICAL_MILE";

// END EXTRA CODE

/**
Expand Down
Loading