Skip to content

Releases: bem/bem-xjst

v8.8.5

18 Nov 12:57
Compare
Choose a tag to compare

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

24 Oct 12:12
Compare
Choose a tag to compare

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

13 Oct 11:08
Compare
Choose a tag to compare

Patch version for several fixes in generate() method.

Commits:

v8.8.2

13 Oct 11:07
Compare
Choose a tag to compare

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

26 Sep 18:04
Compare
Choose a tag to compare

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

26 Sep 17:41
Compare
Choose a tag to compare

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:

  1. Object with block, element and modifiers fields where error occurred.
  2. 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

09 Aug 12:31
Compare
Choose a tag to compare

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

03 Aug 14:24
Compare
Choose a tag to compare

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

03 Aug 14:24
Compare
Choose a tag to compare

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

18 Jul 13:23
Compare
Choose a tag to compare

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)