protoblast
Advanced tools
Changelog
0.6.0 (2018-08-27)
Pledge
polyfill for Promise
Pledge.after(n, val)
, which returns a pledge that resolves after n millisecondsPledge#race(other_pledge)
Array#findByPath(obj)
signatureObject.sizeof(input)
to get the size of a variable in bytesCache
classBlast.defineValue
Function#decorateMethod(decorator, key, method)
Date#timeAgo(settings)
methodObject.checksum()
will only checksum a function's source stringBlast.Decorators.memoize
decoratorPledge#handleCallback()
an alias of Pledge#done()
Changelog
0.5.11 (2018-07-14)
Object.checksum(mixed)
will now treat Dates & Numbers differentlyObject.checksum(mixed)
will now correctly hash node BuffersBuffer
support to Object.alike(a, b)
Object.alike(a, b)
not sort arrays when doing a checksumObject.alike(a, b)
treating null as regular objectsBlast.alikeSymbol
property, which Object.alike
uses for comparing likenessChangelog
0.5.10 (2018-07-11)
Function.doConstitutors
to force doing the constitutors of a classsort_arrays
parameter to Object.checksum(obj, sort_arrays)
Changelog
0.5.9 (2018-07-10)
Object.formPath
and Object.setFormPath
not finding correct RURL methodslimit
support to Function.forEach.parallel
String#isEmptyWhitespace()
to test if the string is empty or has only whitespaceString#isEmptyWhitespaceHTML()
to test if the string is empty or has only whitespace, including HTML elementsChangelog
0.5.8 (2018-07-04)
setProperty
should now also get a super
propertyObject.flatten(obj, divider, flatten_arrays)
now takes a third argument that enables you to disable flattening arraysChangelog
0.5.7 (2018-07-01)
Date.parseDuration(str)
for getting a duration in msDate#add
and Date#subtract
now also accept duration stringsRURL
rewrite, inspired by url-parse
by Arnout Kazemier and URI.js
by Rodney RehmObject.flatten(obj, divider)
now accepts custom dividersRURL.encodeQuery(obj)
now handles nested objectsString#assign(values, remove_used)
attempts to normalize values when assigning objectsDate.parseString(str, base)
and Date.parseStringToTime(str, base)
Changelog
0.5.6 (2018-06-20)
Pledge.resolve
and Pledge.reject
Function.parallel
and Function.series
now accept an array of Pledges/PromisesPledge.all
support & some more rejection fixesPledge.race
and make it so a Pledge's state can't changePledge
class global (if allowed)String#startsWithAny
and String#endsWithAny
Object.values
and Object.entries
polyfillChangelog
0.5.5 (2018-06-18)
URL#parse
not working on node v10Function.regulate
returned wrappers now have a call_count
propertyChangelog
0.5.4 (2018-03-14)
overflow
task to Function.regulate
which will receive extra callsObject.first
will return undefined
if it is given an empty object