Skip to content

v1.0.1

Compare
Choose a tag to compare
@bertysentry bertysentry released this 25 Feb 23:14
· 18 commits to main since this release

What's Changed

  • Full rewrite
  • Relies on matchMediaQueries change events only, no resize
  • Dropped support for browsers older > 10 years
  • Proper detection of screen size changes when printing, and forced synchronization of AngularJS
  • Now automatically loads the service and sets $matchMedia in $rootScope, accessible to all controllers (which is what makes most sense)
  • $matchMedia contains the below properties:
    • size: "xs|sm|md|lg", current size of the screen
    • retina: true|false, whether we're on high-DPI display
    • print: true|false, whether we're printing
    • dark: true|false, Whether we're in dark mode
  • Changed license to MIT
  • Removed old matchMedia

Full Changelog: v0.8.0...v1.0.1