Releases: ItemConsulting/xp-codegen-plugin
Releases · ItemConsulting/xp-codegen-plugin
2.7.0
Update dependencies
Full Changelog: 2.6.3...2.7.0
2.6.3
- Don't create a phrases.tmp.properties file if there are no untranslated properties (#63)
- Log out how many phrases was written to phrases.tmp.properties (#74)
- Trim whitespace in values in phrases.tmp.properties (#78)
Full Changelog: 2.6.2...2.6.3
2.6.2
What's Changed
- Fix wrong path logged when generating from jar-file by @tajakobsen in #72
- Fix mixin index.d.ts on Windows by @tajakobsen in #73
Full Changelog: 2.6.1...2.6.2
2.6.1
What's Changed
- Prepend underscore when type name starts with digit by @tajakobsen in #69
Full Changelog: 2.6.0...2.6.1
2.6.0
What's Changed
- Ensure that file systems files wins over those in jars by @tajakobsen in #65
- Make output conform to prettier defaults by @tajakobsen in #67
Full Changelog: 2.5.0...2.6.0
2.5.0
What's Changed
- New Gradle-task
generateI18nPhrasesthat reads all XML-files, and creates a new file (phrases.tmp.properties) with all phrases missing translations in phrases.properties #49
Full Changelog: 2.4.1...2.5.0
2.4.1
What's Changed
- Don't fail when no include dependencies by @tajakobsen in #61
- Don't fail task when missing
appNamein gradle by @tajakobsen in #62
Full Changelog: 2.4.0...2.4.1
2.4.0
What's Changed
- Generate typescript from jars in tmp folder by @tommyjl in #51
- Prevent duplicates in unions by @tajakobsen in #54
- Prevent site/styles.xml overwriting index.d.ts by @tajakobsen in #55
- Add index file for mixins by @tajakobsen in #57
Full Changelog: 2.3.0...2.4.0
Support ComponentMaps in XP 7.13
- Some new files will now be generated:
- /site/layout/index.d.ts
- /site/pages/index.d.ts
- /site/parts/index.d.ts
- These files re-exports the types. So you can now write
import type { ArticleList, EmployeeList } from "/site/parts"; - The new file also declares some global interfaces:
XpPartMap,XpLayoutMapandXpPageMap. The@enonic-typeslibraries after 7.13 will use these interfaces to automatically generate Component-trees that the developer can traverse when doinggetComponent()orgetComponent()?.page?.... The developer can now do if-statements againstcomponent.typeandcomponent.descriptor, and will get the correct shape incomponent.config. - This library doesn't generate
export interface Article { ... }anymore, but instead generatesexport type Article = { ... }. The reason is thatinterface Articlewould not extendRecord<string, unknown>, since interfaces can be expanded by 3rd party code (read project code), TypeScript could not guarantee that the key would be astring. By making this atypeinstead we lock down the shape, and can useRecord<string, unknown>to constrain the shape.
Full Changelog: 2.2.2...2.3.0
Fix nested mixins inside sets
Fixes issue where nested mixins inside sets were not taken into account in some cases.
Full Changelog: 2.2.0...2.2.2