Skip to content

Releases: Akryum/vue-observe-visibility

v2.0.0-alpha.1

28 Dec 19:51
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release

Features

  • Vue 3 support

v1.0.0

28 Dec 18:39
Compare
Choose a tag to compare

Bug Fixes

  • support threshold option not being a number (617b650)

v0.4.6

23 Oct 09:43
Compare
Choose a tag to compare

Fixed

  • crash if no throttleOptions, closes #163

v0.4.5

20 Oct 16:26
Compare
Choose a tag to compare

New

  • throttle leading options, closes #113

You can also pass a leading option to trigger the callback the first time when the visibility changes without waiting for the throttle delay.
I can either be visible, hidden or both.

<div v-observe-visibility="{
  callback: visibilityChanged,
  throttle: 300,
  throttleOptions: {
    leading: 'visible',
  },
}">

Fixed

  • SSR: Fix the rendering issue with ssr load #148

v0.4.4

06 May 17:29
Compare
Choose a tag to compare

New

  • disable observer with falsy value, closes #70

Fixed

  • fix: observer null issue (#39)
  • throttle + once not working, closes #33

v0.4.3

04 Oct 14:14
Compare
Choose a tag to compare

New

  • once option, closes #11. This is useful to create one-time animations as soon as the element becomes visible!

Improved

  • add typings (#29)

Fixed

  • deepEqual issue

In previous releases:

  • uncesseray re-creation of observer, fixes #24
  • #22 cannot read property 'bind' of undefined
  • #18 threshold undefined

v0.4.0

28 May 11:43
Compare
Choose a tag to compare

New

  • IntersectionObserver options #10
  • Throttle #9

Fixed

  • Not working in Chrome #16

v0.3.1

18 Sep 14:55
Compare
Choose a tag to compare

Breaking changes

  • Now using rollup instead of webpack