Skip to content

Fix geogrid version error#107

Merged
giswqs merged 1 commit intomainfrom
grid
Nov 7, 2025
Merged

Fix geogrid version error#107
giswqs merged 1 commit intomainfrom
grid

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Nov 7, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 7, 2025 15:06
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 7, 2025

@github-actions github-actions Bot temporarily deployed to pull request November 7, 2025 15:07 Inactive
@giswqs giswqs merged commit 45b47d4 into main Nov 7, 2025
13 checks passed
@giswqs giswqs deleted the grid branch November 7, 2025 15:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the geogrid-maplibre-gl library references from a pinned version (5.10.0) to using the @latest tag for both the JavaScript module and CSS stylesheet imports.

  • Changed geogrid-maplibre-gl JavaScript import from version 5.10.0 to @latest
  • Changed geogrid-maplibre-gl CSS stylesheet reference from version 5.10.0 to @latest

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

try {
// Load GeoGrid as ES module via dynamic import
const geoGridModule = await import('https://unpkg.com/geogrid-maplibre-gl@5.10.0');
const geoGridModule = await import('https://unpkg.com/geogrid-maplibre-gl@latest');
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

Using @latest for external dependencies is not recommended as it can lead to unpredictable behavior and breaking changes. The application could unexpectedly break when a new version of geogrid-maplibre-gl is released. Consider pinning to a specific version (e.g., @5.10.0 or a newer specific version) to ensure reproducible builds and stability.

Copilot uses AI. Check for mistakes.
const geogridCSS = document.createElement('link');
geogridCSS.rel = 'stylesheet';
geogridCSS.href = 'https://unpkg.com/geogrid-maplibre-gl@5.10.0/dist/geogrid.css';
geogridCSS.href = 'https://unpkg.com/geogrid-maplibre-gl@latest/dist/geogrid.css';
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

Using @latest for the CSS file creates a version mismatch risk with the JavaScript module import. Both resources should use the same pinned version to ensure compatibility between the JavaScript library and its stylesheets.

Copilot uses AI. Check for mistakes.
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