Skip to content

Align Core namespaces and builder extension typing - #34

Merged
woksin merged 16 commits into
mainfrom
refactor/core-cleanup
Sep 25, 2026
Merged

woksin merged 16 commits into
mainfrom
refactor/core-cleanup

Conversation

@woksin

@woksin woksin commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Arc for TypeScript 0.24.0 continues aligning @cratis/arc.core with Arc.Core's namespaces and cleans up its public surface. None of these packages has been published to npm. npm publication remains disabled, and full .NET parity is not yet available.

Added

  • server.validateCommand(...) and app.validate(...) run a command's authorization and validation without executing it, like .NET's command pipeline Validate.

Changed

  • Builder methods added by integration packages (withChronicle, withMongoDB, withDrizzle, addCratis) are typed through a builder extension interface, so they type-check wherever the builder is used, including in @cratis/arc.testing and in installed packages.
  • Core modules live in the namespaces that own them, as in Arc.Core.

Removed

  • The validateOnly flag on executeCommand and execute; use validateCommand and validate.
  • Internal result helpers (malformed, status, emptyPaging, commandResult) from the root export; recordFailure moved to @cratis/arc.core/hosting.

Fixed

  • A clean build of the repository no longer fails on the Chronicle testing scenario's builder typing.

@woksin woksin added the minor New backward-compatible capabilities label Sep 25, 2026
@woksin
woksin merged commit 50c6d29 into main Sep 25, 2026
3 checks passed
@woksin
woksin deleted the refactor/core-cleanup branch September 25, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor New backward-compatible capabilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant