Skip to main content

PosInformatique.Foundations: what has changed since v1.0.0

It has been way too long since my last article about the library, so here is a catch-up

Updated 2 min readMarkdown
PosInformatique.Foundations: what has changed since v1.0.0

It has been a very long time since I wrote an article about 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 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: 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: the OrExpressionBuilder<T> to combine predicates with a short-circuiting logical OR.
  • Threading: an asynchronous debouncer (very useful in Blazor applications) and SemaphoreSlim extensions (Wait/Release scope).
  • Bcl and Collections: extensions for common .NET types, and for collections and sequences.

A more complete and robust Emailing feature

Improvements in Emailing:

  • A new 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 to generate a fixed text with the same abstraction as the other templates.
  • New MIME types in MediaTypes: SVG, then text/plain, text/html, text/csv and text/rtf.

Entity Framework

  • The IsFirstName() and IsLastName() extensions of 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).
  • 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 now rely on the 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.

About the author

  • I'm a French seasoned architect and developer specializing in Microsoft technologies such as .NET and Azure.

    As a freelance professional, I've lent my expertise to diverse sectors including Energy, Banking, Insurance, Software Publishing, Transportation, and Industry.

    With over 25 years of dedicated experience in Microsoft technologies, I've established three software publishing companies, initially on-premises and later transitioning to SaaS models.

    My journey has been driven by a passion for innovation and a commitment to delivering top-notch solutions in the ever-evolving tech landscape.

    Humorously attributing my baldness to solving countless tech puzzles.

    Passionate about travel, having worked extensively abroad in Indonesia, Hong Kong, Singapore, and Australia. Philippines holds my heart, magnetized by its heavenly beaches.

    My English might not be top-notch, but it鈥檚 enough to bicker with my Filipina partner! 馃榿

No comments yet. Be the first to comment.