Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Mar 2, 2018
1 parent e3348f4 commit 3457524
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,41 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

## 1.2.0

* Add ability to append or prepend to attributes (https://github.com/stackhtml/hstream/commit/e9b71c39d5a08d27b2ee09ae3043abcecd57b3db)

```js
hstream({
'#app': {
class: { prepend: 'beep ', append: ' boop' }
}
})
```

* Remove attributes by setting `attrName: null` (https://github.com/stackhtml/hstream/commit/32480ba33327b1f32b16a91dc6752b4ecb5b8cec)
* Edit attributes by passing a function (https://github.com/stackhtml/hstream/commit/32480ba33327b1f32b16a91dc6752b4ecb5b8cec)

```js
hstream({
'#app': {
title: function (prev) { return prev.toUpperCase() }
}
})
```

* Edit html contents by passing a function (https://github.com/stackhtml/hstream/commit/b562c5ff1a644893093dda1c99558dded71fb422)

```js
hstream({
'code': {
_html: function (source) {
return highlightHTML(source)
}
}
})
```

## 1.1.0

* Add `_replaceHtml` option that replaces the outer html of an element
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hstream",
"description": "streaming html templates",
"version": "1.1.0",
"version": "1.2.0",
"author": "Renée Kooi <[email protected]>",
"bugs": {
"url": "https://github.com/stackhtml/hstream/issues"
Expand Down

0 comments on commit 3457524

Please sign in to comment.