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

es6-collections

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-collections - npm Package Compare versions

Comparing version 0.2.1 to 0.3.2

.npmignore

36

package.json
{
"name": "es6-collections",
"version": "0.2.1",
"version": "0.3.2",
"description": "ES6 Harmony like collections such Map, WeakMap, and Set",

@@ -16,2 +16,9 @@ "homepage": "https://github.com/WebReflection/es6-collections",

"author": "Andrea Giammarchi <andrea.giammarchi@gmail.com> (http://webreflection.blogspot.com/)",
"contributors": [
{
"name": "Dmitry Ivanov",
"email": "df.creative@gmail.com",
"url": "http://github.com/dfcreative"
}
],
"repository": {

@@ -21,3 +28,3 @@ "type": "git",

},
"main": "./src/es6-collections.js",
"main": "./index.js",
"engines": {

@@ -27,7 +34,28 @@ "node": ">= 0.4.0"

"dependencies": {},
"devDependencies": {},
"devDependencies": {
"closurecompiler": "~1.3.2",
"better-assert": "~1.0.1",
"mocha": "~1.21.4",
"browserify": "~5.12.0"
},
"optionalDependencies": {},
"scripts": {
"test": "node tests/console.js"
"build": "npm run minify && npm run test",
"minify": "ccjs index.js > es6-collections.js",
"test": "mocha"
},
"testling": {
"files": "test/*.js",
"browsers": [
"ie/6..latest",
"chrome/22..latest",
"firefox/16..latest",
"safari/latest",
"opera/11.0..latest",
"iphone/6",
"ipad/6",
"android-browser/latest"
],
"harness": "mocha-bdd"
}
}

33

README.md

@@ -1,5 +0,9 @@

[![build status](https://secure.travis-ci.org/WebReflection/es6-collections.png)](http://travis-ci.org/WebReflection/es6-collections)
ES6 Harmony Collections Fast Polyfill
ES6 Harmony Collections [![build status](https://secure.travis-ci.org/WebReflection/es6-collections.png)](http://travis-ci.org/WebReflection/es6-collections)
===========================================
[![browser support](https://ci.testling.com/WebReflection/es6-collections.png)
](https://ci.testling.com/WebReflection/es6-collections)
The aim of this repository is to provide an **unobtrusive, performances oriented** shim for ES6 collections such **WeakMap**, **Map**, and **Set**.

@@ -14,8 +18,15 @@

* **100% unobtrusive** with any environment. If implemented in node V8 it exports native constructors rather than shims
* **size and performances oriented** polyfill. It does not matter if the WeakMap is not perfect, it's just fast and not much more memory leaks prone than other shims. If you don't rely in magic, simply remember to `wm.delete(referedObject)` when *referedObject* is not needed anymore.
* for browsers, it fits in **less than 1Kb** [once minzipped](https://github.com/WebReflection/es6-collections/blob/master/build/es6-collections.min.js) ... the smallest shim out there so far
* 100% of code coverage through [Web](https://github.com/WebReflection/es6-collections/blob/master/tests/web.html) or [console](https://github.com/WebReflection/es6-collections/blob/master/tests/console.js) [wru](https://github.com/WebReflection/wru) based [tests](https://github.com/WebReflection/es6-collections/blob/master/tests/es6-collections.js)
* **size and performances oriented** polyfill. It does not matter if the WeakMap is not perfect, it's just fast and not much more memory leaks prone than other shims. If you don't rely on magic, simply remember to `weakmap.delete(referedObject)` when *referedObject* is not needed anymore.
* for browsers, it fits in **less than 1Kb** [once minzipped](https://github.com/WebReflection/es6-collections/blob/master/es6-collections.min.js) ... the smallest shim out there so far
* 100% of code coverage
* completely private shared behavior in order to easily maintain and update three collections at once
New On Version 0.3.0
--------------------
* API updated to the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)
* tests are replaced with mocha and testling, which gets testling table and better testing possibilities
* polyfills for old browsers moved out to autopolyfiller
* used prototypical shared methods approach since it demonstrates times better results - [test on jsperf](http://jsperf.com/object-create-method-vs-prototype-method)
New On Version 0.2.0

@@ -51,5 +62,3 @@ --------------------

-----
To run tests via **node.js** from the root folder of this project simply write `node tests/console.js`.
To run tests via **Rhino** from the root folder of this project simply write `java -jar builder/jar/js.jar tests/console.js`.
To run test via **browser** simply drag and drop **tests/web.html** file.
Just type `$ mocha` or `$ npm test` from the project’s folder in terminal.

@@ -59,3 +68,3 @@

-----
To build the browser version from the root of this project folder simply write `python builder/build.py`.
`$ npm build` to build browser version of bundle.

@@ -69,3 +78,3 @@

Copyright (C) 2011 by Andrea Giammarchi, @WebReflection
Permission is hereby granted, free of charge, to any person obtaining a copy

@@ -77,6 +86,6 @@ of this software and associated documentation files (the "Software"), to deal

furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

@@ -83,0 +92,0 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

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