Skip to content

Releases: purescript/purescript-foreign

v7.0.0

27 Apr 21:54
2dd222d
Compare
Choose a tag to compare

Breaking changes:

Other improvements:

  • Replace all usages of F and FT with Except/ExceptT (NonEmptyList ForeignError) (#87 by @JordanMartinez)

    Often times, the F and FT aliases did more to hinder usage of this library than help. These aliases
    haven't been deprecated, but usage of them is now discouraged. All code in the library now uses
    the full type that is aliased by F and FT.

v6.0.1

21 Apr 02:29
Compare
Choose a tag to compare

Other improvements:

v6.0.0

26 Feb 19:03
2f5fd0e
Compare
Choose a tag to compare

Breaking changes:

  • Added support for PureScript 0.14 and dropped support for all previous versions (#80)

New features:

Bugfixes:

Other improvements:

  • Migrated CI to GitHub Actions and updated installation instructions to use Spago (#81)
  • Added a CHANGELOG.md file and pull request template (#82, #83)
  • Replaced unsafeToForeign and unsafeFromForeign with unsafeCoerce (#72)

v5.0.0

24 May 10:57
3b8f3ae
Compare
Choose a tag to compare
  • Updated for PureScript 0.12
  • renderForeignError now renders nested errors correcty (@abhin4v)
  • The namespace is now Foreign rather than Data.Foreign
  • The JSONError constructor was removed. This library is not for JSON, it was a bad name - use ForeignError instead.
  • toForeign has been renamed as unsafeToForeign with a comment explaining its intended usage and potential risks

v4.0.1

08 Jun 15:57
Compare
Choose a tag to compare

Fix Show instance for ForeignError (@rightfold)

v4.0.0

29 Mar 00:46
Compare
Choose a tag to compare
  • Updated for PureScript 0.11
  • The library has been drastically simplified to focus on its core use; validating and extracting data from foreign values. This involves changes such as:
    • Removal of IsForeign / AsForeign classes
    • Removal of parseJSON as this library is not intended for general JSON parsing
  • New functions were added for readNull, readUndefined, readNullOrUndefined rather than using the newtypes to direct IsForeign choice as it was before
  • The (!) index/property reading operator has been enhanced to work with Foreign or F Foreign on the left hand side, allowing for chained property reads

v3.2.0

29 Jan 02:55
Compare
Choose a tag to compare

Add instances for Null, Undefined and NullOrUndefined (@felixSchl)

v3.0.1

14 Nov 17:51
Compare
Choose a tag to compare
  • Fixed shadowed name warning

v3.0.0

16 Oct 18:14
Compare
Choose a tag to compare
  • Updated lists dependency

v2.0.0

13 Oct 19:50
Compare
Choose a tag to compare
  • Updated dependecies
  • F now uses Except and allows for the accumulation of multiple errors when using <|> in parsing