Releases: coder/guts
Releases · coder/guts
v1.7.0
What's Changed
- fix(config): pluralize names ending in consonant+y as 'ies' by @evgeniy-scherbina in #81
New Contributors
- @evgeniy-scherbina made their first contribution in #81
Full Changelog: v1.6.4...v1.7.0
v1.6.4
What's Changed
- feat: preserve comments for enum members in TypeScript output by @stavros-k in #74
- feat: add support for comments in enum definitions and TypeScript output by @stavros-k in #75
- fix: normalize comment text for synthetic comments to ensure cross-platform compatibility by @stavros-k in #79
Full Changelog: v1.6.3...v1.6.4
v1.6.3
What's Changed
- fix: use custom type override in all usage by @Emyrk in #71
- fix comments in mutations by @stavros-k in #73
Full Changelog: v1.6.2...v1.6.3
v1.6.2
v1.6.1
v1.6.0
!! Breaking Change !!
type <Name> any previously did not generate an output. It now does.
This is because any == interface{}, and this type generator intentionally does not generate interfaces. In Golang however, interface{} is equivalent to the any type in typescript. So this change includes empty interfaces in the output.
If your output has additional types that you do not expect, please file an issue. Or exclude the types programatically.
What's Changed
- feat: ignore non-exported identifiers by @toqueteos in #38
- feat: add GoParser.ExcludeCustom method by @toqueteos in #39
- chore: prevent
nullin heritageextendsexpressions by @Emyrk in #41 - feat: introduce MutationFunc type by @toqueteos in #43
- feat: avoid generating repeated type constraints by @toqueteos in #42
- feat: add InterfaceToType mutation to convert interfaces to type aliases by @stavros-k in #52
- !feat: handle base type any case by @Emyrk in #56
- fix: do not generate a type for interfaces by @Emyrk in #58
- chore: support attaching arbitrary comments to types by @Emyrk in #57
- feat: preserve comments from golang -> typescript by @Emyrk in #59
New Contributors
- @toqueteos made their first contribution in #38
- @stavros-k made their first contribution in #52
Full Changelog: v1.5.1...v1.6.0
v1.5.1
v1.5.0
v1.4.0
v1.3.0
!! Breaking Change !!
Enum output changed from:
export type EnumString = "bar" | "baz" | "foo" | "qux";to
export enum EnumString {
EnumBar = "bar",
EnumBaz = "baz",
EnumFoo = "foo",
EnumQux = "qux"
}To get the previous behavior use the mutation config.EnumAsTypes.
// use alias types for enums
ts.ApplyMutations(
config.EnumAsTypes,
)Full Changelog: v1.2.0...v1.3.0