Socket
Socket
Sign inDemoInstall

protoblast

Package Overview
Dependencies
1
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
57
11Next

0.7.0

Diff

Changelog

Source

0.7.0 (2020-03-13)

  • Bumped node.js version requirement to at least v8.9.0
  • Added Blast.parseUseragent(ua) method
  • You can now add files with Blast.require() and specify specific browser versions
  • Add Blast.checksumSymbol properties to serveral protoblast objects
  • Add modify_prototypes option to the client template
  • You can now also override the rejection error when using Function.series or Function.parallel
  • String#encodeHTML() will no longer encode newlines
  • Only report Pledge progress when #report_progress is truthy
  • Add Protoblast#version_string property, use it to add to the #loaded_versions property
  • RURL should keep slashes when no protocol is given
  • Function.enforceProperty will already add the used symbol to the prototype
  • Make String.decodeAttributes() decode tag attributes by default (no separator)
  • Fix Date#timeAgo() returning big hours, minutes & seconds when date is more than a month ago
  • Make Array#sortByPath() handle comparing undefined and objects better
  • Passing headers option to Request#setOptions() will no longer unset earlier headers
  • Add RegExp.interpretWildcard(str, flags)
  • Add some tweaks to Function.tokenize so it'll recognize regular expressions better
  • Fix Object.walk throwing an error when handling Object.create(null) objects
  • Add more easing methods to the Math object
  • The State class will no longer turn off-line when a stale request times out
  • Rename State#online_status_duration property to State#current_status_duration
  • Abort xhrs made by Request when a timeout occurs
  • Add delay option to Function.throttle() to always enforce a minimum delay
  • Passing a single object to RURL#param() will now set the key-values as parameters
  • Add detection for Electron, like Nwjs
  • Add some infinite-loop prevention to Function.enforceProperty setter/getters
  • Request now has a max_timeout property that defaults to 30 seconds, instead of a hardcoded 8 seconds
  • Remove the __enumerate trap from the Magic class
  • Added Pledge.done(promise, callback) as a static method
  • Add time_started and time_ended properties to the Request class
  • Add Array#safesort(), which won't throw an error when sorting Objects with no prototype
  • Don't trust the type property of an XMLHttpRequest's response object
  • Add locale support to Date#format()
  • Add cast argument to String#assign() method
  • Speed up the String#underscore() method
  • String#decodeJSONURI() will now only try to decode JSON if it contains certain json characters
  • Remove the Array#createIterator() method as it breaks CKEditor
  • Add Date.secondsToDuration()
  • Add Date.firstWeekOfYear(year) & Date.firstDayOfWeek(year, week)
  • Allow retries of Blast.getClientPath()
  • Add Request#download_if_inline boolean option
  • Add the StringBuilder class
  • Allow passing another pledge instance in Pledge#done()
  • Add Pledge.isThenable() and Pledge.hasPromiseInterface()
  • Add Pledge.cast() to turn something into a pledge
skerit
published 0.6.7 •

skerit
published 0.6.6 •

Changelog

Source

0.6.6 (2019-02-25)

  • Add String#allIndexesOf(needle) to get an array of indexes
  • Speed up String#tokenizeHTML(source) when supplying custom blocks
  • Add Function#enforceProperty(setter)
  • Add Blast.requireAll() to require multiple files with the same options
  • Allow parent classes to override a child constructor with modifyChildConstructor function
  • Add simple Magic class, which supports Magic getters & setters by using proxies
  • Add Blast.parseUseragent(ua) to parse a useragent string
skerit
published 0.6.5 •

Changelog

Source

0.6.5 (2019-02-18)

  • Fix Function#throttle() not throttling enough because setTimeout fires too soon
  • Add String#isUpperCase() and String#isLowerCase()
  • Add ignore_arguments option to the memoize() decorator
  • Add Object#zip(keys, values) and Object#unzip(obj)
  • Add Blast.checksumSymbol you can use to define a method that replaces the parameter of a Object.checksum(obj) call
  • Make Date.parseString() understand regular date strings
  • Make Function.contitute(fnc) schedule the function using Blast.queueImmediate() if Blast has already been loaded
  • Make the internal queueImmediate, queueTick methods asynchronous even after Blast had loaded
  • Blast.doLoaded() will now also work after Protoblast has already loaded once
  • Allow passing a regex into RegExp.interpret()
  • Add a main_class getter to namespaces
  • Add String#countCharacters() to count characters, including emojis
  • Make String#count() use String#countCharacters() when empty string is given
  • Add String#substrCharacters(begin, length) to get a substring of the actual characters
  • Add String#substringCharacters(begin, end)
  • Make String#truncate() honour emojis
  • Add HTML tokenizer based on the original String#stripTags method
  • Truncate HTML strings with help from the tokenizer
