Skip to content

Replace country-regex Part 2 #7026

Closed
Closed

Description

@G-2-Z

Plotly.js still contains country-regex as a dependency. I'll just cite @keithrob from his original PR:

"The NPM package that is currently used by plotly, country-regex, is a very good package for taking common country names and correlating them to their ISO3 codes. However, it used a GPLed regex library from the R package countrycode. It is questionable whether country-regex can be a MIT license when it is a direct descendent of R version."

I'm not sure about the MIT license, but every project that uses plotly.js might be a derived work of this original GPL licensed project and therefore subject to its copyleft restrictions. This might light up in your deep inspecting license compliance tool and might make your lawyer sweaty.

see #3944
see keithrob#1

Activity

  1. gvwilson commented on Jul 20, 2024

    @gvwilson
    Contributor

    hi @archmoj - can you please let me know if you want to factor this into ongoing map changes or push to the next cycle? I'm happy either way.

  2. self-assigned this
    on Jul 20, 2024
  3. removed their assignment
    on Aug 2, 2024
  4. added
    bugsomething broken
    P1needed for current cycle
    P2considered for next cycle
    and removed
    P1needed for current cycle
    on Aug 9, 2024
  5. dimitrov570 commented on Oct 8, 2024

    @dimitrov570

    Hi,

    What is the status of this issue? Could you please provide an update on when this is planned to be resolved? It is currently being detected by license compliance inspecting tools.

    Thank you!

  6. gvwilson commented on Oct 8, 2024

    @gvwilson
    Contributor

    It is currently in our backlog but won't be in the major release later this month unless someone from the community does a PR in the next few days. We can try to get it into the next minor release, but again, a community PR would greatly increase the chances of that happening. Thanks - @gvwilson

  7. dimitrov570 commented on Dec 12, 2024

    @dimitrov570

    It is currently in our backlog but won't be in the major release later this month unless someone from the community does a PR in the next few days. We can try to get it into the next minor release, but again, a community PR would greatly increase the chances of that happening. Thanks - @gvwilson

    I would like to contribute. Is using i18n-iso-countries satisfactory solution for your requirements (as it's done here keithrob#1)?

  8. gvwilson commented on Dec 12, 2024

    @gvwilson
    Contributor

    Thanks @dimitrov570 - yes, we'd be very grateful for a PR, and the package you mention looks like a good starting point - thank you.

  9. added this to the v4.0.0 milestone on Oct 24, 2025
  10. self-assigned this
    on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions