Skip to content

Releases: prismicio/prismic-client

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

v7.0.0-alpha.4

11 May 00:45
Compare
Choose a tag to compare
v7.0.0-alpha.4 Pre-release
Pre-release
chore(release): 7.0.0-alpha.4

v7.0.0-alpha.3

28 Apr 19:39
Compare
Choose a tag to compare
v7.0.0-alpha.3 Pre-release
Pre-release
chore(release): 7.0.0-alpha.3

v7.0.0-alpha.2

28 Apr 19:38
Compare
Choose a tag to compare
v7.0.0-alpha.2 Pre-release
Pre-release
chore(release): 7.0.0-alpha.2

v7.0.0-alpha.1

28 Apr 19:38
Compare
Choose a tag to compare
v7.0.0-alpha.1 Pre-release
Pre-release
chore(release): 7.0.0-alpha.1

v6.7.3

19 Dec 17:01
Compare
Choose a tag to compare
chore(release): 6.7.3

v6.7.2

19 Dec 14:39
Compare
Choose a tag to compare
chore(release): 6.7.2

v7.0.0-alpha.0

14 Oct 09:52
Compare
Choose a tag to compare
v7.0.0-alpha.0 Pre-release
Pre-release
chore(release): 7.0.0-alpha.0