Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Include minified file in npm release #2013

Closed
@fulldecent

Description

@fulldecent

Currently, releases to npm include a single index.js file. Alternatively, or additionally, there should be an index.min.js file. This is a security issue.

Security impact

CDN providers like jsdelivr are finding the not-compressed files as suboptimal and they are using their own proprietary, non-repeatable processes to generate their the index.min.js that they distribute to users.

For business reasons, they will not support SRI in these types of release.

Source: jsdelivr/jsdelivr#18105 (comment)

To support end-user security (SRI) this project should publish proper, canonical, minified files which can be distributed as-is, without modification (uglification) by CDNs.

References:

https://www.npmjs.com/package/web3/v/1.0.0-beta.36

I don't know how to cite the package formulas other than installing them myself. npm should be better at this. But here is the proof.

screen shot 2018-10-21 at 7 07 19 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions