Skip to content

fix(package): 🐛 Harden npm package configuration#19

Merged
haskou merged 6 commits into
masterfrom
fix/library-packaging-quality
Jun 12, 2026
Merged

fix(package): 🐛 Harden npm package configuration#19
haskou merged 6 commits into
masterfrom
fix/library-packaging-quality

Conversation

@haskou

@haskou haskou commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Changes

  • Add stricter npm package metadata: exports, engines, sideEffects, and runtime tslib.
  • Require coverage thresholds and remove the test mode that allowed no tests.
  • Generate UUID and ShortId values internally using existing secure random bytes, removing external ID generator dependencies.
  • Modernize lint/Jest/TypeScript config for the latest toolchain.
  • Update and prune dependencies so the package stays lighter.

Why

The published package referenced tslib from dist without declaring it as a runtime dependency, which breaks clean consumers. The package also carried avoidable runtime/dev dependencies and older tooling config.

Validation

  • yarn lint
  • yarn build
  • yarn test:coverage with 100% global coverage
  • npm pack + install in a clean temporary consumer + require package + generate UUID, ShortId, and SymmetricKey
  • yarn outdated returns no outdated packages

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@haskou haskou merged commit ae9e6b3 into master Jun 12, 2026
3 checks passed
@haskou haskou deleted the fix/library-packaging-quality branch June 12, 2026 15:08
github-actions Bot added a commit that referenced this pull request Jun 12, 2026
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