Skip to content

Commit 963cb63

Browse files
committed
Regenerated dist files for 6.6.4
1 parent 88eb7a6 commit 963cb63

21 files changed

+71
-46
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# [6.6.4](https://github.com/dcodeIO/protobuf.js/releases/tag/6.6.4)
2+
3+
## Fixed
4+
[: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 />
5+
[: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 />
6+
[: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 />
7+
8+
## New
9+
[: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 />
10+
[: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 />
11+
12+
## CLI
13+
[: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 />
14+
15+
## Docs
16+
[: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 />
17+
18+
## Other
19+
[: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 />
20+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/487f8922d879955ba22f89b036f897b9753b0355) Updated depdendencies / rebuilt dist files<br />
21+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/37536e5fa7a15fbc851040e09beb465bc22d9cf3) Use ?: instead of |undefined in .d.ts files<br />
22+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/f8b415a2fc2d1b1eff19333600a010bcaaebf890) Mark optional fields as possibly being undefined<br />
23+
[: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 />
24+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/d246024f4c7d13ca970c91a757e2f47432a619df) Minor optimizations to dependencies, build process and tsd<br />
25+
126
# [6.6.3](https://github.com/dcodeIO/protobuf.js/releases/tag/6.6.3)
227

328
## Fixed

dist/light/protobuf.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/light/protobuf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/light/protobuf.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/light/protobuf.min.js.gz

1 Byte
Binary file not shown.

dist/light/protobuf.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/minimal/protobuf.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/minimal/protobuf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/minimal/protobuf.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/minimal/protobuf.min.js.gz

2 Bytes
Binary file not shown.

dist/minimal/protobuf.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js.gz

0 Bytes
Binary file not shown.

dist/protobuf.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,8 +2033,8 @@ export namespace util {
20332033
* @classdesc Helper class for working with the low and high bits of a 64 bit value.
20342034
* @memberof util
20352035
* @constructor
2036-
* @param {number} lo Low bits, unsigned
2037-
* @param {number} hi High bits, unsigned
2036+
* @param {number} lo Low 32 bits, unsigned
2037+
* @param {number} hi High 32 bits, unsigned
20382038
*/
20392039
class LongBits {
20402040

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

src/util/longbits.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var util = require("../util/minimal");
1919
* @classdesc Helper class for working with the low and high bits of a 64 bit value.
2020
* @memberof util
2121
* @constructor
22-
* @param {number} lo Low bits, unsigned
23-
* @param {number} hi High bits, unsigned
22+
* @param {number} lo Low 32 bits, unsigned
23+
* @param {number} hi High 32 bits, unsigned
2424
*/
2525
function LongBits(lo, hi) {
2626

tests/data/convert.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ $root.Message = (function() {
323323
else if (typeof object.uint64Val === "number")
324324
message.uint64Val = object.uint64Val;
325325
else if (typeof object.uint64Val === "object")
326-
message.uint64Val = new $util.LongBits(object.uint64Val.low, object.uint64Val.high).toNumber(true);
326+
message.uint64Val = new $util.LongBits(object.uint64Val.low >>> 0, object.uint64Val.high >>> 0).toNumber(true);
327327
if (object.uint64Repeated) {
328328
if (!Array.isArray(object.uint64Repeated))
329329
throw TypeError(".Message.uint64Repeated: array expected");
@@ -336,7 +336,7 @@ $root.Message = (function() {
336336
else if (typeof object.uint64Repeated[i] === "number")
337337
message.uint64Repeated[i] = object.uint64Repeated[i];
338338
else if (typeof object.uint64Repeated[i] === "object")
339-
message.uint64Repeated[i] = new $util.LongBits(object.uint64Repeated[i].low, object.uint64Repeated[i].high).toNumber(true);
339+
message.uint64Repeated[i] = new $util.LongBits(object.uint64Repeated[i].low >>> 0, object.uint64Repeated[i].high >>> 0).toNumber(true);
340340
}
341341
if (object.bytesVal !== undefined && object.bytesVal !== null)
342342
if (typeof object.bytesVal === "string")
@@ -392,7 +392,7 @@ $root.Message = (function() {
392392
else if (typeof object.int64Map[keys[i]] === "number")
393393
message.int64Map[keys[i]] = object.int64Map[keys[i]];
394394
else if (typeof object.int64Map[keys[i]] === "object")
395-
message.int64Map[keys[i]] = new $util.LongBits(object.int64Map[keys[i]].low, object.int64Map[keys[i]].high).toNumber();
395+
message.int64Map[keys[i]] = new $util.LongBits(object.int64Map[keys[i]].low >>> 0, object.int64Map[keys[i]].high >>> 0).toNumber();
396396
}
397397
return message;
398398
};
@@ -445,14 +445,14 @@ $root.Message = (function() {
445445
if (typeof message.uint64Val === "number")
446446
object.uint64Val = options.longs === String ? String(message.uint64Val) : message.uint64Val;
447447
else
448-
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;
448+
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;
449449
if (message.uint64Repeated !== undefined && message.uint64Repeated !== null && message.hasOwnProperty("uint64Repeated")) {
450450
object.uint64Repeated = [];
451451
for (var j = 0; j < message.uint64Repeated.length; ++j)
452452
if (typeof message.uint64Repeated[j] === "number")
453453
object.uint64Repeated[j] = options.longs === String ? String(message.uint64Repeated[j]) : message.uint64Repeated[j];
454454
else
455-
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];
455+
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];
456456
}
457457
if (message.bytesVal !== undefined && message.bytesVal !== null && message.hasOwnProperty("bytesVal"))
458458
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;
@@ -474,7 +474,7 @@ $root.Message = (function() {
474474
if (typeof message.int64Map[keys2[j]] === "number")
475475
object.int64Map[keys2[j]] = options.longs === String ? String(message.int64Map[keys2[j]]) : message.int64Map[keys2[j]];
476476
else
477-
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]];
477+
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]];
478478
}
479479
return object;
480480
};

tests/data/mapbox/vector_tile.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ $root.vector_tile = (function() {
433433
else if (typeof object.intValue === "number")
434434
message.intValue = object.intValue;
435435
else if (typeof object.intValue === "object")
436-
message.intValue = new $util.LongBits(object.intValue.low, object.intValue.high).toNumber();
436+
message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber();
437437
if (object.uintValue !== undefined && object.uintValue !== null)
438438
if ($util.Long)
439439
(message.uintValue = $util.Long.fromValue(object.uintValue)).unsigned = true;
@@ -442,7 +442,7 @@ $root.vector_tile = (function() {
442442
else if (typeof object.uintValue === "number")
443443
message.uintValue = object.uintValue;
444444
else if (typeof object.uintValue === "object")
445-
message.uintValue = new $util.LongBits(object.uintValue.low, object.uintValue.high).toNumber(true);
445+
message.uintValue = new $util.LongBits(object.uintValue.low >>> 0, object.uintValue.high >>> 0).toNumber(true);
446446
if (object.sintValue !== undefined && object.sintValue !== null)
447447
if ($util.Long)
448448
(message.sintValue = $util.Long.fromValue(object.sintValue)).unsigned = false;
@@ -451,7 +451,7 @@ $root.vector_tile = (function() {
451451
else if (typeof object.sintValue === "number")
452452
message.sintValue = object.sintValue;
453453
else if (typeof object.sintValue === "object")
454-
message.sintValue = new $util.LongBits(object.sintValue.low, object.sintValue.high).toNumber();
454+
message.sintValue = new $util.LongBits(object.sintValue.low >>> 0, object.sintValue.high >>> 0).toNumber();
455455
if (object.boolValue !== undefined && object.boolValue !== null)
456456
message.boolValue = Boolean(object.boolValue);
457457
return message;
@@ -507,17 +507,17 @@ $root.vector_tile = (function() {
507507
if (typeof message.intValue === "number")
508508
object.intValue = options.longs === String ? String(message.intValue) : message.intValue;
509509
else
510-
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;
510+
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;
511511
if (message.uintValue !== undefined && message.uintValue !== null && message.hasOwnProperty("uintValue"))
512512
if (typeof message.uintValue === "number")
513513
object.uintValue = options.longs === String ? String(message.uintValue) : message.uintValue;
514514
else
515-
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;
515+
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;
516516
if (message.sintValue !== undefined && message.sintValue !== null && message.hasOwnProperty("sintValue"))
517517
if (typeof message.sintValue === "number")
518518
object.sintValue = options.longs === String ? String(message.sintValue) : message.sintValue;
519519
else
520-
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;
520+
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;
521521
if (message.boolValue !== undefined && message.boolValue !== null && message.hasOwnProperty("boolValue"))
522522
object.boolValue = message.boolValue;
523523
return object;
@@ -746,7 +746,7 @@ $root.vector_tile = (function() {
746746
else if (typeof object.id === "number")
747747
message.id = object.id;
748748
else if (typeof object.id === "object")
749-
message.id = new $util.LongBits(object.id.low, object.id.high).toNumber(true);
749+
message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true);
750750
if (object.tags) {
751751
if (!Array.isArray(object.tags))
752752
throw TypeError(".vector_tile.Tile.Feature.tags: array expected");
@@ -817,7 +817,7 @@ $root.vector_tile = (function() {
817817
if (typeof message.id === "number")
818818
object.id = options.longs === String ? String(message.id) : message.id;
819819
else
820-
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;
820+
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;
821821
if (message.tags !== undefined && message.tags !== null && message.hasOwnProperty("tags")) {
822822
object.tags = [];
823823
for (var j = 0; j < message.tags.length; ++j)

0 commit comments

Comments
 (0)