Skip to content

Commit

Permalink
Regenerated dist files for 6.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Feb 28, 2017
1 parent 88eb7a6 commit 963cb63
Show file tree
Hide file tree
Showing 21 changed files with 71 additions and 46 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# [6.6.4](https://github.com/dcodeIO/protobuf.js/releases/tag/6.6.4)

## Fixed
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/88eb7a603a21643d5012a374c7d246f4c27620f3) Made sure that LongBits ctor is always called with unsigned 32 bits + static codegen compat., fixes [#690](https://github.com/dcodeIO/protobuf.js/issues/690)<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/50e82fa7759be035a67c7818a1e3ebe0d6f453b6) Properly handle multiple ../.. in path.normalize, see [#688](https://github.com/dcodeIO/protobuf.js/issues/688)<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/7c3506b3f0c5a08a887e97313828af0c21effc61) Post-merge, also tackles [#683](https://github.com/dcodeIO/protobuf.js/issues/683) (packed option for repeated enum values)<br />

## New
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/7f3f4600bcae6f2e4dadd5cdb055886193a539b7) Verify accepts non-null objects only, see [#685](https://github.com/dcodeIO/protobuf.js/issues/685)<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/d65c22936183d04014d6a8eb880ae0ec33aeba6d) allow_alias enum option was not being honored. This case is now handled and a test case was added<br />

## CLI
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/2ddb76b6e93174787a68f68fb28d26b8ece7cc56) Added an experimental --sparse option to limit pbjs output to actually referenced types within main files<br />

## Docs
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/33d14c97600ed954193301aecbf8492076dd0179) Added explicit hint on Uint8Array to initial example, see [#670](https://github.com/dcodeIO/protobuf.js/issues/670)<br />

## Other
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/cbd4c622912688b47658fea00fd53603049b5104) Ranges and names support for reserved fields, see [#676](https://github.com/dcodeIO/protobuf.js/issues/676)<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/487f8922d879955ba22f89b036f897b9753b0355) Updated depdendencies / rebuilt dist files<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/37536e5fa7a15fbc851040e09beb465bc22d9cf3) Use ?: instead of |undefined in .d.ts files<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/f8b415a2fc2d1b1eff19333600a010bcaaebf890) Mark optional fields as possibly being undefined<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/2ddb76b6e93174787a68f68fb28d26b8ece7cc56) Added a few more common google types from google/api, see [#433](https://github.com/dcodeIO/protobuf.js/issues/433)<br />
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/d246024f4c7d13ca970c91a757e2f47432a619df) Minor optimizations to dependencies, build process and tsd<br />

# [6.6.3](https://github.com/dcodeIO/protobuf.js/releases/tag/6.6.3)

