- Added
sideEffects: falseinpackage.json- What: Mark package as tree-shakeable.
- Why: Reduce consumer bundle size and dead code retention.
- How: Set top-level
sideEffectstofalse.
- Added runtime metadata (
engines,packageManager) inpackage.json- What: Declared expected Bun/Node environments.
- Why: Better install-time clarity and CI/runtime consistency.
- How: Added
enginesandpackageManagerfields.
- Fixed root export condition order in
package.json- What: Moved
typesbeforeimport/require. - Why: Improve TypeScript/LSP resolution across tools.
- How: Reordered conditions under
exports['.'].
- What: Moved
- Added subpath exports
./react,./next,./tauri- What: Exposed explicit entrypoints.
- Why: Better DX and cleaner environment-specific imports.
- How: Added subpath mappings to built artifacts in
package.json.
- Added multi-entry build targets in
tsup.config.ts- What: Build distinct outputs for
index,react,next,tauri. - Why: Enable real subpath artifacts and smaller import surfaces.
- How: Changed
entryfrom single file to named entry object.
- What: Build distinct outputs for
- Added entry source files
- What: Added
src/react.ts,src/next.ts,src/tauri.ts. - Why: Align public exports with explicit package subpaths.
- How: Created dedicated re-export files per domain.
- What: Added
- Added browser/node envs in
.oxlintrc.json- What: Declared globals for mixed browser/server code.
- Why: Remove false-positive
no-undeferrors. - How: Added
{ browser: true, node: true }to linter env.
- Replaced unused
catch (_) {}withcatch {}- What: Removed unused catch variables.
- Why: Eliminate no-unused-vars errors and improve clarity.
- How: Updated catch blocks in runtime/domain/adapter files.
- Replaced broken formatter scripts with Prettier CLI checks
- What: Switched
formatandformat:checkscripts. - Why: Ensure cross-environment script reliability.
- How: Added explicit Prettier commands with style flags.
- What: Switched
- Applied formatting to
src/**/*.{ts,tsx}- What: Normalized style across source files.
- Why: Pass format gate and reduce diff churn in future.
- How: Ran
bun run format.
- Rewrote
README.mdto match current API- What: Updated install/usage/options and subpath imports.
- Why: Prevent configuration mismatch and onboarding confusion.
- How: Replaced stale docs with API-aligned content.
- Quality checks pass locally
- What:
bun run checksucceeds. - Why: Baseline quality gate for safe release.
- How: Validated lint, format, type-check, and tests.
- What:
- Build and pack dry run pass
- What:
bun run buildandnpm.cmd pack --dry-runsucceed. - Why: Verify publish artifact correctness.
- How: Confirmed generated dist files and tarball contents.
- What: