-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to v2 #948
Switch to v2 #948
Commits on Mar 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d4b168b - Browse repository at this point
Copy the full SHA d4b168bView commit details
Commits on Mar 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0b7cee0 - Browse repository at this point
Copy the full SHA 0b7cee0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a57887e - Browse repository at this point
Copy the full SHA a57887eView commit details -
Simplify protoplugin's JSDocBlock type
Remove the toString method, and let GeneratedFile.jsDoc() return a Printable. This brings the JSDocBlock printable in line with others.
Configuration menu - View commit details
-
Copy full SHA for 8cf665b - Browse repository at this point
Copy the full SHA 8cf665bView commit details
Commits on Mar 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5f85bd5 - Browse repository at this point
Copy the full SHA 5f85bd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32d2a60 - Browse repository at this point
Copy the full SHA 32d2a60View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfee197 - Browse repository at this point
Copy the full SHA bfee197View commit details
Commits on Mar 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0be5249 - Browse repository at this point
Copy the full SHA 0be5249View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6b84b1 - Browse repository at this point
Copy the full SHA d6b84b1View commit details -
Move well-known types to the "wkt" subpath export
And provide utilities for Timestamp, such as timestampNow()
Configuration menu - View commit details
-
Copy full SHA for 718b4de - Browse repository at this point
Copy the full SHA 718b4deView commit details
Commits on Mar 18, 2024
-
Add
toBinary
andfromBinary
functions (#751)Add `toBinary` and `fromBinary` functions to serialize to and from protobuf encoded bytes. Added compatibility tests with v1 for now.
Configuration menu - View commit details
-
Copy full SHA for 689daf3 - Browse repository at this point
Copy the full SHA 689daf3View commit details -
Ignore in prettier. Move Node10 module resolution fallbacks to correct path.
Configuration menu - View commit details
-
Copy full SHA for 37e4552 - Browse repository at this point
Copy the full SHA 37e4552View commit details
Commits on Mar 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 957fc9b - Browse repository at this point
Copy the full SHA 957fc9bView commit details
Commits on Mar 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 450a2f1 - Browse repository at this point
Copy the full SHA 450a2f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a4f83c - Browse repository at this point
Copy the full SHA 8a4f83cView commit details
Commits on Mar 22, 2024
-
Add /*@__PURE__*/ annotation for better tree-shaking support
This annotation informs bundlers that the succeeding function call is free of side effects. This means the symbol can be removed from the module during tree-shaking if it is unused. See #470 The annotation is not terribly effective yet, since all generated descriptors depend on the file descriptor, but it's still worthwhile.
Configuration menu - View commit details
-
Copy full SHA for e8e2be1 - Browse repository at this point
Copy the full SHA e8e2be1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82fd2e4 - Browse repository at this point
Copy the full SHA 82fd2e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cde009f - Browse repository at this point
Copy the full SHA cde009fView commit details
Commits on Mar 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 775e391 - Browse repository at this point
Copy the full SHA 775e391View commit details -
This adds two new types to the reflect API: ReflectList and ReflectMap. The API now always returns messages as ReflectMessage, list fields as ReflectList, and map fields as ReflectMap. Note that accessing an unset message fields returns a ReflectMessage with a new zero-message. The methods ReflectMessage.addListItem and ReflectMessage.setMapEntry are kept for now. We can decide whether it's worth to keep them for the hot path when we take a look at performance. This also updates create() to fully support the "init" argument.
Configuration menu - View commit details
-
Copy full SHA for 7054ed7 - Browse repository at this point
Copy the full SHA 7054ed7View commit details
Commits on Mar 26, 2024
-
The IEEE standard requires that NaN != NaN. It's questionable whether that should also be the case when comparing two protobuf fields,
Configuration menu - View commit details
-
Copy full SHA for f5390f2 - Browse repository at this point
Copy the full SHA f5390f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ff3253 - Browse repository at this point
Copy the full SHA 5ff3253View commit details
Commits on Mar 27, 2024
-
The message descriptor contains cyclic references and methods, causing issues with Jest, RSC serialization, structured clone, and others. By removing the property, messages are no longer self-describing, and functions that need schema information require the user to path both the message descriptor and the message.
Configuration menu - View commit details
-
Copy full SHA for bf6df29 - Browse repository at this point
Copy the full SHA bf6df29View commit details -
Most importantly, tests for serializing map fields. Fixes a bug in fromBinary, where map keys were converted to strings, which are the correct representation in a message, but not for a ReflectMap. This bug was most likely introduced in 7054ed7, which limited the conversion to a smaller set of acceptable types.
Configuration menu - View commit details
-
Copy full SHA for 4826555 - Browse repository at this point
Copy the full SHA 4826555View commit details -
Enable Jest worker threads for assertion failures involving BigInt
In case of a test failure, we'll see the diff instead of Jest crashing. See jestjs/jest#11617 (comment) There don't appear to be any adverse effects of enabling the option. Test failures when strictly comparing message classes are still reported correctly.
Configuration menu - View commit details
-
Copy full SHA for ea52fa2 - Browse repository at this point
Copy the full SHA ea52fa2View commit details
Commits on Apr 1, 2024
-
Introduce subpath export "wire"
In order to reduce the number of main exports, move types that are rarely needed by end-users to a new subpath "wire". - BinaryWriter and BinaryReader have been moved, and their interfaces discarded. - Users can bring their own Text encoding API via wire/configureTextEncoding() now instead of the serialization options readerFactory / writerFactory. - protoBase64 has been split into the functions base64Decode and base64Encode, with the latter allowing to encode with padding, without padding, or URL-safe. The exports protoDelimited and protoBase64 are also candidates for moving to wire, but are not moved by this commit.
Configuration menu - View commit details
-
Copy full SHA for 7080556 - Browse repository at this point
Copy the full SHA 7080556View commit details -
Move reflect/wkt.ts to wkt/wrappers.ts to keep WKT-specific code in one place. This does not move the code for custom JSON representation of WKTs.
Configuration menu - View commit details
-
Copy full SHA for 8e8f320 - Browse repository at this point
Copy the full SHA 8e8f320View commit details
Commits on Apr 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 61e27b7 - Browse repository at this point
Copy the full SHA 61e27b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d30082 - Browse repository at this point
Copy the full SHA 6d30082View commit details
Commits on Apr 3, 2024
-
fileDesc() from codegenv1/hydrate.ts restored redundant json names incorrectly, leading DescField.jsonName to be an empty string instead of undefined.
Configuration menu - View commit details
-
Copy full SHA for 3fddb40 - Browse repository at this point
Copy the full SHA 3fddb40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44a73b0 - Browse repository at this point
Copy the full SHA 44a73b0View commit details -
Fix excluded properties in MessageInit
We have to ignore $typeName and $unknown, not $desc and $typename.
Configuration menu - View commit details
-
Copy full SHA for ae47143 - Browse repository at this point
Copy the full SHA ae47143View commit details -
Fix checkScalarValue() for FIXED32
FIXED32 is an unsigned, fixed-length 32-bit integer.
Configuration menu - View commit details
-
Copy full SHA for c728dd7 - Browse repository at this point
Copy the full SHA c728dd7View commit details
Commits on Apr 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for faae4ef - Browse repository at this point
Copy the full SHA faae4efView commit details -
Add
fromJson
andmergeFromJson
and their string variants (#770)Add `fromJson` and `mergeFromJson` and their string variants. Missing extension support, will a be added in a follow up.
Configuration menu - View commit details
-
Copy full SHA for 296e526 - Browse repository at this point
Copy the full SHA 296e526View commit details
Commits on Apr 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 68fff18 - Browse repository at this point
Copy the full SHA 68fff18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ffbac0 - Browse repository at this point
Copy the full SHA 5ffbac0View commit details -
Simplify number literals in protoplugin
We used to have a protoDouble export to avoid possibly clashing with a generated symbol. Turns out we can simplify this more, use globalThis - it's a reserved identifier by safeIdentifier() - and remove a file from codegenv1.
Configuration menu - View commit details
-
Copy full SHA for 0e39949 - Browse repository at this point
Copy the full SHA 0e39949View commit details
Commits on Apr 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1db0aa4 - Browse repository at this point
Copy the full SHA 1db0aa4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f047bfe - Browse repository at this point
Copy the full SHA f047bfeView commit details
Commits on Apr 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3ae0403 - Browse repository at this point
Copy the full SHA 3ae0403View commit details -
Avoid linter ignore for enum comparison
eslint is a bit over the top here.
Configuration menu - View commit details
-
Copy full SHA for d580420 - Browse repository at this point
Copy the full SHA d580420View commit details -
Avoid isFieldSet() when creating Desc* types
This will avoid a circular reference when we switch to hydrate embedded descriptors with v2.
Configuration menu - View commit details
-
Copy full SHA for de8a802 - Browse repository at this point
Copy the full SHA de8a802View commit details -
Remove the options for FeatureSetDefaults from createDescFileSet(), createDescriptorSet(), and @bufbuild/protoplugin. Going forward, feature resolution will happen internally in createDescFileSet(), and not be exposed. This will avoid several bootstrapping issues and simplify the code overall. Feature resolution with own features can still be implemented as an external function if needed, but at this point, this does not seem to be a crucial feature.
Configuration menu - View commit details
-
Copy full SHA for be2aadf - Browse repository at this point
Copy the full SHA be2aadfView commit details -
Resolve edition features without binary serialization
When we hydrate embedded descriptors, we cannot use binary serialization. This changes does not completely remove serialization yet, since feature-set defaults are still embedded as binary in the source, but it changes resolution to no longer use serialization for feature inheritance.
Configuration menu - View commit details
-
Copy full SHA for 2c8834c - Browse repository at this point
Copy the full SHA 2c8834cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65981d1 - Browse repository at this point
Copy the full SHA 65981d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3294739 - Browse repository at this point
Copy the full SHA 3294739View commit details -
Generate seconds set of descriptor enumerations
To avoid import cycles, we generate enumerations we need in desc-set.ts instead of importing.
Configuration menu - View commit details
-
Copy full SHA for b1a7c9f - Browse repository at this point
Copy the full SHA b1a7c9fView commit details -
Move restoreJsonNames() to separate module
So that it can be re-used later.
Configuration menu - View commit details
-
Copy full SHA for 51f04cf - Browse repository at this point
Copy the full SHA 51f04cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for a5ef8cb - Browse repository at this point
Copy the full SHA a5ef8cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34accf9 - Browse repository at this point
Copy the full SHA 34accf9View commit details
Commits on Apr 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e35146e - Browse repository at this point
Copy the full SHA e35146eView commit details -
The property is populated from edition features / defaults.
Configuration menu - View commit details
-
Copy full SHA for f83fed3 - Browse repository at this point
Copy the full SHA f83fed3View commit details -
Remove DescField.packedByDefault
The property was only relevant to generate optimized FieldInfo in v1, which is now implemented with a separate function.
Configuration menu - View commit details
-
Copy full SHA for aaa383c - Browse repository at this point
Copy the full SHA aaa383cView commit details -
Always define DescField.jsonName
The property was a union with `undefined` to generate optimized FieldInfo in v1, which is now implemented with a separate function.
Configuration menu - View commit details
-
Copy full SHA for ddc28a0 - Browse repository at this point
Copy the full SHA ddc28a0View commit details -
Untangle descriptor.proto bootstrapping
In preparation for switching desc-set.ts to use v2 proto messages, add a facility to embed a FileDescriptorProto message for google/protobuf/descriptor.proto as a plain object.
Configuration menu - View commit details
-
Copy full SHA for 0ad5ded - Browse repository at this point
Copy the full SHA 0ad5dedView commit details -
Remove field presence assertions in desc-set.ts
Before proto2 fields were switched to use the prototype chain, we used assertions to narrow down optional types. This is no longer necessary.
Configuration menu - View commit details
-
Copy full SHA for 5cf2a4c - Browse repository at this point
Copy the full SHA 5cf2a4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d6535e - Browse repository at this point
Copy the full SHA 9d6535eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b5cf9a - Browse repository at this point
Copy the full SHA 3b5cf9aView commit details -
- Copy coverage for v1 to v2 - Consolidate some tests - Avoid generated code where possible
Configuration menu - View commit details
-
Copy full SHA for e6bd428 - Browse repository at this point
Copy the full SHA e6bd428View commit details -
Update keep_empty_files test in protoplugin
We have to make use of the helper.
Configuration menu - View commit details
-
Copy full SHA for efdd92c - Browse repository at this point
Copy the full SHA efdd92cView commit details -
Configuration menu - View commit details
-
Copy full SHA for de69744 - Browse repository at this point
Copy the full SHA de69744View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6bd366 - Browse repository at this point
Copy the full SHA a6bd366View commit details -
Temporarily keep a copy of descriptor.proto enumerations
To avoid import cycles, we add a local copy of enumerations generated from descriptor.proto at several places. Going forward, Desc* types will stop exposing generated enumerations, so that this workaround will no longer be necessary.
Configuration menu - View commit details
-
Copy full SHA for ffa70c8 - Browse repository at this point
Copy the full SHA ffa70c8View commit details -
Use V2 descriptor messages in Desc* types
With this change, V2 messages do not rely on the V1 runtime anymore. Note that this commit does not pass tests, since tests, the protoplugin package, and our code generator all still expect V1 messages with createDescSet() and related types. The V1 function createDescriptorSet() is patched to still accept V1 descriptor protos, since it is most widely used, also with the old code generator.
Configuration menu - View commit details
-
Copy full SHA for 2614e5c - Browse repository at this point
Copy the full SHA 2614e5cView commit details -
Use V2 Desc* types in protoplugin
Note that this commit does not pass tests, since our plugin and test packages still need to be updated. The V1 function createSchema() is patched to still accept V1 descriptor protos, since it is most widely used, also with the old code generator.
Configuration menu - View commit details
-
Copy full SHA for 5f95bf8 - Browse repository at this point
Copy the full SHA 5f95bf8View commit details -
Update protoc-gen-es for bootstrapping
Special case google/protobuf/descriptor.proto to embed it as a plain object when bootstrapping. Note that this commit does not pass tests, since tests and other packages still need to be updated.
Configuration menu - View commit details
-
Copy full SHA for ef4950b - Browse repository at this point
Copy the full SHA ef4950bView commit details -
Use V2 Desc* types in protobuf-test
Note that this commit does not pass tests, since more tests and other packages still need to be updated.
Configuration menu - View commit details
-
Copy full SHA for f9876d2 - Browse repository at this point
Copy the full SHA f9876d2View commit details -
Use V2 Desc* types in protoplugin-test
Note that this commit does not pass tests, since other packages still need to be updated.
Configuration menu - View commit details
-
Copy full SHA for 96b00e3 - Browse repository at this point
Copy the full SHA 96b00e3View commit details -
Test protoplugin-example with make test
The target `test-protoplugin-example` runs in CI, but not in `make test`.
Configuration menu - View commit details
-
Copy full SHA for e1aa560 - Browse repository at this point
Copy the full SHA e1aa560View commit details -
Use V2 protoplugin in protoplugin-example
This commit should pass CI. V2 is now (mostly) independant of V1.
Configuration menu - View commit details
-
Copy full SHA for 6b7a3c1 - Browse repository at this point
Copy the full SHA 6b7a3c1View commit details
Commits on Apr 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b2606a9 - Browse repository at this point
Copy the full SHA b2606a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fc2f95 - Browse repository at this point
Copy the full SHA 2fc2f95View commit details -
Fix enumerations in generated JS and add tests
This ports name-clash tests from V1, applying them to V2. It fixes a bug in function tsEnum, and adds additional tests.
Configuration menu - View commit details
-
Copy full SHA for ce7dceb - Browse repository at this point
Copy the full SHA ce7dcebView commit details -
Use V2 protoplugin in V1 protoc-gen-es
This will let us remove V1 protoplugin. There are two expected changes in generated code: - We use `globalThis` to reference NaN and Infinity instead of the `protoDouble` export. - We no longer generate the `@ts-nocheck` annotation by default.
Configuration menu - View commit details
-
Copy full SHA for 456604c - Browse repository at this point
Copy the full SHA 456604cView commit details -
This commit will not pass tests because we still have references to V1. Committing separately for better commit history.
Configuration menu - View commit details
-
Copy full SHA for d16fcfd - Browse repository at this point
Copy the full SHA d16fcfdView commit details -
This commit completes the previous one, replacing @bufbuild/protoplugin/next with @bufbuild/protoplugin in the project.
Configuration menu - View commit details
-
Copy full SHA for d7bf8ae - Browse repository at this point
Copy the full SHA d7bf8aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf1c006 - Browse repository at this point
Copy the full SHA bf1c006View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0fe785 - Browse repository at this point
Copy the full SHA e0fe785View commit details -
Configuration menu - View commit details
-
Copy full SHA for a741221 - Browse repository at this point
Copy the full SHA a741221View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90623de - Browse repository at this point
Copy the full SHA 90623deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2358bdc - Browse repository at this point
Copy the full SHA 2358bdcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 234cf00 - Browse repository at this point
Copy the full SHA 234cf00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48ce336 - Browse repository at this point
Copy the full SHA 48ce336View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b348ac - Browse repository at this point
Copy the full SHA 5b348acView commit details -
This is not a complete port, and only covers TS generated code.
Configuration menu - View commit details
-
Copy full SHA for 7bcc86f - Browse repository at this point
Copy the full SHA 7bcc86fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d40541 - Browse repository at this point
Copy the full SHA 3d40541View commit details -
Configuration menu - View commit details
-
Copy full SHA for d11570b - Browse repository at this point
Copy the full SHA d11570bView commit details -
Re-write function to create DescField | DescExtension
This was necessary to resolve features: We need as much of the DescField|DescExtension available when we resolve features, and the previous implementation patched the field's "kind" and other properties, making the logic fragile.
Configuration menu - View commit details
-
Copy full SHA for 568e6c8 - Browse repository at this point
Copy the full SHA 568e6c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc5df46 - Browse repository at this point
Copy the full SHA fc5df46View commit details -
Remove getFeatures() from (almost) all Desc* types
The plan is to make feature resolution internal, remove getFeatures(), and expose relevant features as properties.
Configuration menu - View commit details
-
Copy full SHA for 58f9f45 - Browse repository at this point
Copy the full SHA 58f9f45View commit details -
The plan is to make feature resolution internal. This optimized function resolveFeature for this use case. The function resolves from a descriptor proto message and a Desc* parent now, so that we can resolve features for a descriptor we have not wrapped yet.
Configuration menu - View commit details
-
Copy full SHA for 7e4aaad - Browse repository at this point
Copy the full SHA 7e4aaadView commit details
Commits on Apr 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 446a2e6 - Browse repository at this point
Copy the full SHA 446a2e6View commit details -
Add DescField.delimitedEncoding
Tells whether to encode a message delimited (a.k.a. proto2 group encoding) or length-prefixed. Note that we're most likely not supporting feature message_encoding = DELIMITED correctly for map fields, and have to revisit.
Configuration menu - View commit details
-
Copy full SHA for dbcb9bb - Browse repository at this point
Copy the full SHA dbcb9bbView commit details -
This property provides the field's presence as per https://protobuf.dev/programming-guides/field_presence/
Configuration menu - View commit details
-
Copy full SHA for 58d54b1 - Browse repository at this point
Copy the full SHA 58d54b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a90f3cf - Browse repository at this point
Copy the full SHA a90f3cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 05cff3a - Browse repository at this point
Copy the full SHA 05cff3aView commit details -
Cover isFieldSet returning true for proto2/proto3
Also adds coverage for equals() with non-empty proto2 messages, and
Configuration menu - View commit details
-
Copy full SHA for 89b580f - Browse repository at this point
Copy the full SHA 89b580fView commit details -
This concludes the removal started in 58f9f45.
Configuration menu - View commit details
-
Copy full SHA for 1603643 - Browse repository at this point
Copy the full SHA 1603643View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b4948d - Browse repository at this point
Copy the full SHA 3b4948dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7169edf - Browse repository at this point
Copy the full SHA 7169edfView commit details -
Avoid references to enums generated from google/protobuf/descriptor.p…
…roto In ffa70c8, temporary local copies of enumerations generated from descriptor.proto were added at several places to avoid import cycles. This updates the inject script with an improved mechanism to inject enumeration values where needed, so that copies do not have to be maintained manually.
Configuration menu - View commit details
-
Copy full SHA for 0bfcb91 - Browse repository at this point
Copy the full SHA 0bfcb91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17e781e - Browse repository at this point
Copy the full SHA 17e781eView commit details
Commits on Apr 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b721c26 - Browse repository at this point
Copy the full SHA b721c26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a26539 - Browse repository at this point
Copy the full SHA 6a26539View commit details -
Generate test proto for edition2023 and add tests
This adds the file edition2023.proto alongside proto2.proto and proto3.proto, and ports some tests from proto2 and proto3 to edition2023. Note that serialization is completely uncovered yet.
Configuration menu - View commit details
-
Copy full SHA for 2cbaa5f - Browse repository at this point
Copy the full SHA 2cbaa5fView commit details -
Add coverage for serialization with edition2023
This adds coverage for binary and JSON serialization via proto2 and proto3: Since proto2 or proto3 behavior can be configured in editions, we define equivalent messages, and use proto2/proto3 serialization as the source of truth to test serialization with editions. Note that this does not cover cases that are possible in editions, but not in proto2 or proto3.
Configuration menu - View commit details
-
Copy full SHA for d241d87 - Browse repository at this point
Copy the full SHA d241d87View commit details -
Handle editions outside the supported range
@bufbuild/protobuf exports minimumEdition and maximumEdition to advertise the supported range. @bufbuild/protoplugin receives options for user-provided minimum and maximum editions.
Configuration menu - View commit details
-
Copy full SHA for 176c89b - Browse repository at this point
Copy the full SHA 176c89bView commit details
Commits on Apr 15, 2024
-
Use delimited encoding for synthetic map messages when feature is set
Map fields are syntactic sugar for a repeated message field with field 1 for key and field 2 for value. The file feature message_encoding = DELIMITED should apply to this "synthetic" message, following the logic of other message fields.
Configuration menu - View commit details
-
Copy full SHA for 7993a4e - Browse repository at this point
Copy the full SHA 7993a4eView commit details -
Instead of an object with methods, we use separate functions, since the object was only used limit the number of top-level package exports.
Configuration menu - View commit details
-
Copy full SHA for de9a908 - Browse repository at this point
Copy the full SHA de9a908View commit details -
Configuration menu - View commit details
-
Copy full SHA for 559b94a - Browse repository at this point
Copy the full SHA 559b94aView commit details -
Use LENGTH_PREFIXED encoding for map entries even with DELIMITED
This reverts 7993a4e, changing behavior to always encode synthetic map entry messages using the LENGTH_PREFIXED encoding, even though it would be logical to honor a file option features.message_encoding = DELIMITED.
Configuration menu - View commit details
-
Copy full SHA for e332a18 - Browse repository at this point
Copy the full SHA e332a18View commit details
Commits on Apr 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2c632ae - Browse repository at this point
Copy the full SHA 2c632aeView commit details -
Add test coverage for generated TS and JS equivalence
Since generated code is the same for TS and JS except for enums, we can add meaningful coverage simply by comparing TS and JS exports against each other. To cover types, we assign types from TS to JS and vice versa.
Configuration menu - View commit details
-
Copy full SHA for bba0f45 - Browse repository at this point
Copy the full SHA bba0f45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c683a0 - Browse repository at this point
Copy the full SHA 1c683a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bc7ff4 - Browse repository at this point
Copy the full SHA 6bc7ff4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f6e848 - Browse repository at this point
Copy the full SHA 8f6e848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a84b6a - Browse repository at this point
Copy the full SHA 1a84b6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00db733 - Browse repository at this point
Copy the full SHA 00db733View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b498a2 - Browse repository at this point
Copy the full SHA 8b498a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 067edcf - Browse repository at this point
Copy the full SHA 067edcfView commit details
Commits on Apr 17, 2024
-
Remove usage of
codegenInfo
from protoc-gen-esAlso updates the plugin example to import `JsonValue` from v2.
Configuration menu - View commit details
-
Copy full SHA for 04b6034 - Browse repository at this point
Copy the full SHA 04b6034View commit details -
Configuration menu - View commit details
-
Copy full SHA for 343a1bf - Browse repository at this point
Copy the full SHA 343a1bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 747cd3e - Browse repository at this point
Copy the full SHA 747cd3eView commit details -
ScalarType has moved to the "reflect" subpath. This updates (hopefully) all imports in V2 to use this subpath.
Configuration menu - View commit details
-
Copy full SHA for 520c21e - Browse repository at this point
Copy the full SHA 520c21eView commit details -
Since we provide full descriptors, custom options can be accessed using extensions. We will never need `OptionsMap`.
Configuration menu - View commit details
-
Copy full SHA for 7fdc8f1 - Browse repository at this point
Copy the full SHA 7fdc8f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a565729 - Browse repository at this point
Copy the full SHA a565729View commit details -
Add tests for binary serialization (#782)
Add tests for binary serialization. Port the WKT binary tests that are in v1.
Configuration menu - View commit details
-
Copy full SHA for 0994276 - Browse repository at this point
Copy the full SHA 0994276View commit details -
Add
GenDescFile
as alias forDescFile
This reduces the number of import statements we generate.
Configuration menu - View commit details
-
Copy full SHA for 7feaede - Browse repository at this point
Copy the full SHA 7feaedeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0673d2 - Browse repository at this point
Copy the full SHA b0673d2View commit details -
Move interface
DescriptorSet
to a separate fileWe will not keep the interface, but we will keep the Desc* types.
Configuration menu - View commit details
-
Copy full SHA for 137b421 - Browse repository at this point
Copy the full SHA 137b421View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93f6f63 - Browse repository at this point
Copy the full SHA 93f6f63View commit details
Commits on Apr 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8700c6c - Browse repository at this point
Copy the full SHA 8700c6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccf4c98 - Browse repository at this point
Copy the full SHA ccf4c98View commit details -
Port json parse error message tests (#786)
Port json parse error message tests.
Configuration menu - View commit details
-
Copy full SHA for f2f3d5d - Browse repository at this point
Copy the full SHA f2f3d5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 907ebe7 - Browse repository at this point
Copy the full SHA 907ebe7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 012c79f - Browse repository at this point
Copy the full SHA 012c79fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 166fab0 - Browse repository at this point
Copy the full SHA 166fab0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84ae2e6 - Browse repository at this point
Copy the full SHA 84ae2e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10af9f9 - Browse repository at this point
Copy the full SHA 10af9f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02dd436 - Browse repository at this point
Copy the full SHA 02dd436View commit details
Commits on Apr 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1d88a01 - Browse repository at this point
Copy the full SHA 1d88a01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7775ee0 - Browse repository at this point
Copy the full SHA 7775ee0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cf3b0b - Browse repository at this point
Copy the full SHA 9cf3b0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for dfbe0de - Browse repository at this point
Copy the full SHA dfbe0deView commit details
Commits on Apr 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 91ac90f - Browse repository at this point
Copy the full SHA 91ac90fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad1541b - Browse repository at this point
Copy the full SHA ad1541bView commit details
Commits on Apr 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 42087dc - Browse repository at this point
Copy the full SHA 42087dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4bb5e1 - Browse repository at this point
Copy the full SHA f4bb5e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a8978b - Browse repository at this point
Copy the full SHA 9a8978bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c2bb658 - Browse repository at this point
Copy the full SHA c2bb658View commit details
Commits on Apr 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a599761 - Browse repository at this point
Copy the full SHA a599761View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1485e83 - Browse repository at this point
Copy the full SHA 1485e83View commit details
Commits on Apr 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9d2cbe1 - Browse repository at this point
Copy the full SHA 9d2cbe1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0ab73e - Browse repository at this point
Copy the full SHA e0ab73eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a39ec99 - Browse repository at this point
Copy the full SHA a39ec99View commit details
Commits on Apr 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fd49155 - Browse repository at this point
Copy the full SHA fd49155View commit details -
Configuration menu - View commit details
-
Copy full SHA for e20565b - Browse repository at this point
Copy the full SHA e20565bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9017497 - Browse repository at this point
Copy the full SHA 9017497View commit details
Commits on Apr 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6a9cce0 - Browse repository at this point
Copy the full SHA 6a9cce0View commit details
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 896338d - Browse repository at this point
Copy the full SHA 896338dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ae7c61 - Browse repository at this point
Copy the full SHA 0ae7c61View commit details
Commits on May 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for affbd17 - Browse repository at this point
Copy the full SHA affbd17View commit details
Commits on May 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b81a538 - Browse repository at this point
Copy the full SHA b81a538View commit details -
Configuration menu - View commit details
-
Copy full SHA for d80f40d - Browse repository at this point
Copy the full SHA d80f40dView commit details
Commits on May 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bd48dcd - Browse repository at this point
Copy the full SHA bd48dcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a77a4c - Browse repository at this point
Copy the full SHA 4a77a4cView commit details
Commits on May 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d5ad2e9 - Browse repository at this point
Copy the full SHA d5ad2e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9213d8c - Browse repository at this point
Copy the full SHA 9213d8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74d9c88 - Browse repository at this point
Copy the full SHA 74d9c88View commit details
Commits on May 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fa88bfd - Browse repository at this point
Copy the full SHA fa88bfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f0a454 - Browse repository at this point
Copy the full SHA 8f0a454View commit details
Commits on May 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b81a141 - Browse repository at this point
Copy the full SHA b81a141View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1cd584 - Browse repository at this point
Copy the full SHA d1cd584View commit details
Commits on May 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fe66d80 - Browse repository at this point
Copy the full SHA fe66d80View commit details
Commits on May 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0be4cb1 - Browse repository at this point
Copy the full SHA 0be4cb1View commit details
Commits on May 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5aa2c10 - Browse repository at this point
Copy the full SHA 5aa2c10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43b5dde - Browse repository at this point
Copy the full SHA 43b5ddeView commit details
Commits on May 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d20225e - Browse repository at this point
Copy the full SHA d20225eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 633eaa4 - Browse repository at this point
Copy the full SHA 633eaa4View commit details
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 415e526 - Browse repository at this point
Copy the full SHA 415e526View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7530152 - Browse repository at this point
Copy the full SHA 7530152View commit details
Commits on May 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c941066 - Browse repository at this point
Copy the full SHA c941066View commit details
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1bac9cf - Browse repository at this point
Copy the full SHA 1bac9cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 642f55a - Browse repository at this point
Copy the full SHA 642f55aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 484d9fd - Browse repository at this point
Copy the full SHA 484d9fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 16d4c18 - Browse repository at this point
Copy the full SHA 16d4c18View commit details
Commits on May 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2e29541 - Browse repository at this point
Copy the full SHA 2e29541View commit details
Commits on May 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ab40533 - Browse repository at this point
Copy the full SHA ab40533View commit details
Commits on Jun 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 01045de - Browse repository at this point
Copy the full SHA 01045deView commit details -
Configuration menu - View commit details
-
Copy full SHA for fda87cf - Browse repository at this point
Copy the full SHA fda87cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for fff0681 - Browse repository at this point
Copy the full SHA fff0681View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e4a5f0 - Browse repository at this point
Copy the full SHA 2e4a5f0View commit details
Commits on Jun 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 11c5db0 - Browse repository at this point
Copy the full SHA 11c5db0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38bf1e5 - Browse repository at this point
Copy the full SHA 38bf1e5View commit details
Commits on Jun 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9fc88d2 - Browse repository at this point
Copy the full SHA 9fc88d2View commit details
Commits on Jun 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 185b730 - Browse repository at this point
Copy the full SHA 185b730View commit details -
Configuration menu - View commit details
-
Copy full SHA for a81603e - Browse repository at this point
Copy the full SHA a81603eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d90100 - Browse repository at this point
Copy the full SHA 4d90100View commit details
Commits on Jun 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 57f8638 - Browse repository at this point
Copy the full SHA 57f8638View commit details
Commits on Jun 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 465aea3 - Browse repository at this point
Copy the full SHA 465aea3View commit details
Commits on Jun 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fe29cca - Browse repository at this point
Copy the full SHA fe29ccaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55953f2 - Browse repository at this point
Copy the full SHA 55953f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf191b1 - Browse repository at this point
Copy the full SHA cf191b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05acbc4 - Browse repository at this point
Copy the full SHA 05acbc4View commit details
Commits on Jun 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e8904fa - Browse repository at this point
Copy the full SHA e8904faView commit details
Commits on Jun 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for abf5198 - Browse repository at this point
Copy the full SHA abf5198View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c17e1b - Browse repository at this point
Copy the full SHA 1c17e1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 671b457 - Browse repository at this point
Copy the full SHA 671b457View commit details
Commits on Jun 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cf183a1 - Browse repository at this point
Copy the full SHA cf183a1View commit details
Commits on Jun 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 225def5 - Browse repository at this point
Copy the full SHA 225def5View commit details
Commits on Jun 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5e19fc4 - Browse repository at this point
Copy the full SHA 5e19fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a7393b - Browse repository at this point
Copy the full SHA 3a7393bView commit details
Commits on Jun 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 73fe151 - Browse repository at this point
Copy the full SHA 73fe151View commit details -
Configuration menu - View commit details
-
Copy full SHA for 793ff3b - Browse repository at this point
Copy the full SHA 793ff3bView commit details
Commits on Jun 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a4863aa - Browse repository at this point
Copy the full SHA a4863aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5e1e5c - Browse repository at this point
Copy the full SHA d5e1e5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb20e0 - Browse repository at this point
Copy the full SHA 3bb20e0View commit details
Commits on Jun 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 42386c5 - Browse repository at this point
Copy the full SHA 42386c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17c21da - Browse repository at this point
Copy the full SHA 17c21daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a42668 - Browse repository at this point
Copy the full SHA 7a42668View commit details
Commits on Jun 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for de7e3e1 - Browse repository at this point
Copy the full SHA de7e3e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b099836 - Browse repository at this point
Copy the full SHA b099836View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a8cedf - Browse repository at this point
Copy the full SHA 5a8cedfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b68542 - Browse repository at this point
Copy the full SHA 1b68542View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3429b6 - Browse repository at this point
Copy the full SHA d3429b6View commit details
Commits on Jul 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b2b196d - Browse repository at this point
Copy the full SHA b2b196dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 317d550 - Browse repository at this point
Copy the full SHA 317d550View commit details
Commits on Jul 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 65348a1 - Browse repository at this point
Copy the full SHA 65348a1View commit details
Commits on Jul 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2adf6f7 - Browse repository at this point
Copy the full SHA 2adf6f7View commit details
Commits on Jul 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 80ed7ff - Browse repository at this point
Copy the full SHA 80ed7ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5899427 - Browse repository at this point
Copy the full SHA 5899427View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51a0d79 - Browse repository at this point
Copy the full SHA 51a0d79View commit details
Commits on Jul 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dfaa1d3 - Browse repository at this point
Copy the full SHA dfaa1d3View commit details
Commits on Jul 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0c18677 - Browse repository at this point
Copy the full SHA 0c18677View commit details
Commits on Jul 18, 2024
-
Signed-off-by: Timo Stamm <[email protected]> Co-authored-by: Carol Gunby <[email protected]> Co-authored-by: Steve Ayers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 92c88a2 - Browse repository at this point
Copy the full SHA 92c88a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee20731 - Browse repository at this point
Copy the full SHA ee20731View commit details
Commits on Jul 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for be86a73 - Browse repository at this point
Copy the full SHA be86a73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93e1bbb - Browse repository at this point
Copy the full SHA 93e1bbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6b585c - Browse repository at this point
Copy the full SHA f6b585cView commit details -
Copyedit revised sections (#938)
Signed-off-by: Timo Stamm <[email protected]> Co-authored-by: Timo Stamm <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 78e688a - Browse repository at this point
Copy the full SHA 78e688aView commit details
Commits on Jul 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 45e1363 - Browse repository at this point
Copy the full SHA 45e1363View commit details
Commits on Jul 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d4e6715 - Browse repository at this point
Copy the full SHA d4e6715View commit details
Commits on Jul 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0c78d6f - Browse repository at this point
Copy the full SHA 0c78d6fView commit details
Commits on Jul 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7ab0abe - Browse repository at this point
Copy the full SHA 7ab0abeView commit details
Commits on Jul 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1dea86f - Browse repository at this point
Copy the full SHA 1dea86fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c5906c - Browse repository at this point
Copy the full SHA 4c5906cView commit details
Commits on Jul 30, 2024
-
Add basic migration guide from v1 to v2 (#946)
Co-authored-by: Carol Gunby <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 72395b9 - Browse repository at this point
Copy the full SHA 72395b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5afff6b - Browse repository at this point
Copy the full SHA 5afff6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5184197 - Browse repository at this point
Copy the full SHA 5184197View commit details