- fixed interval error
- updated Prettier config
- changed sunset & sunrise values to middle of the time between start and end
- cleaned up tests
- fixed
test:watch
script error
- added Travis CI config
- added Prettier config
- added ESLint config
- added interval to switch theme just after sunrise & sunset without page reload
- renamed method
settings()
toextendSettings()
to avoid conflict with variablesettings
- updated tests
- fixed bug with
window
global variable in Node.js
- cleaned up
- removed unused devDependencies
- updated README.md
- handle error on disallow permission to geolocation
- added
onDenied
callback - added
smartDarkError
event on disallow permission to geolocation
onCacheClear
callback is available ifcacheClear
option is enabled
- fixed
smartDark
event on auto init
- updated devDependencies
- improved
reset
method
- Updated README.md
- updated babel-loader to
^8.0.0
stable
- removed map for production version
- improved conditionals
- updated Babel to
^7.0.0
stable - updated babel-plugin-add-module-exports to
^0.3.3
- updated Webpack to
^4.17.1
- cleaned up
- added
onAuto
&onToggle
callbacks
- added
onReset
callback
- replaced value
times
withsunrise
andsunset
values in event
- renamed methods:
whereIam
tomyLocation
&checkSunPos
tocheckSunPosition
- added
auto
option (activate smart switch on plugin init)
- fixed undefined values in time calculator
- removed .babelrc from npm package
- updated README.md
- removed duplicated SunCalc scripts
- added smart dark mode (based on location, date and sun over horizon position)
- added toggle method to simple switch between light and dark mode
- settings are saved in localStorage
- added options:
lightClass
,darkClass
,cache
,cacheClear
,onLight
,onDark
,onCacheClear
- added
smartDark
event with values:times
,latitude
,longitude