Skip to content

Conversation

@dependabot
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.

@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 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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 1, 2025

@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2025

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.76%. Comparing base (0cb2931) to head (a457421).
⚠️ Report is 20 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
lib/ProductOpener/Display.pm 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11978      +/-   ##
==========================================
+ Coverage   46.37%   51.76%   +5.39%     
==========================================
  Files          94       96       +2     
  Lines       24693    24787      +94     
  Branches     5915     5932      +17     
==========================================
+ Hits        11451    12832    +1381     
+ Misses      11687    10237    -1450     
- Partials     1555     1718     +163     
Flag Coverage Δ
integration-test-group-1 31.22% <0.00%> (?)
integration-test-group-2 27.10% <0.00%> (?)
integration-test-group-3 8.80% <0.00%> (?)
integration-test-group-4 10.74% <0.00%> (?)
integration-test-group-5 19.96% <0.00%> (?)
integration-test-group-6 24.83% <0.00%> (?)
integration-test-group-7 10.29% <0.00%> (?)
integration-test-group-8 8.81% <0.00%> (?)
integration-test-group-9 9.00% <0.00%> (?)
unit-test-group-1 26.34% <0.00%> (+0.06%) ⬆️
unit-test-group-2 21.82% <0.00%> (+0.04%) ⬆️
unit-test-group-3 20.49% <0.00%> (+0.04%) ⬆️
unit-test-group-4 31.25% <0.00%> (+0.03%) ⬆️
unit-test-group-5 20.35% <0.00%> (+0.04%) ⬆️
unit-test-group-6 29.28% <0.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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
@github-actions github-actions bot added the 💥 Merge Conflicts 💥 Merge Conflicts label Aug 12, 2025
@sonarqubecloud
Copy link

@hangy
Copy link
Member

hangy commented Nov 3, 2025

@dependabot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 3, 2025

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@hangy
Copy link
Member

hangy commented Nov 3, 2025

@dependabot recreate

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 force-pushed the dependabot/npm_and_yarn/jsvectormap-1.7.0 branch from c2b6702 to 51b121a Compare November 3, 2025 19:01
@hangy hangy requested a review from Copilot November 4, 2025 19:18
Copy link
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

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.


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

@github-actions github-actions bot added Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. Site layout labels Nov 8, 2025
@hangy
Copy link
Member

hangy commented Nov 8, 2025

/update_tests_results

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 8, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

Tested ok on my side ! (on countries facets page). Product edition also still works.

@alexgarel alexgarel merged commit 069e371 into main Nov 18, 2025
30 of 31 checks passed
@alexgarel alexgarel deleted the dependabot/npm_and_yarn/jsvectormap-1.7.0 branch November 18, 2025 15:11
@CosmicJesterX
Copy link

@dependabot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 28, 2025

Sorry, only users with push access can use that command.

CosmicJesterX added a commit to CosmicJesterX/openfoodfacts-server that referenced this pull request Nov 28, 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 💥 Merge Conflicts 💥 Merge Conflicts Site layout Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. 🧪 tests

Development

Successfully merging this pull request may close these issues.

5 participants