Skip to content

Releases: bvdcode/EasyExtensions

Release 0.1.20

27 Jul 06:21

Choose a tag to compare

Refactor IP address helpers and add unit tests

- Added multiple unit tests in `IpAddressHelpersTests.cs` to verify the correctness of methods such as `GetNetwork`, `GetBroadcast`, `ToNumber`, and to check for exceptions when invalid subnet masks are provided.
- Introduced a new helper method `GetMaskAddress` in `IpAddressHelpers.cs` to generate a subnet mask address from an integer value, which was previously defined in `IpAddressExtensions.cs`.
- Updated `IpAddressExtensions.cs` to use the new `GetMaskAddress` method from `IpAddressHelpers` instead of its own implementation.
- Added validation in `GetNetwork` and `GetBroadcast` methods in `IpAddressExtensions.cs` to ensure that the IP address and subnet mask are of the same address family.
- Removed the `GetMaskAddress` method from `IpAddressExtensions.cs` as it has been moved to `IpAddressHelpers.cs`.
- Updated the `using` directives in `IpAddressExtensions.cs` to include the `EasyExtensions.Helpers` namespace.

Release 0.1.19

27 Jul 03:34

Choose a tag to compare

Add CopyMatchingProperties method to documentation

The `CopyMatchingProperties` method has been introduced in the
documentation. This method is intended to copy properties that
match between the source and destination objects. The method
signature and XML documentation comments have been added to
provide clarity on its purpose and usage.

Release 0.1.18

26 Jul 23:18

Choose a tag to compare

Merge branch 'develop' of https://github.com/bvdcode/EasyExtensions i…

Release 0.1.17

26 Jul 23:12

Choose a tag to compare

Refactor auditing: remove AuditableEntity, add AuditedDbContext

Removed the `AuditableEntity` class, which tracked creation and
update timestamps and user IDs. Updated the `BaseEntity` class to
include `CreatedAtUtc` and `UpdatedAtUtc` properties. Introduced
the `AuditedDbContext` class, extending `DbContext` to automate
auditing. This class overrides `SaveChanges` and `SaveChangesAsync`
to update timestamp properties automatically. Added a private
method `UpdateDateTimeValues` to handle timestamp updates for
modified and newly added entities.

Release 0.1.16

26 Jul 12:31

Choose a tag to compare

Refactor namespaces for ASP.NET Core extensions

Updated namespaces for `HttpRequestExtensions` and `ServiceCollectionExtensions` to `EasyExtensions.AspNetCore`. Added `using EasyExtensions.AspNetCore` directive to `UserFactory.cs` to reflect the new namespace structure. This refactoring improves code organization by clearly separating ASP.NET Core-specific extensions and services.

Release 0.1.15

26 Jul 12:17

Choose a tag to compare

Refactor genericType assignment logic in type processing

The code change modifies the way the `genericType` variable is determined within a loop that processes types implementing a specific interface (`TInterface`). Previously, `genericType` was assigned the first interface from `typeInterfaces` that is a generic type and whose generic type definition matches `TInterface`.

The new code changes this logic to assign `genericType` to the first interface from `typeInterfaces` that is a generic type and has any interface matching `TInterface`.

This change likely aims to improve the accuracy of identifying the correct generic type that implements `TInterface`.

Release 0.1.14

26 Jul 11:48

Choose a tag to compare

Enhance service registration for generic interfaces

Updated `ServiceCollectionExtensions` to dynamically determine the contract type for `ServiceDescriptor` creation. The new approach checks all implemented interfaces of a type and uses a matching generic interface if found, otherwise defaults to `TInterface`. This improves flexibility in service registration, especially for generic interfaces.

Release 0.1.13

26 Jul 11:21

Choose a tag to compare

Enhance project metadata and update package icon

Updated EasyExtensions.Sentry.csproj with detailed project metadata, including author, company, product, and packaging options. Added references to README.md, package icon, and LICENSE.md files. Included a new package reference to Microsoft.SourceLink.GitHub (v8.0.0) as a private asset. Reformatted PropertyGroup and ItemGroup elements for better readability. Updated packageIcon.png for visual improvements.

Release 0.1.12

26 Jul 11:04

Choose a tag to compare

Add new IServiceCollection and IHost extension methods

Enhanced README.md with new sections for ServiceCollection and Host extensions:
- Added `AllowAnonymousOnDevelopment` under "ServiceCollection Extensions".
- Added `FitBluredBackground` under "Image Extensions".
- Added `AddExceptionHandler`, `AddGridifyMappers`, and `AddDbContext` under "Entity Framework Extensions".
- Added `ApplyMigrations` under "Host Extensions".

Updated ServiceCollectionExtensions.cs:
- Renamed `SetupExceptionHandler` to `AddExceptionHandler` and updated its summary.
- Renamed `SetupGridify` to `AddGridifyMappers` and updated its summary.

These changes improve documentation and implementation consistency.

Release 0.1.11

26 Jul 08:19

Choose a tag to compare

Add charset to CreateRandomString; add RemoveSpaces method

Updated README.md and StringHelpers.cs:
- Added `charset` parameter to `CreateRandomString` method.
- Documented `RemoveSpaces` method in README.md.
- Implemented `RemoveSpaces` method in StringHelpers.cs.