skerit
published 0.6.4 •

Changelog

Source

0.6.4 (2019-01-12)

  • Fix the server-side Request class implementation
  • Fix Pledge instances executing the callbacks synchronously
  • Fix Cache#has(key) return true for expired entries
  • Fix memoize Decorator not setting max_age when ignore_callbacks is true
  • Add cast argument to Array#unique()
  • Pledge#_started is now a timestamp, not a boolean
  • Add duration properties to the Pledge class
  • Add Blast.REPLACE_OPEN_TAG_NEWLINE symbol for use in String#stripTags()
  • Add Deck#remove(key) method
  • Fix String#romanize() stripping diacritics before being able to replace them
  • Add support for double diacritic characters to the String#diacriticRegex()
  • Fix server-side Request not handling redirect properly
  • Fix Date.parseStringToTime(str, base) not parsing base strings properly
skerit
published 0.6.3 •

Changelog

Source

0.6.3 (2018-12-06)

  • Add RURL#usedBaseProperty(name) to find out if a property came from the base location
  • You can now use Date#startOf(unit) to set dacesecond & decaminute
  • Function.series will now pass the value from the previous task to the next
  • Add LazyPledge class, which will only call on the executor once then has been called
  • Forward Pledge progress reports to other pledges
  • Add Blast.isWebview to detect when it's running in a webview
  • Use requestIdleCallback as a setImmediate implementation in the browser
  • Make Informer#emit() exit early when no listeners are found
  • Rewrite setImmediate polyfill
  • Add Date#timestamp getter
  • Add flag parameter to Object.path(flag, obj, path)
  • Add Blast.PATH_AGGREGATE flag
  • Add flag support to Array#sortByPath()
  • Rewrite String#stripTags(), based on Eric Norris implementation
skerit
published 0.6.2 •

Changelog

Source

0.6.2 (2018-11-09)

  • Add State class
  • Add RURL#seems_valid property
  • Rewrite Request class & add browser support
  • Function#throttle(fnc) now accepts a config object as second argument
  • Function#throttle(fnc, config) can now be used in classes
  • Add throttle method decorator
  • Add Blast.requestIdleCallback implementation
  • Removed japanese & hebrew romanize string methods
  • Removed Function.curry function
  • Upgrade json-dry dependency to 1.0.8
skerit
published 0.6.1 •

Changelog

Source

0.6.1 (2018-10-16)

  • Informer#forwardEvent() now accepts a single event emitter to forward ALL events to
  • Make Blast#setImmediate() throw an error if the callback argument isn't a function
  • Function.setMethod() will use Obj.getPropertyDescriptor to check existing methods, so no getters are accidentally triggered
  • Fix inheriting from a namespace when it is not yet available
skerit
published 0.6.0 •

Changelog

Source

0.6.0 (2018-08-27)

  • Make Pledge polyfill for Promise
  • Add Pledge.after(n, val), which returns a pledge that resolves after n milliseconds
  • Add Pledge#race(other_pledge)
  • Add new Array#findByPath(obj) signature
  • Add Object.sizeof(input) to get the size of a variable in bytes
  • Add Cache class
  • Allow passing a descriptor to Blast.defineValue
  • Add Function#decorateMethod(decorator, key, method)
  • Add Date#timeAgo(settings) method
  • Object.checksum() will only checksum a function's source string
  • Add Blast.Decorators.memoize decorator
  • Make Pledge#handleCallback() an alias of Pledge#done()
skerit
published 0.5.11 •

Changelog

Source

0.5.11 (2018-07-14)

  • Object.checksum(mixed) will now treat Dates & Numbers differently
  • Object.checksum(mixed) will now correctly hash node Buffers
  • Add Buffer support to Object.alike(a, b)
  • Make Object.alike(a, b) not sort arrays when doing a checksum
  • Fix Object.alike(a, b) treating null as regular objects
  • Add a very basic Symbol polyfill for IE11
  • Add Blast.alikeSymbol property, which Object.alike uses for comparing likeness
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc