Skip to content

Releases: prismicio/prismic-client

v7.3.0

09 Oct 10:55
Compare
Choose a tag to compare
chore(release): 7.3.0

v6.9.0

21 Sep 20:59
Compare
Choose a tag to compare

See #322 for details.

v5.2.0

21 Sep 20:59
Compare
Choose a tag to compare

See #323 for details.

v7.2.0

25 Aug 18:30
Compare
Choose a tag to compare

See CHANGELOG.md for details.

v7.1.1

11 Aug 22:21
Compare
Choose a tag to compare

See CHANGELOG.md for details.

v7.1.0

07 Jun 23:02
Compare
Choose a tag to compare

See CHANGELOG.md for details.

v7.0.1

22 May 23:50
Compare
Choose a tag to compare

See CHANGELOG.md for details.

v7.0.0

17 May 10:00
Compare
Choose a tag to compare

We’re excited to release a new major version of @prismicio/client, the core Prismic package for creating web apps with Prismic and JavaScript.

@prismicio/client v7 combines @prismicio/client, @prismicio/helpers, and @prismicio/types into one package, offering a leaner API with a smaller footprint on your project.

import { createClient, asText, RichTextField } from "@prismicio/client"

// Create a Prismic client
const client = createClient("example-repo-name")

// Query for documents
const page = await client.getByUID("page", "home")

// Convert rich text fields to plain text
const title = asText(page.data.title)
//                             ^ Typed as RichTextField

As a result of the streamlining, @prismicio/helpers and @prismicio/types are now considered deprecated.

Benefits of upgrading

  • One single package now covers core Prismic usage (compared to 3 required before)
  • Deprecated APIs from @prismcio/client v5 and v6 were removed
  • Deprecated APIs from @prismicio/helpers v2 were removed
  • Deprecated APIs from @prismicio/types v0 were removed
  • Improved code-splitting and tree shaking

How to upgrade

Upgrading is straightforward, but requires a few changes to your project.

See the @prismicio/client v7 Migration Guide for instructions.

Any questions?

Please leave any questions about @prismicio/client v7 in the Prismic Community announcement thread.

If you encounter a bug or would like to request a new feature, open an issue on GitHub.

v7.0.0-alpha.5

16 May 09:51
Compare
Choose a tag to compare
v7.0.0-alpha.5 Pre-release
Pre-release
chore(release): 7.0.0-alpha.5

v6.8.0

15 May 20:00
Compare
Choose a tag to compare
chore(release): 6.8.0