Skip to content

🌦️ 0.10.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Jul 12:25
  • ✨ Features

    • Added keywords - lucashorward, issue/707 pull/838

      package.json files usually contain a keywords array so that npm can make searching easier.
      This PR extracts keywords from Cargo.toml and puts them into package.json.

  • πŸ€• Fixes

    • Update binary-install to get fix for axios security vulnerability - simlay, Rizary, issue/958 pull/973 pull/1012

      Updates binary-install npm package to version ^0.1.0 in order to get security fix for a security vulnerability in axios.

    • Fix cargo-generate installation - bradyjoslin, issue/975 issue/907 pull/983

      wasm-pack new hello-wasm didn't work due to a bad link when trying to install cargo-generate.

      This PR points the installation to the correct place and makes wasm-pack new working again!

    • Pass through extra options when building tests - azriel91, issue/698 pull/851

      wasm-pack test accepts extra options to pass through to cargo when running tests.
      Under the hood, this runs cargo build before cargo test, and the additional options were only passed through to the test command. This meant that crates that enabled native features by default could not be built using wasm-pack, as it would attempt to build tests for the wasm32-unknown-unknown target with the native features enabled.

      This PR passes through the extra options to cargo when building the tests as well.

    • Corrected files included in package.json for bundler / no target - lucashorward, issue/837 pull/839

      wasm-pack build and wasm-pack build --target bundler generates a _bg.js file, but it was not added to the package.json.
      The file that is added, *.js will however reference the _bg.js, so when the package was distributed (both through pack or publish) it is not usable.

      This PR includes that _bg.js file in package.json.

    • Find the main package if multiple packages have the same name - ghost, pull/830

      If there were 2 packages with the same name, wasm-pack would sometimes use the wrong one and errored.

  • πŸ“– Documentation

  • πŸ› οΈ Maintenance