@bufbuild/protobuf 0.5.0 → 1.0.0
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 +2 -2
- package/dist/cjs/google/protobuf/struct_pb.js +1 -1
- package/dist/cjs/google/protobuf/type_pb.js +1 -1
- package/dist/cjs/message.js +4 -2
- package/dist/esm/google/protobuf/struct_pb.js +1 -1
- package/dist/esm/google/protobuf/type_pb.js +1 -1
- package/dist/esm/message.js +4 -2
- package/dist/types/message.d.ts +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,11 +15,11 @@ Some additional features that set it apart from the others:
|
|
|
15
15
|
- ECMAScript module support
|
|
16
16
|
- First-class TypeScript support
|
|
17
17
|
- Generation of idiomatic JavaScript and TypeScript code.
|
|
18
|
-
- Generation of [much smaller bundles](packages/protobuf-bench)
|
|
18
|
+
- Generation of [much smaller bundles](https://github.com/bufbuild/protobuf-es/blob/main/packages/protobuf-bench)
|
|
19
19
|
- Implementation of all proto3 features, including the [canonical JSON format](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
|
20
20
|
- Implementation of all proto2 features, except for extensions and the text format.
|
|
21
21
|
- Usage of standard JavaScript APIs instead of the [Closure Library](http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html)
|
|
22
|
-
- Compatibility is covered by the protocol buffers [conformance tests](packages/protobuf-conformance).
|
|
22
|
+
- Compatibility is covered by the protocol buffers [conformance tests](https://github.com/bufbuild/protobuf-es/blob/main/packages/protobuf-conformance).
|
|
23
23
|
- Descriptor and reflection support
|
|
24
24
|
|
|
25
25
|
## Installation
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ListValue = exports.Value = exports.Struct = exports.NullValue = void 0;
|
|
17
|
-
// @generated by protoc-gen-es
|
|
17
|
+
// @generated by protoc-gen-es v1.0.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
18
18
|
// @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3)
|
|
19
19
|
/* eslint-disable */
|
|
20
20
|
const proto3_js_1 = require("../../proto3.js");
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Option = exports.EnumValue = exports.Enum = exports.Field_Cardinality = exports.Field_Kind = exports.Field = exports.Type = exports.Syntax = void 0;
|
|
17
|
-
// @generated by protoc-gen-es
|
|
17
|
+
// @generated by protoc-gen-es v1.0.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
18
18
|
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
|
|
19
19
|
/* eslint-disable */
|
|
20
20
|
const proto3_js_1 = require("../../proto3.js");
|
package/dist/cjs/message.js
CHANGED
|
@@ -103,8 +103,10 @@ class Message {
|
|
|
103
103
|
* message type. As a result, attempting to serialize a message with this
|
|
104
104
|
* type will throw an Error.
|
|
105
105
|
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
106
|
+
* This method is protected because you should not need to invoke it
|
|
107
|
+
* directly -- instead use JSON.stringify or toJsonString for
|
|
108
|
+
* stringified JSON. Alternatively, if actual JSON is desired, you should
|
|
109
|
+
* use toJson.
|
|
108
110
|
*/
|
|
109
111
|
toJSON() {
|
|
110
112
|
return this.toJson({
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
// @generated by protoc-gen-es
|
|
14
|
+
// @generated by protoc-gen-es v1.0.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
15
15
|
// @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3)
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
import { proto3 } from "../../proto3.js";
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
// @generated by protoc-gen-es
|
|
14
|
+
// @generated by protoc-gen-es v1.0.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
15
15
|
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
import { proto3 } from "../../proto3.js";
|
package/dist/esm/message.js
CHANGED
|
@@ -100,8 +100,10 @@ export class Message {
|
|
|
100
100
|
* message type. As a result, attempting to serialize a message with this
|
|
101
101
|
* type will throw an Error.
|
|
102
102
|
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
103
|
+
* This method is protected because you should not need to invoke it
|
|
104
|
+
* directly -- instead use JSON.stringify or toJsonString for
|
|
105
|
+
* stringified JSON. Alternatively, if actual JSON is desired, you should
|
|
106
|
+
* use toJson.
|
|
105
107
|
*/
|
|
106
108
|
toJSON() {
|
|
107
109
|
return this.toJson({
|
package/dist/types/message.d.ts
CHANGED
|
@@ -66,8 +66,10 @@ export declare class Message<T extends Message<T> = AnyMessage> {
|
|
|
66
66
|
* message type. As a result, attempting to serialize a message with this
|
|
67
67
|
* type will throw an Error.
|
|
68
68
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
69
|
+
* This method is protected because you should not need to invoke it
|
|
70
|
+
* directly -- instead use JSON.stringify or toJsonString for
|
|
71
|
+
* stringified JSON. Alternatively, if actual JSON is desired, you should
|
|
72
|
+
* use toJson.
|
|
71
73
|
*/
|
|
72
74
|
protected toJSON(): JsonValue;
|
|
73
75
|
/**
|
package/package.json
CHANGED