Skip to content

Commit

Permalink
chore: release the v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lomirus committed Jan 19, 2022
1 parent d9581ae commit c59118d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
30 changes: 29 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
## v0.1.0 (2022-01-01)
## v0.2.0 (2022-01-19)

## Fix

- Fail to parse the attributes if the the last key of it doesn't have the value, like `<script src="index.js" type="module" defer></script>`

## Enhancements

- Omit the attribute if its value is empty. For example:
```html
<!--Old-->
<script src="index.js" type="module" defer=""></script>

<!--New-->
<script src="index.js" type="module" defer></script>
```

- Use vector to store the attributes instead of hashmap, which can make its order stable. For example:
```html
<!--Old. Maybe-->
<script src="index.js" type="module"></script>
<!--But it is also a possible result-->
<script type="module" src="index.js"></script>

<!--New. The result would be unique, and just the same as its input-->
<script src="index.js" type="module"></script>
```

## v0.1.0 (2022-01-01)
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "html_editor"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
authors = ["Lomirus"]
description = "Pure, simple and elegant HTML parser and editor."
Expand Down

0 comments on commit c59118d

Please sign in to comment.