Skip to content

Commit

Permalink
modgen 1.40.0 / vscode 1.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JabX committed Nov 28, 2023
1 parent 318770c commit 96f6b5d
Show file tree
Hide file tree
Showing 18 changed files with 52 additions and 16 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# TopModel.Generator (`modgen`)

## 1.40.0

- [#328](https://github.com/klee-contrib/topmodel/pull/328) - Propriétés comme paramètres de mapper `from`

**breaking change**
Il n'est plus possible de spécifier `this` dans un mapping explicite de classe dans un mapper `from`, il faut utiliser une composition à la place.

Par exemple :

```yaml
mappers:
from:
- params:
- class: MyDto
- class: MySubDto
mappings:
Sub: this
```
devient
```yaml
mappers:
from:
- params:
- class: MyDto
- property:
composition: MySubDto
name: Sub
comment: Instance de 'MySubDto'
```
Cela ne fonctionne qu'en génération C#, le générateur JPA ignore les mappings de propriétés.
## 1.39.9
(Corrige le numéro de version qui incluait le hash du dernier commit suite à la montée de version du SDK .NET)
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Core/TopModel.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<PropertyGroup>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<Version>1.39.9</Version>
<Version>1.40.0</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Librairie de modélisation TopModel.</Description>
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Generator.Core/TopModel.Generator.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<PropertyGroup>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<Version>1.39.9</Version>
<Version>1.40.0</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Librarie de base pour écrire un générateur TopModel.</Description>
Expand Down
1 change: 1 addition & 0 deletions TopModel.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ void HandleFile(FileInfo file)

var generators = baseGenerators
.Concat(config.CustomGenerators.SelectMany(cg => new DirectoryInfo(Path.Combine(Path.GetFullPath(cg, new FileInfo(fullName).DirectoryName!), "bin")).GetFiles("TopModel.Generator.*.dll", SearchOption.AllDirectories)))
.Where(a => a.FullName.Contains($"net{Environment.Version.Major}.{Environment.Version.Minor}"))
.DistinctBy(a => a.Name)
.Select(f => Assembly.LoadFrom(f.FullName))
.SelectMany(a => a.GetExportedTypes())
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Generator/TopModel.Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackAsTool>true</PackAsTool>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<ToolCommandName>modgen</ToolCommandName>
<Version>1.39.9</Version>
<Version>1.40.0</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Générateur de modèle TopModel.</Description>
Expand Down
1 change: 1 addition & 0 deletions TopModel.ModelGenerator/TmdClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class TmdClass
#nullable enable

public string? Extends { get; set; }

public List<Dictionary<string, string?>> Values { get; set; } = new();

public TmdFile? File { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Utils/TopModel.Utils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<PropertyGroup>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<Version>1.39.9</Version>
<Version>1.40.0</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Utilitaires TopModel.</Description>
Expand Down
4 changes: 2 additions & 2 deletions TopModel.VSCode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion TopModel.VSCode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"directory": "TopModel.VSCode",
"type": "git"
},
"version": "1.39.1",
"version": "1.40.0",
"engines": {
"vscode": "^1.84.1"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo](./media/IconDark.svg)

# TopModel <small>1.39.8</small>
# TopModel <small>1.40.0</small>

> Modélisez en toute simplicité.
Expand Down
2 changes: 1 addition & 1 deletion samples/model/angular.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.39.9
version: 1.40.0
generatedFiles:
- ../generators/angular/src/appgenerated/api/securite/profil/profil.ts
- ../generators/angular/src/appgenerated/api/securite/utilisateur/utilisateur.ts
Expand Down
2 changes: 1 addition & 1 deletion samples/model/csharp.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.39.9
version: 1.40.0
generatedFiles:
- ../generators/csharp/src/Clients/CSharp.Clients.Db/generated/CSharpDbContext.comments.cs
- ../generators/csharp/src/Clients/CSharp.Clients.Db/generated/CSharpDbContext.cs
Expand Down
2 changes: 1 addition & 1 deletion samples/model/focus.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.39.9
version: 1.40.0
generatedFiles:
- ../generators/focus/src/locale/common.ts
- ../generators/focus/src/locale/securite.ts
Expand Down
2 changes: 1 addition & 1 deletion samples/model/jpa.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.39.9
version: 1.40.0
generatedFiles:
- ../generators/jpa/src/main/javagen/topmodel/jpa/sample/demo/api/client/securite/profil/AbstractProfilClient.java
- ../generators/jpa/src/main/javagen/topmodel/jpa/sample/demo/api/client/securite/utilisateur/AbstractUtilisateurClient.java
Expand Down
2 changes: 1 addition & 1 deletion samples/model/pg.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.39.9
version: 1.40.0
generatedFiles:
- ../generators/pg/src/01_tables.sql
- ../generators/pg/src/02_fk_indexes.sql
Expand Down
2 changes: 1 addition & 1 deletion samples/model/php.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.39.9
version: 1.40.0
generatedFiles:
- ../generators/php/src/Entity/Securite/Profil/Droit.php
- ../generators/php/src/Entity/Securite/Profil/Profil.php
Expand Down
2 changes: 1 addition & 1 deletion samples/model/ssdt.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.39.9
version: 1.40.0
generatedFiles:
- ../generators/ssdt/src/init/DROIT.insert.sql
- ../generators/ssdt/src/init/main.sql
Expand Down
2 changes: 1 addition & 1 deletion samples/model/translation.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.39.9
version: 1.40.0
generatedFiles:
- ../generators/translation/i18n/de_DE/out/common_de_DE.properties
- ../generators/translation/i18n/de_DE/out/securite_de_DE.properties
Expand Down

0 comments on commit 96f6b5d

Please sign in to comment.