protobufjs 8.6.4 → 8.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/light/protobuf.js +334 -100
- package/dist/light/protobuf.js.map +1 -1
- package/dist/light/protobuf.min.js +3 -3
- package/dist/light/protobuf.min.js.map +1 -1
- package/dist/minimal/protobuf.js +51 -6
- package/dist/minimal/protobuf.js.map +1 -1
- package/dist/minimal/protobuf.min.js +3 -3
- package/dist/minimal/protobuf.min.js.map +1 -1
- package/dist/protobuf.js +340 -101
- package/dist/protobuf.js.map +1 -1
- package/dist/protobuf.min.js +3 -3
- package/dist/protobuf.min.js.map +1 -1
- package/ext/descriptor.js +4 -2
- package/ext/protojson.js +3 -1
- package/ext/textformat.js +26 -6
- package/package.json +2 -2
- package/src/converter.js +27 -19
- package/src/decoder.js +108 -40
- package/src/encoder.js +16 -1
- package/src/enum.js +10 -2
- package/src/field.js +9 -1
- package/src/mapfield.js +9 -1
- package/src/method.js +9 -1
- package/src/namespace.js +9 -1
- package/src/object.js +21 -11
- package/src/oneof.js +9 -1
- package/src/parse.js +6 -1
- package/src/reader_buffer.js +8 -1
- package/src/root.js +9 -1
- package/src/rpc/service.js +8 -1
- package/src/service.js +9 -1
- package/src/type.js +16 -2
- package/src/util/codegen.js +6 -1
- package/src/util/minimal.js +25 -1
- package/src/verifier.js +14 -9
- package/src/wrappers.js +2 -2
- package/src/writer_buffer.js +8 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
**Protocol Buffers** are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more, originally designed at Google ([see](https://protobuf.dev/)).
|
|
11
11
|
|
|
12
|
-
**protobuf.js** is a standalone JavaScript implementation of Protocol Buffers for Node.js and browsers. It is tuned for fast binary I/O, battle-tested at scale, can load `.proto` files directly, and supports runtime reflection
|
|
12
|
+
**protobuf.js** is a standalone JavaScript implementation of Protocol Buffers for Node.js and browsers. It is tuned for fast binary I/O, battle-tested at scale, and validated against the official Protocol Buffers conformance suite. It can load `.proto` files directly, does not require protoc, and supports runtime reflection plus reflection-free and reflection-backed code generation with strong TypeScript declarations.
|
|
13
13
|
|
|
14
14
|
If protobuf.js is important to your project or organization, especially if you depend on it commercially, [consider supporting its ongoing maintenance](https://github.com/sponsors/dcodeIO).
|
|
15
15
|
|
|
@@ -336,13 +336,13 @@ protobuf.js targets complete binary wire-format conformance for **Proto2**, **Pr
|
|
|
336
336
|
|
|
337
337
|
| Category | Total | Required | Recommended |
|
|
338
338
|
| ---------- | ------------------: | ------------------: | ------------------: |
|
|
339
|
-
| Binary | 100.00% (
|
|
340
|
-
| ↳ Proto2 | 100.00% (
|
|
341
|
-
| ↳ Proto3 | 100.00% (
|
|
342
|
-
| ↳ Editions | 100.00% (
|
|
343
|
-
| ProtoJSON | 100.00% (
|
|
344
|
-
| TextFormat | 100.00% (
|
|
345
|
-
| Overall | 100.00% (
|
|
339
|
+
| Binary | 100.00% (2835/2835) | 100.00% (1958/1958) | 100.00% (877/877) |
|
|
340
|
+
| ↳ Proto2 | 100.00% (707/707) | 100.00% (489/489) | 100.00% (218/218) |
|
|
341
|
+
| ↳ Proto3 | 100.00% (707/707) | 100.00% (486/486) | 100.00% (221/221) |
|
|
342
|
+
| ↳ Editions | 100.00% (1419/1419) | 100.00% (981/981) | 100.00% (438/438) |
|
|
343
|
+
| ProtoJSON | 100.00% (2796/2796) | 100.00% (2362/2362) | 100.00% (434/434) |
|
|
344
|
+
| TextFormat | 100.00% (909/909) | 100.00% (845/845) | 100.00% (64/64) |
|
|
345
|
+
| Overall | 100.00% (6540/6540) | 100.00% (5165/5165) | 100.00% (1375/1375) |
|
|
346
346
|
|
|
347
347
|
## Performance
|
|
348
348
|
|