Skip to content

chore: clean up obsolete docs and align remaining files with defineErrors v2#102

Merged
braden-w merged 3 commits intomainfrom
chore/docs-cleanup
Mar 3, 2026
Merged

chore: clean up obsolete docs and align remaining files with defineErrors v2#102
braden-w merged 3 commits intomainfrom
chore/docs-cleanup

Conversation

@braden-w
Copy link
Collaborator

@braden-w braden-w commented Mar 3, 2026

Follow-up to #101 (defineErrors v2). This cleans up documentation that was either obsolete or still referencing the old createTaggedError API after the v2 migration.

Two large files — README_OG.md (865 lines) and README_MD.md (1,081 lines) — were historical drafts built entirely on the old API, now fully superseded by the current README.md. Two integration guides — nextjs-app-router.mdx (~1,194 lines) and nodejs-express.mdx (~1,330 lines) — were generic framework tutorials with minimal wellcrafted-specific content and fabricated test examples; focused replacements can be written from scratch when needed.

The remaining changes update stale TaggedError imports, mapErrorcatch references, and context/cause nesting patterns across NAMING_CONVENTION.md, the launch specs, and effect-comparison.md to use defineErrors / InferError / InferErrors consistently.

braden-w added 3 commits March 2, 2026 19:27
Replace stale TaggedError imports, mapError/mapErr params, and
context/cause nesting with defineErrors, catch, and flat error fields
across docs, naming convention, and launch specs.
Both files were historical drafts entirely built on the old
createTaggedError/TaggedError API. All their content is covered
by the current README.md with correct defineErrors patterns.
Remove nextjs-app-router.mdx (1,193 lines, ~20% wellcrafted-specific)
and nodejs-express.mdx (1,329 lines, ~15% wellcrafted-specific) — both
were generic framework tutorials with anti-patterns and fabricated tests.
Focused replacements can be written from scratch later.

Remove completed internal spec (brand-docs-validation-guide.md).

Fix mapError → catch in implementation.mdx code example.
@braden-w braden-w force-pushed the chore/docs-cleanup branch from 8cca3ca to 442f8cb Compare March 3, 2026 03:27
@braden-w braden-w changed the title chore: clean up obsolete docs and update remaining files to defineErrors v2 chore: clean up obsolete docs and align remaining files with defineErrors v2 Mar 3, 2026
@braden-w braden-w merged commit 1b50a39 into main Mar 3, 2026
2 checks passed
@braden-w braden-w deleted the chore/docs-cleanup branch March 3, 2026 03:29
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