This repository was archived by the owner on Nov 13, 2023. It is now read-only.
Releases: rescript-association/genType
Releases · rescript-association/genType
v2.20.0
- Add support for default export like in bucklescript: call the value "default".
- Hooks: generate names analogous to those from ppx for the React developer tools.
- Apply bucklescript's marshaling rules for Js object field names:
Remove trailing__if present.
Otherwise remove leading_when followed by an uppercase letter, or keyword.
v2.19.0
v2.18.0
- Fix: enable conversion for types defined inside a module in another file.
- Fix conversion for types involving multiple type definitions in another file.
- Add support for module aliases such as module X = A.B.
Extra type definitions are added so that all the aliases of @genType-annotated
type declarations are also exported.
In case of local aliases to types from other files, these are always inlined.
v2.17.0
- Add support for bucklescript version 5 (AST for bs.module has changed).
- Support file names starting with lower case letter.
If using bucklescript >= 5.0.0:
- It is not necessary anymore to set up
BS_CMT_POST_PROCESS_CMD. - The line
[@bs.module "./ThisFileName.gen"]in value imports can be omitted, and will be added internally by bucklescript.
v2.16.0
- Avoid underscore when emitting conversion function for wrapJsForReason.
- Support inner modules with shadowed values (e.g. multiple definition of the same value).
- Fix: support transitive reachability of type definitions of arbitrary length.
Before this, only paths of level 2 were available to generate conversion functions.
E.g. this was not supported: A uses a type defined in B which uses a type defined in C.