Skip to content

Commit

Permalink
Merge branch 'release/v1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
fefit committed Apr 18, 2024
2 parents e0996ac + a6d8654 commit 1f8818a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

0.2.1 版本后各个接口方法已经基本趋于稳定,后面将不会做大的调整。

## [1.0.1] - 2024-04-18

### 新增

- 增加元素集合的 `clone` 方法,实现完全节点拷贝 [Issue #21](https://github.com/fefit/visdom/issues/21)

## [1.0.0] - 2023-09-11

### 变更

- 修改 `destroy``typo` 错误。

## [0.5.8] - 2022-11-23

### 修复
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "visdom"
version = "1.0.0"
version = "1.0.1"
edition = "2018"
description = "A html document syntax and operation library, use APIs similar to jquery, easy to use for web scraping and confused html."
keywords = ["html", "scrape", "jquery", "query", "selector"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ After version v0.5.0, visdom add some feature flags to support conditional compi

| Feature | Description | API | Config |
| :---------- | :---------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------- |
| `destroy` | When you don't need remove or clear the elements, you can ignore this feature flag. | `.remove()` `.empty()` (IElementTrait) `remove_child()` | `visdom = { version = xxx, features = ["destroy"]}` |
| `destroy` | When you don't need remove or clear the elements, you can ignore this feature flag. | `.remove()` `.empty()` (IElementTrait) `remove_child()` `clone()` | `visdom = { version = xxx, features = ["destroy"]}` |
| `insertion` | When you don't need mutation the DOM, you can ignore this feature flag. | `append()` `append_to()` `prepend()` `prepend_to()` `insert_after()` `after()` `insert_before()` `before()` `replace_with()` | `visdom = { version = xxx, features = ["insertion"]}` |
| `text` | When you don't need mutation the TextNode, you can ignore this feature flag. | `.texts()` `.texts_by()` `texts_by_rec()` | `visdom = { version = xxx, features = ["text"]}` |
| `full` | When you need all the API above, you can open this feature flag. | - | `visdom = { version = xxx, features = ["full"]}` |
Expand Down

0 comments on commit 1f8818a

Please sign in to comment.