-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: Update @mapeo/schema, fix breaking changes related to Icon #548
Conversation
mmhm, still need to fix some type errors on the icon unit tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! One small nitpick suggestion.
Co-authored-by: Evan Hahn <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to merge after fixing the type error.
src/fastify-plugins/icons.js
Outdated
value | ||
) | ||
) { | ||
if (!VALID_PIXEL_DENSITIES.includes(value)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would fix this error by casting value
to any
.
if (!VALID_PIXEL_DENSITIES.includes(value)) { | |
if (!VALID_PIXEL_DENSITIES.includes(/** @type {any} */ (value))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mhmh, I also needed to change the signature of the fn to /** @param {any} value */
@EvanHahn for this to be merged we need a new version of mapeo-schema published. It makes sense that that happens after adding tracks. After that I'll remove the locally built mapeo-schema comitted here and then we can merge |
* feat: add track data type * Add e2e CRUD tests for tracks --------- Co-authored-by: Gregor MacLennan <[email protected]>
This should fix #547 . This PR basically covers breaking changes on mapeo-schema brought by this (basically removing
pixelDensity
fromIcon
s whosemimeType
is"image/svg+xml"
)Before merging, a new version of @mapeo/schema should be published, and the tar.gz on this branch should be removed