Closed lihbr closed 3 years ago
Merging #18 (92dfa3b) into master (b17ae84) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #18 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 59 40 -19
=========================================
- Hits 59 40 -19
Impacted Files | Coverage Ξ | |
---|---|---|
src/fields.ts | 100.00% <100.00%> (ΓΈ) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update b17ae84...92dfa3b. Read the comment docs.
These changes look good to me π
@angeloashmore, should we proceed the same way with LinkType/EmbedType? Not sure those were impacted the same way π€
For consistency, I think we should change them to objects as well. I have not encountered issues with LinkType or EmbedType in the same way I did with RichTextNodeType, however. Up to you!
I still need to update other enum types, will do next week!
Should be good to go!
Awesome! I just converted the Custom Type enums as well.
Published in v0.1.18
π
Great! Didn't do it for CTs as I wasn't sure of a benefit for them, but well, it's done π€·
Types of changes
Description
Changed the
enum
to a looser{} as const
object forRichTextNodeType
. This should prevent compatibility issues when relying on different versions of@prismicio/types
.@angeloashmore, should we proceed the same way with
LinkType
/EmbedType
? Not sure those were impacted the same way π€Will do the rolling out to kits using
RichTextNodeType
once merged πResolves: #16
Checklist:
π