Skip to content

shorten the deprecation messages for clone() and copyWith() #999

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

Merged
merged 3 commits into from
May 19, 2025

Conversation

devoncarew
Copy link
Collaborator

  • 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
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
Collaborator 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 <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
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