v0.56.0
This release updates the underlying bs-abstract dependency to 1.0 and allows Relude to compile with Bucklescript 7.1+.
🚨 Breaking changes
Array.emptyhas been removed, as its type is no longerarray('a), but it now introduces weak polymorphism. Bucklescript made this change to work around unsoundness issues withJs.Array.push. You can read more about this change on the Bucklescript blog and the related bs-abstract issue.- As a result of removing
empty, Array no longer implementsMONOID_ANY,PLUS,ALTERNATIVE,MONAD_ZERO, andMONAD_PLUS. - More fallout from this change: constructing a
Relude.NonEmptynow does not require some of these typeclass instances (and instead uses a lazy() => t('a)empty function). This actually makesNonEmptyeasier to construct.
✨ New Stuff
- The underlying signature for
Fold_Map_AnyandFold_Map_Plusare now more flexible, allowing you to map both the container type and the inner type.