You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preserve instance identity in Toggle.rerender() - Replaces destroy+recreate with in-place rebuild that preserves the same object reference, making external references to this.element.bsToggle safe.
Replace Grunt with npm scripts and modern tooling - Removes Grunt and 4 Grunt plugins, replacing with tsc, rollup, postcss, and rimraf. Build artifacts now isolated to dist/tmp/. Adds parallel watch mode with concurrently.
BREAKING CHANGE: TypeScript declaration output moved from src/main/@types to dist/tmp/@types (affects developers building from source only)
Upgrade TypeScript target to ES2016 - Changes target from ES5 to ES2016 across all tsconfig files, adding explicit type roots and noEmit flags. Normalizes configuration consistency.
Side effects configuration for tree-shaking - Updated sideEffects in package.json to explicitly include CSS and JS files, preventing them from being dropped by bundlers during optimization.
Global constants exposure in non-module environments - Exposed Events, Methods, StateValue, and StateStatus as properties on the global window.BootstrapToggle object for easy access in script-tag usage. Maintains CommonJS backward compatibility.
Type safety for DOM toggle integration - Replaced unsafe type assertions with proper TypeScript patterns using querySelectorAll<HTMLInputElement> generics and extended interface declarations for correct inheritance, eliminating as assertions where possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ℹ️ What's Changed
🔁 Changed
Preserve instance identity in Toggle.rerender() - Replaces destroy+recreate with in-place rebuild that preserves the same object reference, making external references to
this.element.bsTogglesafe.c02fcfcReplace Grunt with npm scripts and modern tooling - Removes Grunt and 4 Grunt plugins, replacing with tsc, rollup, postcss, and rimraf. Build artifacts now isolated to
dist/tmp/. Adds parallel watch mode with concurrently.src/main/@typestodist/tmp/@types(affects developers building from source only)7e30d3cUpgrade TypeScript target to ES2016 - Changes target from ES5 to ES2016 across all tsconfig files, adding explicit type roots and noEmit flags. Normalizes configuration consistency.
d9b6318Export published CSS and JS assets - Ensures built assets are properly exported for package consumers.
242c7f4Fix Cypress configuration file naming - Renames Cypress config file to use
.cjsextension.f428911✅ Fixed
Side effects configuration for tree-shaking - Updated
sideEffectsin package.json to explicitly include CSS and JS files, preventing them from being dropped by bundlers during optimization.element.bootstrapToggle()when imported via bundlers #334 by @palcarazm in 9d34717Global constants exposure in non-module environments - Exposed
Events,Methods,StateValue, andStateStatusas properties on the globalwindow.BootstrapToggleobject for easy access in script-tag usage. Maintains CommonJS backward compatibility.Type safety for DOM toggle integration - Replaced unsafe type assertions with proper TypeScript patterns using
querySelectorAll<HTMLInputElement>generics and extended interface declarations for correct inheritance, eliminatingasassertions where possible.🆙 Dependencies, CI/CD, and Others
Dependency updates:
@commitlint/clifrom20.5.3to21.0.2@commitlint/config-conventionalfrom20.5.3to21.0.2commitlintfrom20.5.3to21.0.2typescriptfrom5.9.3to6.0.2@types/jqueryfrom3.5.34to4.0.0@rollup/plugin-terserfrom0.4.4to1.0.0cypress-plugin-tabfrom1.0.5to2.0.0GitHub Actions updates:
cypress-io/github-actionfrom7.1.2to7.4.0SonarSource/sonarqube-scan-actionfrom7.0.0to8.0.0actions/upload-pages-artifactfrom4to5actions/download-artifactfrom7to8actions/deploy-pagesfrom4to5actions/upload-artifactfrom6to7actions/configure-pagesfrom5to6CI/CD improvements:
bs-darkmode-togglefrom1.0.0-rc1to1.0.0in docs, switching from cookies to local storage for theme preferenceFull Changelog: v5.3.3...v5.4.1
All reactions