All notable changes to this project will be documented in this file.
- Added a warning in readme about rating numbers not being handled by the component.
- Updated dependencies.
- Locked
sveltejs/kit
version to1.0.0-next.405
until the API is more stable.
- Fixed last star disappearing if
rating
had more than one decimal0
, ie3.00002
or4.001
.
- Package rewritten to use SvelteKit and Vite instead of Rollup. Packaged with
svelte-kit package
. - Fully typed.
- Removed the
id
prop.
- Updated
rollup
plugins.
- Added SvelteKit in readme.
- Updated dependencies.
- Make rating display (svg stars and text) reactive.
- Throw Error if rating value is not valid (higher than 5, lower than 0, or not a number).
- Refactor code (svelte eslint) a little.
- Readme.
- Fixed typo.
- Fix problem with build
- The component creates a unique id, so it is not needed from the user anymore when the component is used many times.
- The id prop is no longer needed in any case, so it will be removed in the next major version.
- Fixed typos in comments.
style
config option to passcss
styles directly to the component.
🎊 Initial release.
- Basic component that shows a star rating when passed a number from 0 to 5.0.
- Config options to set star colors.
- Config option to set star size.
- Config option to choose if show rating text.