Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

protoblast

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protoblast - npm Package Versions

1
11

0.7.2

Diff

Changelog

Source

0.7.2 (2020-07-21)

  • Add String#dedent() method
  • Add deprecate decorator
  • Add sourcemap support
  • Fix error in Function.parallel & Function.series where primitives would be turned into objects
  • RURL#segments will now no longer contain empty strings
  • Add RURL#isDescendant(parent) to see if the current path is a descendant of the given path
skerit
published 0.7.1 •

Changelog

Source

0.7.1 (2020-07-11)

  • Automatically create the prototypal wrapper methods for the function inheritance
  • Function#setProperty now accepts a single object to set multiple properties
  • Add Stream.Delayed() class
  • Add Stream.Combined() class
  • Fix browser-side Crypto.randomHex() returning faulty data
  • Supplying @ as a namespace will put it in the root
  • Add server-side FormData class
  • When reporting Pledge progress, the duration of each interval is also logged
  • Make the reset_on_call option of Function.throttle actually work
  • Pledge subclasses will return a regular Pledge on .then()
  • Add Pledge.Timeout class
  • Add String#splitCharacters() for getting an array of the string's characters
  • Add the loopOverArgument() decorator, which will loop over the given argument if it's an array
  • Add the empty event to FunctionQueue
  • Add the RURL#extension property to get/set the extension of the pathname
  • RURL#pathname will now no longer be empty when the protocol requires a slash
  • Add a custom Error class
  • Add Function.isNativeClass() to detect functions made with native class syntax
  • Added Symbol.hasInstance trap to the namespace functions
  • Use setImmediate for rejecting Pledges to prevent uncaught warnings
  • Fix Blast.versions entries not being set correctly
skerit
published 0.7.0 •

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
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc