Releases: bem/bem-xjst
v8.5.2
This release is port of v7.6.4.
Fixed bug in BEMTREE: special html field render as it’s value.
Example of BEMJSON: { block: 'b1', content: { html: '<br>' } }
Render result with v7.6.2 (before fix): { block: 'b1', content: '<br>' }
.
Render result with v7.6.3 (after fix): { block: 'b1', content: { html: '<br>' } }
.
Commits:
- [
f955d4080e
] - BEMTREE: special unescaped html field from BEMJSON should render as is (miripiruni)
v7.6.4
Fixed bug in BEMTREE: special html field render as it’s value.
Example of BEMJSON: { block: 'b1', content: { html: '<br>' } }
Render result with v7.6.2 (before fix): { block: 'b1', content: '<br>' }
.
Render result with v7.6.3 (after fix): { block: 'b1', content: { html: '<br>' } }
.
Commits:
- [
1dc8b03f0b
] - BEMTREE: special unescaped html field from BEMJSON should render as is (miripiruni)
v7.6.3
Revert v7.6.2
v8.5.1
Fixed bug: calculate position if block/elem was replaced via replace()
. See issue #394.
Commits:
- [
71cca07f04
] - Merge pull request #395 from bem/replace-position__issue-394 (Slava Oliyanchuk) - [
b32094e75f
] - Test: position with appendContent()/prependContent() (miripiruni) - [
eaa2728082
] - BEMHTML: fix position with replace() (#394 fixed) (miripiruni)
v7.6.2
Port of https://github.com/bem/bem-xjst/releases/tag/v8.5.1
REVERTED in v7.6.3
v8.5.0
BEMTREE: added modes related to data: js(), addJs(), mix(), addMix(), mods(), addElemMods(), elemMods().
Commits:
- [
a70d794d15
] - Merge pull request #382 from bem/bemtree-modes__issue-362 (Slava Oliyanchuk) - [
70cfeb51c6
] - BEMTREE: js(), mix(), mods(), elemMods() added (miripiruni)
v8.4.2
Escaping functions fixed: now argumengs undefined
or null
and NaN
will give you empty string as a result. In previous versions you get stringified results ('undefined'
, 'null'
, 'NaN'
).
Commits:
- [
fb127451ed
] - Merge pull request #387 from bem/yeti-or.notEscapeFalsy (Slava Oliyanchuk) - [
ae3ecc5e6e
] - Docs: notes about arg types in escaping functions (miripiruni) - [
f68c0a7555
] - Docs: links fixed, some spellings fixed (Slava Oliyanchuk) - [
60ca7146b9
] - Docs: minor changes (links, spelling, etc) (Slava Oliyanchuk) - [
1977ee83da
] - Utils: escaping function should’t render undefined/Null/NaN (Vasiliy Loginevskiy) - [
d44db0ad2c
] - Docs: headers fixed (Slava Oliyanchuk) - [
e88732a7af
] - Docs: headers fixed (Slava Oliyanchuk) - [
f8610fb928
] - Docs: about js (Slava Oliyanchuk) - [
f3660f8a47
] - Docs: example cut (Slava Oliyanchuk) - [
54a3e7d447
] - Docs: fix spelling (Slava Oliyanchuk) - [
11e3079ab9
] - Docs: readme updated (#390 fixed) (miripiruni) - [
79b3e4e125
] - Bundle size metrica (Fix for #366) (miripiruni)
v8.4.1
Fix: extend(function(ctx, json) { … })
mode callback now have two arguments. The same as match()
and other.
Commits:
- [
6a0ea778cf
] - Merge pull request #386 from /issues/385 (Slava Oliyanchuk) - [
21e5716819
] - Provide arguments for extend() mode (Vladimir Grinenko)
v8.4.0
New option unquotedAttrs
. See docs.
Commits:
- [
53f8444bca
] - BEMHTML: support unquoted attributes (fix for #364) (miripiruni) - [
52609624a1
] - Help wanted added (Slava Oliyanchuk) - [
85512601d9
] - Docs: write about template arguments and arrow function (fix for #367) (miripiruni) - [
7efbc32ba0
] - Docs: def() parameter in JSDoc changed (Slava Oliyanchuk)
v7.6.1
Fix: extend(function(ctx, json) { … })
mode callback now have two arguments. The same as match()
and other.
Commits:
- [
0c67103fbb
] - Provide arguments for extend() mode (Vladimir Grinenko)