master
Jesper Håkansson 10 months ago
parent 490703b75b
commit cbe074a607
  1. 11
      .github/workflows/release.yml
  2. 149
      CHANGELOG.md
  3. 935
      Cargo.lock
  4. 4
      Cargo.toml
  5. 6
      docs/index.html
  6. 2
      npm/README.md
  7. 2
      npm/package.json
  8. 2
      src/test/webdriver/geckodriver.rs

@ -55,10 +55,7 @@ jobs:
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: | run: |
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install clang gcc-aarch64-linux-gnu -y sudo apt-get install clang gcc-aarch64-linux-gnu musl-tools -y
echo "TARGET_CC=clang" >> $GITHUB_ENV
echo "CFLAGS_aarch64_unknown_linux_musl=--sysroot=/usr/aarch64-linux-gnu" >> $GITHUB_ENV
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/usr/aarch64-linux-gnu/bin/ld" >> $GITHUB_ENV
- name: Install p7zip (MacOS) - name: Install p7zip (MacOS)
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-latest'
@ -67,8 +64,12 @@ jobs:
- name: Add rustup target - name: Add rustup target
run: rustup target add ${{ matrix.target }} run: rustup target add ${{ matrix.target }}
- uses: taiki-e/install-action@v2
with:
tool: cross
- name: Build - name: Build
run: cargo build --release --target ${{ matrix.target }} run: cross build --release --target ${{ matrix.target }}
- name: Set RUSTFLAGS (Windows) - name: Set RUSTFLAGS (Windows)
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'

@ -2,6 +2,32 @@
## 🤍 Unreleased ## 🤍 Unreleased
## ☀ 0.13.0
- ### ✨ Features
- **Add option to skip optimization with wasm-opt - [sisou], [pull/1321]**
This feature introduces the `--no-opt` option to wasm-pack, providing a significant improvement in build efficiency for projects requiring multiple wasm-pack executions.
[pull/1321]: https://github.com/rustwasm/wasm-pack/pull/1321
[sisou]: https://github.com/sisou
- **Add support geckodriver for linux-aarch64 - [EstebanBorai], [pull/1371]**
Introduces support to download Geckodriver in Linux aarch64.
[pull/1371]: https://github.com/rustwasm/wasm-pack/pull/1371
[EstebanBorai]: https://github.com/EstebanBorai
- **Add wasm-opt linux aarch64 condition - [dkristia], [issue/1392], [pull/1393]**
A linux aarch64 build for wasm-opt exists in the newest binaryen versions.
[issue/1392]: https://github.com/rustwasm/wasm-pack/issues/1392
[pull/1393]: https://github.com/rustwasm/wasm-pack/pull/1393
[dkristia]: https://github.com/dkristia
- ### 🤕 Fixes - ### 🤕 Fixes
- **Fix passing relative paths to cargo - [dfaust], [issue/704], [issue/1156], [issue/1252], [pull/1331]** - **Fix passing relative paths to cargo - [dfaust], [issue/704], [issue/1156], [issue/1252], [pull/1331]**
@ -14,6 +40,129 @@
[pull/1331]: https://github.com/rustwasm/wasm-pack/pull/1331 [pull/1331]: https://github.com/rustwasm/wasm-pack/pull/1331
[dfaust]: https://github.com/dfaust [dfaust]: https://github.com/dfaust
- **Rewrite wasm_target to use target-libdir - [daidoji], [issue/1342], [pull/1343]**
Rewritten wasm_target to use target libdir from the rustc tool rather than looking through sysroot. This is to accomodate non-rustup installations.
[issue/1342]: https://github.com/rustwasm/wasm-pack/issues/1342
[pull/1343]: https://github.com/rustwasm/wasm-pack/pull/1343
[daidoji]: https://github.com/daidoji
- **Declare ES module in package.json - [gthb], [issue/1039], [pull/1061]**
In bundler mode, generate package.json with "type": "module" and use the "main" attribute instead of the "module" attribute.
This change makes the built ES module palatable to Node.js (when run with --experimental-vm-modules --experimental-wasm-modules),
while it remains also palatable to webpack as illustrated in webpack/webpack#14313
(where the pkg subfolder is generated with wasm-pack built with this change).
This resolves the headache of using a wasm-pack-built package in a library that one needs to both run directly in Node and include in a webpack build.
[issue/1039]: https://github.com/rustwasm/wasm-pack/issues/1039
[pull/1061]: https://github.com/rustwasm/wasm-pack/pull/1061
[gthb]: https://github.com/gthb
- **Use new chromdriver endpoint and fix CI - [Myriad-Dreamin], [kade-robertson], [issue/1315], [issue/1390], [pull/1325], [pull/1391]**
[issue/1315]: https://github.com/rustwasm/wasm-pack/issues/1315
[issue/1390]: https://github.com/rustwasm/wasm-pack/issues/1390
[pull/1325]: https://github.com/rustwasm/wasm-pack/pull/1325
[pull/1391]: https://github.com/rustwasm/wasm-pack/pull/1391
[Myriad-Dreamin]: https://github.com/Myriad-Dreamin
[kade-robertson]: https://github.com/kade-robertson
- **Add mingw support to npm package - [nathaniel-daniel], [issue/1354], [issue/1359], [pull/1363]**
Fixes the NPM package's platform detection for mingw.
[issue/1354]: https://github.com/rustwasm/wasm-pack/issues/1354
[issue/1359]: https://github.com/rustwasm/wasm-pack/issues/1359
[pull/1363]: https://github.com/rustwasm/wasm-pack/pull/1363
[nathaniel-daniel]: https://github.com/nathaniel-daniel
- **pkg-dir option for pack and publish commands - [danielronnkvist], [issue/1369], [pull/1370]**
To be able to use these commands when the output directory option to the build command isn't the default pkg.
[issue/1369]: https://github.com/rustwasm/wasm-pack/issues/1369
[pull/1370]: https://github.com/rustwasm/wasm-pack/pull/1370
[danielronnkvist]: https://github.com/danielronnkvist
- **Optimize out-dir display - [ahaoboy], [issue/1395], [pull/1396]**
Optimize out-dir display.
from:
`[INFO]: 📦 Your wasm pkg is ready to publish at /root/code/fib-wasm/fib-rs/../fib-wasm/wasm.`
to:
`[INFO]: 📦 Your wasm pkg is ready to publish at /root/code/fib-wasm/fib-wasm/wasm.`
[issue/1395]: https://github.com/rustwasm/wasm-pack/issues/1395
[pull/1396]: https://github.com/rustwasm/wasm-pack/pull/1396
[ahaoboy]: https://github.com/ahaoboy
- ### 🛠 Maintenance
- **Fix error and warnings in install script - [lucashorward], [issue/1159], [issue/1217], [issue/1283], [pull/1320]**
[issue/1159]: https://github.com/rustwasm/wasm-pack/issues/1159
[issue/1217]: https://github.com/rustwasm/wasm-pack/issues/1217
[issue/1283]: https://github.com/rustwasm/wasm-pack/issues/1283
[pull/1320]: https://github.com/rustwasm/wasm-pack/pull/1320
[lucashorward]: https://github.com/lucashorward
- **Bump follow-redirects from 1.14.9 to 1.15.6 in /npm - [dependabot], [pull/1375]**
[pull/1375]: https://github.com/rustwasm/wasm-pack/pull/1375
- **Bump rustls-webpki from 0.100.1 to 0.100.2 - [dependabot], [pull/1323]**
[pull/1341]: https://github.com/rustwasm/wasm-pack/pull/1341
- **Bump rustix from 0.37.20 to 0.37.25 - [dependabot], [pull/1341]**
[pull/1323]: https://github.com/rustwasm/wasm-pack/pull/1323
[dependabot]: https://github.com/apps/dependabot
- **Bump rustls from 0.21.9 to 0.21.11 - [dependabot], [pull/1385]**
[pull/1385]: https://github.com/rustwasm/wasm-pack/pull/1385
[dependabot]: https://github.com/apps/dependabot
- **Bump tar from 6.1.11 to 6.2.1 in /npm - [dependabot], [pull/1379]**
[pull/1379]: https://github.com/rustwasm/wasm-pack/pull/1379
[dependabot]: https://github.com/apps/dependabot
- ### 📖 Documentation
- **Fix typo in README - [Lionelf329], [pull/1368]**
[pull/1268]: https://github.com/rustwasm/wasm-pack/pull/1368
[Lionelf329]: https://github.com/Lionelf329
- **Add a description of build --target deno - [puxiao], [pull/1344]**
[pull/1344]: https://github.com/rustwasm/wasm-pack/pull/1344
[puxiao]: https://github.com/puxiao
- **Document deno in build target - [sigmaSd], [pull/1348]**
[pull/1348]: https://github.com/rustwasm/wasm-pack/pull/1348
[sigmaSd]: https://github.com/sigmaSd
- **Fix local navigation backing one step too far in docs - [SamuSoft], [pull/1387]**
[pull/1387]: https://github.com/rustwasm/wasm-pack/pull/1387
[SamuSoft]: https://github.com/SamuSoft
- **Add --target web to quick start build command - [josephrocca], [pull/1367]**
[pull/1367]: https://github.com/rustwasm/wasm-pack/pull/1367
[josephrocca]: https://github.com/josephrocca
## ☀ 0.12.1 ## ☀ 0.12.1
- ### 🤕 Fixes - ### 🤕 Fixes

