github bornova/numara-calculator v8.2.0

one hour ago

New Features

  • Mixed input format (Experimental): Added a new toggle under Settings → Format → Numbers that accepts all four number formats (1,234.56, 1.234,56, 1 234.56, and 1 234,56) interchangeably in input expressions while continuing to format answers with your selected Number format.
    • Requires ; as the argument separator in functions (reflected in function tooltips and the Settings caution banner).
    • Resolves ambiguous 3-digit values (1,234 / 1.234) using the decimal convention of your selected Number format, while keeping scientific notation mantissas (e.g. 1.234e-5, 1,234e5) unambiguous.
    • Adds zero parsing overhead when disabled.

Security Improvements

  • Worker-only UDF/UDU evaluation: Moved user-defined unit (UDU) validation and item extraction into the locked-down calculation Web Worker, removed main-thread UDU reapplication, and disabled the main-thread eval fallback when saving user-defined functions (UDFs) in Code mode.
  • Electron folder sync hardening: Persisted the user-selected sync directory in main-process config, enforced directory authorization across all sync IPC handlers and the sync folder context menu, and blocked symbolic links on sync writes, renames, and deletes.
    • Upgrade note: Desktop users upgrading with Folder Sync already enabled will need to re-select their sync folder once in Settings to authorize it in the main process.

Bug Fixes

Folder Sync & Storage

  • Fixed external file renames combined with edits silently discarding the file's new content.
  • Cancelled pending 500 ms debounced writes when external edits or deletions arrive, preventing deleted files from being resurrected or external edits from being overwritten.
  • Serialized folder sync passes and local file operations so concurrent creates or renames are not treated as external deletions during an in-flight directory read.
  • Fixed case-only page renames on case-sensitive filesystems (Linux) overwriting colliding .num files by verifying file identity via inode (dev/ino).
  • Prevented QuotaExceededError during localStorage writes or v7→v8 migration from mutating the in-memory store cache or deleting legacy keys before persistence succeeds.

Calculation Engine & Formatting

  • Fixed the Peruvian Sol currency symbol (S/) hijacking division by user variables named S (S/2, S/x) and SI Siemens units (10 S/m, 10 S/2) while preserving currency syntax like S/100 to USD.
  • Fixed Fraction-mode currency formatting garbling multi-digit denominators (e.g. 1/10 USD, 5/23 EUR).
  • Fixed Binary, Octal, and Hexadecimal notation modes being ignored when Numeric output is set to Fraction.
  • Fixed line continuation failing on Array values (matrixType: 'Array'), unwrapping single-element arrays, and losing precision on large BigInt values.
  • Fixed user variables named total, subtotal, avg, or subavg being shadowed by built-in aggregation keywords in % of and fallback expressions.
  • Fixed incremental evaluation caching breaking mutable array/matrix/object aliasing across subsequent edits.
  • Fixed plot axis domain inputs in comma-decimal formats (1.234,56, 1 234,56) to format with the active decimal separator so 3-decimal bounds round-trip accurately.
  • Preserved function syntax for legacy method-shorthand UDFs using arguments or this during migration.

Maintenance & Dependencies

  • Updated dev dependencies: electron to 45.5.0, lucide to 1.84.0, eslint to 10.16.0, and @bornova/colorpicker to 1.1.1.
  • Added unit and regression test coverage for mixed input, sync hardening, store/migration safety, and calculation engine fixes, and updated wiki documentation.

Don't miss a new numara-calculator release

NewReleases is sending notifications on new releases.