This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Increased consistency, support for vec/dict/keyset, support for HHVM 3.23
- adds support for the upcoming HHVM 3.23 release
- in general, methods that previously took collections will now take
TraversableorKeyedTraversableinstead, allowing them to be used with either Hack collections or Hack arrays - methods that returned collections now return Hack arrays
- added support for running
hackfmt-formatted output: addFacebook\HackCodegen\HackfmtFormatteras the formatter in your configuration object <?hh // strictis now the default for generated files- added CLI script to verify signatures - this should be available as
vendor/bin/hh-codegen-verify-signaturesin projects that depend onhack-codegen - renamed
addVar()(add a member variable) toaddProperty(), and addedaddProperties() - replaced
setGenericsDecl()withaddGenerics()andaddGeneric(), which take a string describing a generic HackCodegenConfigno longer takes parameters - instead, call->withRootDir($root)on the object to specify the root directory- consistency improvements:
addCase()now takes a value renderer as well as a valueendSwitch_()was renamed toendSwitch()- replaced
setserAttribute()withaddUserAttribute(), which takes a value renderer as well as a value, andaddEmptyUserAttribute() - renamed
setParameters()toaddParameters() - split
addComment()toaddComment()andaddCommentf() - split
addIf()toaddIf()andaddIff() - split
addLine()toaddLine()andaddLinef()