v5.2.x
#228
Replies: 1 comment
-
|
Hi everyone 👋 After the 📅 RC Schedule
🛠 RC Goals
📣 Call to ActionWe encourage the community to test each RC in real projects and help us ship a robust stable release:
🤝 ContributeWe welcome contributions, testing, and suggestions!
Thank you for helping us improve bootstrap5-toggle! 💙 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This release includes a complete core refactor to TypeScript, improvements in maintainability and compatibility, and updated dependencies.
1️⃣ Complete TypeScript Refactor
Toggle,StateReducer,DOMBuilder,OptionResolver) have been rewritten in TypeScript to improve maintainability and type safety.-Option parsing, state management, and rendering logic are now centralized and modular.
2️⃣ Clear Separation of Responsibilities
Togglecoordinates events and exposes the public API.OptionResolverdecide options fromdata-attributes, user provided options and defaults options. It also handle deprecated options.StateReducermanages all toggle state logic (ON|OFF|INDETERMINATE|READONLY|DISABLED).DOMBuilderhandles rendering of the toggle and its associated elements.3️⃣ API Compatibility Preserved
jQueryclassic API$(selector).bootstrapToggle()and theECMAScriptAPIdocument.querySelector(selector).bootstrapToggle()remains fully functional using the refactored core.ℹ️ What's Changed
🆕 Added
🔁 Changed
✅ Fixed
data-onvalueattribute overvalueattribute in options parsing.🆙 Bump
jqueryfrom 3.7.1 to 4.0.0 (bump: bump jquery from 3.7.1 to 4.0.0 #277)lodashfrom 4.17.21 to 4.17.23 (bump: bump lodash from 4.17.21 to 4.17.23 #279)@commitlint/config-conventionalfrom 19.8.1 to 20.3.1 (bump: bump @commitlint/config-conventional from 19.8.1 to 20.3.1 #269)commitlintfrom 19.8.1 to 20.3.1 (bump: bump commitlint from 19.8.1 to 20.3.1 #268)globalsfrom 16.5.0 to 17.0.0 (bump: bump globals from 16.5.0 to 17.0.0 #267)@commitlint/clifrom 19.8.1 to 20.3.1 (bump: bump @commitlint/cli from 19.8.1 to 20.3.1 #266)cypressfrom 13.13.3 to 15.9.0 (multiple updates: bump: bump cypress from 13.13.3 to 14.1.0 #210, bump: bump cypress from 15.8.1 to 15.8.2 #265, 780e658)@typescript-eslint/parserfrom 8.52.0 to 8.53.0 (bump: bump @typescript-eslint/parser from 8.52.0 to 8.53.0 #278)@typescript-eslint/eslint-pluginfrom 8.52.0 to 8.53.0 (cbad57f)rollupfrom 4.54.0 to 4.55.1 (a8c1dbf)Full Changelog: v5.1.3...v5.2.0
Beta Was this translation helpful? Give feedback.
All reactions