Skip to content

Tags: Avanade/CoreEx

Tags

v3.31.0

Toggle v3.31.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.31.0 (#136)

* `JsonMergePatch` enhancements.

* - *Enhancement:* Refactored the `CosmosDb` capabilities such that the `CosmosDbContainer` and `CosmosDbModelContainer` are model type independent, with underlying type support implemented at the method level for greater flexibility and control. The typed `CosmosDbContainer<T, TModel>` etc. remain and are accessed from the type independent containers as required.
  - The existing `IMultiSetArgs` operations have been moved (and renamed) from `CosmosDb` to `CosmosDbContainer` and `CosmosDbModelContainer` as these are single container-specific.
  - The existing `CosmosDb.UseAuthorizeFilter` operations have been moved to `CosmosDbContainer` as these are single container-specific.

* - *Enhancement:* Added `Cleaner.PrepareCreate` and `Cleaner.PrepareUpdate` to encapsulate `ChangeLog.PrepareCreated` and `ChangeLog.PrepareUpdated`, and `Cleaner.ResetTenantId` to ensure consistent handling throughout _CoreEx_.
- *Enhancement:* Added `SystemTime.Timestamp` as the standard means to access the current timestamp (uses `Cleaner.Clean`) to ensure consistency throughout _CoreEx_. Therefore, the likes of `DateTime.UtcNow` should be replaced with `SystemTime.Timestamp`. The previous `ExecutionContent.SystemTime` has been removed as it was not consistent with the `ExecutionContext` pattern.

* - *Enhancement:* Updated the `IExtendedException.ShouldBeLogged` implementations to check `SettingsBase` configuration to enable/disable.

* - Simply CosmosDB configuration; removes need for lazy instantiation
- Update packages

* ICU fix?

* ICU again?

* ICU again?

* ICU again?

* ICU again

* ICU again?

* ICU again?

* ICU again?

* ICU again?

* ICU again?

v3.30.2

Toggle v3.30.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.30.2 (#134)

- *Fixed:* Missing `QueryArgs.IncludeText` added to set the `$text=true` equivalent.
- *Fixed:* Simplification of creating and setting the `QueryArgs.Filter` using an implict string operator.

v3.30.1

Toggle v3.30.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.30.1 (#133)

- *Fixed:* Added support for `SettingsBase.DateTimeTransform`, `StringTransform`, `StringTrim` and `StringCase` to allow specification via configuration.
- *Fixed:* Added support for `CoreEx:` hierarchy (optional) for all _CoreEx_ settings to enable a more structured and explicit configuration.

v3.30.0

Toggle v3.30.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.30.0 (#132)

- *Enhancement:* Integrated `UnitTestEx` version `5.0.0` to enable the latest capabilities and improvements.
  - `CoreEx.UnitTesting.NUnit` given changes is no longer required and has been deprecated, the `UnitTestEx.NUnit` (or other) must be explicitly referenced as per testing framework being used.
  - `CoreEx.UnitTesting` package updated to include only standard .NET core capabilities to follow new `UnitTestEx` pattern; new packages created to house specific as follows:
    - `CoreEx.UnitTesting.Azure.Functions` created to house Azure Functions specific capabilities;
    - `CoreEx.UnitTesting.Azure.ServiceBus` created to house Azure Service Bus specific capabilities.
  - Existing usage will require references to the new packages as required. There should be limited need to update existing tests to use beyond the requirement for the root `UnitTestEx` namespace. The updated default within `UnitTestEx` is to expose the key capabilities from the root namespa

v3.29.0

Toggle v3.29.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.29.0 (#131)

* v3.29.0
- *Enhancement:* Added `net9.0` support.
- *Enhancement:* Deprecated `net7.0` support; no longer supported by [Microsoft](https://dotnet.microsoft.com/en-us/platform/support/policy).
- *Enhancement:* Updated dependencies to latest; including transitive where applicable.

* CI.yml update

v3.28.0

Toggle v3.28.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.28.0 (#130)

* v3.28.0
- *Enhancement:* Added extended capabilities to the `InvokeArgs` to allow additional customization.

* Fix failing test.

v3.27.3

Toggle v3.27.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.27.3 (#129)

* v3.27.3
- *Fixed:* The `ExecutionContext.Messages` were not being returned as intended within the `x-messages` HTTP Response header; enabled within the `ExtendedStatusCodeResult` and `ExtendedContentResult` on success only (status code `>= 200` and `<= 299`). Note these messages are JSON serialized as the underlying `MessageItemCollection` type.

* ixed: The AgentTester has been updated to return a HttpResultAssertor where the operation returns a HttpResult to enable further assertions to be made on the Result itself.

* Move files to correct namespace.

* Add additional tests for assertor.

v3.27.2

Toggle v3.27.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.27.2 (#127)

- *Fixed:* The `IServiceCollection.AddCosmosDb` extension method was registering as a singleton; this has been corrected to register as scoped. The dependent `CosmosClient` should remain a singleton as is [best practice](https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/best-practice-dotnet).

v3.27.1

Toggle v3.27.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.27.1 (#126)

- *Fixed:* Updated `Microsoft.Extensions.Caching.Memory` package depenedency to latest (including related); resolve [Microsoft Security Advisory CVE-2024-43483](GHSA-qj66-m88j-hmgj).
- *Fixed:* Fixed the `ExecutionContext.UserIsAuthorized` to have base implementation similar to `UserIsInRole`.
- *Fixed:* Rationalize the `UtcNow` usage to be consistent, where applicable `ExecutionContext.SystemTime.UtcNow` is leveraged.

v3.27.0

Toggle v3.27.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v3.27.0 (#125)

- *Fixed:* The `ValueContentResult.TryCreateValueContentResult` would return `NotModified` where the request `ETag` was `null`; this has been corrected to return `OK` with the resulting `value`.
- *Fixed:* The `ValueContentResult.TryCreateValueContentResult` now returns `ExtendedStatusCodeResult` versus `StatusCodeResult` as this offers additional capabilities where required.
- *Enhancement:* The `ExtendedStatusCodeResult` and `ExtendedContentResult` now implement `IExtendedActionResult` to standardize access to the `BeforeExtension` and `AfterExtension` functions.
- *Enhancement:* Added `WebApiParam.CreateActionResult` helper methods to enable execution of the underlying `ValueContentResult.CreateValueContentResult` (which is no longer public as this was always intended as internal only).
- *Fixed:* `PostgresDatabase.OnDbException` corrected to use `PostgresException.MessageText` versus `Message` as it does not include the `SQLSTATE` code.
- *Enhancement:* Improve debugging insights by adding `ILogger.LogDebug` start/stop/elapsed for the `InvokerArgs`.
- *Fixed*: Updated `System.Text.Json` package depenedency to latest (including related); resolve [Microsoft Security Advisory CVE-2024-43485](GHSA-8g4q-xg66-9fp4).