Skip to content

Commit fbb645c

Browse files
committed
chore: WASM release 0.6.0
1 parent 2cade2b commit fbb645c

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/workflows/wasm-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ jobs:
2121
command: install
2222
args: wasm-pack
2323
- name: Build package
24-
run: wasm-pack build --release --scope stranger6667 --target nodejs
24+
run: wasm-pack build --release --target nodejs
25+
working-directory: ./wasm
26+
- name: Fix package name
27+
# wasm-pack generates the package name from the crate name.
28+
# Since the original Rust crate has this name (`css-inline`), the WASM crate has `css-inline-wasm` to
29+
# avoid conflicts during the build. The easiest way to handle it is to rename it inside the package.json file.
30+
run: sed -i 's/css-inline-wasm/css-inline/' pkg/package.json
2531
working-directory: ./wasm
2632
- run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
2733
env:

wasm/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
## [0.6.0] - 2020-11-02
6+
57
### Changed
68

79
- Links to remote stylesheets are deduplicated now.
@@ -21,6 +23,7 @@
2123

2224
- Initial public release
2325

24-
[Unreleased]: https://github.com/Stranger6667/css-inline/compare/wasm-v0.5.0...HEAD
26+
[Unreleased]: https://github.com/Stranger6667/css-inline/compare/wasm-v0.6.0...HEAD
27+
[0.6.0]: https://github.com/Stranger6667/css-inline/compare/wasm-v0.5.0...wasm-v0.6.0
2528
[0.5.0]: https://github.com/Stranger6667/css-inline/compare/wasm-v0.4.1...wasm-v0.5.0
2629
[0.4.1]: https://github.com/Stranger6667/css-inline/compare/wasm-v0.4.0...wasm-v0.4.1

wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "css-inline-wasm"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
authors = ["Dmitry Dygalo <[email protected]>"]
55
edition = "2018"
66
readme = "README.md"

wasm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
A WASM package for inlining CSS into HTML documents.
66

77
```typescript
8-
import { inline } from "css-inline-wasm";
8+
import { inline } from "css-inline";
99

1010
var inlined = inline(
1111
"<html><head><title>Test</title><style>h1 { color:red; }</style></head><body><h1>Test</h1></body></html>",

0 commit comments

Comments
 (0)