1
mirror of https://github.com/jakejarvis/dark-mode.git synced 2025-04-25 14:05:22 -04:00

15 Commits

Author SHA1 Message Date
57989cf25f switch to microbundle 2021-11-11 10:44:56 -05:00
45d856cab3
add onUserToggle callback, move onInit and onChange up 2021-10-04 09:25:10 -04:00
02f772dd46
Rename package from @jakejarvis/dark-mode to dark-mode-switcheroo 2021-09-09 17:48:20 -04:00
fa128cb222
remove super-duper edge case testing of localStorage support
use the following methods externally to test on older browsers if needed:
- https://www.npmjs.com/package/storage-available
- https://www.npmjs.com/package/local-storage-fallback
- https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API#testing_for_availability
2021-08-22 10:38:26 -04:00
eb6d058b5b
set "sideEffects": false 2021-08-16 23:06:22 -04:00
01ff103e08
Update README 2021-08-05 12:02:56 -04:00
6bf29bca6f
Update README 2021-08-05 08:12:49 -04:00
cfa1f575e3
add onInit and onChange callback function options 2021-08-05 07:54:47 -04:00
eedd0a96e0
much simpler bundling with rollup, also generate separate ESM and CJS files 2021-08-04 19:16:33 -04:00
e4d7e4f61b
remove unnecessary deps (now zero 😎) 2021-08-04 15:19:54 -04:00
4881b908e9
expose an init function instead of exporting as module default 2021-08-04 15:00:26 -04:00
2e862538c0
Update README.md 2021-08-04 11:42:41 -04:00
df3b462de0
bundle into a UMD script via webpack for both browser & node 2021-08-04 11:31:37 -04:00
2d02c52925
Update README.md 2021-08-03 13:23:21 -04:00
738f9098fe
initial commit 🎉 2021-08-03 10:30:10 -04:00