Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump mustache from 2.3.2 to 4.1.0 #121

Closed

Conversation

dependabot-preview[bot]
Copy link

Bumps mustache from 2.3.2 to 4.1.0.

Release notes

Sourced from mustache's releases.

v3.1.0

Added

  • #717: Added support .js files as views in command line tool, by [@JEStaubach].

Fixed

#716: janl/mustache.js#716 #717: janl/mustache.js#717 [@JEStaubach]: https://github.com/JEStaubach [@yotammadem]: https://github.com/yotammadem

v3.0.2

Fixed

Dev

  • #701: Fix test failure for Node 10 and above, by @andersk.
  • #704: Lint all test files just like the source files, by @phillipj.
  • Start experimenting & comparing GitHub Actions vs Travis CI, by @phillipj.

v3.0.1

#679: Fix partials not rendering tokens when using custom tags, by @stackchain.

v3.0.0

[3.0.0] / 16 September 2018

We are very happy to announce a new major version of mustache.js. We want to be very careful not to break projects out in the wild, and adhering to Semantic Versioning we have therefore cut this new major version.

The changes introduced will likely not require any actions for most using projects. The things to look out for that might cause unexpected rendering results are described in the migration guide below.

A big shout out and thanks to [@raymond-lam] for this release! Without his contributions with code and issue triaging, this release would never have happened.

Major

  • #618: Allow rendering properties of primitive types that are not objects, by [@raymond-lam].
  • #643: Writer.prototype.parse to cache by tags in addition to template string, by [@raymond-lam].
  • #664: Fix Writer.prototype.parse cache, by [@seminaoki].

Minor

Changelog

Sourced from mustache's changelog.

[4.1.0] / 6 December 2020

Added

Fixed

  • #764: Ask custom escape functions to escape all types of values (including numbers), by [@pineapplemachine].

[4.0.1] / 15 March 2020

Fixed

  • #739: Fix custom delimiters in nested partials, by [@aielo].

[4.0.0] / 16 January 2020

Majority of using projects don't have to worry by this being a new major version.

TLDR; if your project manipulates Writer.prototype.parse | Writer.cache directly or uses .to_html(), you probably have to change that code.

This release allows the internal template cache to be customised, either by disabling it completely or provide a custom strategy deciding how the cache should behave when mustache.js parses templates.

const mustache = require('mustache');
// disable caching
Mustache.templateCache = undefined;
// or use a built-in Map in modern environments
Mustache.templateCache = new Map();

Projects that wanted to customise the caching behaviour in earlier versions of mustache.js were forced to override internal method responsible for parsing templates; Writer.prototype.parse. In short, that was unfortunate because there is more than caching happening in that method.

We've improved that now by introducing a first class API that only affects template caching.

The default template cache behaves as before and is still compatible with older JavaScript environments. For those who wants to provide a custom more sopisiticated caching strategy, one can do that with an object that adheres to the following requirements:

{
  set(cacheKey: string, value: string): void
  get(cacheKey: string): string | undefined
  clear(): void
}
</tr></table> ... (truncated)
Commits
  • 67c39b8 🚢 bump to version 4.1.0
  • 224fe3a Use outstanding isArray function in new render config object code
  • 862e497 Fix behavior when rendering lambda sections & add regression test
  • 37fdf81 Add test coverage for new render config object parameter
  • 9891d4f Render function now recognizes a config object argument
  • 67eb95c Fix eslint failure in test/partial-test.js
  • eb523bd Modify build command so that mustache.js can be built on Windows
  • 4b7908f Use zero instead of 0 in blocks README example
  • 05a8345 readme: sections can be rendered 0 times
  • a7f1c3d Update and simplify package.json
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will not automatically merge this PR because it includes a major update to a production dependency.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Dec 7, 2020
@dependabot-preview
Copy link
Author

Superseded by #137.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mustache-4.1.0 branch March 29, 2021 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants