axobject-query
Advanced tools
Changelog
4.1.0
This minor release no longer requires node 6+, and again has zero dependencies.
Changelog
3.2.2
This release restores backwards compatibility that was broken in v3.2.0.
Changelog
4.0.0
This major release requires Node 6+.
Changelog
3.2.0
Commit 22915be contains a substantial audit and update of the project to match the ARIA spec. Testing coverage was substantially improved. It really locks down the project's output.
Changelog
3.1.0 / 3.1.1
This minor release introduces iteration support to the primary objects of the module, through the Symbol.iterator
property. This reintroduces the native Map
iteration support that was lost in the v3 update. A forEach
method is also introduced in this update. The common interface of all objects exposed by this module is now:
type TAXObjectQueryMap<E, K, V> = {
entries: () => E,
forEach: ((V, K, E) => void) => void,
get: (key: K) => ?V,
has: (key: K) => boolean,
keys: () => Array<K>,
values: () => Array<V>,
@@iterator?: () => Iterator<E>,
};
Changelog
3.0.0
Map and Set usages are now replaced with object and array literals.
These are the changes in usage you might need to account for:
entries
method to get access to the items.keys
and values
methods now return arrays, not iterators.forEach
method. One could be added in the future, but at present, it does not exist on the exports.