Closed sijad closed 1 year ago
this changes make it easier to use Luge as ESM and exclude Bowser from bundle to save 25KB
Bowser
Breaking changes:
window.browser
window.luge.browser
disabled
Example of usage:
luge.settings({ cursor: { disabled: window.luge.browser.some(['tablet', 'mobile']) }, smooth: { disabled: window.luge.browser.some(['tablet', 'mobile']) || browser.satisfies({ safari: '<=12' }) } }) console.log(luge.browser.is('mobile'));
this changes make it easier to use Luge as ESM and exclude
Bowser
from bundle to save 25KBBreaking changes:
window.browser
renamed towindow.luge.browser
.disabled
setting no longer accept non-boolean.Example of usage: