Skip to content

Releases: ogonkov/nunjucks-loader

v3.2.0

27 Jul 10:30
Compare
Choose a tag to compare
  • Assets now could be just a variable (#87, #117).
  • Distributed code now use polyfills

v3.1.0

25 Nov 06:24
Compare
Choose a tag to compare
  • New dev option (#101);
  • Maintenance changes (#96). This should reduce loader output in case of duplicated imports of templates.

v3.0.1

07 Nov 19:25
Compare
Choose a tag to compare

No code change. webpack version clarified in peerDependencies (#97). Some obsolete files striped from package.

Webpack 5 support

07 Nov 14:24
Compare
Choose a tag to compare
  • Webpack 5 support (#95)
  • Files lint (#91)

v2.0.3

27 Jul 08:54
Compare
Choose a tag to compare

Problem with dynamic assets fixed (#90). Now it should work correctly with imports where trailing slashes used in "static" part, like:

{% static 'foo/' + bar %}

v2.0.2

10 Jul 09:33
Compare
Choose a tag to compare

Technical release, no code change. Add note to readme about problems with using ES modules for filters and extensions.

v2.0.1

08 Jul 08:29
Compare
Choose a tag to compare

New static tag has a bug, that is prevent it from exporting asset module to variable, it is fixed (#77)

{% static 'asset.png' as asset_var %}

{{ asset_var }}

v2: more async

05 Jul 17:50
Compare
Choose a tag to compare
  • BREAKING CHANGE: global function static replaced with static tag (#74). This happens because globals is not supporting async operations, while dynamic assets is using promises, when loaded with import() syntax. To upgrade to this version you need to replace all global static invocation with new static tag.

    - {{ static('image.png') }}
    + {% static 'image.png' %}
    - {% set foo = static('bar.jpg') %}
    + {% static 'bar.jpg' as foo %}
  • BREAKING CHANGE: handling of async templates is now even better (#67). When loader found async tags or extensions it calls template render via callback, and wrap it to Promise. It was only available for asynchronous filters before, and in some cases could prevent templates from proper rendering, now it should cover all cases, when asynchronous render required.

  • New option esModule added (#65). It will change output to ES module syntax.

  • Minor changes to readme (#63), defaults handling (#72), refactoring (#73)

v1.0.5

05 Jul 12:54
Compare
Choose a tag to compare

Spec files stripped from package (#75, #76)

v1.0.4

01 Jul 08:11
Compare
Choose a tag to compare

Your custom tags and filters now correctly imported, when ES modules syntax is used (#68, #70).