Skip to content

Releases: stackpress/idea

0.3.10

05 Dec 10:13

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.6...0.3.10

0.3.7

04 Dec 05:41

Choose a tag to compare

Full Changelog: 0.2.6...0.3.7

0.3.6

03 Dec 06:42

Choose a tag to compare

Beta 3

Remapping common types

Full Changelog: 0.2.6...0.3.6

0.2.6

25 Nov 04:49

Choose a tag to compare

Beta 2

Releasing candidate where all dependencies are now updated, dependabots resolved and overall working.

What's Changed

Full Changelog: 0.1.26...0.2.6

0.1.26

19 Nov 03:04

Choose a tag to compare

Full Changelog: 0.1.25...0.1.26

0.1.25 - Inheritance and Final

17 Nov 04:35

Choose a tag to compare

Inheritance

Before, the main idea completely overwritten types and models defined in other ideas imported by the main idea. Consider the following ideas.

//other.idea

model Profile {
  id    String   @label("ID") 
  name  String   @label("Name") 
  roles String[] @label("Roles") 
}
//main.idea

use "./other.idea"

model Profile {
  name  String   @label("Full Name") 
  image String?  @label("Image") 
  type  String?  @label("Type") 
  tags  String[] @label("Tags") 
}

With the new updates the following logic will occur.

  • id from other.idea will be added to Profile in main.idea
  • name from other.idea is overwritten by name in Profile in main.idea
  • This applies to type and model, while enum and prop are final by default.

Final

Adding ! after the model name won't use imported models with the same name.

//main.idea

use "./other.idea"

model Profile! {
  name  String   @label("Full Name") 
  image String?  @label("Image") 
  type  String?  @label("Type") 
  tags  String[] @label("Tags") 
}

In the example above, if other.idea has a model Profile, it will be completely ignored.

Full Changelog: 0.1.22...0.1.25

0.1.22

04 Nov 14:00

Choose a tag to compare

Full Changelog: 0.1.21...0.1.22

0.1.21

04 Nov 08:46

Choose a tag to compare

Full Changelog: 0.1.19...0.1.21

0.1.19

04 Nov 06:08

Choose a tag to compare

Full Changelog: 0.1.18...0.1.19

0.1.18

03 Nov 17:33

Choose a tag to compare

Full Changelog: 0.1.17...0.1.18