This project follows Conventional Commits specification. All commit messages should be structured as follows:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
- feat - a new feature.
- fix - a bug fix.
- docs - documentation only changes.
- style - changes that do not affect the meaning of the code.
- refactor - a code change that neither fixes a bug nor adds a feature.
- perf - a code change that improves performance.
- test - adding missing tests or correcting existing tests.
- chore - changes to the build process or auxiliary tools.
- revert - reverting a previous commit.
- build - changes that affect the build system or external dependencies.
- ci - changes to our CI configuration files and scripts.
feat: add wave pattern animation
fix: resolve memory leak in canvas cleanup
docs: update installation instructions
style: fix linting issues in src/index.ts
refactor: simplify noise generation algorithm
test: add unit tests for pattern switching
chore: update dependencies to latest versions
ci: configure GitHub Actions for CI
build: update Vite configuration for production build
revert: revert "feat: add wave pattern animation"
perf: optimize rendering loopFor breaking changes, add ! after the type/scope and include BREAKING CHANGE: in the footer:
feat!: change pattern API signature
BREAKING CHANGE: Pattern constructor now requires options object instead of individual parametersTo help create properly formatted commits, you can use commitizen:
npm run commitThis will guide you through creating a conventional commit message.
- Make your changes.
- Run tests:
npm run test:run. - Build the library:
npm run build. - Commit using:
npm run commit. - Create a pull request.
Releases are automated via GitHub Actions. To create a new release:
- Go to the repository's Actions tab.
- Run the "Version bump and release" workflow.
- Choose the appropriate version bump type (patch/minor/major).
This will:
- Run all tests.
- Bump the version.
- Generate a changelog.
- Create a GitHub release.
- Publish to NPM.
- Deploy to CDN.