# PosInformatique.Foundations: what has changed since v1.0.0

It has been a very long time since I wrote an article about [PosInformatique.Foundations](https://github.com/PosInformatique/PosInformatique.Foundations). Since the release of v1.0.0, the library has evolved a lot, and it was really time to write about it.

As a reminder, [PosInformatique.Foundations](https://github.com/PosInformatique/PosInformatique.Foundations) is a collection of small, focused .NET libraries that provide simple, reusable building blocks. Each NuGet package has a single responsibility, to avoid shipping a monolithic framework.

Here are the main improvements since v1.0.0 (the latest version is v1.7.0).

## New packages

Several new packages have been added:

- [EntityFramework.Migrations](https://www.nuget.org/packages/PosInformatique.Foundations.EntityFramework.Migrations): extension methods for the EF Core `MigrationBuilder` to rename primary keys and foreign keys with `RenamePrimaryKey()` and `RenameForeignKey()`. EF Core does not support this natively.
- [Linq.Expressions](https://www.nuget.org/packages/PosInformatique.Foundations.Linq.Expressions): the `OrExpressionBuilder<T>` to combine predicates with a short-circuiting logical OR.
- [Threading](https://www.nuget.org/packages/PosInformatique.Foundations.Threading): an asynchronous debouncer (very useful in Blazor applications) and `SemaphoreSlim` extensions (Wait/Release scope).
- [Bcl](https://www.nuget.org/packages/PosInformatique.Foundations.Bcl) and [Collections](https://www.nuget.org/packages/PosInformatique.Foundations.Collections): extensions for common .NET types, and for collections and sequences.

## A more complete and robust Emailing feature

Improvements in [Emailing](https://www.nuget.org/packages/PosInformatique.Foundations.Emailing):

- A new [Emailing.Mailjet](https://www.nuget.org/packages/PosInformatique.Foundations.Emailing.Mailjet) provider, in addition to the existing ones.
- Support for the **sender display name**.
- A standardized `EmailProviderException` thrown when the email provider fails to send an email.
- An `ArgumentException` when the email has no recipients, to detect the error earlier.

## Templating and media types

- `ConstantTextTemplate<TModel>` in [Text.Templating](https://www.nuget.org/packages/PosInformatique.Foundations.Text.Templating) to generate a fixed text with the same abstraction as the other templates.
- New MIME types in [MediaTypes](https://www.nuget.org/packages/PosInformatique.Foundations.MediaTypes): SVG, then `text/plain`, `text/html`, `text/csv` and `text/rtf`.

## Entity Framework

- The `IsFirstName()` and `IsLastName()` extensions of [People.EntityFramework](https://www.nuget.org/packages/PosInformatique.Foundations.People.EntityFramework) now support nullable properties.
- `AssumeUtc()` it sets `DateTime.Kind` to `Utc` without converting the time. Thanks to the community contribution on this one.

## .NET compatibility

- **Native AOT** support for all the packages.
- Support for **.NET 8, 9 and 10**, then **.NET 11** for all the packages.

## Security and dependencies

- Dependencies are upgraded to fix known vulnerabilities (for example [Scriban](https://github.com/scriban/scriban)).
- The next versions will keep updating dependencies when NuGet or GitHub advisories report vulnerabilities, so that developers are pushed away from vulnerable versions.
- Email address parsing and validation in [EmailAddresses](https://www.nuget.org/packages/PosInformatique.Foundations.EmailAddresses) now rely on the [MimeKit](https://github.com/jstedfast/MimeKit) 5.0.0 source code.

## What's next?

The library keeps evolving regularly. Feel free to open an issue or a pull request on my [GitHub repository](https://github.com/PosInformatique/PosInformatique.Foundations).
