Closed miniBill closed 10 months ago
Thank you both! Just published 4.4.1 on elm package. Thank you for both the work and the verification, that's a huge load of my brain 🙏
@mdgriffith Thanks for publishing a new version! Minor issue with the new release: elm-codegen --version
version 0.5.1
still reports itself as 0.5.0
since the CLI's version number is hardcoded in cli/bin.ts. This threw me for a loop initially after I updated the package using npm
and checked to make sure I had the latest version, and still saw 0.5.0
😅
@peteygao lol, oh no, lemme take a look
Just published 0.5.2
with the only change being that --version
reads as 0.5.2
😹
I can confirm that this PR fixes an issue that I ran into using elm-generic-dict.
Let's say I have a type in the file
Bridge.elm
:Meant to be used as a tagged value, so I create
Generated.elm
as such:Executing
elm-codegen run
throws this error/warning in the terminal:And the resulting file is this mangled thing (which I can manually fix by replacing the types where the error messages are printed):
The manually fixed file looks like this, and it works fine:
This PR fixes it so that there's no mangled output in the resulting generated file, and that it properly resolves it as the base type
String
instead ofBridge.Email
which is incorrect.