prismic-react icon indicating copy to clipboard operation
prismic-react copied to clipboard

feat: support slice ID

Open lihbr opened this issue 3 years ago • 2 comments

Types of changes

  • [ ] Chore (a non-breaking change which is related to package maintenance)
  • [ ] Bug fix (a non-breaking change which fixes an issue)
  • [x] New feature (a non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

Add support for Slice IDs, depends on https://github.com/prismicio/prismic-types/pull/45

Checklist:

  • [ ] My change requires an update to the official documentation.
  • [x] All TSDoc comments are up-to-date and new ones have been added where necessary.
  • [x] All new and existing tests are passing.

lihbr avatar Jul 28 '22 09:07 lihbr

size-limit report 📦

Path Size
dist/index.js 5.67 KB (+0.18% 🔺)
dist/index.cjs 7.3 KB (+1.59% 🔺)

github-actions[bot] avatar Jul 28 '22 09:07 github-actions[bot]

Looks good 👍

I left a comment in @prismicio/types about renaming slice_id to id (see comment). If we do that, we'll need to update the property here as well.

angeloashmore avatar Jul 29 '22 02:07 angeloashmore