Skip to content

Commit 48457c4

Browse files
github-actions[bot]alexander-fenster
andauthoredAug 26, 2022
chore: release master (#1772)
* chore: release master * chore: trigger CI * chore: update lockfile and .d.ts Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Alexander Fenster <fenster@google.com>
1 parent ef24ae4 commit 48457c4

8 files changed

+4292
-18144
lines changed
 

‎.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{".":"7.0.0","cli":"1.0.0"}
1+
{".":"7.1.0","cli":"1.0.1"}

‎CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## [7.1.0](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.0.0...protobufjs-v7.1.0) (2022-08-26)
4+
5+
6+
### Features
7+
8+
* accept unknown enum values in fromObject ([#1793](https://github.com/protobufjs/protobuf.js/issues/1793)) ([ef24ae4](https://github.com/protobufjs/protobuf.js/commit/ef24ae4e93cf8635ff38398b37f3597e5d478330))
9+
* valuesOptions for enums ([#1358](https://github.com/protobufjs/protobuf.js/issues/1358)) ([bb6b1d4](https://github.com/protobufjs/protobuf.js/commit/bb6b1d4942d924bcb4ee3ad15f4823f2d9c1ab22))
10+
11+
12+
### Bug Fixes
13+
14+
* **deps:** update dependency glob to v8 ([#1750](https://github.com/protobufjs/protobuf.js/issues/1750)) ([8303a64](https://github.com/protobufjs/protobuf.js/commit/8303a648bc12dcea5aa8e7efa042de39011857f9))
15+
* extensions broke oneof ([#1789](https://github.com/protobufjs/protobuf.js/issues/1789)) ([d7f501c](https://github.com/protobufjs/protobuf.js/commit/d7f501c49d523cda423a3ab8bcaeb59a0216b350))
16+
* remove unused `@types/long` ([#1785](https://github.com/protobufjs/protobuf.js/issues/1785)) ([0f4af83](https://github.com/protobufjs/protobuf.js/commit/0f4af83e4ed3cef1ec035c2833e0b06cab0bd87f))
17+
* support for nested messages and enums within group blocks ([#1790](https://github.com/protobufjs/protobuf.js/issues/1790)) ([f36d4e4](https://github.com/protobufjs/protobuf.js/commit/f36d4e4a2df809b47ff85f87aba319b86be90878))
18+
* **types:** update type deps ([#1776](https://github.com/protobufjs/protobuf.js/issues/1776)) ([d87978b](https://github.com/protobufjs/protobuf.js/commit/d87978b8eb2a176676c58379a89206b94a6d926a))
19+
320
## [7.0.0](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v6.0.0...protobufjs-v7.0.0) (2022-07-08)
421

522

‎cli/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## [1.0.1](https://github.com/protobufjs/protobuf.js/compare/protobufjs-cli-v1.0.0...protobufjs-cli-v1.0.1) (2022-08-26)
4+
5+
6+
### Bug Fixes
7+
8+
* **deps:** update dependency glob to v8 ([#1750](https://github.com/protobufjs/protobuf.js/issues/1750)) ([8303a64](https://github.com/protobufjs/protobuf.js/commit/8303a648bc12dcea5aa8e7efa042de39011857f9))
9+
* remove unused `@types/long` ([#1785](https://github.com/protobufjs/protobuf.js/issues/1785)) ([0f4af83](https://github.com/protobufjs/protobuf.js/commit/0f4af83e4ed3cef1ec035c2833e0b06cab0bd87f))
10+
* **types:** update type deps ([#1776](https://github.com/protobufjs/protobuf.js/issues/1776)) ([d87978b](https://github.com/protobufjs/protobuf.js/commit/d87978b8eb2a176676c58379a89206b94a6d926a))
11+
312
## [1.0.0](https://github.com/protobufjs/protobuf.js/compare/protobufjs-cli-v0.1.0...protobufjs-cli-v1.0.0) (2022-07-08)
413

514

‎cli/package-lock.json

+893-16,221
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "protobufjs-cli",
33
"description": "Translates between file formats and generates static code as well as TypeScript definitions.",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
66
"repository": {
77
"type": "git",

‎index.d.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ export class Enum extends ReflectionObject {
160160
* @param [options] Declared options
161161
* @param [comment] The comment for this enum
162162
* @param [comments] The value comments for this enum
163+
* @param [valuesOptions] The value options for this enum
163164
*/
164-
constructor(name: string, values?: { [k: string]: number }, options?: { [k: string]: any }, comment?: string, comments?: { [k: string]: string });
165+
constructor(name: string, values?: { [k: string]: number }, options?: { [k: string]: any }, comment?: string, comments?: { [k: string]: string }, valuesOptions?: ({ [k: string]: { [k: string]: any } }|undefined));
165166

166167
/** Enum values by id. */
167168
public valuesById: { [k: number]: string };
@@ -175,6 +176,9 @@ export class Enum extends ReflectionObject {
175176
/** Value comment texts, if any. */
176177
public comments: { [k: string]: string };
177178

179+
/** Values options, if any */
180+
public valuesOptions?: { [k: string]: { [k: string]: any } };
181+
178182
/** Reserved ranges, if any. */
179183
public reserved: (number[]|string)[];
180184

@@ -199,11 +203,12 @@ export class Enum extends ReflectionObject {
199203
* @param name Value name
200204
* @param id Value id
201205
* @param [comment] Comment, if any
206+
* @param {Object.<string, *>|undefined} [options] Options, if any
202207
* @returns `this`
203208
* @throws {TypeError} If arguments are invalid
204209
* @throws {Error} If there is already a value with this name or id
205210
*/
206-
public add(name: string, id: number, comment?: string): Enum;
211+
public add(name: string, id: number, comment?: string, options?: ({ [k: string]: any }|undefined)): Enum;
207212

208213
/**
209214
* Removes a value from this enum

‎package-lock.json

+3,363-1,918
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protobufjs",
3-
"version": "7.0.0",
3+
"version": "7.1.0",
44
"versionScheme": "~",
55
"description": "Protocol Buffers for JavaScript (& TypeScript).",
66
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",

0 commit comments

Comments
 (0)
Please sign in to comment.