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

[v8] Align type names with base map libraries #2474

Merged
merged 1 commit into from
Jan 26, 2025
Merged

Conversation

Pessimistress
Copy link
Collaborator

See upgrade-guide.md

Docs will be updated in a separate PR.

| RasterDemSource;
// Sources
AnySourceData as SourceSpecification,
CanvasSourceRaw as CanvasSourceSpecification,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you help me understand why we're aliasing some of these specifications?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will match type names from @types/mapbox-gl (unofficial types) with the latest mapbox-gl official type names.

modules/react-mapbox/src/types/internal.ts Show resolved Hide resolved
Copy link
Contributor

@chrisgervang chrisgervang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I think I get it. This is aliasing mapbox-legacy to the current mapbox.

Edit: And unaliasing maplibre. Current mapbox and maplibre types match names for the most part. Correct?

@Pessimistress
Copy link
Collaborator Author

Mapbox v3 and Maplibre v5 type naming conventions are mostly the same, aside from actual API difference, and some niche exceptions.

@Pessimistress Pessimistress merged commit 0453ab8 into next Jan 26, 2025
2 checks passed
@Pessimistress Pessimistress deleted the x/types-align branch January 26, 2025 19:27
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