[ ] Chore (a non-breaking change which is related to package maintenance)
[x] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
This PR restores compatibility with @prismicio/client v6 as a peer dependency.
prismic-ts-codegen v0.1.12 makes use of @prismicio/client v7's enums and types.
This PR replaces enum usage with strings (which remains type-checked). It also inlines @prismicio/client v7 as a dependency which should only be used at build time for types.
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.
Types of changes
Description
This PR restores compatibility with
@prismicio/client
v6 as a peer dependency.prismic-ts-codegen
v0.1.12 makes use of@prismicio/client
v7's enums and types.This PR replaces enum usage with strings (which remains type-checked). It also inlines
@prismicio/client
v7 as a dependency which should only be used at build time for types.Checklist: