Skip to content

Commit 8d1ea11

Browse files
committed
0.10.0
1 parent d908dcb commit 8d1ea11

File tree

12 files changed

+673
-490
lines changed

12 files changed

+673
-490
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
LINUX_TARGET: x86_64-unknown-linux-musl
1515

1616
# Space separated paths to include in the archive.
17-
RELEASE_ADDS: README.md
17+
RELEASE_ADDS: README.md LICENSE-APACHE LICENSE-MIT
1818

1919
jobs:
2020
build:
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
toolchain: ${{ matrix.rust }}
4242
override: true
43-
target: wasm32-unknown-unknow
43+
target: wasm32-unknown-unknown
4444

4545
- name: Query version number
4646
id: get_version
@@ -85,22 +85,22 @@ jobs:
8585
run: |
8686
mv ./target/${{ env.LINUX_TARGET }}/release/${{ env.RELEASE_BIN }} ./dist/${{ env.RELEASE_BIN }}
8787
mv ${{ env.RELEASE_ADDS }} ./dist
88-
7z a -ttar -so -an ./dist | 7z a -si ./${{ env.RELEASE_DIR }}/${{ env.RELEASE_BIN }}-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX_TARGET }}.tar.gz
88+
7z a -ttar -so -an ./dist/* | 7z a -si ./${{ env.RELEASE_DIR }}/${{ env.RELEASE_BIN }}-${{ steps.get_version.outputs.VERSION }}-${{ env.LINUX_TARGET }}.tar.gz
8989
9090
- name: Create tarball (Windows)
9191
if: matrix.build == 'windows'
9292
shell: bash
9393
run: |
9494
mv ./target/release/${{ env.RELEASE_BIN }}.exe ./dist/${{ env.RELEASE_BIN }}.exe
9595
mv ${{ env.RELEASE_ADDS }} ./dist
96-
7z a -ttar -so -an ./dist | 7z a -si ./${{ env.RELEASE_DIR }}/${{ env.RELEASE_BIN }}-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS_TARGET }}.tar.gz
96+
7z a -ttar -so -an ./dist/* | 7z a -si ./${{ env.RELEASE_DIR }}/${{ env.RELEASE_BIN }}-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS_TARGET }}.tar.gz
9797
9898
- name: Create tarball (MacOS)
9999
if: matrix.build == 'macos'
100100
run: |
101101
mv ./target/release/${{ env.RELEASE_BIN }} ./dist/${{ env.RELEASE_BIN }}
102102
mv ${{ env.RELEASE_ADDS }} ./dist
103-
7z a -ttar -so -an ./dist | 7z a -si ./${{ env.RELEASE_DIR }}/${{ env.RELEASE_BIN }}-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.tar.gz
103+
7z a -ttar -so -an ./dist/* | 7z a -si ./${{ env.RELEASE_DIR }}/${{ env.RELEASE_BIN }}-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.tar.gz
104104
105105
- name: Upload Zip
106106
uses: actions/upload-artifact@v1

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ jobs:
5151
target
5252
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}
5353

54-
- name: Update rust
55-
run: |
56-
rustup update ${{ matrix.rust }} --no-self-update
57-
rustup default ${{ matrix.rust }}
58-
rustup target add wasm32-unknown-unknown --toolchain stable
59-
6054
- name: Run Tests
6155
run: cargo test --features "strict" --all --locked
6256
env:

CHANGELOG.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,42 @@
22

33
## 🤍 Unreleased
44

5+
## 🌦️ 0.10.0
6+
7+
- ### ✨ Features
8+
9+
- **Added keywords - [lucashorward], [issue/707] [pull/838]**
10+
11+
`package.json` files usually contain a keywords array so that npm can make searching easier.
12+
This PR extracts keywords from `Cargo.toml` and puts them into `package.json`.
13+
14+
[lucashorward]: https://github.com/lucashorward
15+
[pull/838]: https://github.com/rustwasm/wasm-pack/pull/838
16+
[issue/707]: https://github.com/rustwasm/wasm-pack/issues/707
17+
518
- ### 🤕 Fixes
619

20+
- **Update binary-install to get fix for axios security vulnerability - [simlay], [Rizary], [issue/958] [pull/973] [pull/1012]**
21+
22+
Updates `binary-install` npm package to version `^0.1.0` in order to get security fix for a security vulnerability in axios.
23+
24+
[simlay]: https://github.com/simlay
25+
[rizary]: https://github.com/Rizary
26+
[pull/973]: https://github.com/rustwasm/wasm-pack/pull/973
27+
[pull/1012]: https://github.com/rustwasm/wasm-pack/pull/1012
28+
[issue/958]: https://github.com/rustwasm/wasm-pack/issues/958
29+
30+
- **Fix cargo-generate installation - [bradyjoslin], [issue/975] [issue/907] [pull/983]**
31+
32+
`wasm-pack new hello-wasm` didn't work due to a bad link when trying to install `cargo-generate`.
33+
34+
This PR points the installation to the correct place and makes `wasm-pack new` working again!
35+
36+
[bradyjoslin]: https://github.com/bradyjoslin
37+
[pull/983]: https://github.com/rustwasm/wasm-pack/pull/983
38+
[issue/975]: https://github.com/rustwasm/wasm-pack/issues/975
39+
[issue/907]: https://github.com/rustwasm/wasm-pack/issues/907
40+
741
- **Pass through extra options when building tests - [azriel91], [issue/698] [pull/851]**
842

943
`wasm-pack test` accepts extra options to pass through to `cargo` when running tests.
@@ -15,6 +49,84 @@
1549
[pull/851]: https://github.com/rustwasm/wasm-pack/pull/851
1650
[issue/698]: https://github.com/rustwasm/wasm-pack/issues/698
1751

52+
- **Corrected files included in package.json for bundler / no target - [lucashorward], [issue/837] [pull/839]**
53+
54+
`wasm-pack build` and `wasm-pack build --target bundler` generates a \_bg.js file, but it was not added to the `package.json`.
55+
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.
56+
57+
This PR includes that \_bg.js file in `package.json`.
58+
59+
[pull/839]: https://github.com/rustwasm/wasm-pack/pull/839
60+
[issue/837]: https://github.com/rustwasm/wasm-pack/issues/837
61+
62+
- **Find the main package if multiple packages have the same name - [ghost], [pull/830]**
63+
64+
If there were 2 packages with the same name, `wasm-pack` would sometimes use the wrong one and errored.
65+
66+
[ghost]: https://github.com/ghost
67+
[pull/830]: https://github.com/rustwasm/wasm-pack/pull/830
68+
[issue/829]: https://github.com/rustwasm/wasm-pack/issues/829
69+
70+
- ### 📖 Documentation
71+
72+
- **Remove duplicated "is" in the wee_alloc tutorial- [pione30], [issue/1003] [pull/1004]**
73+
74+
[pione30]: https://github.com/pione30
75+
[pull/1004]: https://github.com/rustwasm/wasm-pack/pull/1004
76+
[issue/1003]: https://github.com/rustwasm/wasm-pack/issues/1003
77+
78+
- **Fix TOC links - [Swaagie], [pull/1007]**
79+
80+
[swaagie]: https://github.com/Swaagie
81+
[pull/1007]: https://github.com/rustwasm/wasm-pack/pull/1007
82+
83+
- **Remove outdated TOC heading- [gthb], [pull/1011]**
84+
85+
[gthb]: https://github.com/gthb
86+
[pull/1011]: https://github.com/rustwasm/wasm-pack/pull/1011
87+
88+
- **Add link to template repo - [milahu], [pull/942]**
89+
90+
[milahu]: https://github.com/milahu
91+
[pull/942]: https://github.com/rustwasm/wasm-pack/pull/942
92+
93+
- **Remove greenkeeper reference - [cdvv7788], [crotwell], [issue/1001] [pull/844] [pull/1002]**
94+
95+
[cdvv7788]: https://github.com/cdvv7788
96+
[crotwell]: https://github.com/crotwell
97+
[pull/844]: https://github.com/rustwasm/wasm-pack/pull/844
98+
[pull/1002]: https://github.com/rustwasm/wasm-pack/pull/1002
99+
[issue/1001]: https://github.com/rustwasm/wasm-pack/issues/1001
100+
101+
- ### 🛠️ Maintenance
102+
103+
- **Fix CI. Remove appveyor and travis and use Github actions - [ashleygwilliams], [drager], [issue/594] [issue/979] [pull/947]**
104+
105+
[pull/947]: https://github.com/rustwasm/wasm-pack/pull/947
106+
[issue/594]: https://github.com/rustwasm/wasm-pack/issues/594
107+
[issue/979]: https://github.com/rustwasm/wasm-pack/issues/979
108+
109+
- **Cargo update - [ashleygwilliams], [pull/800]**
110+
111+
[ashleygwilliams]: https://github.com/ashleygwilliams
112+
[pull/800]: https://github.com/rustwasm/wasm-pack/pull/800
113+
114+
- **Remove dirs dependency - [brightly-salty], [issue/943] [pull/944]**
115+
116+
[brightly-salty]: https://github.com/brightly-salty
117+
[pull/944]: https://github.com/rustwasm/wasm-pack/pull/944
118+
[issue/943]: https://github.com/rustwasm/wasm-pack/issues/943
119+
120+
- **Fix logs for uniformity - [petosorus], [issue/716] [pull/723]**
121+
122+
[petosorus]: https://github.com/petosorus
123+
[pull/723]: https://github.com/rustwasm/wasm-pack/pull/723
124+
[issue/716]: https://github.com/rustwasm/wasm-pack/issues/716
125+
126+
- **Fixing build error - [Pauan], [pull/841]**
127+
128+
[pull/841]: https://github.com/rustwasm/wasm-pack/pull/841
129+
18130
## ☁️ 0.9.1
19131

20132
- ### 🤕 Fixes

0 commit comments

Comments
 (0)