935
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -1,7 +1,7 @@
[package] [package]
name = "wasm-pack" name = "wasm-pack"
description = "📦✨ your favorite rust -> wasm workflow tool!" description = "📦✨ your favorite rust -> wasm workflow tool!"
version = "0.12.1" version = "0.13.0"
authors = ["Ashley Williams <ashley666ashley@gmail.com>", "Jesper Håkansson <jesper@jesperh.se>"] authors = ["Ashley Williams <ashley666ashley@gmail.com>", "Jesper Håkansson <jesper@jesperh.se>"]
repository = "https://github.com/rustwasm/wasm-pack.git" repository = "https://github.com/rustwasm/wasm-pack.git"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
@ -13,7 +13,7 @@ documentation = "https://rustwasm.github.io/wasm-pack/"
[dependencies] [dependencies]
anyhow = "1.0.68" anyhow = "1.0.68"
atty = "0.2.14" atty = "0.2.14"
binary-install = "0.3.0" binary-install = "0.4.0"
cargo_metadata = "0.15.2" cargo_metadata = "0.15.2"
chrono = "0.4.23" chrono = "0.4.23"
console = "0.15.5" console = "0.15.5"

@ -42,9 +42,9 @@
<h2>📦✨ your favorite rust -> wasm workflow tool!</h2> <h2>📦✨ your favorite rust -> wasm workflow tool!</h2>
</div> </div>
<div class="five columns" id="installer"> <div class="five columns" id="installer">
<a class="button button-primary" href="/wasm-pack/installer">✨ Install wasm-pack 0.12.1</a> <a class="button button-primary" href="/wasm-pack/installer">✨ Install wasm-pack 0.13.0</a>
<p>27 June 2023 | <p>1 July 2024 |
<a href="https://github.com/rustwasm/wasm-pack/releases/tag/v0.12.1"> <a href="https://github.com/rustwasm/wasm-pack/releases/tag/v0.13.0">
Release Notes Release Notes
</a> </a>
</p> </p>

@ -41,7 +41,7 @@ visiting that repo!
![demo](demo.gif) ![demo](demo.gif)
## 🔮 Prerequisities ## 🔮 Prerequisites
This project requires Rust 1.30.0 or later. This project requires Rust 1.30.0 or later.

@ -1,6 +1,6 @@
{ {
"name": "wasm-pack", "name": "wasm-pack",
"version": "0.12.1", "version": "0.13.0",
"description": "📦✨ your favorite rust -> wasm workflow tool!", "description": "📦✨ your favorite rust -> wasm workflow tool!",
"main": "binary.js", "main": "binary.js",
"scripts": { "scripts": {

@ -9,7 +9,7 @@ use std::path::PathBuf;
// Keep it up to date with each `wasm-pack` release. // Keep it up to date with each `wasm-pack` release.
// https://github.com/mozilla/geckodriver/releases/latest // https://github.com/mozilla/geckodriver/releases/latest
const DEFAULT_GECKODRIVER_VERSION: &str = "v0.33.0"; const DEFAULT_GECKODRIVER_VERSION: &str = "v0.34.0";
const DEFAULT_WINDOWS_GECKODRIVER_VERSION: &str = "v0.24.0"; const DEFAULT_WINDOWS_GECKODRIVER_VERSION: &str = "v0.24.0";
const GECKODRIVER_LAST_UPDATED_STAMP: &str = "geckodriver_last_updated"; const GECKODRIVER_LAST_UPDATED_STAMP: &str = "geckodriver_last_updated";

Loading…
Cancel
Save