Skip to content

jsr is modifying my wasm files #1466

Description

@fiatjaf

I have no idea why.

I also have no idea if it's the server or the uploader CLI.

But the wasm files I publish are different from the files I get when I install my own package.

I don't know what is being changed, but I know it makes my wasm module not work anymore.

The diff doesn't seem to display any pattern discernible to a naked eye:

Image

how to reproduce:

  1. clone https://github.com/nbd-wtf/nostr-gadgets
  2. call cd redstore && ../node_modules/.bin/wasm-pack build --target web --out-dir pkg --release
  3. sha256sum redstore/pkg/gadgets_redstore_bg.wasm
  4. publish to jsr
  5. install it from jsr
  6. sha256sum node_modules/@nostr/gadgets/redstore/pkg/gadgets_redstore_bg.wasm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions