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.Api
object - 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 thelinkResolver
function; now it will have to expect a fullctx
object that contains thelinkResolver
function, so that all of the context can be used to build links (for instancectx.ref
).- all
linkResolver
functions 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, inasHtml
calls 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).