Skip to content

refactor!: rename all namespaces to LayeredCraft.DynamoMapper.*#86

Merged
ncipollina merged 4 commits intomainfrom
build/deps-pin-codeanalysis-5-0-0
Mar 30, 2026
Merged

refactor!: rename all namespaces to LayeredCraft.DynamoMapper.*#86
ncipollina merged 4 commits intomainfrom
build/deps-pin-codeanalysis-5-0-0

Conversation

@ncipollina
Copy link
Copy Markdown
Contributor

Summary

Renames every C# namespace, using statement, Scriban template directive, and WellKnownType enum member from the old DynamoMapper.* prefix to LayeredCraft.DynamoMapper.*. This aligns the codebase with the new NuGet package IDs (LayeredCraft.DynamoMapper and LayeredCraft.DynamoMapper.Runtime) already set in the .csproj files. Because this is a pre-release package with no prior consumers, no backwards-compatibility shim is provided.

Changes

Build / project files

  • Directory.Build.props — updated version prefix
  • Directory.Packages.props — pinned Microsoft.CodeAnalysis to 5.0.0, bumped remaining deps
  • Both .csproj files — AssemblyName and RootNamespace now derive from the new PackageId values

Source (src/)

  • All namespace and using declarations in LayeredCraft.DynamoMapper.Generators updated from DynamoMapper.Generator.*LayeredCraft.DynamoMapper.Generator.*
  • All namespace and using declarations in LayeredCraft.DynamoMapper.Runtime updated from DynamoMapper.RuntimeLayeredCraft.DynamoMapper.Runtime
  • WellKnownTypeData enum members renamed from DynamoMapper_Runtime_*LayeredCraft_DynamoMapper_Runtime_* to satisfy the compile-time enum/type-name assertion
  • Mapper.scriban template updated: using DynamoMapper.Runtimeusing LayeredCraft.DynamoMapper.Runtime

Tests (test/)

  • All test using statements updated
  • All Verify.SourceGenerators snapshot baselines regenerated to reflect the new using LayeredCraft.DynamoMapper.Runtime directive in generated code

Examples (examples/)

  • All using and namespace declarations updated

Validation

  • dotnet build — 0 errors, 11 warnings (pre-existing RS2001 analyzer warnings)
  • dotnet test (net10.0) — 94/94 generator snapshot tests passed, 245/245 runtime tests passed
  • Snapshot baselines accepted after confirming only the using directive line changed

Breaking Changes

  • What changed: All public namespaces renamed.
  • Previous: using DynamoMapper.Runtime;
  • New: using LayeredCraft.DynamoMapper.Runtime;
  • Migration: Update any using DynamoMapper.* statements to using LayeredCraft.DynamoMapper.*. Since this package is pre-release (0.1.0-alpha) with no published consumers, no migration guide is required.

Release Notes

NuGet package IDs are now LayeredCraft.DynamoMapper and LayeredCraft.DynamoMapper.Runtime. The root namespace for all public types is LayeredCraft.DynamoMapper.Runtime.

🤖 Generated with Claude Code

ncipollina and others added 4 commits March 23, 2026 10:51
Downgrades Microsoft.CodeAnalysis.Common and Microsoft.CodeAnalysis.CSharp
from 5.3.0 to 5.0.0 to work around a bug in the newer version that breaks
source generator interception. Also updates AWSSDK.DynamoDBv2 (4.0.15 →
4.0.17), Scriban (6.6.0 → 7.0.0), and bumps VersionPrefix to 1.0.6.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Renames every C# namespace, using statement, and WellKnownType enum
member from the old DynamoMapper.* prefix to LayeredCraft.DynamoMapper.*
to align with the new NuGet package IDs (LayeredCraft.DynamoMapper and
LayeredCraft.DynamoMapper.Runtime). Also sets AssemblyName and
RootNamespace in both .csproj files and updates the Verify snapshot
baselines to reflect the new runtime using directive in generated code.

BREAKING CHANGE: All public namespaces have changed. Consumers must
update their using statements from DynamoMapper.Runtime to
LayeredCraft.DynamoMapper.Runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Updates README.md and all docs/ pages to reflect the package rename
from DynamoMapper to LayeredCraft.DynamoMapper:

- Headings, titles, and NuGet badges updated to LayeredCraft.DynamoMapper
- All using statements in code blocks changed to LayeredCraft.DynamoMapper.Runtime
- Package install commands changed to LayeredCraft.DynamoMapper
- Runtime/generator package name references updated in requirements.md
- Migration callout added to README, docs/index.md, and installation.md
  explicitly noting this supersedes the DynamoMapper package
- Changelog documents the breaking namespace/package rename

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ncipollina ncipollina merged commit 15d0820 into main Mar 30, 2026
@ncipollina ncipollina deleted the build/deps-pin-codeanalysis-5-0-0 branch March 30, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant