This repository was archived by the owner on Dec 14, 2023. It is now read-only.
Releases: prismicio/javascript-kit
Releases · prismicio/javascript-kit
1.0.6
Potentially breaking changes
- None
Bugfixes
- Fixed issues with the embed fragments, and
Prismic.Fragments.Embed.asHtml() - Fixed issues with the "Link.file" and "Link.image" types of links (which now have their own classes)
- Previous slugs were inaccessible for a document (therefore, it was impossible in the projects to redirect a document properly when the slug is simply obsolete); now in new fields
Prismic.Doc.slugs
New features
- Access to the repository's tags and types in the
Prismic.Apiobject - Support for bower
- Waiting for the JSDoc bug to be fixed, the documentation within the code and in the README was much improved
1.0.5
Potentially breaking changes
asHtml()used to be passed thelinkResolverfunction; now it will have to expect a fullctxobject that contains thelinkResolverfunction, so that all of the context can be used to build links (for instancectx.ref).- all
linkResolverfunctions are also expected to receive two parameters, the context and the current document we're trying to resolve:linkResolver(ctx, doc). Previously,linkResolver(doc)was tolerated, but the underlying kit didn't know what to do with it when it was passed to it, inasHtmlcalls for instance.
Bugfixes
- Calling
SearchForm.query('')(with an empty string) used to generate an error 500, now it simply ignores the call, as should be.
New features
- Full support of
asHtml()onStructuredText, including embeds, lists and spans (strongs, ems, links).