Releases: clay/handlebars
Add `try/catch` to `read` helper
Add a try/catch
to the read
helper. Previously, if a component template tried to read
an asset that did not exist, the entire page would fail. Now, a log is sent to clay-log
but the page will render as expected.
fix dependency
moving date-fns
to be a dependency (rather than dev-dependency) to fix compatibility issues with other modules such as amphora-html
Upgrading handlebars
This upgrades handlebars. For some reason, v4.3 of handlebars is special. When the backend (amphora) uses a version > 4.3 and the frontend (kiln) uses a version < 4.3, it goes crazy. This breaking change is to hopefully normalize handlebars at v4.7.6 across all dependencies.
NOTE This was constructed off of v3.3.1
and not off of v4.0.0
, so when upgrading from 4.0.0, we might need to do additional testing.
Dependency bump
Bump dependencies for security fix.
Security Patch
v3.2.6 3.2.6
sustainable-sourcing
- prevent
handlebars-template-loader
from trying to apply magic to<img src="">
NaNny-State
- instead of erroring, pass NaN as a string from
num
#49 (thanks, @byronhulcher!) - instead of erroring, return falsy for undefined / null
includes
inclusivity
- BREAKING -
includes
helper will not throw errors anymore when passednull
/undefined
/other falsy values. This allows you to useincludes
against more kinds of user-generated data safely.
clayreadme
- update readme to reflect new name
clayhandlebars
- renames
nymag-handlebars
toclayhandlebars
- migrates repo from
nymag/nymag-handlebars
toclay/handlebars