Skip to content

[BUG] Extensions with package.json should fetch exact version from CDN  #11380

Description

@philippjfr

Currently pre-built extensions with a package.json generate a CDN URL using:

cdn_url = f"{_default_cdn_host}/{pkg_name}@^{pkg_version}/{pkg_main}"

While following semver makes might be a technically justifiable position it can cause very hard to debug issues because the caret (^) means that NPM will fetch any “Compatible with version”, i.e. all minor/patch versions, without incrementing the major version. ^2.3.4 will use releases from 2.3.4 to <3.0.0. Since almost no library actually follows semver this means that even though you might have installed Panel 0.11.3 in Python it will still fetch panel.js 0.12.0 from CDN.

Therefore I would strongly suggest that it specifies the exactly matching version from CDN.

Activity

  1. added this to the 2.3.3 milestone on Jun 24, 2021
  2. bryevdv commented on Jun 24, 2021

    @bryevdv
    Member

    Therefore I would strongly suggest that it specifies the exactly matching version from CDN.

    For extensions I agree 100%. I suppose we could make it configurable but default to exact versions.

  3. github-actions commented on Oct 26, 2024

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked as resolved and limited conversation to collaborators on Oct 26, 2024
  5. added theissue type on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions