build(deps): bump mustache from 3.2.1 to 4.0.0 in /backend
Created by: Tirokk
Authored by dependabot-preview[bot] Merged
Bumps mustache from 3.2.1 to 4.0.0.
Changelog
Sourced from mustache's changelog.
[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.cachedirectly 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
- #731: Allow template caching to be customised, by [@AndrewLeedham].
Removed
Commits
-
aca97b8🚢 bump to version 4.0.0 -
f3012a2Remove mustache.to_html() (#735) -
5938104Use fetched template in usage example -
3bdd27cAdd a section about TypeScript defs in README -
7f94f13Move CLI and contribute section down in README -
39ee6ffPoint out it's a zero-dependency package in README -
c41045bRemoving the rtype API definitions from README -
bd742d5Add response.text() from fetch() in README example -
185fd6bUpdate usage examples to not include jQuery -
e77fc7cAllow template caching to be customised (#731) - See full diff in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill 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 labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language -
@dependabot badge mewill 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)