Skip to content

Commit 3457524

Browse files
committed
1.2.0
1 parent e3348f4 commit 3457524

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,41 @@ All notable changes to this project will be documented in this file.
44

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

7+
## 1.2.0
8+
9+
* Add ability to append or prepend to attributes (https://github.com/stackhtml/hstream/commit/e9b71c39d5a08d27b2ee09ae3043abcecd57b3db)
10+
11+
```js
12+
hstream({
13+
'#app': {
14+
class: { prepend: 'beep ', append: ' boop' }
15+
}
16+
})
17+
```
18+
19+
* Remove attributes by setting `attrName: null` (https://github.com/stackhtml/hstream/commit/32480ba33327b1f32b16a91dc6752b4ecb5b8cec)
20+
* Edit attributes by passing a function (https://github.com/stackhtml/hstream/commit/32480ba33327b1f32b16a91dc6752b4ecb5b8cec)
21+
22+
```js
23+
hstream({
24+
'#app': {
25+
title: function (prev) { return prev.toUpperCase() }
26+
}
27+
})
28+
```
29+
30+
* Edit html contents by passing a function (https://github.com/stackhtml/hstream/commit/b562c5ff1a644893093dda1c99558dded71fb422)
31+
32+
```js
33+
hstream({
34+
'code': {
35+
_html: function (source) {
36+
return highlightHTML(source)
37+
}
38+
}
39+
})
40+
```
41+
742
## 1.1.0
843

944
* Add `_replaceHtml` option that replaces the outer html of an element

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hstream",
33
"description": "streaming html templates",
4-
"version": "1.1.0",
4+
"version": "1.2.0",
55
"author": "Renée Kooi <[email protected]>",
66
"bugs": {
77
"url": "https://github.com/stackhtml/hstream/issues"

0 commit comments

Comments
 (0)