Skip to content
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

Merged
merged 14 commits into from
Apr 17, 2024

Conversation

tomasciccola
Copy link
Contributor

@tomasciccola tomasciccola commented Apr 9, 2024

This should fix #547 . This PR basically covers breaking changes on mapeo-schema brought by this (basically removing pixelDensity from Icons whose mimeType 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

@tomasciccola tomasciccola self-assigned this Apr 9, 2024
@tomasciccola tomasciccola changed the title update some types, install locally generated mapeo-schema chore: Update @mapeo/schema, fix breaking changes related to Icon Apr 10, 2024
src/icon-api.js Outdated Show resolved Hide resolved
@tomasciccola tomasciccola marked this pull request as ready for review April 15, 2024 18:19
@tomasciccola tomasciccola requested a review from EvanHahn April 15, 2024 18:19
@tomasciccola
Copy link
Contributor Author

mmhm, still need to fix some type errors on the icon unit tests

Copy link
Contributor

@EvanHahn EvanHahn left a 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.

src/fastify-plugins/icons.js Outdated Show resolved Hide resolved
src/icon-api.js Show resolved Hide resolved
src/icon-api.js Show resolved Hide resolved
Copy link
Contributor

@EvanHahn EvanHahn left a 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.

value
)
) {
if (!VALID_PIXEL_DENSITIES.includes(value)) {
Copy link
Contributor

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.

Suggested change
if (!VALID_PIXEL_DENSITIES.includes(value)) {
if (!VALID_PIXEL_DENSITIES.includes(/** @type {any} */ (value))) {

Copy link
Contributor Author

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 */

@tomasciccola
Copy link
Contributor Author

@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

gmaclennan and others added 5 commits April 17, 2024 10:18
* feat: add track data type

* Add e2e CRUD tests for tracks

---------

Co-authored-by: Gregor MacLennan <[email protected]>
* main:
  chore: update Drizzle
  chore: update undici to latest version (#565)
  chore: run Prettier in tests (#557)
  chore: remove unused types (#562)
@gmaclennan gmaclennan merged commit 6e71c8d into main Apr 17, 2024
4 checks passed
@gmaclennan gmaclennan deleted the chore/updateMapeoSchema branch April 17, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update @mapeo/schema, fix breaking changes related to Icon schema
3 participants