Skip to content

Commit 478ee51

Browse files
committed
Fixed: sfixed64 is not zig-zag encoded, see #692
1 parent 963cb63 commit 478ee51

20 files changed

+116
-103
lines changed

dist/light/protobuf.js

Lines changed: 20 additions & 19 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: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/light/protobuf.min.js.gz

-7 Bytes
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: 20 additions & 19 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: 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.min.js.gz

-3 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: 20 additions & 19 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: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js.gz

31 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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,13 +1235,13 @@ export class Reader {
12351235
bool(): boolean;
12361236

12371237
/**
1238-
* Reads fixed 32 bits as a number.
1238+
* Reads fixed 32 bits as an unsigned 32 bit integer.
12391239
* @returns {number} Value read
12401240
*/
12411241
fixed32(): number;
12421242

12431243
/**
1244-
* Reads zig-zag encoded fixed 32 bits as a number.
1244+
* Reads fixed 32 bits as a signed 32 bit integer.
12451245
* @returns {number} Value read
12461246
*/
12471247
sfixed32(): number;
@@ -2632,29 +2632,31 @@ export class Writer {
26322632
bool(value: boolean): Writer;
26332633

26342634
/**
2635-
* Writes a 32 bit value as fixed 32 bits.
2635+
* Writes an unsigned 32 bit value as fixed 32 bits.
26362636
* @param {number} value Value to write
26372637
* @returns {Writer} `this`
26382638
*/
26392639
fixed32(value: number): Writer;
26402640

26412641
/**
2642-
* Writes a 32 bit value as fixed 32 bits, zig-zag encoded.
2642+
* Writes a signed 32 bit value as fixed 32 bits.
2643+
* @function
26432644
* @param {number} value Value to write
26442645
* @returns {Writer} `this`
26452646
*/
26462647
sfixed32(value: number): Writer;
26472648

26482649
/**
2649-
* Writes a 64 bit value as fixed 64 bits.
2650+
* Writes an unsigned 64 bit value as fixed 64 bits.
26502651
* @param {Long|number|string} value Value to write
26512652
* @returns {Writer} `this`
26522653
* @throws {TypeError} If `value` is a string and no long library is present.
26532654
*/
26542655
fixed64(value: (Long|number|string)): Writer;
26552656

26562657
/**
2657-
* Writes a 64 bit value as fixed 64 bits, zig-zag encoded.
2658+
* Writes a signed 64 bit value as fixed 64 bits.
2659+
* @function
26582660
* @param {Long|number|string} value Value to write
26592661
* @returns {Writer} `this`
26602662
* @throws {TypeError} If `value` is a string and no long library is present.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protobufjs",
3-
"version": "6.6.4",
3+
"version": "6.6.5",
44
"versionScheme": "~",
55
"description": "Protocol Buffers for JavaScript (& TypeScript).",
66
"author": "Daniel Wirtz <[email protected]>",

0 commit comments

Comments
 (0)