Skip to content

refactor: ORM-agnostic core with Drizzle adapter#13

Merged
ssilvius merged 5 commits intomainfrom
feat/5-update-tests
Apr 13, 2026
Merged

refactor: ORM-agnostic core with Drizzle adapter#13
ssilvius merged 5 commits intomainfrom
feat/5-update-tests

Conversation

@ssilvius
Copy link
Copy Markdown
Contributor

Summary

Restructures the package into an ORM-agnostic core (@rafters/ledger) and a Drizzle adapter (@rafters/ledger/drizzle). Future ORM adapters (Kysely) slot in alongside.

Test plan

  • pnpm preflight passes (lint, format, typecheck, 112 tests)
  • pnpm build produces correct dist/ structure
  • All subpath imports resolve

ssilvius and others added 5 commits April 13, 2026 14:32
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Split and move test files to mirror the src/core and src/drizzle layout.
Tests for pure helpers (context, soft-delete values, anonymizeJsonData) now
live under test/core/, while Drizzle-coupled tests (db, logger, query
filters, purgeUserData) live under test/drizzle/. Vitest aliases updated
to match the new package export paths. All 112 tests pass unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All import paths updated to reflect the ORM-agnostic core at
@rafters/ledger and the Drizzle adapter at @rafters/ledger/drizzle.
Dialect-specific columns and schema now live at
@rafters/ledger/drizzle/soft-delete/* and @rafters/ledger/drizzle/schema/*.
api-reference.mdx reorganized into three sections by entry point.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ssilvius ssilvius merged commit 4f2e65c into main Apr 13, 2026
1 check passed
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.

refactor: extract ORM-agnostic core into src/core/

1 participant