Releases
v0.8.0
v0.8.0: code quality improvements
Compare
Sorry, something went wrong.
No results found
Changelog - 2025-10-17
Code Quality Improvements
Type Safety
Added null checks for DOM queries with clear error messages
Fixed intervalId type (removed NodeJS.Timeout, now number | undefined)
Changed slides to NodeListOf<HTMLElement> for proper typing
Made playPauseButton nullable to reflect optional element
Updated constructor to accept Partial<BhCarouselSettings>
Fixed createEvent() return type to CustomEvent<BhCarouselEventDetail>
Code Efficiency
Converted public API methods to standard method syntax (keeping event handlers as arrow functions for proper this binding)
Removed unnecessary event.currentTarget checks from handlers
TypeScript Conventions
Cleaned up JSDoc comments (removed redundant @public, @protected, and @param {Type} annotations)
Fixed typo in interface documentation
Enabled TypeScript declarations with declarationDir: "dist/js"
Build Configuration
Added explicit exports: "default" to CommonJS outputs in Rollup config for consistent usage across all module formats
You can’t perform that action at this time.