Coralite v0.18.3
Coralite v0.18.3 introduces configurable step values for the counter component, refines type definitions for improved developer experience, and includes several bug fixes and documentation updates to enhance stability and clarity.
Key Features #
- Added configurable
stepvalue to thecountercomponent, allowing users to define custom increment/decrement intervals (e.g., 1, 5, 10) via component attributes or props. This functionality is now included as a template in thecoralite-scriptsscaffolding tool, providing an example implementation for developers to extend. - Updated type definitions for
refresolution to improve type safety and clarity in TypeScript environments. - Introduced two new type definitions:
CoralitePathValuesandCoraliteValuesfor better type consistency across the core library.
Bug Fixes #
- Removed unnecessary types build step, reducing build complexity and potential errors.
- Added missing exports to JSDoc type files to ensure proper type documentation generation.
- Removed unused
CoraliteModuleScriptcallback and updated documentation fortokensandslotsparameters to improve code clarity. - Added null safety checks for
customElementsaccess in theinitialisemethod to prevent runtime errors in environments wherecustomElementsis not available.
Documentation & Type Safety #
- Added
CoraliteValuestype definition to theinitialisemethod documentation, improving type guidance for developers using the API.
Get the release #
npm install coralite@0.18.3
For a complete list of changes, view the v0.18.3 changelog on Codeberg.
