Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Releases: prismicio/javascript-kit

1.0.6

03 Feb 19:39
Compare
Choose a tag to compare
1.0.6 Pre-release
Pre-release

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

03 Feb 19:39
Compare
Choose a tag to compare
1.0.5 Pre-release
Pre-release

Potentially breaking changes

  • asHtml() used to be passed the linkResolver function; now it will have to expect a full ctx object that contains the linkResolver function, so that all of the context can be used to build links (for instance ctx.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, in asHtml 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() on StructuredText, including embeds, lists and spans (strongs, ems, links).