Notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Breaking changes:
New features:
Bugfixes:
Other improvements:
v7.0.0 - 2022-04-27
Breaking changes:
- Migrate FFI to ES modules (#86 by @kl0tl and @JordanMartinez)
New features:
Bugfixes:
Other improvements:
-
Replace all usages of
FandFTwithExcept/ExceptT (NonEmptyList ForeignError)(#87 by @JordanMartinez)Often times, the
FandFTaliases 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 byFandFT.
v6.0.1 - 2021-04-20
Other improvements:
- Fix warnings revealed by v0.14.1 PureScript release (#85 by @JordanMartinez)
v6.0.0 - 2021-02-26
Breaking changes:
- Added support for PureScript 0.14 and dropped support for all previous versions (#80)
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
unsafeToForeignandunsafeFromForeignwithunsafeCoerce(#72)
v5.0.0 - 2018-05-24
- Updated for PureScript 0.12
renderForeignErrornow renders nested errors correcty (@abhin4v)- The namespace is now
Foreignrather thanData.Foreign - The
JSONErrorconstructor was removed. This library is not for JSON, it was a bad name - useForeignErrorinstead. toForeignhas been renamed asunsafeToForeignwith a comment explaining its intended usage and potential risks
v4.0.1 - 2017-06-08
Fix Show instance for ForeignError (@rightfold)
v4.0.0 - 2017-03-29
- 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/AsForeignclasses - Removal of
parseJSONas this library is not intended for general JSON parsing
- Removal of
- New functions were added for
readNull,readUndefined,readNullOrUndefinedrather than using the newtypes to directIsForeignchoice as it was before - The
(!)index/property reading operator has been enhanced to work withForeignorF Foreignon the left hand side, allowing for chained property reads
v3.2.0 - 2017-01-29
Add instances for Null, Undefined and NullOrUndefined (@felixSchl)
v3.0.1 - 2016-11-14
- Fixed shadowed name warning
v3.0.0 - 2016-10-16
- Updated lists dependency
v2.0.0 - 2016-10-13
- Updated dependecies
Fnow usesExceptand allows for the accumulation of multiple errors when using<|>in parsing
v1.1.0 - 2016-08-09
- Added
AsForeignclass and combinators for writing values asForeign(@puffnfresh)
v1.0.0 - 2016-06-01
This release is intended for the PureScript 0.9.1 compiler and newer.
Note: The v1.0.0 tag is not meant to indicate the library is “finished”, the core libraries are all being bumped to this for the 0.9 compiler release so as to use semver more correctly.
v1.0.0-rc.1 - 2016-03-25
- Release candidate for the psc 0.8+ core libraries
v0.7.2 - 2015-11-20
- Fixed shadowed type variable warnings (@tfausak)
v0.7.1 - 2015-11-09
Fix a type error.
v0.7.0 - 2015-08-13
- Updated dependencies
v0.6.0 - 2015-08-02
- Updated dependencies
v0.5.1 - 2015-07-19
- Added
IsForeigninstances forIntandChar(@anttih)
v0.5.0 - 2015-06-30
This release works with versions 0.7.* of the PureScript compiler. It will not work with older versions. If you are using an older version, you should require an older, compatible version of this library.
v0.5.0-rc.2 - 2015-06-15
Rename ! operator to ix.
v0.5.0-rc.1 - 2015-06-10
Initial release candidate of the library intended for the 0.7 compiler.
v0.4.2 - 2015-03-26
unsafeReadTaggedis now exposed (@garyb)
v0.4.1 - 2015-03-20
Updated docs
v0.4.0 - 2015-02-21
This release requires PureScript v0.6.8 or later
- Updated dependencies
v0.3.0 - 2015-01-10
- Made dependency versions explicit (@garyb)
v0.2.3 - 2014-12-11
- Added ES3 fallbacks for
Array.isArrayandObject.keys(@davidchambers)
v0.2.2 - 2014-11-19
v0.2.1 - 2014-11-18
IsForeigninstance forForeign. (@MichaelXavier)
v0.2.0 - 2014-08-20
Quite a few breaking changes to both names and types:
- A type for errors instead of using string concatenation.
- Breaking a few functions out into their own submodules.
- Adding types and instances to handle null-like values.
- Use the
Eithermonad instead of theForeignParsermonad.
v0.1.6 - 2014-08-09
- Removed unused dependency on
purescript-globals(@garyb)
v0.1.5 - 2014-08-08
- Removed
ReadForeign Errorinstance afterErrorwas removed fromGlobal(@AitorATuin)
v0.1.4 - 2014-07-29
- Added
index(@philopon) - Rewrote some calls to
runFnXto trigger inlining optimisation (@garyb)
v0.1.3 - 2014-07-26
- Updated FFI code to work for changes in codegen (@garyb)
- Added
keysto read a list of key names from an object (@andreypopp) - Fixed bug in
propthat may have resulted in runtime errors when the object is null (@andreypopp)
v0.1.2 - 2014-06-02
- Added
ReadForeign Errorinstance (garyb)