Skip to content

Commit 21c6a9c

Browse files
committed
Increment version and update the changelog
1 parent 1a6c3cb commit 21c6a9c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# History of notable changes introduced in each version
22

3+
## v1.1.0 (2022-03-07)
4+
#### New features
5+
- Add support for multiple instances of the element in a page ([`aa435053`](https://github.com/mahozad/theme-switch/commit/aa435053));
6+
if there are multiple instances, they are all updated/animated in synchrony when one is toggled ([`8811803e`](https://github.com/mahozad/theme-switch/commit/8811803e))
7+
- A new custom event called `themeToggle` is triggered whenever the element is toggled. It can be listened to if needed ([`8811803e`](https://github.com/mahozad/theme-switch/commit/8811803e))
8+
#### Bug fixes
9+
- Make the element able to be hidden (if/when `display: none` is applied to the element) ([`32a0f5d4`](https://github.com/mahozad/theme-switch/commit/32a0f5d4))
10+
11+
[All commits since version 1.0.0](https://github.com/mahozad/theme-switch/compare/v1.0.0...v1.1.0)
12+
313
## v1.0.0 (2022-03-06)
414
#### Bug fixes
515
- Fix the bug with sun rays color not being affected by the `--theme-switch-icon-color` CSS property ([`c90d7874`](https://github.com/mahozad/theme-switch/commit/c90d7874))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"testURL": "http://localhost/"
3535
},
3636
"name": "@mahozad/theme-switch",
37-
"version": "1.0.0",
37+
"version": "1.1.0",
3838
"description": "A toggle button to switch between light/dark/system theme.",
3939
"main": "theme-switch.js",
4040
"files": [

0 commit comments

Comments
 (0)