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
F
andFT
withExcept
/ExceptT (NonEmptyList ForeignError)
(#87 by @JordanMartinez)Often times, the
F
andFT
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 byF
andFT
.
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
renderForeignError
now renders nested errors correcty (@abhin4v)- The namespace is now
Foreign
rather thanData.Foreign
- The
JSONError
constructor was removed. This library is not for JSON, it was a bad name - useForeignError
instead. toForeign
has been renamed asunsafeToForeign
with 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
/AsForeign
classes - Removal of
parseJSON
as this library is not intended for general JSON parsing
- Removal of
- New functions were added for
readNull
,readUndefined
,readNullOrUndefined
rather than using the newtypes to directIsForeign
choice as it was before - The
(!)
index/property reading operator has been enhanced to work withForeign
orF Foreign
on the left hand side, allowing for chained property reads
v3.2.0
Add instances for Null
, Undefined
and NullOrUndefined
(@felixSchl)