> For the complete documentation index, see [llms.txt](https://news.telosys.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://news.telosys.org/version-4.0.0.md).

# Version 4.0.0 (2022-April)

**Version 4.0.0** (2022, April) is a **major release** with many important changes.

The DSL model has been improved (with a new parser) and is now the unique model for Telosys.

For now version 4.0.0 is only available with **Telosys-CLI**

### Models

Since version 4.0.0 there is **only one type of model**: the **DSL model**.&#x20;

The DSL model has been enhanced to support all functionality previously available only in "db-model", thus the "db-model" is no longer useful.&#x20;

**Annotations** and **tags** are now usable at **entity** level.

It is possible to **create a new DSL model from a database schema** (as for the previous "db-model")&#x20;

The DSL model has a new structure: \
each model is completely contained in a directory.\
It is more convenient to exchange and store models.&#x20;

See: <https://doc.telosys.org/dsl-model>

Many new annotations have been added to enrich the DSL model.&#x20;

The DSL model offers now 55 annotations.

See: <https://doc.telosys.org/dsl-model/annotations>

### Templates

New objects and functions have been added in the generator context to make it easier to write templates.&#x20;

For example, a combination of new annotations and new functions simplifies SQL code generation.

Among others, here are some new objects usable in the templates: \
$sql, $reference, $factory

### Databases

The databases are now defined in a ".yaml" file : "**databases.yaml**"

A "yaml" file is more convenient for editing, the yaml format being supported by most editors.
