Skip to content

Invert opt-ins for breaking bug fixes in next minor version release #690

Closed

Description

@rexm

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.

Activity

  1. stencil-harness commented on Nov 21, 2026

    @stencil-harness
    Contributor

    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.

  2. stencil-harness commented on Nov 21, 2026

    @stencil-harness
    Contributor

    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

    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.

  3. stencil-harness commented on Nov 22, 2026

    @stencil-harness
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions