-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Comparing changes
Open a pull request
base repository: janl/mustache.js
base: v3.2.1
head repository: janl/mustache.js
compare: v4.0.0
- 10 commits
- 9 files changed
- 2 contributors
Commits on Jan 11, 2020
-
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.
Configuration menu - View commit details
-
Copy full SHA for e77fc7c - Browse repository at this point
Copy the full SHA e77fc7cView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 185fd6b - Browse repository at this point
Copy the full SHA 185fd6bView commit details -
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()`.
Configuration menu - View commit details
-
Copy full SHA for bd742d5 - Browse repository at this point
Copy the full SHA bd742d5View commit details -
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).
Configuration menu - View commit details
-
Copy full SHA for c41045b - Browse repository at this point
Copy the full SHA c41045bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 39ee6ff - Browse repository at this point
Copy the full SHA 39ee6ffView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 7f94f13 - Browse repository at this point
Copy the full SHA 7f94f13View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3bdd27c - Browse repository at this point
Copy the full SHA 3bdd27cView commit details
Commits on Jan 13, 2020
-
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.
Configuration menu - View commit details
-
Copy full SHA for 5938104 - Browse repository at this point
Copy the full SHA 5938104View commit details
Commits on Jan 15, 2020
-
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.
3Configuration menu - View commit details
-
Copy full SHA for f3012a2 - Browse repository at this point
Copy the full SHA f3012a2View commit details
Commits on Jan 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for aca97b8 - Browse repository at this point
Copy the full SHA aca97b8View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.2.1...v4.0.0