Skip to content

Conversation

@devoncarew
Copy link
Contributor

  • shorten the deprecation messages for clone() and copyWith(); reference a tracking issue for the deprecations

Done as two commits for easier review.

@devoncarew devoncarew requested a review from osa1 May 16, 2025 17:23
@github-actions
Copy link

Package publishing

Package Version Status Publish tag (post-merge)
package:protobuf 4.1.0 ready to publish protobuf-v4.1.0
package:protoc_plugin 22.2.0 ready to publish protoc_plugin-v22.2.0

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

@osa1
Copy link
Member

osa1 commented May 19, 2025

What's the goal with this? The issue and old depreciation message have the same information, but now it's more difficult to see as you have to click on a link and load a web page.

@devoncarew
Copy link
Contributor Author

The generated code is currently pretty hard to read (and the code serves as API - both for regular protos, and for generated grpc client libraries - so readability matters). I think switching from three lines for the deprecation annotation + description to one line helps here.

@devoncarew devoncarew merged commit 5ed4611 into google:master May 19, 2025
16 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request May 19, 2025
Revisions updated by `dart tools/rev_sdk_deps.dart`.

protobuf (https://github.com/dart-lang/protobuf/compare/b7753f6..deda288):
  deda288  2025-05-19  Devon Carew  address a merge issue with the protoc_plugin changelog (google/protobuf.dart#1002)
  5ed4611  2025-05-19  Devon Carew  shorten the deprecation messages for clone() and copyWith() (google/protobuf.dart#999)
  4960b92  2025-05-19  Ömer Sinan Ağacan  Switch to pub workspace (google/protobuf.dart#1001)

test (https://github.com/dart-lang/test/compare/b9c59ea..5ffcb36):
  5ffcb36f  2025-05-19  Danny Tuppeny  Fix an issue with failed assertions using setUpAll/tearDownAll (dart-lang/test#2499)

Change-Id: Idc43e2f2fd9dc38b80917b25b45bb954076dc1c9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429480
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Devon Carew <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants