Releases: purescript/purescript-foreign
Releases · purescript/purescript-foreign
v7.0.0
Breaking changes:
- Migrate FFI to ES modules (#86 by @kl0tl and @JordanMartinez)
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
Other improvements:
- Fix warnings revealed by v0.14.1 PureScript release (#85 by @JordanMartinez)
v6.0.0
Breaking changes:
- Added support for PureScript 0.14 and dropped support for all previous versions (#80)
New features:
Bugfixes:
Other improvements:
v5.0.0
- 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
Fix Show instance for ForeignError (@rightfold)
v4.0.0
- 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
Add instances for Null, Undefined and NullOrUndefined (@felixSchl)