Skip to content

Releases: purescript/purescript-foreign

v7.0.0

Choose a tag to compare

@JordanMartinez JordanMartinez released this 27 Apr 21:54
2dd222d

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

Choose a tag to compare

@thomashoneyman thomashoneyman released this 21 Apr 02:29

Other improvements:

v6.0.0

Choose a tag to compare

@thomashoneyman thomashoneyman released this 26 Feb 19:03
2f5fd0e

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

Choose a tag to compare

@garyb garyb released this 24 May 10:57
3b8f3ae
  • 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

Choose a tag to compare

@paf31 paf31 released this 08 Jun 15:57

Fix Show instance for ForeignError (@rightfold)

v4.0.0

Choose a tag to compare

@garyb garyb released this 29 Mar 00:46
  • 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

Choose a tag to compare

@paf31 paf31 released this 29 Jan 02:55

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

v3.0.1

Choose a tag to compare

@garyb garyb released this 14 Nov 17:51
  • Fixed shadowed name warning

v3.0.0

Choose a tag to compare

@garyb garyb released this 16 Oct 18:14
  • Updated lists dependency

v2.0.0

Choose a tag to compare

@garyb garyb released this 13 Oct 19:50
  • Updated dependecies
  • F now uses Except and allows for the accumulation of multiple errors when using <|> in parsing