Skip to content

v1.0.1

Choose a tag to compare

@nygardk nygardk released this 18 Sep 07:02
· 24 commits to master since this release

! 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') to layout.is('mobile') and e.g. layout('atLeast', 'tablet') to layout.isAtLeast('tablet')
  • Change query props in Breakpoint components accordingly, e.g. query={{ method: 'atMost', breakpoint: 'tablet' }} -> query={{ method: 'isAtMost', breakpoint: 'tablet' }}.