Releases: mobiwise-dev/ShareGradient
Releases · mobiwise-dev/ShareGradient
Release list
ShareGradient v1.0.0
ShareGradient 1.0.0 is the first stable release of the project.
ShareGradient is a small browser-focused library that generates animated gradients, exports them as image URLs, and injects them into CSS custom properties so the same gradient can be reused across backgrounds, text, borders, overlays, and more.
Highlights
- Stable public builder API
- Support for
linear,radial, andconicgradients - Animation modes:
static,swirl, androtate - Shared CSS variable workflow for multi-element reuse
- Cleaner package exports for ESM and CJS consumers
- Improved runtime safety for invalid inputs
- Better controller lifecycle handling and listener cleanup
- Updated README and landing page
- Test coverage added for controller lifecycle, builder behavior, edge cases, and conic fallback
- Coverage command available with
npm run test:coverage
Notes
- ShareGradient is designed for browser environments.
- If
createConicGradient()is not supported by the browser, conic gradients fall back to a linear gradient instead of throwing.
Verification
npm test -- --runnpm run test:coveragenpm run buildnpx publintnpm audit
All checks passed for this release.