Skip to content

Commit b646cf7

Browse files
committed
Docs: Updated CHANGELOG so everyone knows what's going on (and soon, breaking) [ci skip]
1 parent 48e66d9 commit b646cf7

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# [6.8.0](https://github.com/dcodeIO/protobuf.js/releases/tag/6.8.0)
2+
3+
## Breaking
4+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/7a6f98b5e74f9e9142f9be3ba0683caeaff916c4) Initial implementation of TypeScript decorators<br />
5+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/7a6f98b5e74f9e9142f9be3ba0683caeaff916c4) Refactored protobuf.Class away<br />
6+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/7a6f98b5e74f9e9142f9be3ba0683caeaff916c4) TypeScript definitions now have (a lot of) generics<br />
7+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/7a6f98b5e74f9e9142f9be3ba0683caeaff916c4) Removed deprecated features<br />
8+
9+
## Fixed
10+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/ed34b093839652db2ff7b84db87857fc57d96038) Reader#bytes should also support plain arrays<br />
11+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/514afcfa890aa598e93254576c4fd6062e0eff3b) Fix markdown for pipe in code in table<br />
12+
13+
## New
14+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/3939667ef1f37b025bd7f9476015890496d50e00) Added 'json' conversion option for proto3 JSON mapping compatibility of NaN and Infinity + additional documentation of util.toJSONOptions, see [#351](https://github.com/dcodeIO/protobuf.js/issues/351)<br />
15+
16+
## Docs
17+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/35a663757efe188bea552aef017837bc6c6a481a) Additional docs on TS/decorators usage<br />
18+
19+
## Other
20+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/48e66d975bf7b4e6bdbb68ec24386c98b16c54c5) Moved custom wrappers to its own module instead, also makes the API easier to use manually, see [#677](https://github.com/dcodeIO/protobuf.js/issues/677)<br />
21+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/0c6e639d08fdf9be12677bf678563ea631bafb2c) Added infrastructure for custom wrapping/unwrapping of special types, see [#677](https://github.com/dcodeIO/protobuf.js/issues/677)<br />
22+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/0425b584f49841d87a8249fef30c78cc31c1c742) More decorator progress (MapField.d, optional Type.d)<br />
23+
[:hash:](https://github.com/dcodeIO/protobuf.js/commit/7a6f98b5e74f9e9142f9be3ba0683caeaff916c4) tsd-jsdoc now has limited generics support<br />
24+
125
# [6.7.3](https://github.com/dcodeIO/protobuf.js/releases/tag/6.7.3)
226

327
## Other

src/wrappers.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
*/
77
var wrappers = exports;
88

9-
var util = require("./util/minimal");
9+
var Message = require("./message"),
10+
util = require("./util/minimal");
1011

1112
/**
1213
* From object converter part of a {@link Wrapper}.
@@ -65,7 +66,7 @@ wrappers[".google.protobuf.Any"] = {
6566
}
6667

6768
// wrap value if unmapped
68-
if (!(message instanceof this.ctor)) {
69+
if (!(message instanceof this.ctor) && message instanceof Message) {
6970
var object = message.toObject(options);
7071
object["@type"] = message.$type.fullName;
7172
return object;

0 commit comments

Comments
 (0)