-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(chore): SYS type declaration #398
Conversation
It turned out changes made earlier to `SYS.contentType` are too strict. Even though, there are rare cases where `contentType` can be missing, we will keep it required for now.
Codecov Report
@@ Coverage Diff @@
## master #398 +/- ##
=======================================
Coverage 61.90% 61.90%
=======================================
Files 11 11
Lines 1672 1672
Branches 270 270
=======================================
Hits 1035 1035
Misses 637 637 Continue to review full report at Codecov.
|
@marcolink This is the one change that breaks our build 🙂 |
Contentful changed their typings for `space` in a minor version update, meaning that users of this library had incorrect types. BREAKING CHANGE: Drops compatibility with `contentful` versions lower than 7.14.2 Closes #26 but blocked by contentful/contentful.js#398
Contentful changed their typings for `space` in a minor version update, meaning that users of this library had incorrect types. BREAKING CHANGE: Drops compatibility with `contentful` versions lower than 7.14.2 Closes #26 but blocked by contentful/contentful.js#398
Make the newly added field space optional.
@tomimaen I changed |
@marcolink Thank you for your fast fix on this one! I can confirm that the build is successful with this change 👍 |
🎉 This PR is included in version 7.14.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Im not sure if somebody cares but i do not like the changes to contentType made here. The "rare cases" can be produced very reliable imho.
This is a case that can happen eventually. |
Description
It turned out changes made earlier to
SYS.contentType
are too strict.Even though, there are rare cases where
contentType
can be missing, we will keep it required for now.This problem has been reported in context of another PR
Update:
We also identified
space
as an optional field and added the changes to this PR.