Skip to content

Releases: ItemConsulting/xp-codegen-plugin

2.6.2

26 Sep 08:43
3d5eb9e
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.6.1...2.6.2

2.6.1

05 Aug 11:35
daf68df
Compare
Choose a tag to compare

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

05 Aug 09:11
20dce58
Compare
Choose a tag to compare

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

02 Aug 08:00
55137c5
Compare
Choose a tag to compare

What's Changed

  • New Gradle-task generateI18nPhrases that 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

29 Jul 12:49
e55a1d3
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.4.0...2.4.1

2.4.0

29 Jul 11:50
5d81e84
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.3.0...2.4.0

Support ComponentMaps in XP 7.13

29 Jun 06:46
a307eb1
Compare
Choose a tag to compare
  • 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, XpLayoutMap and XpPageMap. The @enonic-types libraries after 7.13 will use these interfaces to automatically generate Component-trees that the developer can traverse when doing getComponent() or getComponent()?.page?.... The developer can now do if-statements against component.type and component.descriptor, and will get the correct shape in component.config.
  • This library doesn't generate export interface Article { ... } anymore, but instead generates export type Article = { ... }. The reason is that interface Article would not extend Record<string, unknown>, since interfaces can be expanded by 3rd party code (read project code), TypeScript could not guarantee that the key would be a string. By making this a type instead we lock down the shape, and can use Record<string, unknown> to constrain the shape.

Full Changelog: 2.2.2...2.3.0

Fix nested mixins inside sets

09 Mar 13:36
21d88f9
Compare
Choose a tag to compare

Fixes issue where nested mixins inside sets were not taken into account in some cases.

Full Changelog: 2.2.0...2.2.2

Sort imports in contentTypeIndex and xDataIndex files

08 Dec 08:23
0cc6221
Compare
Choose a tag to compare

There was an issue where this was not deterministic, and Linux and Mac outputted different files.

Full Changelog: 2.1.0...2.2.0

Rename `XP.XData` to `XpXData`

07 Nov 13:57
0407530
Compare
Choose a tag to compare

This makes this library conform to the official types released
from Enonic.

Full Changelog: 2.0.1...2.1.0