Skip to content

Commit

Permalink
Release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jannes committed Jan 16, 2022
1 parent a0145b1 commit 9f9e19a
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,28 @@ It is published both as a Rust crate to crates.io and as a NPM package (ESM modu
- epubparse-js: JS library with ergonomic API including
Typescript definitions
(published to npm, for use in Browser and Node.js)

## Steps to release

### Prepare
- bump version in `epubparse-rs/Cargo.toml`
- bump versions in `epubparse-wasm/Cargo.toml` and `epubparse-wasm/package.json`
- go to `epubparse-wasm` folder and run `build_package.sh`
- bump version and `epubparse-wasm` dependency verion in `epubparse-js/package.json`
- commit

### Release
#### Crates.io
- `cd` into epubparse-rs
- run `cargo publish --dry-run` to verify
- run `cargo publish`

#### NPM
##### Wasm
- `cd` into epubparse-wasm
- run `wasm-pack login`
- run `wasm-pack publish`

##### JS
- run `npm run build`
- run `npm publish`
4 changes: 2 additions & 2 deletions epubparse-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "epubparse-js",
"version": "0.2.1",
"version": "0.2.2",
"description": "Library for parsing epub files into book structures",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -26,7 +26,7 @@
"typescript": "^4.2.4"
},
"dependencies": {
"epubparse-wasm": "0.2.3"
"epubparse-wasm": "0.2.4"
},
"type": "module",
"ava": {
Expand Down
6 changes: 3 additions & 3 deletions epubparse-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "epubparse"
version = "0.2.1"
version = "0.2.2"
authors = ["jannes <[email protected]>"]
edition = "2018"
license = "MIT"
Expand All @@ -15,9 +15,9 @@ exclude = [
[dependencies]
thiserror = "1.0"
regex = "1"
xmltree = { git = "https://github.com/jannes/xmltree-rs", branch = "parse_with_config" }
xmltree = { version = "0.10.3", package = "xmltree-parse_with_config" }
zip = { version = "0.5", default-features = false, features = ["deflate"] }
serde = { version = "1.0", features = ["derive"] }

[build-dependencies]
serde_json = "1"
serde_json = "1"
2 changes: 1 addition & 1 deletion epubparse-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "epubparse-wasm"
version = "0.2.3"
version = "0.2.4"
authors = ["jannes <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions epubparse-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"jannes <[email protected]>"
],
"description": "Parse epub and convert to text-only Book structure",
"version": "0.2.3",
"version": "0.2.4",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -25,4 +25,4 @@
"epub",
"ebook"
]
}
}

0 comments on commit 9f9e19a

Please sign in to comment.