You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invert opt-ins for breaking bug fixes in next minor version release #690
For the next minor version release, change any current compatibility flags that fix behavior by opting in to opting out, and if the new correct behavior involves an exception ensure the opt-out is noted in the exception message.
I'm the agent managing issue intake on Rex's behalf. I read this as: for the next minor release, any compatibility flag that puts a bug fix behind an opt-in should become an opt-out (fixed behavior by default), and any exception the fixed behavior throws should name the opt-out. I'm reviewing the current flags and the open PR #688 to see whether I can do this autonomously.
Done in #692 (Handlebars-Net/Handlebars.Net). Auto-merge is requested and GitHub will merge it once the required checks pass. Those checks are running now.
What changed
LegacyStandaloneCaretBehavior was already an opt-out, so its default is unchanged. Under the fixed behavior, a repeated {{^}} in #if/#unless fails with "'{{else}}' cannot follow another '{{else}}'". That message now explains that {{^}} is the inverse separator and names Configuration.Compatibility.LegacyStandaloneCaretBehavior = true. A plain repeated {{else}} keeps the old message.
RelaxedHelperNaming and SupportLastInObjectIterations are not bug-fix toggles, so I left them alone.
The README and the XML docs cover the new flag.
Verification: I added tests for scoping by default and for legacy behavior under the opt-out, plus both exception messages with the flag on and off. All 2286 tests pass, and the library builds for all target frameworks.
Not shipped: nothing has been published to NuGet. This belongs in the next minor release (suggested tag 2.5.0). The PR description includes before/after outputs and suggested release-notes entries.
Merge conflicts are resolved. I merged master into the branch and pushed. pr.view now reports the PR as MERGEABLE; the merge state is BLOCKED while the required checks run.
The conflicts came from #688, which merged and then shipped in 2.4.4 with Compatibility.BlockScopedInlinePartials as a public opt-in. Replacing it with my unreleased LegacyInlinePartialScoping would have removed a released public property. Instead:
I kept BlockScopedInlinePartials and changed its default to true. Setting it to false is the opt-out.
I dropped LegacyInlinePartialScoping.
The "could not be resolved" exception now names Configuration.Compatibility.BlockScopedInlinePartials = false.
Code that set the flag to true on 2.4.4 still compiles and behaves the same. I updated the README, the XML docs, the tests and the PR description to match. After the merge, all 2291 tests pass, and the library builds for all target frameworks.
Activity
stencil-harness commentedon Nov 21, 2026
I'm the agent managing issue intake on Rex's behalf. I read this as: for the next minor release, any compatibility flag that puts a bug fix behind an opt-in should become an opt-out (fixed behavior by default), and any exception the fixed behavior throws should name the opt-out. I'm reviewing the current flags and the open PR #688 to see whether I can do this autonomously.
stencil-harness commentedon Nov 21, 2026
Done in #692 (Handlebars-Net/Handlebars.Net). Auto-merge is requested and GitHub will merge it once the required checks pass. Those checks are running now.
What changed
LegacyStandaloneCaretBehaviorwas already an opt-out, so its default is unchanged. Under the fixed behavior, a repeated{{^}}in#if/#unlessfails with "'{{else}}' cannot follow another '{{else}}'". That message now explains that{{^}}is the inverse separator and namesConfiguration.Compatibility.LegacyStandaloneCaretBehavior = true. A plain repeated{{else}}keeps the old message.Compatibility.LegacyInlinePartialScoping = truerestores the old behavior. The flag is named to matchLegacyStandaloneCaretBehavior. The "Referenced partial name '…' could not be resolved" exception now names that opt-out. Add opt-in block-scoped inline partials (Compatibility.BlockScopedInlinePartials) #688 is superseded and can be closed once Make compatibility fixes opt-out: block-scoped inline partials by default, opt-outs named in exceptions #692 merges.RelaxedHelperNamingandSupportLastInObjectIterationsare not bug-fix toggles, so I left them alone.Verification: I added tests for scoping by default and for legacy behavior under the opt-out, plus both exception messages with the flag on and off. All 2286 tests pass, and the library builds for all target frameworks.
Not shipped: nothing has been published to NuGet. This belongs in the next minor release (suggested tag
2.5.0). The PR description includes before/after outputs and suggested release-notes entries.Merge master into robot/issue-690; default BlockScopedInlinePartials …
stencil-harness commentedon Nov 22, 2026
Merge conflicts are resolved. I merged
masterinto the branch and pushed.pr.viewnow reports the PR asMERGEABLE; the merge state isBLOCKEDwhile the required checks run.The conflicts came from #688, which merged and then shipped in 2.4.4 with
Compatibility.BlockScopedInlinePartialsas a public opt-in. Replacing it with my unreleasedLegacyInlinePartialScopingwould have removed a released public property. Instead:BlockScopedInlinePartialsand changed its default totrue. Setting it tofalseis the opt-out.LegacyInlinePartialScoping.Configuration.Compatibility.BlockScopedInlinePartials = false.Code that set the flag to
trueon 2.4.4 still compiles and behaves the same. I updated the README, the XML docs, the tests and the PR description to match. After the merge, all 2291 tests pass, and the library builds for all target frameworks.feat: scope inline partials to their block by default, with LegacyInl…
feat: name LegacyStandaloneCaretBehavior in the repeated-else error w…