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 3.2.1 to 4.0.1 #49

Closed

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Mar 16, 2020

Bumps mustache from 3.2.1 to 4.0.1.

Changelog

Sourced from mustache's changelog.

[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
}

Added

Removed

Commits
  • 1de94bb 🚢 bump to version 4.0.1
  • f3bd888 Fix custom delimiters in nested partials (#739)
  • aca97b8 🚢 bump to version 4.0.0
  • f3012a2 Remove mustache.to_html() (#735)
  • 5938104 Use fetched template in usage example
  • 3bdd27c Add a section about TypeScript defs in README
  • 7f94f13 Move CLI and contribute section down in README
  • 39ee6ff Point out it's a zero-dependency package in README
  • c41045b Removing the rtype API definitions from README
  • bd742d5 Add response.text() from fetch() in README example
  • 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 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)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/mustache-4.0.1 branch 4 times, most recently from deecd73 to 2232b9c Compare April 29, 2020 15:30
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/mustache-4.0.1 branch 3 times, most recently from a7d784a to d60cdcd Compare July 19, 2020 13:31
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/mustache-4.0.1 branch from d60cdcd to 4bf2f6c Compare July 21, 2020 15:46
@jdauphant jdauphant closed this Jul 21, 2020
@dependabot-preview
Copy link
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@jdauphant jdauphant reopened this Jul 21, 2020
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/mustache-4.0.1 branch 2 times, most recently from 1705783 to dff24d9 Compare July 21, 2020 19:03
Bumps [mustache](https://github.com/janl/mustache.js) from 3.2.1 to 4.0.1.
- [Release notes](https://github.com/janl/mustache.js/releases)
- [Changelog](https://github.com/janl/mustache.js/blob/master/CHANGELOG.md)
- [Commits](janl/mustache.js@v3.2.1...v4.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/mustache-4.0.1 branch from dff24d9 to 8bc4a05 Compare July 21, 2020 19:17
@alemangui
Copy link
Collaborator

alemangui commented Jul 21, 2020

Consolidate.js n'a pas publié une nouvelle version contenant le fix pour la compatibilité avec Mustache 4 (tj/consolidate.js#331) et le projet n'a pas l'air très actif. Je propose de le remplacer avec mustache-express en attendant (6d4f760)

@alemangui alemangui requested a review from jdauphant July 21, 2020 21:14
@jdauphant jdauphant closed this Aug 2, 2020
@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mustache-4.0.1 branch August 2, 2020 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants