refactor: rename assembly and package from DecoWeaver to LayeredCraft.DecoWeaver#41
Merged
ncipollina merged 2 commits intomainfrom Mar 29, 2026
Conversation
…ility Force LF line endings for test case .cs and .verified.cs files via .gitattributes, and normalize CRLF to LF in GeneratorTestHelpers when reading source files. Roslyn's GetInterceptableLocation() hashes the raw source text, so CRLF on Windows produced different data values than LF on Mac, causing snapshot mismatches. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
….DecoWeaver Renames all namespaces, generated code namespaces, build props/targets, snapshot filenames, and hint names to align with the LayeredCraft.DecoWeaver package identity. Also fixes a cross-platform CRLF/LF issue in test case files that caused snapshot hash mismatches between macOS and Windows. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
Renames all assembly, package, and namespace identifiers from
DecoWeavertoLayeredCraft.DecoWeaverto align with the project's full identity. This is a new package release — consumers will referenceLayeredCraft.DecoWeaver.AttributesandLayeredCraft.DecoWeaver.Generatorsdirectly, with no migration path needed from the old names.Also fixes a cross-platform CRLF/LF discrepancy that caused
[InterceptsLocation]data hashes to differ between macOS and Windows, breaking snapshot tests on Windows.Changes
Namespaces and generated code
DecoWeaver.Attributes→LayeredCraft.DecoWeaver.AttributesDecoWeaver.Generated→LayeredCraft.DecoWeaver.Generated(Scriban template + sample project)DecoWeaver.Interceptors.ClosedGenerics.g.cs→LayeredCraft.DecoWeaver.Interceptors.ClosedGenerics.g.csBuild infrastructure
DecoWeaver.props/DecoWeaver.targets→LayeredCraft.DecoWeaver.props/LayeredCraft.DecoWeaver.targetsLayeredCraft_DecoWeaver_EnableInterceptors.csprojpack item paths and DLL references updatedProvider namespace pattern matching (bug fix)
DecoratedByGenericProvider,DecoratedByNonGenericProvider,ServiceDecoratedByProvidereach had a hardcoded C# property pattern matchingglobal::DecoWeaver.Attributes(2-level). Updated to matchglobal::LayeredCraft.DecoWeaver.Attributes(3-level) so attribute discovery works correctly.Snapshot tests
.verified.cssnapshot files renamed to match newsut=LayeredCraft.DecoWeaver.DecoWeaverGenerator#LayeredCraft.DecoWeaver.Interceptors.ClosedGenerics.gnaming//HintName:comment inside each snapshot updated to match new hint nameCross-platform line ending fix
.gitattributesrules to enforce LF on*.verified.csand test case.csfilesNormalizeLineEndings()inGeneratorTestHelpers.csapplied when reading source files into the in-memory compilation, ensuring consistent[InterceptsLocation]data hashes on both macOS and WindowsValidation
Release Notes
New package identities:
LayeredCraft.DecoWeaver.Attributes(wasDecoWeaver.Attributes)LayeredCraft.DecoWeaver.Generators(wasDecoWeaver.Generators)Generated interceptors now emit into
namespace LayeredCraft.DecoWeaver.Generated. Consumer projects must update their<InterceptorsNamespaces>MSBuild property accordingly (handled automatically when referencing the new package via the bundled.props/.targets).🤖 Generated with Claude Code