Skip to content

build(deps): bump jsvectormap from 1.6.0 to 1.7.0 #11978

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 1, 2025

Bumps jsvectormap from 1.6.0 to 1.7.0.

Release notes

Sourced from jsvectormap's releases.

v1.7.0

  • feat(maps): add Brazil map (#160) (f13156c)
  • feat: add setSelectedMarkers and fix element events (#162 (fa3208b))
  • refactor: rename jsvectormap.js to jsvectormap.esm.js (afce9da)
  • refactor: drop class definition comment from classes (#164 (a87a1bb))
  • feat(lines): add curved lines with curvature option (#165) (79ba655)
  • fix(lines): programmatic creation of lines fails (#168) (b74d42f)
  • refactor: enhance marker and line components (#169) (74d2912)
  • refactor: replace deprecated pageY/XOffset with scrollY/X (#170) (1362f18)
  • chore: replace class with id (c172982)
  • fix: hide tooltip via prevent default (#180) (38dc963)
  • feat: support ability to customize zoom buttons (#182) (c13b5d4)
  • fix: panning to scroll on mobile devices #171 (#183) (3083525)
  • refactor: missing using zoomInOption variable at #182 (c2ef7e7)
  • fix: tooltip might be undefined see #126 #179 (#186) (c2cfb10)
  • refactor: use css variables to override style #191 (bb1581e)
  • fix(tooltip): internal text overrides text from listeners #192 (82dbea0)
  • revert: revert old lineStyle config to maintain compatibility #194 (7f331be)
  • fix(lines): curves distorted when it's zero value #195 (70ad831)
  • refactor: enhance style and drop unwanted props #197 (df12f2f)
Commits
  • 5f77186 chore: update readme and package.json
  • d8467ee docs: update documentation completely (#198)
  • df12f2f refactor: enhance style and drop unwanted props (#197)
  • 70ad831 fix(lines): curves distorted when it's zero value (#195)
  • 7f331be revert: revert old lineStyle config to maintain compatibility (#194)
  • 82dbea0 fix(tooltip): internal text overrides text from listeners (#192)
  • bb1581e refactor: use css variables to override style (#191)
  • c2cfb10 fix: tooltip might be undefined see #126 #179 (#186)
  • e308ad8 build: update package dependencies (#187)
  • c2ef7e7 refactor: missing using zoomInOption variable at #182
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [jsvectormap](https://github.com/themustafaomar/jsvectormap) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/themustafaomar/jsvectormap/releases)
- [Commits](themustafaomar/jsvectormap@v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: jsvectormap
  dependency-version: 1.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file JavaScript labels Jun 1, 2025
@dependabot dependabot bot requested a review from a team as a code owner June 1, 2025 10:43
@dependabot dependabot bot added JavaScript dependencies Pull requests that update a dependency file labels Jun 1, 2025
@github-project-automation github-project-automation bot moved this to To discuss and validate in 🍊 Open Food Facts Server issues Jun 1, 2025
Copy link
Member

@hangy hangy left a comment

Choose a reason for hiding this comment

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

Looks like jsvectormap doesn't use semver. Some of the changes like

require manual testing/review of our code.

@hangy hangy requested review from a team and Copilot June 1, 2025 12:57
Copy link
Contributor

@Copilot 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 upgrades the jsvectormap dependency to v1.7.0 and refactors the map display code to use ESM modules.

  • Bumped jsvectormap from ^1.6.0 to ^1.7.0 in package.json.
  • Replaced legacy <script> includes with type="module" imports in HTML templates and in the Perl renderer.
  • Converted display-list-of-tags to an ESM module and updated the Gulp task to copy the .esm.js build.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/integration/expected_test_results/web_html/world-countries.html Replaced inline map setup with a <script type="module"> import of display-list-of-tags.esm.js
tests/integration/expected_test_results/web_html/fr-countries.html Same ESM import update for the French countries page
package.json Updated jsvectormap version to ^1.7.0
lib/ProductOpener/Display.pm Switched from concatenated JS includes to injecting an ESM module snippet for displayWorldMap
html/js/display-list-of-tags.esm.js Exported displayWorldMap and imported jsvectormap.esm.js and world-merc.js as modules
gulpfile.ts Changed copy source from jsvectormap.js to jsvectormap.esm.js

Copy link

sonarqubecloud bot commented Jun 1, 2025

@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 50.54%. Comparing base (e8deee5) to head (a0edad6).
Report is 248 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
lib/ProductOpener/Display.pm 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11978      +/-   ##
==========================================
+ Coverage   49.88%   50.54%   +0.66%     
==========================================
  Files          83       84       +1     
  Lines       22984    22919      -65     
  Branches     5508     5508              
==========================================
+ Hits        11466    11585     +119     
+ Misses      10121     9919     -202     
- Partials     1397     1415      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hangy
Copy link
Member

hangy commented Jun 1, 2025

Looks like jsvectormap doesn't use semver. Some of the changes like

* refactor: rename jsvectormap.js to jsvectormap.esm.js ([afce9da](https://github.com/themustafaomar/jsvectormap/commit/afce9dab9c77d4982af21db9d460b9e69beff62a))

* refactor: drop class definition comment from classes ([refactor: drop class definition comment from classes themustafaomar/jsvectormap#164](https://github.com/themustafaomar/jsvectormap/pull/164) ([a87a1bb](https://github.com/themustafaomar/jsvectormap/commit/a87a1bb98d1a1c08ee58711e62d35cf802a46734)))

* refactor: replace deprecated pageY/XOffset with scrollY/X ([refactor: replace deprecated pageY/XOffset with scrollY/X themustafaomar/jsvectormap#170](https://github.com/themustafaomar/jsvectormap/pull/170)) ([1362f18](https://github.com/themustafaomar/jsvectormap/commit/1362f18bc04aa08bdb5e95b4dc0ae03b469408b9))

require manual testing/review of our code.

Fixed/updated some stuff and tested fine locally. As I modified stuff, I won't review though 😅

@teolemon teolemon moved this from To discuss and validate to PRs in 🍊 Open Food Facts Server issues Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Display JavaScript 🧪 tests
Projects
Development

Successfully merging this pull request may close these issues.

2 participants