All Versions
45
Latest Version
Avg Release Cycle
93 days
Latest Release
2689 days ago

Changelog History
Page 1

  • v2.7.5

    December 09, 2016
  • v2.7.4

    September 13, 2016
  • v2.7.3

    July 26, 2016
  • v2.7.2 Changes

    June 09, 2015
    • #673 Pass the current context to filters (@sethkinast)
    • #676 If a Promise is resolved with an array, iterate over it instead of rendering the whole array at once.

    Closes #674 (@sethkinast)

    • #647 Allow helpers to return primitives

    Previously returning a primitive would crash rendering with no way to recover. You can still return a Chunk and do more complex work if you need to.

    Helpers act like references or sections depending on if they have a body. When they have no body, they act like a reference and look in params.filters for filters to use. When they have a body, they act like a section. You can return thenables and streams normally.

    {@return value="" filters="|s" /} {@return value=""}{.} World{/return}

    Closes #645 (@sethkinast)

    • #664 Be slightly pickier about what Dust thinks a Stream is.

    Closes #663 (@sethkinast)

    • #661 Add saucelabs integration (@sethkinast)
    • 🔨 #658 Refactor testing frameworks

    Closes #649 Closes #602 Closes #642 (@sethkinast)

    • #660 Grammar: s/char/character/ to avoid using a reserved name

    Closes #659 (@sethkinast)

  • v2.7.1 Changes

    April 30, 2015
    • ⚡️ #655 Update CommonJS example to make use of new onLoad behavior (@sethkinast)
    • #653 Fix array iteration when context is undefined (@sethkinast)
    • #641 Add a cb(null, compiledTemplate) signature to dust.onLoad

    Calling the onLoad callback with a compiled template function will use this template to satisfy the load request. The template is not automatically registered under any name when passed to the callback, so the onLoad function should handle registration as it needs.

    dust.cache behavior has been changed slightly. Before, setting it to false would blow away the entire cache on every render. Now, setting it to false just prevents new templates from being added and cached templates from being used, but if it's set to true again previously-cached templates will be ready to use. (@sethkinast)

    • 📌 #650 Pin [email protected] for grunt-jasmine-nodejs (@sethkinast)
    • ⚡️ #646 Update AMD and CommonJS examples (@sethkinast)
    • #637 CommonJS example (@sethkinast)
    • #638 Preserve compiler backwards compatibility with pre-2.7 versions (@sethkinast)
    • 🏁 #639 Fix failing test on Windows (@sethkinast)
  • v2.7.0 Changes

    April 17, 2015
    • #636 Fix failing tests in IE8 (@sethkinast)
    • #633 Drop Node 0.8 (@sethkinast)
    • #635 Resolve dynamic partial names via original context (@sethkinast)
    • #631 Try to avoid creating Stacks with no content when possible (@sethkinast)
    • #613 Refactor template compilation

      • dust.render and dust.stream now accept a compiled template function in addition to a template name.
      • dust.compile no longer requires a template name, and will compile an anonymous template without one (so --name is no longer required for dustc either)
      • dust.load is removed from the public API
      • dust.renderSource is moved to the compiler, so it's only included in dust-full now (Fixes #412)
      • dust.compileFn is moved to the compiler, so it's only included in dust-full now
      • add dust.isTemplateFn
      • add dust.config.cache = true, set to false to disable caching and load templates again every time (Fixes #451)
      • add dust.config.cjs = false, set to true to compile templates as CommonJS modules
      • add --cjs flag to dustc
      • Move a bunch of exposed compiler stuff under dust.compiler (but leave it exposed until 2.8) (@sethkinast)
    • #624 dustc always creates templates with forward slashes (@sethkinast)

    • #617 Add chunk.stream to allow streamables in context (@sethkinast)

    • #610 clean up PEG grammar a little bit (@sethkinast)

    • #622 Fix behavior of Context#resolve when resolving a context function that returns a Chunk (@sethkinast)

    • 🚀 #611 Add grunt-github-changes plugin to automatically update changelog before releases (@sethkinast)

    • 🏗 #627 Move to Travis CI Container builds (@sethkinast)

    • ⚡️ #623 Update to stable chokidar. (@paulmillr)

    • 🚚 #592 Remove benchmark and old docs (@sethkinast)

    • #609 Clarify a few examples and add a new explicitly-incremental streaming example (@sethkinast)

  • v2.6.3

    July 26, 2016
  • v2.6.2 Changes

    March 26, 2015
    • ⬆️ #593 npm upgrade (@sethkinast)
    • #590 Add deep resolution of Thenables in context (@sethkinast)
    • 🚚 #583 Move lib/server to index (@sethkinast)
    • 🏗 #587 Allow Rhino test failures to break the build (and fix a test typo that broke Rhino) (@sethkinast)
    • 🔨 #582 Refactor main Dust module's global context (@sethkinast)
    • 🔨 #579 Clean up / refactor logging (@sethkinast)
    • 👍 #569 Thenable support (@sethkinast)
    • 👍 #578 Add --watch support to dustc (@sethkinast)
    • #577 Adding examples! (@sethkinast)
    • 👯 #559 Add context.clone and context.pop and simplify chunk.partial. (@sethkinast)
    • #555 Add Context#resolve (@sethkinast)
  • v2.6.1 Changes

    March 20, 2015
    • #557 Fix the output of format (whitespace-only) blocks inside inline partials (@sethkinast)
    • #546 Add Travis test targets for node 0.12 and iojs (@sethkinast)
    • ⚡️ #552 Update bower file (@sethkinast)
    • 👍 #550 Core grammar: support negative numbers passed as params (@jasonbelmonti)
  • v2.6.0 Changes

    March 05, 2015
    • #545 New dustc compiler. This breaks backward compat, but allows streaming output and a usage manual. Also includes tests that were nonexistent previously. (@sethkinast)
    • 📜 #536 Add AMD (require.js) compatibility. This includes the core, compiler, parser, and support for compiling templates as AMD modules. Have to set define.amd.dust to true to allow dust to be loaded as an AMD module, and dust.config.amd to true to compile templates as AMD modules. (@sethkinast)
    • 🖨 #543 dustc: replace util.print/util.puts with console.log (@hunterchristian)
    • #541 Escape template names in case they contain non-JS-safe characters (@aredridel)
    • #540 escape values (\u2028, \u2029 and <) when using json filter (@jimmyhchan)
    • #534 Stringify things before calling escapeHtml on them in case their stringified representation contains HTML (@sethkinast)
    • 🚀 #537 Stop archiving old releases (@sethkinast)
    • #533 Add dust.version and bump it during grunt-bump (@sethkinast)
    • 🛠 #529 Fix hanging comma in dust.config. Fixes IE7. (@jrrbru)
    • 🌲 #526 Don't stringify dust.log messages (@sethkinast)