-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(sources): Move sources from @deck.gl/carto #28
Conversation
@padawannn I've reverted the coverage change in this PR and moved that into #29 with more explanation! |
@@ -62,6 +61,7 @@ | |||
}, | |||
"devDependencies": { | |||
"@deck.gl/aggregation-layers": "^9.0.30", | |||
"@deck.gl/carto": "^9.0.30", |
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.
Hmm, i'm wondering.
Shouldn't we remove this dependency?
It seems like now we would have circular dep ... even if in devDepencies
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.
The dev dependency is only here (after this PR) because we need it in examples...
https://github.com/CartoDB/carto-api-client/blob/main/examples/01-pure-js/pure-js.ts
... and it's a bit hard to test the layer sources without that. So it won't be a "circular dependency" for users of either package, I think that should be OK?
Moves functions dealing with the CARTO API from
@deck.gl/carto
into@carto/api-client
, intending that the@deck.gl/carto
module can be more focused on visualization. For backwards compatibility, the@deck.gl/carto
module will depend on@carto/api-client
and re-export the functions it previously provided. The source code in this PR is minimally changed for TypeScript compiler settings and some cleanup; the unit tests required a more extensive rewrite to move from Tape to Vitest.