gots.New(...) is now gots.Init(...) but the old method still exists for now (for backwards compatibility)
You can now add types individually instead of in a single giant ts.Register(...) call
Related to the above, Register only handles actually registering the types now, and there are new methods to generate and/or save the types to the file; Generate, Commit and Execute (Execute generates and commits)
You can now choose whether to expand nested types or use their name in the TS type
You can now fork a new instance from an existing one and choose to replace all the config or just part of it
Configuration works a bit differently now to support forking, there are new helper methods like gots.Bool() and gots.String() for the config fields
Better project organisation (should be saner to modify and contribute to now)
It'll now try to generate more accurate types before defaulting to any or unknown
More complex types are supported, even maps, slices of pointers, pointers (as type | null) etc
Added JSON tag support (I accidentally ripped it out in the last release)
Tests now exist for a lot of core components
Better indenting in generated code
Docs will be updated over time to show and explain the newer features
gots.New(...)
is nowgots.Init(...)
but the old method still exists for now (for backwards compatibility)ts.Register(...)
callRegister
only handles actually registering the types now, and there are new methods to generate and/or save the types to the file;Generate
,Commit
andExecute
(Execute
generates and commits)gots.Bool()
andgots.String()
for the config fieldsany
orunknown