-
Notifications
You must be signed in to change notification settings - Fork 349
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
feat: Make sure all types support prefix/suffix #1148
Conversation
I'm a little scared of how big this change is. And I was trying to save some battery power so didn't run complete test suite on my laptop. |
a41e1d5
to
29652e9
Compare
seems to be happy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for flushing out the coverage!
@@ -344,3 +344,7 @@ async function readPackageJson(): Promise<any> { | |||
return await import("../package.json" as string); | |||
} | |||
} | |||
|
|||
export function wrapTypeName(options: Options, name: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great clean up!
@@ -11,7 +11,7 @@ export function generateEncoder(ctx: Context, typeName: string): Code { | |||
} | |||
|
|||
if (name == "Timestamp") { | |||
const TimestampValue = impProto(ctx.options, "google/protobuf/timestamp", name); | |||
const TimestampValue = impProto(ctx.options, "google/protobuf/timestamp", wrapTypeName(ctx.options, name)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sure, makes sense we need to wrap all of these imports 👍
# [2.6.0](v2.5.1...v2.6.0) (2024-12-09) ### Features * Make sure all types support prefix/suffix ([#1148](#1148)) ([ddf2122](ddf2122))
🎉 This issue has been resolved in version 2.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.