Skip to content
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

Release v1.30.0 #569

Merged
merged 2 commits into from
Apr 6, 2023
Merged

Release v1.30.0 #569

merged 2 commits into from
Apr 6, 2023

Conversation

r-hang
Copy link
Contributor

@r-hang r-hang commented Apr 6, 2023

This commit serves as the v1.30.0 release.

The commit merged in (#567) was never tagged and released as v1.30.0 as
a bug was found in that commit before we officially cut a release for it. This commit contains a fix for that bug.

This release contains the following changes:

  • AddTemplate template option.
  • thriftbreak: support for changed types, new files, and optional JSON output.
  • String() performance improvements for string type definitions.

@codecov
Copy link

codecov bot commented Apr 6, 2023

Codecov Report

Merging #569 (6f40bfe) into master (51abcb3) will decrease coverage by 0.10%.
The diff coverage is 12.82%.

@@            Coverage Diff             @@
##           master     #569      +/-   ##
==========================================
- Coverage   68.09%   68.00%   -0.10%     
==========================================
  Files         139      140       +1     
  Lines       23838    23872      +34     
==========================================
  Hits        16233    16233              
- Misses       4544     4578      +34     
  Partials     3061     3061              
Impacted Files Coverage Δ
gen/internal/tests/collision/collision.go 65.63% <ø> (ø)
gen/internal/tests/nozap/nozap.go 52.85% <ø> (ø)
gen/internal/tests/set_to_slice/set_to_slice.go 56.99% <ø> (ø)
gen/internal/tests/stringdef/stringdef.go 0.00% <0.00%> (ø)
gen/internal/tests/structs/structs.go 63.74% <ø> (ø)
gen/internal/tests/typedefs/typedefs.go 67.07% <4.76%> (-1.05%) ⬇️
gen/internal/tests/services/services.go 61.30% <100.00%> (ø)
gen/internal/tests/uuid_conflict/uuid_conflict.go 63.44% <100.00%> (ø)
gen/typedef.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

r-hang added 2 commits April 6, 2023 11:22
PR (#554) introduced an optimization for the String() method of typedefs.

There are two issues with this change:
- Since the "fmt" import was global, if fmt.Sprint was dropped from the typedef code generation the import would be unused.
- Using compiled.RootTypeSpec for isStringType results in situations where a non-string type is return from a String() function resulting in uncompilable code. func(v StringReDef) String() string { x := (stringdef.StringDef)(v) return x } This happens when a type is a typedef of another string typedef.

I've added generated code cases to demonstrate and verify the corrected behavior.
This commit serves as the v1.30.0 release.

The commit merged in (#567) was never tagged and released as v1.30.0 as
a bug was found in that commit before we tagged a release for it. This commit
contains the fix for the aforementioned bug.

This release contains the following changes:
- AddTemplate template option.
- thriftbreak: support for changed types, new files, and optional JSON output.
- String() performance improvements for string type definitions.
@r-hang r-hang force-pushed the rhang/release-take-2 branch from 9367618 to 6f40bfe Compare April 6, 2023 18:25
@r-hang r-hang merged commit 36f2477 into master Apr 6, 2023
@r-hang r-hang deleted the rhang/release-take-2 branch April 6, 2023 18:33
r-hang added a commit that referenced this pull request Apr 6, 2023
This commit serves as the v1.30.0 release.

The commit merged in (#567) was never tagged and released as v1.30.0 as
a bug was found in that commit before we tagged a release for it. This commit
contains the fix for the aforementioned bug.

This release contains the following changes:
- AddTemplate template option.
- thriftbreak: support for changed types, new files, and optional JSON output.
- String() performance improvements for string type definitions.
r-hang added a commit that referenced this pull request Apr 6, 2023
This commit serves as the v1.30.0 release.

The commit merged in (#567) was never tagged and released as v1.30.0 as
a bug was found in that commit before we tagged a release for it. This commit
contains the fix for the aforementioned bug.

This release contains the following changes:
- AddTemplate template option.
- thriftbreak: support for changed types, new files, and optional JSON output.
- String() performance improvements for string type definitions.
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