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

feat(sources): Move sources from @deck.gl/carto #28

Merged
merged 26 commits into from
Nov 12, 2024

Conversation

donmccurdy
Copy link
Member

@donmccurdy donmccurdy commented Oct 9, 2024

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.

@donmccurdy donmccurdy marked this pull request as draft October 9, 2024 20:38
@donmccurdy donmccurdy marked this pull request as ready for review October 30, 2024 18:28
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@donmccurdy
Copy link
Member Author

@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",
Copy link

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

Copy link
Member Author

@donmccurdy donmccurdy Nov 7, 2024

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?

@donmccurdy donmccurdy merged commit 69d138c into main Nov 12, 2024
5 checks passed
@donmccurdy donmccurdy deleted the feat/migrate-sources branch November 12, 2024 19:45
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.

2 participants