Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: janl/mustache.js Loading
base: v3.2.1
Choose a base ref
...
head repository: janl/mustache.js Loading
compare: v4.0.0
Choose a head ref
  • 10 commits
  • 9 files changed
  • 2 contributors

Commits on Jan 11, 2020

  1. Allow template caching to be customised (#731)

    These changes allows the internal template cache to
    be customised, either by disabling it complete or
    providing a custom implementation of how templates
    are cached.
    AndrewLeedham authored and phillipj committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    e77fc7c View commit details
    Browse the repository at this point in the history
  2. Update usage examples to not include jQuery

    Historically jQuery was seen as an absolute minimal to create
    anything with JavaScript. That time has past now that relatively
    modern browsers has excellent support for a lot of the things
    jQuery helped us with -- at least with the trivial examples shown
    in our README.
    
    Therefore removing jQuery usage from our examples as that should
    not be a necessary dependency in these examples.
    phillipj committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    185fd6b View commit details
    Browse the repository at this point in the history
  3. Add response.text() from fetch() in README example

    When recently updating the usage examples in the README,
    it blooper was introduced where `response.text()` was forgotten
    when retrieving a mustache template with `window.fetch()`.
    phillipj committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    bd742d5 View commit details
    Browse the repository at this point in the history
  4. Removing the rtype API definitions from README

    Primarily because [rtype](https://github.com/ericelliott/rtype) seems to
    be a stalled project that hasn't gotten updated for 4 years.
    
    Similar more up-to-date definitions can be found in the
    TypeScript definitions: [@types/mustache](https://www.npmjs.com/package/@types/mustache).
    phillipj committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    c41045b View commit details
    Browse the repository at this point in the history
  5. Point out it's a zero-dependency package in README

    More and more of the community seems to be encouraging use of
    zero-dependency packages. We might as well point that out early
    on in our README since that's how mustache.js always has been
    and planned to be going forward.
    phillipj committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    39ee6ff View commit details
    Browse the repository at this point in the history
  6. Move CLI and contribute section down in README

    Primarily because the these sections were very given a lot
    of attention, high up in the README, where ideally usage and
    basic syntax should have priority.
    phillipj committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    7f94f13 View commit details
    Browse the repository at this point in the history
  7. Add a section about TypeScript defs in README

    Since TypeScript usage has exploded the last years but this is
    package is written in JavaScript, we might at least reference
    the external DefinitelyTyped package @types/mustache that has
    a somewhat up-to-date set of type definitions for most of the package.
    phillipj committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    3bdd27c View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2020

  1. Use fetched template in usage example

    Blooper introduced when making the usage examples in README.md
    more modern a couple of days ago, where the example fetching the
    mustache template over HTTP, didn't in fact use the fetched template.
    phillipj committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    5938104 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2020

  1. Remove mustache.to_html() (#735)

    In the spirit of keeping the public API of mustache.js as small as
    possible for maintainence reasons, the undocumented and un-tested
    `.to_html()` method is removed.
    
    The functionality involved, where it can rather invoke an optional
    function provided with the result of `.render()`, instead of returning
    it as a string like `.render()` does, is something that using projects
    very easily can do themselfs -- it does not have to be provided by
    mustache.js.
    phillipj committed Jan 15, 2020
    3 Configuration menu
    Copy the full SHA
    f3012a2 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2020

  1. 🚢 bump to version 4.0.0

    phillipj committed Jan 16, 2020
    Configuration menu
    Copy the full SHA
    aca97b8 View commit details
    Browse the repository at this point in the history
Loading