All notable changes to typescript-transformer
will be documented in this file
- Don't generate if an enum has no cases yet by @jameshulse in #87
- feat: support
nullToOptional
config by @innocenzi in #88
Full Changelog: https://github.com/spatie/typescript-transformer/compare/2.3.1...2.4.0
- feat(enum-collector): improve extensibility of
EnumTransformer
by @innocenzi in #78
Full Changelog: https://github.com/spatie/typescript-transformer/compare/2.3.0...2.3.1
- Fix annotations doc by @cosmastech in #73
- Fix backslashes conversion to TypeScript by @Bloemendaal in #72
- Add
DtoTransformer@transformPropertyName()
by @cosmastech in #74 - Support PHP Parser 5
- Removal of Psalm
- Addition of PHPStan
Full Changelog: https://github.com/spatie/typescript-transformer/compare/2.2.2...2.3.0
- Allow Symfony 7 by @jmsche in #67
- @jmsche made their first contribution in #67
Full Changelog: https://github.com/spatie/typescript-transformer/compare/2.2.1...2.2.2
- Add support for pseudo types
- Add support for hidden properties (#54)
- add support for record types (#51)
- Add EnumCollector (#42)
- Ensure transformed types are unique (#44)
- add support for optional attributes (#30)
- refactor tests to Pest (#39)
- fix: Support Collection with array-key key type (#38)
- Allow non fully qualified names within annotations
- allow transformation of interfaces (#32)
- add eslint formatter(#28)
- let prettier formatter use
npx
(#29)
- Allow whitespace in type definitions (#27 )
- fix the transformation of PHP native enums
- Make compatible with Symfony 6.0 Process component by @firstred in #17
- @firstred made their first contribution in #17
Full Changelog: https://github.com/spatie/typescript-transformer/compare/2.1.4...2.1.5
- allow interfaces in default type replacements
- add support for transforming to native TypeScript enums
- fix deprecations
- add support for PHP 8.1 (#15)
- Remove classtools dependency
- Add support for PHP 8.1 enums (#12)
- Add
declare
keyword by default to generated output (#13)
- Fix
ProcessTypes
to work with Collection types
- Fix default collector with missing symbols in attributes
- Allow spatie/temporary-directory v2 on dev
- The package is now PHP 8 only
- Added TypeReflectors to reflect method return types, method parameters & class properties within your transformers
- Added support for attributes
- Added support for manually adding TypeScript to a class or property
- Added formatters like Prettier which can format TypeScript code
- Added support for inlining types directly
- Updated the DtoTransformer to be a lot more flexible for your own projects
- Added support for PHP 8 union types
- Add support for
Writers
(#7)
- Add PHP8 support
- Fix some capitalization in namespace names
- Added
SpatieEnumTransformer
from thelaravel-typescript-transformer
package
- initial release