Repository navigation
Bump Handlebars.Net from 1.11.5 to 2.1.6 - #16884
Merged
Merged
Conversation
--- updated-dependencies: - dependency-name: Handlebars.Net dependency-version: 2.1.6 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Member
|
@copilot fix the build: react to the breaking changes in Handlebars.Net |
Contributor
Fixed the build in 61d4de5. Handlebars.Net 2.x breaking changes addressed:
All three SwaggerGenerator projects (CodeGenerator, CmdLine, MSBuild) build clean. |
ViktorHofer
approved these changes
May 26, 2026
akoeplinger
approved these changes
May 26, 2026
This was referenced May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated Handlebars.Net from 1.11.5 to 2.1.6.
Release notes
Sourced from Handlebars.Net's releases.
2.1.6
Changes
Maintenance 🧰
Added in missing SDK's for release @thompson-tomo (#579)
Added in required sdk's for the release build which was missed in #578
Update of TFM & dependency optimisation @thompson-tomo (#578)
By adjusting the TFM'S we have been able to produce a package with no dependencies on the latest frameworks hence an optimised dependency graph.
The following frameworks have been added:
The following frameworks even though requested was not added:
The following frameworks were removed:
Closes: #573
Closes: #415
Contributors
@oformaniuk and @thompson-tomo
2.1.5
Changes
#574 Repo readme is mirrored into nuget package @thompson-tomo (#575)
Closes #574Features 🚀
Add EmbedUntrackedSources @lahma (#570)
EmbedUntrackedSourcesto remove one warning, see https://nuget.info/packages/Handlebars.Net/2.1.4I would also suggest changing to use newer GH Actions images for building so that other warnings would go away (old SDK in use). Maybe another modernization step could be removing old unsupported full framework targets and only support oldest supported
net462. Addingnet6.0target would allow one target without dependency onMicrosoft.Csharp.Use PackageLicenseExpression in NuGet package @StefH (#564)
Bug Fixes 🐛
Introduce PartialRecursionDepthLimit @RoosterDragon (#552)
When evaluating templates with partials, it is possible to recurse in the evaluation of those partials. This can be useful for dealing with tree like data, such as rendering a list of friends-of-friends-of-friends-of-etc....
The ability to recurse can lead to stack overflows. For example if a sufficiently deep tree is provided as input data, or more simply if the partial calls itself in an infinite loop. As a stack overflow terminates the process, this is not desirable behaviour as it is an unavoidable crash.
To resolve this a configurable PartialRecursionDepthLimit is introduced, defaulting to 100. Now when a template is evaluated a HandlebarsRuntimeException will be thrown if this limit is reached. This allows the caller to catch the exception and recover gracefully, rather than terminating the process.
Allow slashes properly within escape blocks @Hoeksema (#567)
closes #566
The path parsing currently doesn't work properly when there are embedded slashes within an ignore block.
This PR fixes this issue:
//within an escaped block/to occur within an escape block without breakageBefore, the individual segments between slashes in addition to the entire escaped block were returned by PathInfo. Now, it returns just the latter, which is correct. All existing unit tests still pass and new tests were added to exercise the failing cases in #566.
Throw properly on open ignore block instead of crashing @Hoeksema (#569)
Closes #568
Resolve the hang on compile when there is an open ignore block
Reshuffle the logic so that the throw check for end of template is done before trying to process the char
... (truncated)
2.1.4
Features 🚀
Add optional 3rd argument to lookup helper @StefH (#542)
Contributors
@StefH
2.1.3
Changes
Fix 535 OutOfMemoryException @anth12 (#536)
OutOfMemoryException on unrecognised template Handlebars-Net/Handlebars.Net#535
The following line currently throws an OutOfMemoryException for unrecognised expressions:
https://github.com/Handlebars-Net/Handlebars.Net/blob/01ad0e69e56331371f85a1c59c008d7ecfd06f78/source/Handlebars/Compiler/Lexer/Parsers/BlockParamsParser.cs#L28
This PR exits the while loop when reaching the end of the end of the string reader.
Rendering inline blocks are incorrectly escaped @Nisden (#538)
This pull request demonstrates the the issue experienced in #524
Contributors
@Nisden, @anth12, @rexm, @zjklee and Anthony Halliday
2.1.2
Changes
Bug Fixes 🐛
Nested partial block receives correct context @zjklee (#516)
Nested partial block receives correct context
Issues:
Contributors
@zjklee
2.1.1
Changes
Update readme.md to include extra projects @StefH (#509)
Features 🚀
Introduce
SharedEnvironment@zjklee (#514)Introduces
SharedEnvironmentto deal with big memory footprint when runtime has a lot of compiled templates.See
SharedEnvironmentdocumentation for more detailsIssues:
Bug Fixes 🐛
Fix collision handling in
FixedSizeDictionary@zjklee (#512)In rare cases (depended on
hashcode) as part of searching for a suitable place in the array search started from index greater than array length.Issues:
Fix for
stringobject property access @Dragwar (#510)Removed
ifcondition inObjectDescriptorthat checked whether the type isstringIssues:
Last letter cut off when the string starts with the separator @periklis92 (#504)
Split Enumerator strings would have the wrong length if the string started with the separator.
Issues:
Contributors
@Dragwar, @StefH, @periklis92 and @zjklee
2.1.1-beta-1
Changes
An attempt to fix IndexOutOfRangeException at FixedSizeDictionary`3.AddOrReplace Handlebars-Net/Handlebars.Net#498
This beta release contains object pooling safety improvementsContributors
@zjklee
2.1.0
Changes
Remove duplicate AliasProviders initialization @RomainHautefeuille (#486)
Features 🚀
Decorators implementation @zjklee (#489)
Issues:
Deprecate
SupportLastInObjectIterations@orgads (#482)Bug Fixes 🐛
Decorators implementation @zjklee (#489)
Issues:
Enable support for chained path iterators @abraham-fox (#488)
Issues:
Add checks for loose closing blocks @abraham-fox (#485)
Check loose closing blocks on compile time - fixes #484.
Contributors
@RomainHautefeuille, @abraham-fox, @orgads, @zjklee
2.0.10
Changes
Features 🚀
HtmlEncoding consistent with rules in handlebars.js @tommysor (#473)
The original issue this PR was intended to solve have been fixed in PR #477.
This PR now deals with general rules for encoding in Handlebars.Net vs handlebars.js.
Support
@lastby default. @orgads (#481)Fixes #480
Bug Fixes 🐛
Fix path parsing when contains
[a/b]@zjklee (#478)Fixes #470
UnencodedStatementVisitorresets value to previously existing value when done @tommysor (#477)Fix #468 HandlebarsDotNet.Handlebars.Configuration.NoEscape Applied Inconsistently
This PR does not deal with the question of general rules for encoding that was brought up in #473.
Issue #469 @jamesfarrugia96 (#474)
Exposed additional helper registration overloads via static methods
Contributors
@jamesfarrugia96, @orgads, @tommysor, @zjklee
2.0.9
Changes
Bug Fixes 🐛
Fix memory leak at Configuration subscribers @zjklee (#456)
What's inside:
Issues:
Contributors
@zjklee
2.0.8
Changes
Bug Fixes 🐛
Allow struct collections @bsagal (#449)
Fix bug #447Performance 🐌
Improve performance for large arrays (10.000+) @albertschulz (#451)
When rendering templates with large arrays, execution time grows exponentially.
The issue originated from the cache for the iterators contained in
BoxedValues.cs. In opposite to the desired reduced memory usage, memory usage actually also explodes for the example show above.This pull request removes the cache, leaving the small boxing-cache for integer values between 0 and 20. Furthermore, it adds a benchmark for the execution time.
Contributors
@albertschulz, @bsagal and @zjklee
2.0.7
Changes
Bug Fixes 🐛
Render layouts using
LayoutViewModelinstead ofDynamicViewModel@heemskerkerik (#443)Fixes #440.
Because
DynamicViewModelis ‘too flexible’, it is difficult to provide a fully workingObjectDescriptorfor it. Instead, this introduces a new, more limitedLayoutViewModel, which intercepts binding expressions forbody, but forwards everything else, including iteration, to the main view’s model.DynamicViewModelis left unmodified, since it’s public and it’s unclear whether people actually use it.@dataobject is not accessible withinlayout@zjklee (#441)What's inside:
@dataobject is properly passed tolayoutIssues:
Only parse comments as layout when they are not escaped @heemskerkerik (#438)
Fixes #437
This lets
CommentParser.AccumulateCommentreturn whether the comment is an ‘escaped’ comment (i.e. starting with--), and only parses a layout token when it is not escaped.Contributors
@heemskerkerik and @zjklee
2.0.6
Changes
Bug Fixes 🐛
Fix multiple block params in the same template in different blocks @zjklee (#436)
What's inside:HandlebarsCompilerExceptionwhen template contains multipleblockParamsin different blocksContributors
@zjklee
2.0.5
Changes
Remove call-for-input link - V2 is out @nblumhardt (#429)
Bug Fixes 🐛
Fix child context creation when value is
nullwhen invoking partials @zjklee (#433)What's inside:
nullEnumerabledescriptorIssues:
Properly handle empty ObjectDescriptor in hash population @zjklee (#427)
What's inside:
Issues:
Contributors
@nblumhardt and @zjklee
2.0.4
Changes
Bug Fixes 🐛
Fix for Issue #412 @leniency (#413)
The
ReflectionMemberAccessorthrows an exception when accessing value type members. The internal CreateGetDelegate method must specify pass-by-reference for these types.Add boundaries check to MemberAccessor responsible for
IList*@zjklee (#409)Closes #408
Contributors
@leniency and @zjklee
2.0.3
Changes
Bug Fixes 🐛
Fix
^if,^unlessand^each@zjklee (#405)Closes
^ifis not handled as reverse condition Handlebars-Net/Handlebars.Net#387Multiple fixes to path resolvement @zjklee (#403)
What's inside:
@dataflows to child contextIssues:
Contributors
@zjklee
2.0.2
Changes
Bug Fixes 🐛
fix #394 - get first not single @mhornbacher (#398)
Fix for #394
Fix case insensitive selection of WellKnownVariable @zjklee (#397)
Closes Handlebars throws IndexOutOfRangeException Handlebars-Net/Handlebars.Net#395
Make respective classes serialize for net451 and net452 @zjklee (#396)
Closes MSTest unit tests don't run Handlebars-Net/Handlebars.Net#393
Contributors
@mhornbacher and @zjklee
2.0.1
Changes
Bug Fixes 🐛
Fix assembly signing
Contributors
@zjklee
2.0.0
Release
For the list of changes please see change log of pre-release versions:
2.0.0-rc-2
Changes
Bug Fixes 🐛
Fix subscription direction for
ObjectDescriptorFactoryandFormatterFactoryContributors
@zjklee
2.0.0-rc-1
Changes
Features 🚀
Introduce
AmbientContext@zjklee (#391)What's inside:
AmbientContextPathInfoand related classes to a separate namespacePathInfoStoreandChainSegmentStoreare now associated with the compiled template instead of being staticIntroduce value formatters @zjklee (#390)
What's inside:
Issues:
Expose inner interfaces in configuration @zjklee (#388)
What's inside:
This is done to expose only required APIs and trim internal collections implementation.
PathInfoandChainSegmentparsing.Bug Fixes 🐛
Use
Closes Stack overflow with nested templates Handlebars-Net/Handlebars.Net#383ParentContextwhen handling@partial-block@zjklee (#386)Breaking change ⛔
Introduce value formatters @zjklee (#390)
ITextEncoderinterfaceExpose inner interfaces in configuration @zjklee (#388)
Introduce
Contexttype @zjklee (#385)contextparameters is no longerdynamic... (truncated)
2.0.0-preview-2
Changes
Features 🚀
Introduce
IIterator@zjklee (#381)What's inside:
IIteratorinterfaceObjectDescriptorwith iterator definitionIssues:
#eachimplementation to make it extensible Handlebars-Net/Handlebars.Net#372Introduce
HelperOptionsto Helper and ReturnHelper @zjklee (#378)What's inside:
HelperOptionsto Helper and ReturnHelperIssues:
@dataandnoEscape@zjklee (#375)What's inside:
@databeing passed to compiled templatenoEscapeconfigurationIssues:
@datatemplate argument Handlebars-Net/Handlebars.Net#368Bug Fixes 🐛
Fix whitespace support for partials @zjklee (#382)
Closes Whitespace in opening Partial Block expression? Handlebars-Net/Handlebars.Net#217Breaking change ⛔
Introduce
HelperOptionsHelper and ReturnHelper @zjklee (#378)HelperOptionsstruct in block helpers renamed toBlockHelperOptions@dataandnoEscape@zjklee (#375)Performance 🐌
@dataandnoEscape@zjklee (#375)... (truncated)
2.0.0-preview-1
Changes
Features 🚀
Infrastructure improvements @zjklee (#371)
What's inside:
dataproperty forblockHelpersblockParamsforblockHelpersIssues:
Merging fork into trunk @zjklee (#359)
What's inside (inspired by 2.0 Planning Handlebars-Net/Handlebars.Net#294):
helperMissingandblockHelperMissing(closes Implement hooks for missing helpers Handlebars-Net/Handlebars.Net#350)IFormatProvider(closes Specifiy CultureInfo ? Handlebars-Net/Handlebars.Net#344)blockHelperlate binding (closes Helper not registered first time Handlebars-Net/Handlebars.Net#327, closes Block Helpers cannot be late bound Handlebars-Net/Handlebars.Net#194).lengthin addition to.Counton arrays Handlebars-Net/Handlebars.Net#307Performance 🐌
Infrastructure improvements @zjklee (#371)
Merging fork into trunk @zjklee (#359)
- 2-10x compilation time improvement
- 2-10x execution time improvement
- up to 20x less memory consumption during compilation and execution
... (truncated)
Commits viewable 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 show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@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)