uuid 1.4.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # uuid [![Build Status](https://secure.travis-ci.org/defunctzombie/node-uuid.png?branch=master)](http://travis-ci.org/defunctzombie/node-uuid) #
1
+ # uuid [![Build Status](https://secure.travis-ci.org/defunctzombie/node-uuid.svg?branch=master)](http://travis-ci.org/defunctzombie/node-uuid) #
2
2
 
3
3
  [![browser support](https://ci.testling.com/defunctzombie/node-uuid.png)](https://ci.testling.com/defunctzombie/node-uuid)
4
4
 
@@ -153,10 +153,6 @@ Support for the following v1.2 APIs is available in v1.3, but is deprecated and
153
153
 
154
154
  uuid() has become uuid.v4(), and the `format` argument is now implicit in the `buffer` argument. (i.e. if you specify a buffer, the format is assumed to be binary).
155
155
 
156
- ### uuid.BufferClass
157
-
158
- The class of container created when generating binary uuid data if no buffer argument is specified. This is expected to go away, with no replacement API.
159
-
160
156
  ## Testing
161
157
 
162
158
  In node.js
@@ -188,6 +184,10 @@ For browser performance [checkout the JSPerf tests](http://jsperf.com/node-uuid-
188
184
 
189
185
  ## Release notes
190
186
 
187
+ ### 2.0.0
188
+
189
+ * Removed uuid.BufferClass
190
+
191
191
  ### 1.4.0
192
192
 
193
193
  * Improved module context detection
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "description": "Benchmarks for node-uuid",
5
5
  "dependencies": {
6
- "uuid": "^1.4.1",
7
- "uuid-js": "^0.7.4"
6
+ "uuid": "1.4.1",
7
+ "uuid-js": "0.7.4"
8
8
  }
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uuid",
3
- "version": "1.4.2",
3
+ "version": "2.0.3",
4
4
  "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.",
5
5
  "keywords": [
6
6
  "uuid",
@@ -18,6 +18,7 @@
18
18
  "github": "https://github.com/vvo"
19
19
  }
20
20
  ],
21
+ "license": "MIT",
21
22
  "main": "./uuid.js",
22
23
  "devDependencies": {
23
24
  "mocha": "1.8.0"
@@ -26,12 +27,11 @@
26
27
  "test": "mocha test/test.js"
27
28
  },
28
29
  "browser": {
29
- "./rng.js": "./rng-browser.js",
30
- "./buffer.js": "./buffer-browser.js"
30
+ "./rng.js": "./rng-browser.js"
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",
34
- "url": "https://github.com/shtylman/node-uuid.git"
34
+ "url": "https://github.com/defunctzombie/node-uuid.git"
35
35
  },
36
36
  "testling": {
37
37
  "browsers": [
package/rng-browser.js CHANGED
@@ -1,7 +1,8 @@
1
1
 
2
2
  var rng;
3
3
 
4
- if (global.crypto && crypto.getRandomValues) {
4
+ var crypto = global.crypto || global.msCrypto; // for IE 11
5
+ if (crypto && crypto.getRandomValues) {
5
6
  // WHATWG crypto-based RNG - http://wiki.whatwg.org/wiki/Crypto
6
7
  // Moderately fast, high quality
7
8
  var _rnds8 = new Uint8Array(16);
package/uuid.js CHANGED
@@ -8,11 +8,6 @@
8
8
  // returns 128-bits of randomness, since that's what's usually required
9
9
  var _rng = require('./rng');
10
10
 
11
- // Buffer class to use,
12
- // we can't use `Buffer || Array` otherwise Buffer would be
13
- // shimmed by browserify and added to the browser build
14
- var BufferClass = require('./buffer');
15
-
16
11
  // Maps for number <-> hex string conversion
17
12
  var _byteToHex = [];
18
13
  var _hexToByte = {};
@@ -157,7 +152,7 @@ function v4(options, buf, offset) {
157
152
  var i = buf && offset || 0;
158
153
 
159
154
  if (typeof(options) == 'string') {
160
- buf = options == 'binary' ? new BufferClass(16) : null;
155
+ buf = options == 'binary' ? new Array(16) : null;
161
156
  options = null;
162
157
  }
163
158
  options = options || {};
@@ -184,6 +179,5 @@ uuid.v1 = v1;
184
179
  uuid.v4 = v4;
185
180
  uuid.parse = parse;
186
181
  uuid.unparse = unparse;
187
- uuid.BufferClass = BufferClass;
188
182
 
189
183
  module.exports = uuid;
package/buffer-browser.js DELETED
@@ -1 +0,0 @@
1
- module.exports = Array;
package/buffer.js DELETED
@@ -1 +0,0 @@
1
- module.exports = Buffer;