## Fixed
Expand Down
6 changes: 3 additions & 3 deletions dist/light/protobuf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/light/protobuf.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/light/protobuf.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/light/protobuf.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/light/protobuf.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/minimal/protobuf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/minimal/protobuf.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/minimal/protobuf.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/minimal/protobuf.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/minimal/protobuf.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/protobuf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/protobuf.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/protobuf.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/protobuf.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/protobuf.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2033,8 +2033,8 @@ export namespace util {
* @classdesc Helper class for working with the low and high bits of a 64 bit value.
* @memberof util
* @constructor
* @param {number} lo Low bits, unsigned
* @param {number} hi High bits, unsigned
* @param {number} lo Low 32 bits, unsigned
* @param {number} hi High 32 bits, unsigned
*/
class LongBits {

Expand All @@ -2043,8 +2043,8 @@ export namespace util {
* @classdesc Helper class for working with the low and high bits of a 64 bit value.
* @memberof util
* @constructor
* @param {number} lo Low bits, unsigned
* @param {number} hi High bits, unsigned
* @param {number} lo Low 32 bits, unsigned
* @param {number} hi High 32 bits, unsigned
*/
constructor(lo: number, hi: number);

Expand Down
4 changes: 2 additions & 2 deletions src/util/longbits.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var util = require("../util/minimal");
* @classdesc Helper class for working with the low and high bits of a 64 bit value.
* @memberof util
* @constructor
* @param {number} lo Low bits, unsigned
* @param {number} hi High bits, unsigned
* @param {number} lo Low 32 bits, unsigned
* @param {number} hi High 32 bits, unsigned
*/
function LongBits(lo, hi) {

Expand Down
12 changes: 6 additions & 6 deletions tests/data/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ $root.Message = (function() {
else if (typeof object.uint64Val === "number")
message.uint64Val = object.uint64Val;
else if (typeof object.uint64Val === "object")
message.uint64Val = new $util.LongBits(object.uint64Val.low, object.uint64Val.high).toNumber(true);
message.uint64Val = new $util.LongBits(object.uint64Val.low >>> 0, object.uint64Val.high >>> 0).toNumber(true);
if (object.uint64Repeated) {
if (!Array.isArray(object.uint64Repeated))
throw TypeError(".Message.uint64Repeated: array expected");
Expand All @@ -336,7 +336,7 @@ $root.Message = (function() {
else if (typeof object.uint64Repeated[i] === "number")
message.uint64Repeated[i] = object.uint64Repeated[i];
else if (typeof object.uint64Repeated[i] === "object")
message.uint64Repeated[i] = new $util.LongBits(object.uint64Repeated[i].low, object.uint64Repeated[i].high).toNumber(true);
message.uint64Repeated[i] = new $util.LongBits(object.uint64Repeated[i].low >>> 0, object.uint64Repeated[i].high >>> 0).toNumber(true);
}
if (object.bytesVal !== undefined && object.bytesVal !== null)
if (typeof object.bytesVal === "string")
Expand Down Expand Up @@ -392,7 +392,7 @@ $root.Message = (function() {
else if (typeof object.int64Map[keys[i]] === "number")
message.int64Map[keys[i]] = object.int64Map[keys[i]];
else if (typeof object.int64Map[keys[i]] === "object")
message.int64Map[keys[i]] = new $util.LongBits(object.int64Map[keys[i]].low, object.int64Map[keys[i]].high).toNumber();
message.int64Map[keys[i]] = new $util.LongBits(object.int64Map[keys[i]].low >>> 0, object.int64Map[keys[i]].high >>> 0).toNumber();
}
return message;
};
Expand Down Expand Up @@ -445,14 +445,14 @@ $root.Message = (function() {
if (typeof message.uint64Val === "number")
object.uint64Val = options.longs === String ? String(message.uint64Val) : message.uint64Val;
else
object.uint64Val = options.longs === String ? $util.Long.prototype.toString.call(message.uint64Val) : options.longs === Number ? new $util.LongBits(message.uint64Val.low, message.uint64Val.high).toNumber(true) : message.uint64Val;
object.uint64Val = options.longs === String ? $util.Long.prototype.toString.call(message.uint64Val) : options.longs === Number ? new $util.LongBits(message.uint64Val.low >>> 0, message.uint64Val.high >>> 0).toNumber(true) : message.uint64Val;
if (message.uint64Repeated !== undefined && message.uint64Repeated !== null && message.hasOwnProperty("uint64Repeated")) {
object.uint64Repeated = [];
for (var j = 0; j < message.uint64Repeated.length; ++j)
if (typeof message.uint64Repeated[j] === "number")
object.uint64Repeated[j] = options.longs === String ? String(message.uint64Repeated[j]) : message.uint64Repeated[j];
else
object.uint64Repeated[j] = options.longs === String ? $util.Long.prototype.toString.call(message.uint64Repeated[j]) : options.longs === Number ? new $util.LongBits(message.uint64Repeated[j].low, message.uint64Repeated[j].high).toNumber(true) : message.uint64Repeated[j];
object.uint64Repeated[j] = options.longs === String ? $util.Long.prototype.toString.call(message.uint64Repeated[j]) : options.longs === Number ? new $util.LongBits(message.uint64Repeated[j].low >>> 0, message.uint64Repeated[j].high >>> 0).toNumber(true) : message.uint64Repeated[j];
}
if (message.bytesVal !== undefined && message.bytesVal !== null && message.hasOwnProperty("bytesVal"))
object.bytesVal = options.bytes === String ? $util.base64.encode(message.bytesVal, 0, message.bytesVal.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesVal) : message.bytesVal;
Expand All @@ -474,7 +474,7 @@ $root.Message = (function() {
if (typeof message.int64Map[keys2[j]] === "number")
object.int64Map[keys2[j]] = options.longs === String ? String(message.int64Map[keys2[j]]) : message.int64Map[keys2[j]];
else
object.int64Map[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.int64Map[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.int64Map[keys2[j]].low, message.int64Map[keys2[j]].high).toNumber() : message.int64Map[keys2[j]];
object.int64Map[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.int64Map[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.int64Map[keys2[j]].low >>> 0, message.int64Map[keys2[j]].high >>> 0).toNumber() : message.int64Map[keys2[j]];
}
return object;
};
Expand Down
16 changes: 8 additions & 8 deletions tests/data/mapbox/vector_tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ $root.vector_tile = (function() {
else if (typeof object.intValue === "number")
message.intValue = object.intValue;
else if (typeof object.intValue === "object")
message.intValue = new $util.LongBits(object.intValue.low, object.intValue.high).toNumber();
message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber();
if (object.uintValue !== undefined && object.uintValue !== null)
if ($util.Long)
(message.uintValue = $util.Long.fromValue(object.uintValue)).unsigned = true;
Expand All @@ -442,7 +442,7 @@ $root.vector_tile = (function() {
else if (typeof object.uintValue === "number")
message.uintValue = object.uintValue;
else if (typeof object.uintValue === "object")
message.uintValue = new $util.LongBits(object.uintValue.low, object.uintValue.high).toNumber(true);
message.uintValue = new $util.LongBits(object.uintValue.low >>> 0, object.uintValue.high >>> 0).toNumber(true);
if (object.sintValue !== undefined && object.sintValue !== null)
if ($util.Long)
(message.sintValue = $util.Long.fromValue(object.sintValue)).unsigned = false;
Expand All @@ -451,7 +451,7 @@ $root.vector_tile = (function() {
else if (typeof object.sintValue === "number")
message.sintValue = object.sintValue;
else if (typeof object.sintValue === "object")
message.sintValue = new $util.LongBits(object.sintValue.low, object.sintValue.high).toNumber();
message.sintValue = new $util.LongBits(object.sintValue.low >>> 0, object.sintValue.high >>> 0).toNumber();
if (object.boolValue !== undefined && object.boolValue !== null)
message.boolValue = Boolean(object.boolValue);
return message;
Expand Down Expand Up @@ -507,17 +507,17 @@ $root.vector_tile = (function() {
if (typeof message.intValue === "number")
object.intValue = options.longs === String ? String(message.intValue) : message.intValue;
else
object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low, message.intValue.high).toNumber() : message.intValue;
object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue;
if (message.uintValue !== undefined && message.uintValue !== null && message.hasOwnProperty("uintValue"))
if (typeof message.uintValue === "number")
object.uintValue = options.longs === String ? String(message.uintValue) : message.uintValue;
else
object.uintValue = options.longs === String ? $util.Long.prototype.toString.call(message.uintValue) : options.longs === Number ? new $util.LongBits(message.uintValue.low, message.uintValue.high).toNumber(true) : message.uintValue;
object.uintValue = options.longs === String ? $util.Long.prototype.toString.call(message.uintValue) : options.longs === Number ? new $util.LongBits(message.uintValue.low >>> 0, message.uintValue.high >>> 0).toNumber(true) : message.uintValue;
if (message.sintValue !== undefined && message.sintValue !== null && message.hasOwnProperty("sintValue"))
if (typeof message.sintValue === "number")
object.sintValue = options.longs === String ? String(message.sintValue) : message.sintValue;
else
object.sintValue = options.longs === String ? $util.Long.prototype.toString.call(message.sintValue) : options.longs === Number ? new $util.LongBits(message.sintValue.low, message.sintValue.high).toNumber() : message.sintValue;
object.sintValue = options.longs === String ? $util.Long.prototype.toString.call(message.sintValue) : options.longs === Number ? new $util.LongBits(message.sintValue.low >>> 0, message.sintValue.high >>> 0).toNumber() : message.sintValue;
if (message.boolValue !== undefined && message.boolValue !== null && message.hasOwnProperty("boolValue"))
object.boolValue = message.boolValue;
return object;
Expand Down Expand Up @@ -746,7 +746,7 @@ $root.vector_tile = (function() {
else if (typeof object.id === "number")
message.id = object.id;
else if (typeof object.id === "object")
message.id = new $util.LongBits(object.id.low, object.id.high).toNumber(true);
message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true);
if (object.tags) {
if (!Array.isArray(object.tags))
throw TypeError(".vector_tile.Tile.Feature.tags: array expected");
Expand Down Expand Up @@ -817,7 +817,7 @@ $root.vector_tile = (function() {
if (typeof message.id === "number")
object.id = options.longs === String ? String(message.id) : message.id;
else
object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low, message.id.high).toNumber(true) : message.id;
object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id;
if (message.tags !== undefined && message.tags !== null && message.hasOwnProperty("tags")) {
object.tags = [];
for (var j = 0; j < message.tags.length; ++j)
Expand Down
Loading

0 comments on commit 963cb63

Please sign in to comment.