4.0.6 (2023-02-02)
4.0.5 (2023-02-02)
4.0.4 (2022-01-11)
- fixed issue with
new Array(number)
use case
4.0.3 (2022-01-11)
- fixed issue with
new Array(number)
use case
4.0.2 (2021-12-13)
4.0.1 (2021-10-27)
- add "main" and "module" package.json fields (2dfefb7)
- Increase build target to
es6
- Now it uses only ES module exports in package
- Increase build target to
es6
- Now it uses only ES module exports in package
- New modular export. Now it exports only main Dom7
$
function and all methods. No bundle ESM/CJS version - Now Dom7 instances is the extension of Array, e.g.
class Dom7 extends Array
- Which means it has all Array instance methods and properties
- Iteration methods (like
.each
,.forEach
,.map
) now receive(el, index)
arguments instead of(index, el)
like in v2 - Improved TypeScript typings
- Updated to latest
ssr-window
- Fixed issue when
.once
bound event could still be there after unbinding it with.off
- Small tweaks for TypeScript definitions
- Small tweaks for TypeScript definitions
- Added TypeScript definitions
- Fixed issue with undefined elements in classList access (#13)
- Fixed issue with remove event listeners when they was not added
- Support for setting array value on multiple select
- Improved internal events proxies logic for better memory management
- Fixed issue with not found
$.extend
in.animate
- Added
ssr-window
dependency to throw less errors in SSR environment
- Modular version
dom7.modular.js
is more modular now and exports every method separately.
- Removed XHR (Ajax) functionality
- Removed
$.
utilities, including$.parseUrlQuery
,$.isArray
,$.each
,$.unique
,$.serializeObject
,$.dataset
,$.extend
- Fixed issue when calling
.show()
always setdisplay: block
not respecting actual display property
- Removed
$.getTranslate
method - Improved logic of
$.extend
method - New
dom7.modular.js
version for custom es imports, e.g.import { $, Methods, Ajax } from 'dom7.modular.js'
- New
.forEach((element, index))
method - New
.map((index, element))
method - New
.toArray()
method that converts Dom7 collection to simple array $.supportTouch
and$.removeDiacritics
helpers removed- Fixed issue with detaching live event listener without listener function
- Fixed issue with handling events without target (e.g. Cordova "resume" event)
- Fixed issue with Ajax post method throwing error with "multipart/form-data" content type
- Added shortcut methods
click blur focus focusin focusout keyup keydown keypress submit change mousedown mousemove mouseup mouseenter mouseleave mouseout mouseover touchstart touchend touchmove resize scroll
- Proxified events. Now all events are being added/removed using proxy functions. This allows to pass additional arguments to events handlers and detach all assigned event listener by calling e.g.
$$(document).off('someEvent');
- New
Dom7.extend(obj1, obj2, ...)
method - Added
.animate(props, params)
and.stop()
animation methods - Added ES2015 module build