Skip to content

v1.1.1

Compare
Choose a tag to compare
@designcise designcise released this 30 Nov 21:44
· 75 commits to main since this release
  • Fixed window is not defined error caused by getPreference() function
  • Added Html component for automatically applying theme className and color-scheme
  • Added three different ways to avoid flicker on load in the quick start section of the docs
  • Added isServer() function in local scope of theme helper file
  • Added autoAntiFlicker prop to ThemeProvider to dis/allow automatic injection of inline script to prevent flicker
  • Added more tests
  • Moved getColor() to color.helper.js
  • Moved ThemeProvider and ThemeContext to context folder
  • Created client/server config for two different exports
  • getColor() is accessible on server side with an import from @designcise/next-theme-toggle/server
  • Exported code is now in ES modules format instead of CommonJS
  • Refactored cookie.helper to a more generic storage.adapter