Skip to content

Releases: emrocode/darkify-js

Release v1.1.11

07 Sep 18:29
v1.1.11
06c4291

Choose a tag to compare

New Release 🎉

  • Code optimization
  • Remove IIFE and CJS bundle, keep only ESM and UMD outputs

Release v1.1.10

06 Sep 21:10
v1.1.10
f98c6e5

Choose a tag to compare

New Release 🎉

  • Re-add *.cjs.js output file

Release v1.1.9

06 Sep 20:59
v1.1.9
1110d65

Choose a tag to compare

New Release 🎉

  • Re-add *.cjs.js output file

Release v1.1.8

06 Sep 19:36
v1.1.8
4aaba57

Choose a tag to compare

New Release 🎉

  • Code optimization

Release v1.1.7

06 Sep 19:20
v1.1.7
9de6f2c

Choose a tag to compare

New Release 🎉

  • Code optimization

Release v1.1.6

06 Sep 18:46
v1.1.6
1225424

Choose a tag to compare

New Release 🎉

  • Code optimization

Release v1.1.5

28 Mar 20:36
v1.1.5
19a9099

Choose a tag to compare

New Release 🎉

  • Converted several functions to private class fields for encapsulation.
  • Added new methods to handle theme synchronization and retrieve current theme.
  • Renamed onClick() to toggleTheme() for better clarity

Changes:

  • Converted functions to private class fields:
    • getOsPreference()#getOsPreference()
    • createAttribute()#createAttribute()
    • updateTags()#updateTags()
    • savePreference()#savePreference()
  • New methods added:
    • getCurrentTheme() - Fetches the current theme preference.
    • syncThemeBetweenTabs() - Synchronizes the theme preference across all open tabs.
  • Method renaming:
    • onClick()toggleTheme()

Release v1.1.4

30 Sep 19:25
v1.1.4
2ad9d8a

Choose a tag to compare

New release 🎉

  • Code optimization
  • The storage key darkify-theme is now theme

Release v1.1.3

25 May 19:25
v1.1.3
0763d3a

Choose a tag to compare

New release 🎉

  • Add additional outputs for improved compatibility

Release v1.1.2

25 Jan 22:33
v1.1.2
54182da

Choose a tag to compare

New release 🎉

  • Code optimization

Darkify can now be used without providing specific options, using the default values:

// example
import Darkify from "darkify-js"
new Darkify("#element")