@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 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 v0.5.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
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 v0.5.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
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");
@@ -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
- * Note that this method is protected because users should not need to invoke
107
- * it directly -- they can use JSON.stringify.
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 v0.5.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
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 v0.5.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
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";
@@ -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
- * Note that this method is protected because users should not need to invoke
104
- * it directly -- they can use JSON.stringify.
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({
@@ -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
- * Note that this method is protected because users should not need to invoke
70
- * it directly -- they can use JSON.stringify.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bufbuild/protobuf",
3
- "version": "0.5.0",
3
+ "version": "1.0.0",
4
4
  "license": "(Apache-2.0 AND BSD-3-Clause)",
5
5
  "description": "A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.",
6
6
  "repository": {