Skip to content

feat/migrate to esm only with shared tsconfig#21

Merged
lpatiny merged 7 commits intomainfrom
feat/migrate-to-esm-only-with-shared-tsconfig
May 5, 2026
Merged

feat/migrate to esm only with shared tsconfig#21
lpatiny merged 7 commits intomainfrom
feat/migrate-to-esm-only-with-shared-tsconfig

Conversation

@lpatiny
Copy link
Copy Markdown
Member

@lpatiny lpatiny commented Apr 18, 2026

  • chore: add vitest.config.ts with snapshotFormat
  • chore: migrate typedoc workflow to shared reusable workflow
  • chore: ignore .claude in .gitignore
  • test: flatten tests to top-level test() calls
  • feat!: migrate package to ESM TypeScript

lpatiny added 5 commits April 18, 2026 06:43
Prevent truncation of large snapshots by setting
`snapshotFormat.maxOutputLength` to `Number.MAX_SAFE_INTEGER`.
Replace the hand-written TypeDoc deploy steps with the shared
`zakodium/workflows/.github/workflows/typedoc.yml@typedoc-v1`
reusable workflow.
Remove the outer `describe` wrappers that only mirrored the filename
and switch from `it` to `test` so each assertion sits at the top level
of its file.
- Set `"type": "module"` and replace `"main"` / `"module"` / `"types"`
  with a single `"exports"` entry
- Drop the CJS dual-build; single `lib/` output via tsconfig.build.json
- Extend `@zakodium/tsconfig` and pin TypeScript to 5.x
- Local imports use `.ts` extensions; types use `import type`
- Add `override` modifier in test subclass
- Drop `lib-esm` from .gitignore and from eslint ignores

BREAKING CHANGE: package is now ESM-only; consumers using
require() must migrate to import, or run Node.js >= 20.19,
>= 22.12, or any 24.x or later.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (37d4326) to head (2765234).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           60        62    +2     
  Branches        12        12           
=========================================
+ Hits            60        62    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread package.json Outdated
Comment thread tsconfig.build.json
Comment thread tsconfig.json
@lpatiny lpatiny merged commit 2cd2123 into main May 5, 2026
9 checks passed
@lpatiny lpatiny deleted the feat/migrate-to-esm-only-with-shared-tsconfig branch May 5, 2026 09:39
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.

2 participants