protoblast
Advanced tools
Changelog
0.5.2 (2018-03-02)
Object.merge
next
method of Function.parallel
or Function.series
is called multiple times an error will be thrownInformer#setCacheMethod
will no longer try to execute a callback if it's not definedPledge#handleCallback
is truthy but not a function, an error will be thrownPledge
is resolved with itselfPledge
handles rejectionsPledge#addProgressPart(parts)
and Pledge#reportProgressPart(parts)
to facility progress reportingChangelog
0.5.1 (2018-02-24)
Function.regulate
will throw an error if no function is givenBlast.require
'd files will now be added to the client script"use strict";
module.exports
in a Blast file function will have the expected result (when using Blast.require
)Pledge
will now throw an Error
if there are no rejection listeners for itPledge#silentReject
which won't throw an Error
in case there are no rejection listenersBlast.nextTick
and Blast.setImmediate
Blast.setTimeout
seen
object to Blast.alikeSymbol
methodsChangelog
0.5.0 (2018-02-17)
Promise.resolve()
based solution for browser-side nextTick
implementation (50x faster than using an Image
error)Object.divide
will return arrays unchangedRegExp.isRegExp
Object.setPath
will now no longer replace functions with objectsdoLoaded
phase are executedPledge#handleCallback
which will handle old-style callbacksChangelog
0.4.2 (2018-01-15)
JSON.dry
will no longer add namespace
or dry_class
properties if toDry
has already set themJSON.undry
will now accept a dried object that has been parsed using regular JSON.parse
(this is faster than re-stringifying & undrying it)JSON.dry
Object.walk
will now return an object with all the seen objects and a weakmap containing the seen countObject.walk
can now be called without a task functionjson-dry
is its own package once againJSON#toDryObject
, an alias for Dry.toObject
Changelog
0.4.1 (2018-01-05)
String#encodeHTML
now correctly encodes characters with 2 codepoints (emojis)Object.exists
to use Object.path
URL#toString
: hashtags now include the actual #
innerText
method on browsers to decode HTML entitiesFunction.timebomb
to actually set the exploded
propertyArray#max
and Array#min
now also accept a pathBound
objectsObject.parseDotNotationPath
to turn a path string into an arrayArray#modifyByPath(path, fnc)
Buffer.byteLength
to calculate Content-Length
headersPledge
returned by Function.parallel
and Function.series
will now be resolved with the return value of the callback, if anyChangelog
0.4.0 (2017-10-12)
Pledge
class, which is a type of Promise
Function.parallel
now returns a Pledge
instanceFunction.create
now also sets the wrapper arguments, so the length
property matchesInformer.setAfterMethod(filter, key, method)
, which is a method that will prevent execution until it has seen the given filter (string or object)Object.alike(a, b)
Array#flatten
will now preserve the perceived orderRequest
Informer.setCacheMethod
function#toSource()
methodsBenchmark
should now calculate correct overhead cost on node 8.xChangelog
0.3.10 (2017-09-07)
String#fowler()
checksum generationString#numberHash()
, it's now slower than String#checksum()
but still faster than String#fowler()
Object.checksum
will now split strings in 2 for checksuming, this decreases collisions without affecting speedObject.checksum
on objects, arrays & regexps.String#checkum
now accepts a start
and end
parameterInformer#queryListeners(type, mark_as_seen)
will now honor the mark_as_seen
parameterInformer#hasBeenSeen
should now also work when no listeners have been attachedInformer#unsee
will now also accept filter objectsFunctionQueue#force(fnc, args, options)
which will forcefully run the given function on the queue, even if the limit is reached.FunctionQueue
run more asynchronous when add
-ing of force
-ing after it has already startedChangelog
0.3.9 (2017-08-27)
String.encodeCookie
will use encodeURI
for the path & domainFunction.methodize
should set the original function as the unmethodized oneFunction.unmethodize
should set the original function as the methodized oneChangelog
0.3.8 (2017-08-11)
Function.isNameAllowed(name)
which checks if a name is allowedWeakMap
polyfillFunction.getArgumentNames
Number.isNumeric(input)
Array#sortByPath
will now interpret numbers as new directionsArray#findByPath(path, value)
URL#addQuery
will no longer iterate over non-plain objectslimit
parameter to Object.walk
to limit the recursivenessString#splitOnce
and String#splitLimit
Function.inherits
not adding static methods on timeMath.removeOutliers
so it isn't too generousString#splitOnce(separator)
and String#splitLimit(separator, times)
Changelog
0.3.7 (2017-07-03)
Object.isSelfContained
, which returns true in case of Date, RegExp, String objects, ...Object.merge
will now treat RegExps and Dates as a single variable, and not as an object that also needs to be mergedMath.calculateDistance
to calculate the distance between 2 sets of coordinatesArray#shuffle
, which shuffles an array in placeSeededRng
class for random numbers that repeatget_stream
option to Request#http_request
, which returns the correct output stream (same res
object or gzip
) instead of the bodyBlast.fetch
is now also available in the browserObject.isPlainObject
will now return true for objects without a prototypeString#fowler
should now produce correct hashesCrypto.randomBytes
return an Int8Array in the browser