- Package.json now contains a
main
and fixes #89 (@andreclemente)
- Remove support for Vue 2
- If you need to continue supporting Vue2 please switch to the vue2-debounce package or stay of v4 of this one
- vue-debounce is now registered as a ES
module
instead of a cjs package- This helps the transition over to Vue3
- This will help keep the typing system clean
- README now reflects how to use vue-debounce with only vue3
- Added PR #79 for export support
- Added PR #82 for fixed typings
- Dependency updates
- Removed
getDirective
flow there is now a dedicated import for vue 2, and vue 3
- Made usage easier, instead of trying to support complex backwards compatability, I simply separated the two into their own imports
- Usage should be less convoluted
- Vue 3 compatability should be stabalized and working again
- Erroring out when there were no attributes on your element tag #71
- Potential issue if passed events was just an empty array or string would cause debounce to stop listening all together
- This falls back on the value of
listenTo
- This falls back on the value of
- Now using vNode instead of raw events, this allows us to use events no matter how deep #66
- The above improves compatability with libraries like Vuetify
- Dependency Updates and Audit fixes
- The build will now push out a esm module as well with the other minified versions check the readme on how to use it
- Updated dependencies
- Ran Audit on dev deps (and fixed)
- Some documentation mis communications
- Types for debounce (thanks to hrobertson)
- Placement of the readme for
getDirective
- Lots of code condencing, shouldn't break anything but just in case
- Changed how debouncing
fireonempty
works. It had a bug so I made it a bit more strict to fix this- Please open issues ASAP if this functionality is not working as expected
- Added new
trim
option and modifier, this allows you to trim inputs that come through- The value given to your function will NOT be the trimmed value, trim is only used for logic to see if things should be ran
- Added
getDirective
function which allows you to create a directive instance at lower levels other than global
- Some small code cleanup
- Updated dependencies
- Added Vue 3 Compatibility 🎉
- This involves the backwards compatibility change I brought up in discussions
- Dropped
dist/
from the repo- This is so it doesnt bog down PRs
- dist is still available on npm as its built before deploy
- Your CDN (if using) should NOT be affected
- Updated all dev dependencies
- Started planning vue 3 compatibility
- Removed david-md badges from readme since it seems to be down for good
- Linting fixes in the test files
- Took out Kyanite for compatibility reasons
- Restored IE11 support by updating kyanite to its latest version
- Converted over to
Terser
instead ofuglify
- Converted over to
babel
instead ofbuble
- Switched over to my library
kyanite
for some of the utility work, removing some excess code
- Caveats section added #36
- Unclear documentation for
modifiers
#37
- Unclear documentation on using the
debounce
function #34
- Added support for scope inheritance for
debounce
utility function this might address #28 ilyasfoo - Dependencies updated
- typescript typing for the return on the debounce function @bobvandevijver
- Added
fireOnEmpty
modifier, which allow you to choose individual inputs you want to have fireOnEmpty - Added
cancelOnEmpty
modifier which cancels the debounce all together if the input value is empty
- Drastic code cleanup
- Bug with
fireOnEmpty
where debounce function would fire twice even when input was empty
- Added the
event
Object itself to the function call, it is passed as the 2nd parameter
- Added a new
fireOnEmpty
option that you can enable to fire the debounce function immediately if the input is empty
- Added Typescript section to the table of contents
- Fixed author data to have my email
- Added Typescript Support thanks to @itmayziii
- Added instructions on how to just use the debounce api
- Added ability to send the debounce function just a number and it will get treated as miliseconds
- Now using the
addEventListener
method attached to the given el to properly set the event rather than overriding the native callback
- Added ability to set default timeout within the options of the plugin
- Added ability to send an array of events to have the elments listen to
- Removed deprecated
keyCode
in favor of justkey
listenTo
is no longer case sensitive- Added ability to listen for the
debounce-events
attribute
- Tweaked the Syntax of the debounce function
- Added additional tests
- Updated dependencies
- Added ability to set the event to listen to in options
- Some small tweaks to code nothing breaking
- Removed the long deleted
min
from the regex check - Removed unused code
- Mainly to just get it to v1.0.0 no breaking changes added
- Slight Tweaks to optimization
- Removed unused data pieces
- Switched the event to
keyup
instead ofinput
for key events - Added some options and modifiers support (See next tick)
- Pressing enter on a debounced input now automatically fires the desired function
- You can disable this by using the
.lock
modifier on the directive - You can also disable it by passing
lock
to the directive as an option, however this will disable it for ALL debounced inputs - If you are using the lock option and want to make an exception for an input you can use the
.unlock
modifier to do so
- You can disable this by using the
- Removed support for minutes
- Replaced
null
type with afalse
Boolean - Removed empty config object
- Added
Vue
as a peer dependency - Removed
Vue
as a dev dependency - Created the changelog md
- Fixed the Build files
- Initial Release