Releases: palcarazm/bootstrap5-toggle
v5.1.2
ℹ️ What's Changed
🆕 Added
N/A
🔁 Changed
N/A
✅ Fixed
- fix: touch not working by @jackie-t in #194
- fix: touch event by @palcarazm in #195
🆙 Bump
- bump: bump braces from 3.0.2 to 3.0.3 by @dependabot in #183
- bump: bump dompurify from 3.1.3 to 3.1.6 by @dependabot in #185
- bump: bump cypress from 13.9.0 to 13.13.3 by @dependabot in #190
👥 New Contributors
Full Changelog: v5.1.1...v5.1.2
v5.1.1
ℹ️ What's Changed
🆕 Added
N/A
🔁 Changed
N/A
✅ Fixed
- fix: remove sanitize html for labels by @palcarazm in #175
🆙 Bump
- bump: bump jquery from 3.7.0 to 3.7.1 by @dependabot in #166
- bump: bump bootstrap from 5.3.1 to 5.3.3 by @dependabot in #168
- bump: bump cypress from 13.8.0 to 13.9.0 by @dependabot in #172
- bump: bump dompurify from 3.0.5 to 3.1.3 by @dependabot in #173
Full Changelog: v5.1.0...v5.1.1
v5.1.0
ℹ️ What's Changed
🆕 Added
- feat: Add rerender feature by @palcarazm in #162
🔁 Changed
N/A
✅ Fixed
- fix: DOM text reinterpreted as HTML by @palcarazm in #160
- fix: Added non-passive event support by @palcarazm in #163
🆙 Bump
- bump: bump dompurify from 3.0.1 to 3.0.2 by @dependabot in #126
- bump: bump cypress from 12.9.0 to 12.10.0 by @dependabot in #127
- bump: bump cypress from 12.10.0 to 12.11.0 by @dependabot in #129
- bump: bump grunt-contrib-cssmin from 4.0.0 to 5.0.0 by @dependabot in #130
- bump: bump dompurify from 3.0.2 to 3.0.3 by @dependabot in #133
- bump: bump cypress from 12.11.0 to 12.12.0 by @dependabot in #135
- bump: bump jquery from 3.6.4 to 3.7.0 by @dependabot in #136
- bump: bump dompurify from 3.0.3 to 3.0.5 by @dependabot in #146
- bump: bump bootstrap from 5.2.3 to 5.3.1 by @dependabot in #149
- bump: bump cypress from 12.12.0 to 12.17.4 by @dependabot in #151
- bump: bump @cypress/request and cypress by @dependabot in #158
Full Changelog: v5.0.6...v5.1.0
v5.0.6
ℹ️ What's Changed
✅ Fixed
- fix: Responsive Button Width (#116) by @palcarazm in #117
- fix: Doesn't size to text (#123) by @palcarazm in #124
🆙 Bump
- bump: bump cypress from 12.3.0 to 12.9.0 by @dependabot
- bump: bump grunt from 1.5.3 to 1.6.1 by @dependabot
- bump: bump dompurify from 2.4.3 to 3.0.1 by @dependabot
- bump: bump jquery from 3.6.3 to 3.6.4 by @dependabot
Full Changelog: v5.0.4...v5.0.6
v5.0.4
What's Changed
See v5.0.0-alpha Release notes. No more functional features or changes has been provided.
Full Changelog: v4.3.6...v5.0.4
v5.0.0-alpha
⚠️ Important information
This pre-release includes 3 breaking change done to improve web accessibility.
Please consider giving us feedback in the release discussion page to improve the v5.0.0 version.
1️⃣ ECMAS as main interface
You can continue using jQuery interface but the file to import had been renamed adding the jquery
suffix.
This change has been made because bootstrap have dropped jQuery dependency, so using jQuery as main interface include a new dependency that bootstrap don't have.
2️⃣ Rename option and data attribute for labels
You can continue using on
and off
options and data-attributes, but a deprecated warning will be logged in console. Please consider using onlabel
and offlabel
instead because support for deprecated options and data attributes can be removed in future versions.
In previous version, we have been adding options and data attributes to set custom property to each part of the toggle. This two legacy options and data attributes can be confusing now, so we have aligned their names with the more recent options and data attributes.
3️⃣ Change toggle on and off elements to span
Your customs styles can be affected if you were selecting toggle on and toggle off elements by the label
. Please consider using .toggle > .toggle-group > .btn:not(.toggle-handle)
instead.
The Web Content Accessibility Guidelines (WCAG) establish that an element can have only one label. With the previous approach, the toggle element had at leats two labels (even three or more if the original checkbox had one or many).
ℹ️ What's Changed
🆕 Added
- feat: Click on label switch and focus the toggle element by @palcarazm in #102
- feat: Add title definition support Closes #98 by @palcarazm in #103
🔁 Changed
- feat!: Set ecmas interface as main interface by @palcarazm in #95
- feat!: Change on and off option to onlabel and offlabel Closes #99 by @palcarazm in #100
- feat!: Change toggleOn and toggleOff elements from label to span Closes #96 by @palcarazm in #101
🆙 Bump
- bump: bump jquery from 3.6.2 to 3.6.3 by @dependabot in #93
- bump: bump cypress from 12.1.0 to 12.2.0 by @dependabot in #94
Full Changelog: v4.3.6...v5.0.0-alpha
v4.3.6
ℹ️ What's Changed
✅ Fixed
- fix (XSS): CWE-79 detected by Snyk by @palcarazm in #78
- fix: Remove attribute for if there is no ID (#80) by @palcarazm and @DarkNami in #81
🆙 Bump
- bump: Bump cypress from 11.2.0 to 12.0.2 by @dependabot in #79
- bump: Bump cypress from 12.0.2 to 12.1.0 by @dependabot in #87
- bump: Bump jquery from 3.6.1 to 3.6.2 by @dependabot in #86
Full Changelog: v4.3.5...v4.3.6
v3.7.4
⚠️ Important information
- The 01 Jan 2023, will ended the critical support of Bootstrap 4, so we have updated our security policy impacting the EOL of our version 3. Please prepare migration form Bootstrap 4 to Bootstrap 5, you can ask for help in discussions.
ℹ️ What's Changed
✅ Fixed
- fix: Remove attribute for if there is no ID Fixes (#80) by @palcarazm and @DarkNami in #90
🆙 Bump
- bump: Bump Cypress from v10.3.0 to v12.1.0 by @palcarazm in #88
- bump: Bump Jquery from v3.6.0 to v3.6.2 by @palcarazm in #89
Full Changelog: v3.7.3...v3.7.4
v4.3.5
⚠️ Important information
- We have successfully performed the compatibility test with Bootstrap 5.2.3. No regression was detected.
ℹ️ What's Changed
🆙 Bump
- bump: Bump Bootstrap from 5.2.2 to 5.2.3
- bump: Bump Cypress from 10.3.0 to 11.0.1
Full Changelog: v4.3.4...v4.3.5
v4.3.4
ℹ️ What's Changed
✅ Fixed
- fix: Handle's background color of outline toggles on hover or focus (#71) @palcarazm in #72
Full Changelog: v4.3.3...v4.3.4