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
781011Next

0.3.4

Diff

Changelog

Source

0.3.4 (2017-01-21)

  • Fix bug in Object.checksum using valueOf on an object without prototype
  • Fix constructors not getting static methods when in non-native-modifying mode
  • Fix: unmethodize and methodize shouldn't get stuck in a loop because of the function name
  • Test: creating an anonymous function is a bit harder in new node versions
  • Improve Object.alike performance and add tests
  • Added 4th parameter to Function.inherits that skips constitutors when falsy
  • Fixed bug where constitutors would be executed twice for delayed inheritance
  • Add String.decodeAttributes
skerit
published 0.3.3 •

Changelog

Source

0.3.3 (2016-10-14)

  • JSON.dry now also honours the space parameter
skerit
published 0.3.2 •

Changelog

Source

0.3.2 (2016-10-04)

  • asyncLoop functions (like Function.while) will now execute test and task function in the same tick, in stead of first checking the test, then doing the task on the next tick
  • Object.checksum no longer skips undefined values in objects
  • fix: child classes with a different namespace than the parent are now actually stored in that namespace
  • String#decodeHTML() should now handle hexadecimal entities properly
  • Make sure an Object has the hasOwnProperty method before using it in JSON-Dry
  • Object.checksum should also checksumize RegExps correctly
  • RegExp.interpret now also accepts flags as second parameter
  • Decompress HTML entities on-the-fly
skerit
published 0.3.1 •

Changelog

Source

0.3.1 (2016-07-02)

  • Fix protoblast version bug
  • Add static Number.calculateNormalizeFactors and Number.normalize methods
  • Add Math.removeOutliers(arr) which returns a new array without outliers
  • Add Number.denormalize
skerit
published 0.3.0 •

Changelog

Source

0.3.0 (2016-06-22)

  • Added Informer#unsee method, so 'after' and such can be reset
  • Added Number#bitAt method, to return the bit at the specified position
  • Array#clip 'highest' value is now optional
  • Array#employ has been removed
  • Function.benchmark will now calculate overhead based on self-created dummies
  • If another Protoblast instance is detected during loading, it will only be returned if the major & minor version is the same and the patch is higher. Otherwise, a new instance is created. This is only the case in the non-global-modifying mode.
skerit
published 0.2.1 •

Changelog

Source

0.2.1 (2016-06-06)

  • Add queue_drop option to FunctionQueue, which will limit amount of items in a function queue by dropping older added tasks
  • Add Array.likeArray to determine if an object is like an array
  • Object.dissect will only add numeric array properties to the result
  • Added Blast.setTimeout and Blast.setSchedule for more precise timers
  • Add String.randomMac to generate a random mac address
  • Add Function.getNamespace to get/create a namespace object
  • Blast.DEBUG is now true if there is a DEBUG environment variable
skerit
published 0.2.0 •

Changelog

Source

0.2.0 (2016-05-02)

  • Minor version bump because of added namespaces to Function.inherits
  • JSON.clone will now also look for #dryClone(wm) and #clone() methods
  • JSON.clone second parameter is an optional method name to use for cloning
  • Fix bug in JSONPath
  • String#fillPlaceholders can now remove used values from the given object
  • Add Date#setTimestring to set the time in order of '12:00:00'
  • The date 't' format should now return the number of days in the given month
  • Added JSON.safeParse
  • Function.hinder can now call pushed tasks with an error and other data
  • toDry methods no longer need to return a 'path' property for undrying
  • When the function passed to Object.walk returns false, it won't recurse
  • Added Object.getPropertyDescriptor, which will look for a descriptor up the prototype chain
  • Getter and setter functions will now also receive a super property reference to the function they're overriding
  • Function.setStatic properties can now be overwritten
  • Function.setStatic can now optionally not be inherited
  • Add Blast.createObjectId for the browser
  • Checksumming a null value won't throw an error anymore
  • Object.merge should now correctly assign objects over primitive values
skerit
published 0.1.12 •

Changelog

Source

0.1.12 (2016-02-03)

  • Begin adding NW.js support
  • Date#format('L') now returns a boolean instead of a string
  • Always modify prototypes of classes made by Protoblast itself (URL fixes)
skerit
published 0.1.11 •

Changelog

Source

0.1.11 (2016-01-08)

  • String#slug now removes diacritics and separator repeats
  • Improve Object.merge, still not ready for release though
  • Add getChildren method to class functions
  • Make class constitutions happen in order (child constitution would happen before the parent's)
  • Don't use broken URLConstructor objects on legacy browsers
  • Array#include now appends when no index is given
  • Date.create now accepts a value
  • Date.difference now uses Date.create instead of new Date
  • Array#include correctly handles single argument
  • Added Object.first
  • Use #valueOf() when getting object checksums, fixes Date instances getting the same checksums
  • Add String#fixHTML and String#truncateHTML
  • Fix JSON-dry special char bug
  • Decode HTML when slugifying a string
  • Improve Object.setPath
  • Add Object.formPath and Object.setFormPath
  • JSON.clone is now much more performant than the old method
  • Properties set on a Deck instance now also get JSON-dried
  • Fix pushed tasks in Function.hinder object
skerit
published 0.1.11-alpha •

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc