v1.0.1
! Breaking change from v0.4.0 -> v1.0.1 !
layout generated by layoutGenerator is no longer a function but an object with breakpoint methods. Previously layout was called the first argument being a breakpoint method. Now the methods are mapped in an object with new names. Method is is still is, but atLeast is now isAtLeast and atMost is now isAtMost.
Migration checklist:
- Change e.g.
layout('is', 'mobile')tolayout.is('mobile')and e.g.layout('atLeast', 'tablet')tolayout.isAtLeast('tablet') - Change
queryprops inBreakpointcomponents accordingly, e.g.query={{ method: 'atMost', breakpoint: 'tablet' }}->query={{ method: 'isAtMost', breakpoint: 'tablet' }}.