@bufbuild/protobuf 2.3.0 → 2.4.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/dist/cjs/codegenv1/symbols.js +3 -0
- package/dist/cjs/reflect/nested-types.d.ts +23 -0
- package/dist/cjs/reflect/nested-types.js +40 -0
- package/dist/cjs/registry.js +8 -6
- package/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.d.ts +89 -0
- package/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.js +60 -0
- package/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts +122 -0
- package/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js +90 -0
- package/dist/cjs/wkt/gen/google/protobuf/java_features_pb.d.ts +113 -0
- package/dist/cjs/wkt/gen/google/protobuf/java_features_pb.js +67 -0
- package/dist/cjs/wkt/index.d.ts +4 -1
- package/dist/cjs/wkt/index.js +4 -1
- package/dist/esm/codegenv1/symbols.js +3 -0
- package/dist/esm/reflect/nested-types.d.ts +23 -0
- package/dist/esm/reflect/nested-types.js +39 -0
- package/dist/esm/registry.js +8 -6
- package/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.d.ts +89 -0
- package/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +57 -0
- package/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +122 -0
- package/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +87 -0
- package/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts +113 -0
- package/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +64 -0
- package/dist/esm/wkt/index.d.ts +4 -1
- package/dist/esm/wkt/index.js +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { fileDesc } from "../../../../codegenv1/file.js";
|
|
15
|
+
import { file_google_protobuf_descriptor } from "./descriptor_pb.js";
|
|
16
|
+
import { messageDesc } from "../../../../codegenv1/message.js";
|
|
17
|
+
import { enumDesc } from "../../../../codegenv1/enum.js";
|
|
18
|
+
import { extDesc } from "../../../../codegenv1/extension.js";
|
|
19
|
+
/**
|
|
20
|
+
* Describes the file google/protobuf/java_features.proto.
|
|
21
|
+
*/
|
|
22
|
+
export const file_google_protobuf_java_features = /*@__PURE__*/ fileDesc("CiNnb29nbGUvcHJvdG9idWYvamF2YV9mZWF0dXJlcy5wcm90bxICcGIizAUKDEphdmFGZWF0dXJlcxL+AQoSbGVnYWN5X2Nsb3NlZF9lbnVtGAEgASgIQuEBiAEBmAEEmAEBogEJEgR0cnVlGIQHogEKEgVmYWxzZRjnB7IBuwEI6AcQ6AcasgFUaGUgbGVnYWN5IGNsb3NlZCBlbnVtIGJlaGF2aW9yIGluIEphdmEgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgU2VlIGh0dHA6Ly9wcm90b2J1Zi5kZXYvcHJvZ3JhbW1pbmctZ3VpZGVzL2VudW0vI2phdmEgZm9yIG1vcmUgaW5mb3JtYXRpb24uEp8CCg91dGY4X3ZhbGlkYXRpb24YAiABKA4yHy5wYi5KYXZhRmVhdHVyZXMuVXRmOFZhbGlkYXRpb25C5AGIAQGYAQSYAQGiAQwSB0RFRkFVTFQYhAeyAcgBCOgHEOkHGr8BVGhlIEphdmEtc3BlY2lmaWMgdXRmOCB2YWxpZGF0aW9uIGZlYXR1cmUgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgVXRmOCB2YWxpZGF0aW9uIGJlaGF2aW9yIHNob3VsZCB1c2UgdGhlIGdsb2JhbCBjcm9zcy1sYW5ndWFnZSB1dGY4X3ZhbGlkYXRpb24gZmVhdHVyZS4SUQofdXNlX29sZF9vdXRlcl9jbGFzc25hbWVfZGVmYXVsdBgEIAEoCEIoiAEBmAEBogEJEgR0cnVlGIQHogEKEgVmYWxzZRjpB7IBBgjpByDpByJGCg5VdGY4VmFsaWRhdGlvbhIbChdVVEY4X1ZBTElEQVRJT05fVU5LTk9XThAAEgsKB0RFRkFVTFQQARIKCgZWRVJJRlkQAjpCCgRqYXZhEhsuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXQY6QcgASgLMhAucGIuSmF2YUZlYXR1cmVzUgRqYXZhQigKE2NvbS5nb29nbGUucHJvdG9idWZCEUphdmFGZWF0dXJlc1Byb3Rv", [file_google_protobuf_descriptor]);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message pb.JavaFeatures.
|
|
25
|
+
* Use `create(JavaFeaturesSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export const JavaFeaturesSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_java_features, 0);
|
|
28
|
+
/**
|
|
29
|
+
* The UTF8 validation strategy to use. See go/editions-utf8-validation for
|
|
30
|
+
* more information on this feature.
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum pb.JavaFeatures.Utf8Validation
|
|
33
|
+
*/
|
|
34
|
+
export var JavaFeatures_Utf8Validation;
|
|
35
|
+
(function (JavaFeatures_Utf8Validation) {
|
|
36
|
+
/**
|
|
37
|
+
* Invalid default, which should never be used.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
|
|
40
|
+
*/
|
|
41
|
+
JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
|
|
42
|
+
/**
|
|
43
|
+
* Respect the UTF8 validation behavior specified by the global
|
|
44
|
+
* utf8_validation feature.
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum value: DEFAULT = 1;
|
|
47
|
+
*/
|
|
48
|
+
JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["DEFAULT"] = 1] = "DEFAULT";
|
|
49
|
+
/**
|
|
50
|
+
* Verifies UTF8 validity overriding the global utf8_validation
|
|
51
|
+
* feature. This represents the legacy java_string_check_utf8 option.
|
|
52
|
+
*
|
|
53
|
+
* @generated from enum value: VERIFY = 2;
|
|
54
|
+
*/
|
|
55
|
+
JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["VERIFY"] = 2] = "VERIFY";
|
|
56
|
+
})(JavaFeatures_Utf8Validation || (JavaFeatures_Utf8Validation = {}));
|
|
57
|
+
/**
|
|
58
|
+
* Describes the enum pb.JavaFeatures.Utf8Validation.
|
|
59
|
+
*/
|
|
60
|
+
export const JavaFeatures_Utf8ValidationSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_java_features, 0, 0);
|
|
61
|
+
/**
|
|
62
|
+
* @generated from extension: optional pb.JavaFeatures java = 1001;
|
|
63
|
+
*/
|
|
64
|
+
export const java = /*@__PURE__*/ extDesc(file_google_protobuf_java_features, 0);
|
package/dist/esm/wkt/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export * from "./timestamp.js";
|
|
2
2
|
export * from "./any.js";
|
|
3
3
|
export * from "./wrappers.js";
|
|
4
|
-
export * from "./gen/google/protobuf/api_pb.js";
|
|
5
4
|
export * from "./gen/google/protobuf/any_pb.js";
|
|
5
|
+
export * from "./gen/google/protobuf/api_pb.js";
|
|
6
|
+
export * from "./gen/google/protobuf/cpp_features_pb.js";
|
|
6
7
|
export * from "./gen/google/protobuf/descriptor_pb.js";
|
|
7
8
|
export * from "./gen/google/protobuf/duration_pb.js";
|
|
8
9
|
export * from "./gen/google/protobuf/empty_pb.js";
|
|
9
10
|
export * from "./gen/google/protobuf/field_mask_pb.js";
|
|
11
|
+
export * from "./gen/google/protobuf/go_features_pb.js";
|
|
12
|
+
export * from "./gen/google/protobuf/java_features_pb.js";
|
|
10
13
|
export * from "./gen/google/protobuf/source_context_pb.js";
|
|
11
14
|
export * from "./gen/google/protobuf/struct_pb.js";
|
|
12
15
|
export * from "./gen/google/protobuf/timestamp_pb.js";
|
package/dist/esm/wkt/index.js
CHANGED
|
@@ -14,12 +14,15 @@
|
|
|
14
14
|
export * from "./timestamp.js";
|
|
15
15
|
export * from "./any.js";
|
|
16
16
|
export * from "./wrappers.js";
|
|
17
|
-
export * from "./gen/google/protobuf/api_pb.js";
|
|
18
17
|
export * from "./gen/google/protobuf/any_pb.js";
|
|
18
|
+
export * from "./gen/google/protobuf/api_pb.js";
|
|
19
|
+
export * from "./gen/google/protobuf/cpp_features_pb.js";
|
|
19
20
|
export * from "./gen/google/protobuf/descriptor_pb.js";
|
|
20
21
|
export * from "./gen/google/protobuf/duration_pb.js";
|
|
21
22
|
export * from "./gen/google/protobuf/empty_pb.js";
|
|
22
23
|
export * from "./gen/google/protobuf/field_mask_pb.js";
|
|
24
|
+
export * from "./gen/google/protobuf/go_features_pb.js";
|
|
25
|
+
export * from "./gen/google/protobuf/java_features_pb.js";
|
|
23
26
|
export * from "./gen/google/protobuf/source_context_pb.js";
|
|
24
27
|
export * from "./gen/google/protobuf/struct_pb.js";
|
|
25
28
|
export * from "./gen/google/protobuf/timestamp_pb.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bufbuild/protobuf",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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
|
"keywords": ["protobuf", "schema", "typescript", "ecmascript"],
|