Releases: bem/bem-xjst
v8.8.5
Previous source maps support fixed.
Commits:
- [
ba102b752a
] - Merge pull request #488 from bem/issue-487_apply (Slava Oliyanchuk) - [
e3d1bddc5f
] - Tests: apply() should lookup field from bemjson by default (miripiruni) - [
e7b7d13a7c
] - Docs: apply mode without templates (fix for #487) (miripiruni) - [
0f01a86f0e
] - тся/ться (DoctorDee)
v8.8.4
Fixed #484 Wrap should save BEMContext.
Commits:
- [
309a9d1d37
] - Merge pull request #485 from bem/issue-484__wrap-bug (Slava Oliyanchuk) - [
070701f3ad
] - bem-xjst: Wrap should save BEMContext (miripiruni)
v8.8.3
Patch version for several fixes in generate()
method.
Commits:
- [
2eb33ddeec
] - Compiler: several require fixes (#481) (dustyo-O) - [
739ba5aa06
] - Merge pull request #483 from innabelaya/master (Slava Oliyanchuk) - [
fa096983bb
] - fix typo (Inna Belaya)
v8.8.2
Fix: generate() exports to commonJS
Commits:
- [
45cff63b77
] - compiler: use exp var instead of global to export (Alexandr Shleyko) - [
d459327fe1
] - Examples: source maps in Node.js (miripiruni)
v8.8.1
Custom naming improved: mods
can be object { name: '...', val: '...' }
. Backward capability is supported.
Commits:
- [
85a5f41570
] - Merge pull request #470 from bem/issue-469__mod-val-setting (Slava Oliyanchuk) - [
8e4a9e3459
] - Docs: fix argument name (miripiruni)
v8.8.0
When you use production
option with true
value you can define function for custom error logging. This function will be used instead of regilar console.error
. Custom function will be filled with two arguments:
- Object with block, element and modifiers fields where error occurred.
- Original JS error.
You can define custom onError
function by extending prototype of BEMContext
. For example:
var bemxjst = require('bem-xjst');
var templates = bemxjst.bemhtml.compile('', { production: true });
templates.BEMContext.prototype.onError = function(context, err) { … };
v7.7.6
v7.7.4-beta-7 now in public.
Changes: internal refactoring. Bundle for client templating smaller than 7.7.3 by 1KB. Now BEMHTML bundle 8.3KB and BEMTREE is 6.8KB.
v8.7.1
Nested mixes are supported. It’s been worked in v1.x but then somehow was broken. Now you can use it again.
{ block: 'b', mix: { block: 'c', mix: { block: 'nested-mix', js: true } } }
Will be rendered as:
<div class="b c nexted-mix i-bem"></div>
BEMHTML: OL and UL end tags is not optional according to W3C HTML4 spec.
Commits:
- [
a2c71800c6
] - Merge pull request #473 from bem/issue-472 (Slava Oliyanchuk) - [
3e777b797a
] - Remove ul and ol from list of optional tags, they are NOT optional (Vitaly Harisov) - [
58916ebf05
] - Merge pull request #471 from gulalex181/prose-patch-1 (Slava Oliyanchuk) - [
04374187b6
] - Пропущен предлог в "описано в разделе про режимы" (Alexander Gulnyashkin) - [
1641c5b45c
] - Merge pull request #448 from bem/issue-241__nested-mixes-2 (Slava Oliyanchuk)
v7.7.5
BEMHTML: OL and UL end tags was removed from list of optional tags. See #472.
Commits:
- [
64d8fc4659
] - BEMHTML: Remove ul and ol from list of optional tags, they are NOT optional (miripiruni)
v8.7.0
- Source map support added.
- Runtime line check: mods can’t be Array typed.
Commits:
- [
83acd1491d
] - Merge pull request #454 from bem/issue-108__source-maps (Slava Oliyanchuk) - [
9167586c17
] - Source map support (issue #108) (miripiruni) - [
f01daa92a1
] - Merge pull request #462 from bem/issue-420__runtime-lint-mods-value (Slava Oliyanchuk)