Releases: louiss0/forastro
Releases · louiss0/forastro
Release @forastro/utilities 4.3.8
Fixed
- Type for
getCollections
to represent real overload for it usesEntryIsNotADraft
instead ofCollectionEntry
.
Release @forastro/utilities 4.3.7
Fixed
- If
<Projector/>
doesn't render a default slot it won't throw an error.
Release @forastro/utilities 4.3.5
Fixed
- Make sure the
executeIfElse()
checks if the object is one with only if else options.
and the other two functions don't exist.
Release @forastro/utilities 4.3.4
Fixed
- Remove return statement from templater.
Changed
- Use
isObject()
to check if props from<Templater/>
and<Projector/>
are objects.
Release @forastro/utilities 4.3.3
Fixed
- Correct statement for checking whether templater props is an object with keys.
Release @forastro/utilities 4.3.2
Fixed
<Templater/>
props were not passed to<Projector/>
when not empty.
Changed
- Only the default slot is passed from
<Projector/>
to<Templater/>
. getCollections()
is turned into an overload.
Release @forastro/utilities 4.3.1
Fixed
- Remove condition from
<Projector/>
that checks if a slot is
a function while templater has props with keys in them.
Release @forastro/utilities 4.3.0
Changed
<Projector/>
sends all slots to<Templater/>
it receives all of them.
Fixed
- Code to check if projector uses a slot when Templater passes props
is now changed since props are always an object no matter what.
Release @forastro/utilities 4.2.0
Changed
Templater
andProjector
pass all props to each other and don't require context.- Props sent from
Templater
orProjector
are shallow readonly.
Release @forastro/utilities 4.1.3
Fixed
- Removed assertion from
executeIf
andthrowIf
executeUnless
andthrowUnless
returnassert condition
- Conditional functions no longer require a boolean at all.