-
-
Notifications
You must be signed in to change notification settings - Fork 707
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
Remove duplicate mapboxgl-css classes #1575
Conversation
Bundle size report: Size Change: -927 B
ℹ️ View DetailsNo major changes |
Great, I would consider adding to the readme a section where one could use an older version of the css file (form some CDN) in order to keep backwards compatibility, but that this file may not work for future versions. |
Does this require version 3 now? |
I updated the readme to be a bit more contemporary because for the migration guide it kind of assumed that people were using Mapbox v1 which can't be assumed anymore. It's arguably already-deprecated classes that we remove, so in that context, I think it's okay to have it in 2.x. |
I'll go through https://maplibre.org/maplibre-gl-js-docs/plugins/ to assess if any of the plugins need a PR. |
It is a breaking change and requires a major version bump I think. |
I agree. Let's see if we can introduce other breaking changes before releasing a new version so that we do less breaking changes in the future, if possible. |
The unit tests did not seem to cover the mapbox css stuff. Do they cover the maplibre css stuff? |
Many of our unit tests use the maplibregl- classes to query etc., whereas none of them used the mapboxgl-. |
But i.e. navigation_control.ts doesn't have unit tests at all right now, and it uses the classes, but the jest coverage report picks up on it now. |
The addition of the mapbox css classes was a mitigation to ease the transition to maplibre. The original state was that we replaced all usages of mapbox with maplibre and only after that we added back the mapbox prefix to the css, so yes, it wasn't tested as this was an after thought basically... |
These duplicate classes were introduced to bring improved backward compatibility to the 1.x release. This cleanup reverts that, which was intended to happen with the v2 release where we would start looking forward. See #203, #83