v2.0.0: Input validation, modern tooling, improved TypeScript support#2
Merged
Conversation
…upport BREAKING CHANGES: - Invalid inputs now throw ColorAlgorithmError instead of failing silently - Requires Node.js 18+ (previously supported older versions) - Package is now ESM-first with CommonJS compatibility New Features: - Input validation with helpful error messages and error codes - New exports: ColorAlgorithmError, ErrorCodes, and TypeScript types - JSDoc documentation for the generate() function Developer Experience: - Migrated from Jest to Vitest for faster testing - Added ESLint v9 with flat config (eslint.config.mjs) - Added GitHub Actions CI workflow (Node 18, 20, 22) - Added CONTRIBUTING.md with development guidelines - Updated README with migration guide and error handling docs Dependencies: - Updated chroma-js to v3.0.0 - Updated TypeScript to v5.5.4 - Updated Rollup and plugins to latest versions - Added vitest v4, typescript-eslint v8 Build Improvements: - Cleaner dist output (single bundle.d.ts, removed duplicate types/) - Added tsconfig.build.json for build-specific settings - Package now uses "type": "module" with proper exports map 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This release is a major update that adds input validation with helpful error messages, modernizes the development tooling, and improves TypeScript support.
Breaking Changes
New Features
Developer Experience
Test Plan