Skip to content

Releases: printfn/fend

Version 1.2.1

06 Sep 11:00
Compare
Choose a tag to compare

Changes in this version:

Version 1.2.0

02 Jun 11:17
Compare
Choose a tag to compare

Changes in this version:

  • Variable names with underscores can now be correctly referenced
  • Combined abbreviated units are now parsed case-insensitively:
    > 100 kwh
    100 kWh
    > 64 KB
    64 kB
    
  • Add a new configuration option enable-internet-access (defaults to true)
  • Add tbs unit as an abbreviation for tablespoons
  • Add thou unit, representing a thousandth of an inch

Version 1.1.6

03 Apr 11:15
Compare
Choose a tag to compare

Changes in this version:

  • Add cup, tablespoon and teaspoon units (by @elcste)
  • Add bin alias for binary (by @xfnw)
  • Change the internal implementation of exchange rate handlers (by @SekoiaTree)
  • Fix unit test failures on 32-bit systems

Version 1.1.5

05 Feb 21:04
Compare
Choose a tag to compare

Changes in this version:

  • Add @no_trailing_newline attribute, which causes fend to not print a trailing newline after the calculation.

    $ fend @no_trailing_newline 5+5
    10
    

Version 1.1.4

08 Jan 06:27
Compare
Choose a tag to compare

Changes in this version:

  • Add support for subtracting from dates (e.g. @2023-01-08 - 5 days)
  • Fix some trigonometric functions behaving incorrectly when passing in values with units

Version 1.1.3

28 Nov 09:29
Compare
Choose a tag to compare

Changes in this version:

  • Add operators for permutations and combinations (by @frectonz)
    • n permute k or n nPr k: compute the number of k-permutations of n
    • n choose k or n nCr k: number of k-combinations of n
  • Add @noapprox attribute to hide the approx. annotation in the output:
    > pi
    approx. 3.1415926535
    > @noapprox pi
    3.1415926535
    
  • Add @plain_number attribute, to remove approx. and any units. This is especially useful in automated scripts.
    > 5 m / (3 s)
    approx. 1.6666666666 m / s
    > @plain_number 5 m / (3 s)
    1.6666666666
    
  • Add a new date literal syntax, e.g. @2000-01-01
  • Improve visual feedback when using the Telegram bot (by @miki-tebe)
  • Add new SI prefixes quecca, ronna, ronto and quecto (by @frectonz)
  • Add support for 256 (8-bit) colors in the CLI configuration
  • Change !debug to @debug for consistency and improved shell script interoperability

Version 1.1.2

31 Oct 04:24
Compare
Choose a tag to compare

Changes in this version:

  • Add and and or keywords as alternatives to the & and | bitwise operators
  • Add Homebrew package (by @rhysmdnz)
  • Add Chocolatey package (by @dgalbraith)
  • Fix incorrect description of command-line arguments in man page (by @mcint)
  • Support _ in fend-web (stores the previous answer)
  • Improve fend-web performance by serializing/storing variables properly
  • Support case-insensitive currencies
  • Support currency exchange rates in fend-wasm (by @NickGeek)
  • Support using any base currency for exchange rate calculations, not just USD

Version 1.1.1

23 Sep 06:04
Compare
Choose a tag to compare

Changes in this version:

  • Add bitwise operators:
    • &: bitwise AND
    • |: bitwise OR
    • xor: bitwise XOR (^ is already used for exponentiation)
    • <<: left shift
    • >>: right shift

Version 1.1.0

22 Sep 08:43
Compare
Choose a tag to compare

Changes in this version:

  • Automatically download up-to-date currency exchange rates, e.g. when calculating 10 EUR to USD
  • fend can now read directly from files, e.g. fend calculation.txt will read and evaluate the contents of calculation.txt. Multiple files can be specified, as well as combinations of files and expressions.
  • Shebangs (e.g. #!/usr/bin/env fend) no longer result in parse errors
  • You can now use -- to force fend to interpret arguments literally, e.g. fend -- -V is interpreted as -1 volts instead of showing the version number
  • Fix bug where trailing whitespace or comments would result in a parse error
  • Add a man page
  • Add an MSI installer for Windows
  • Remove MSIX installer, which was difficult to use due to it being unsigned
  • Change fend website to https://printfn.github.io/fend
  • Move fend documentation to https://printfn.github.io/fend/documentation
  • Add a fend package to the Windows Package Manager (winget)

Version 1.0.5

14 Aug 00:05
Compare
Choose a tag to compare

Changes in this version:

  • Add a fend-wasm-nodejs NPM package
  • Add a Telegram bot
  • Improve behaviour of percentages (credit to @Techcable), e.g. 5% * 80kg is now 4 kg
  • Add a Markdown-like parsing mode to the WASM API