Skip to content

Commit 19a9099

Browse files
committed
New version v1.1.5
1 parent 160bd1b commit 19a9099

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,21 @@ jobs:
2020
tag_name: ${{ github.ref }}
2121
release_name: Release ${{ github.ref }}
2222
body: |
23-
New release :tada:
24-
- Code optimization
25-
- The storage key `darkify-theme` is now `theme`
23+
New Release :tada:
24+
- Converted several functions to private class fields for encapsulation.
25+
- Added new methods to handle theme synchronization and retrieve current theme.
26+
- Renamed `onClick()` to `toggleTheme()` for better clarity
27+
28+
Changes:
29+
- Converted functions to private class fields:
30+
- `getOsPreference()` β†’ `#getOsPreference()`
31+
- `createAttribute()` β†’ `#createAttribute()`
32+
- `updateTags()` β†’ `#updateTags()`
33+
- `savePreference()` β†’ `#savePreference()`
34+
- New methods added:
35+
- `getCurrentTheme()` - Fetches the current theme preference.
36+
- `syncThemeBetweenTabs()` - Synchronizes the theme preference across all open tabs.
37+
- Method renaming:
38+
- `onClick()` β†’ `toggleTheme()`
2639
draft: false
2740
prerelease: false

β€Žpackage-lock.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "darkify-js",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "A simple dark mode toggle library",
55
"type": "module",
66
"main": "dist/darkify.cjs.js",

0 commit comments

Comments
Β (0)