Skip to content

Releases: evologi/fixed-width

v1.2.1

26 Sep 05:54

Choose a tag to compare

Bug fix

  • Fix options.from and options.to regression

v1.2.0

15 Sep 13:17

Choose a tag to compare

Features

  • Support new trim: "auto" option that trims by field's alignment:
    • trim left if right-aligned
    • trim right if left-aligned
  • Support for field-level trim option

Specials thanks

v1.1.0

27 Jun 12:47

Choose a tag to compare

Features

  • Implement per-field stringifier (#4) thanks to @javcasas

v1.0.1

20 Oct 10:45

Choose a tag to compare

Fix

  • Fix missing types export for ESM packages

v1.0.0

12 Jun 09:16

Choose a tag to compare

Breaking changes

  • Change return type for Stringifier's methods

Features

  • Add skipEmptyLines option
  • Add allowLongerLines option
  • Add allowShorterLines option
  • Deprecate relax option (still used, removed from docs)
  • Add support for encoded text (non pure ASCII)
  • Support natively sync and async iterables (inside parse and stringify functions)
  • Exported FixedWidthError class constructor

v0.3.0

16 May 12:40

Choose a tag to compare

Features

  • Allow to declare only a subset of all fields
  • Guess the End Of Line string automatically

v0.2.1

29 Apr 10:52

Choose a tag to compare

Features

  • Correctly handle Node.js streaming errors.

v0.2.0

31 Mar 14:39

Choose a tag to compare

Breaking changes

  • Avoid trimming while serializing (stringify)

New features

  • Add support to Node.js 14
  • Field level padding
  • Custom string trimming
  • Value cast while parsing