Dust filter functions previously took one argument, the string to filter. They now accept a second argument, which is the current context.
Helpers
Dust helpers can now return primitives.
Helpers act like references or sections depending on if they have a body. When they have no body, they act like a reference and look in params.filters for filters to use. When they have a body, they act like a section. You can return thenables and streams normally.
In previous versions, setting dust.config.cache to false would blow away the entire cache on every render. Now, setting it to false just prevents new templates from being added and cached templates from being used. Setting it back to true means that previously-cached templates will be ready to use.
dust.onLoad
We have added a callback(null, compiledTemplate) signature to dust.onLoad.
Calling the onLoad callback with a compiled template function will use this template to satisfy the load request. The template is not automatically registered under any name when passed to the callback, so the onLoad function should handle registration as it needs.
You can still call the callback with uncompiled template source and Dust will compile and store it, while respecting your dust.config.cache setting.
#753 {?exists} and {^exists} resolve Promises and check if the result exists (#753) (@samuelms1)
v2.7.4 (2016/09/13 02:52 +00:00)
#744 Don't use instanceof to determine if a Context is a Context. Instead use a flag on the instance itself so it can survive object merges. (@sethkinast)
Previously returning a primitive would crash rendering with no way to recover. You can still return a Chunk and do more complex work if you need to.
Helpers act like references or sections depending on if they have a body. When they have no body, they act like a reference and look in params.filters for filters to use. When they have a body, they act like a section. You can return thenables and streams normally.
#655 Update CommonJS example to make use of new onLoad behavior (@sethkinast)
#653 Fix array iteration when context is undefined (@sethkinast)
#641 Add a cb(null, compiledTemplate) signature to dust.onLoad
Calling the onLoad callback with a compiled template function will use this template to satisfy the load request. The template is not automatically registered under any name when passed to the callback, so the onLoad function should handle registration as it needs.
dust.cache behavior has been changed slightly. Before, setting it to false would blow away the entire cache on every render. Now, setting it to false just prevents new templates from being added and cached templates from being used, but if it's set to true again previously-cached templates will be ready to use. (@sethkinast)
NOTE: Despite being a minor release, this update includes a breaking change that we had to make to fix a security issue ( CVE-2020-11022). Please follow the blog post & the upgrade guide for more details.
Changes in the version includes changes from the next branch and typeorm@next version.
They were pending their migration from 2018. Finally, they are in the master branch and master version.
Features
compilation target now is es2020. This requires Node.JS version 14+
TypeORM now properly works when installed within different node_modules contexts
(often happen if TypeORM is a dependency of another library or TypeORM is heavily used in monorepo projects)
Connection was renamed to DataSource.
Old Connection is still there, but now it's deprecated. It will be completely removed in next version.
New API:
// load entities, establish db connection, sync schema, etc.
await dataSource.connect()
Previously, you could use new Connection(), createConnection(), getConnectionManager().create(), etc.
They all deprecated in favour of new syntax you can see above.
New way gives you more flexibility and simplicity in usage.
Old ways of custom repository creation were dropped.
added new option on relation load strategy called relationLoadStrategy.
Relation load strategy is used on entity load and determines how relations must be loaded when you query entities and their relations from the database.
Used on find* methods and QueryBuilder. Value can be set to join or query.
Changes in the version includes changes from the next branch and typeorm@next version.
They were pending their migration from 2018. Finally, they are in the master branch and master version.
Features
compilation target now is es2020. This requires Node.JS version 14+
TypeORM now properly works when installed within different node_modules contexts
(often happen if TypeORM is a dependency of another library or TypeORM is heavily used in monorepo projects)
Connection was renamed to DataSource.
Old Connection is still there, but now it's deprecated. It will be completely removed in next version.
New API:
// load entities, establish db connection, sync schema, etc.
await dataSource.connect()
Previously, you could use new Connection(), createConnection(), getConnectionManager().create(), etc.
They all deprecated in favour of new syntax you can see above.
New way gives you more flexibility and simplicity in usage.
Old ways of custom repository creation were dropped.
added new option on relation load strategy called relationLoadStrategy.
Relation load strategy is used on entity load and determines how relations must be loaded when you query entities and their relations from the database.
Used on find* methods and QueryBuilder. Value can be set to join or query.
Bumps the npm_and_yarn group with 14 updates in the / directory:
2.5.0
3.0.0
4.12.4
4.19.2
0.0.5
1.4.0
2.2.4
3.5.0
4.17.4
4.17.21
0.7.3
2.0.0
0.2.25
0.3.0
1.278.1
1.1064.0
6.5.2
6.11.0
1.9.0
1.20.2
4.0.11
4.7.7
4.0.4
4.2.0
0.0.8
1.2.8
11.1.5
18.7.1
Updates
dustjs-linkedin
from 2.5.0 to 3.0.0Release notes
Sourced from dustjs-linkedin's releases.
... (truncated)
Changelog
Sourced from dustjs-linkedin's changelog.
Closes #674 (
@sethkinast
)Previously returning a primitive would crash rendering with no way to recover. You can still return a Chunk and do more complex work if you need to.
Helpers act like references or sections depending on if they have a body. When they have no body, they act like a reference and look in
params.filters
for filters to use. When they have a body, they act like a section. You can return thenables and streams normally.{
@return
value="" filters="|s" /} {@return
value=""}{.} World{/return}Closes #645 (
@sethkinast
)Closes #663 (
@sethkinast
)Closes #649 Closes #602 Closes #642 (
@sethkinast
)Closes #659 (
@sethkinast
)Calling the
onLoad
callback with a compiled template function will use this template to satisfy the load request. The template is not automatically registered under any name when passed to the callback, so theonLoad
function should handle registration as it needs.dust.cache
behavior has been changed slightly. Before, setting it to false would blow away the entire cache on every render. Now, setting it to false just prevents new templates from being added and cached templates from being used, but if it's set to true again previously-cached templates will be ready to use. (@sethkinast
)dust.render
anddust.stream
now accept a compiled template function in addition to a template name.dust.compile
no longer requires a template name, and will compile an anonymous template without one (so--name
is no longer required for dustc either)dust.load
is removed from the public APIdust.renderSource
is moved to the compiler, so it's only included in dust-full now (Fixes #412)dust.compileFn
is moved to the compiler, so it's only included in dust-full nowdust.isTemplateFn
dust.config.cache = true
, set tofalse
to disable caching and load templates again every time (Fixes #451)dust.config.cjs = false
, set totrue
to compile templates as CommonJS modules--cjs
flag todustc
dust.compiler
(but leave it exposed until 2.8) (@sethkinast
)... (truncated)
Commits
2e8795c
Release v3.0.06f98371
merge from 2.7db6d8b9
Merge pull request #805 from sumeetkakkar/fix/proto-pollutionddb6523
fix for prototype pollution vulnerability822222e
Release v2.7.5d0f955d
Decrease security vulnerabilities by upgrading cli dependency (#754 #748)e0e25f7
Merge pull request #756 from danactive/mastereeb1c17
Decrease security vulnerabilities by upgrading cli dependency (#754 #748)d485a72
{?exists} and {^exists} resolve Promises and check if the result exists (#753)9a08207
Release v2.7.4Maintainer changes
This version was pushed to npm by krakenjs, a new releaser for dustjs-linkedin since your current version.
Updates
express
from 4.12.4 to 4.19.2Release notes
Sourced from express's releases.
... (truncated)
Changelog
Sourced from express's changelog.
... (truncated)
Commits
04bc627
4.19.2da4d763
Improved fix for open redirect allow list bypass4f0f6cc
4.19.1a003cfa
Allow passing non-strings to res.location with new encoding handling checks f...a1fa90f
fixed un-edited version in history.md for 4.19.011f2b1d
build: fix build due to inconsistent supertest behavior in older versions084e365
4.19.00867302
Prevent open redirect allow list bypass due to encodeurl567c9c6
Add note on how to update docs for new release (#5541)69a4cf2
deps: cookie@0.6.0Maintainer changes
This version was pushed to npm by wesleytodd, a new releaser for express since your current version.
Updates
express-fileupload
from 0.0.5 to 1.4.0Release notes
Sourced from express-fileupload's releases.
... (truncated)
Commits
Maintainer changes
This version was pushed to npm by richardgirges, a new releaser for express-fileupload since your current version.
Updates
jquery
from 2.2.4 to 3.5.0Release notes
Sourced from jquery's releases.
Commits
7a0a850
3.5.08570a08
Release: Update AUTHORS.txtda3dd85
Ajax: Do not execute scripts for unsuccessful HTTP responses065143c
Ajax: Overwrite s.contentType with content-type header value, if any1a4f10d
Tests: Blacklist one focusin test in IE9e15d6b
Event: Use only one focusin/out handler per matching window & document966a709
Manipulation: Skip the select wrapper for <option> outside of IE 91d61fd9
Manipulation: Make jQuery.htmlPrefilter an identity function04bf577
Selector: Update Sizzle from 2.3.4 to 2.3.57506c9c
Build: Resolve Travis config warningsMaintainer changes
This version was pushed to npm by mgol, a new releaser for jquery since your current version.
Updates
lodash
from 4.17.4 to 4.17.21Commits
f299b52
Bump to v4.17.21c4847eb
Improve performance oftoNumber
,trim
andtrimEnd
on large input strings3469357
Prevent command injection through_.template
'svariable
optionded9bc6
Bump to v4.17.20.63150ef
Documentation fixes.00f0f62
test.js: Remove trailing comma.846e434
Temporarily use a custom fork oflodash-cli
.5d046f3
Re-enable Travis tests on4.17
branch.aa816b3
Remove/npm-package
.d7fbc52
Bump to v4.17.19Maintainer changes
This version was pushed to npm by bnjmnt4n, a new releaser for lodash since your current version.
Updates
ms
from 0.7.3 to 2.0.0Release notes
Sourced from ms's releases.
Commits
9b88d15
2.0.094b995c
Invalidated cache for slack badgebcf5715
Bumped dependencies to the latest versionb1eaab7
Ignored logs coming from npmcaae298
Limit str to 100 to avoid ReDoS of 0.3s (#89)b83b36d
chore(package): update eslint to version 3.19.0 (#88)3f2a4d7
chore(package): update husky to version 0.13.3 (#86)7daf984
1.0.0ee91f30
More suitable name for file containing testse818c35
Removed browser testingUpdates
typeorm
from 0.2.25 to 0.3.0Release notes
Sourced from typeorm's releases.
... (truncated)
Changelog
Sourced from typeorm's changelog.
... (truncated)
Commits
941b584
version bump3b8a031
0.3.0 (#8616)5608956
refactor: remove spaces for consistency (#8751)486f8c5
version bump0fc093d
fix: discard duplicated columns on update (#8724)f3cfdd2
fix: allow clearing database inside a transaction (#8712)96ac8f7
feat: add transformer to ViewColumnOptions (#8717)32549fe
refactor: DefaultNamingStrategy#getTableName should be protected, not private...411fa54
fix: force web bundlers to ignore index.mjs and use the browser ESM version d...10f46d9
fixing failing testUpdates
snyk
from 1.278.1 to 1.1064.0Commits
bd96e74
Merge pull request #4221 from snyk/fix/quote-args80d97a9
fix: escape child process argumentsc028b50
Merge pull request #4216 from snyk/feat/unmanaged-deps-severity-thresholdcc329fd
feat: support sev.threshold for unm.-deps3daf5c7
Merge pull request #4214 from snyk/feat/base64-default2df2037
Merge pull request #4219 from snyk/fix/gradle-use-lenient-configafc1ccb
fix: use lenient config in gradle plugin85bb57f
Merge pull request #4215 from snyk/feat/upgrade-policy-engine-v0.12.2ef864be
feat: upgrade snyk-iac-test to v0.37.0369fe11
feat: base64 default for sast analysisMaintainer changes
This version was pushed to npm by snyk-admin, a new releaser for snyk since your current version.
Updates
debug
from 2.2.0 to 2.6.9Release notes
Sourced from debug's releases.
... (truncated)
Changelog
Sourced from debug's changelog.
... (truncated)
Commits
13abeae
Release 2.6.9f53962e
remove ReDoS regexp in %o formatter (#504)52e1f21
Release 2.6.82482e08
Check for undefined on browser globals (#462)6bb07f7
release 2.6.715850cb
Fix Regular Expression Denial of Service (ReDoS)4a6c85c
update "debug" to v1.0.0 (#454)b68dbf8
Fix typo (#455)1351d2f
Inline extend function in node implementation (#452)c211947
update version for componentUpdates
xml2js
from 0.4.19 to 0.4.23Commits
Updates
qs
from 6.5.2 to 6.11.0Changelog
Sourced from qs's changelog.
... (truncated)
Commits
56763c1
v6.11.0