Represents the NuGet versions.
- Fixed:
AddParameter
now correctly accepts a value of any type; not just limited tostring
values.
- Fixed: Updated
System.Text.Json
package depenedency to latest; resolve Microsoft Security Advisory CVE-2024-43485.
- Fixed: Corrected the YAML to JSON conversion for
long
vsstring
values.
- Fixed: All dependencies updated to the latest version.
- Enhancement: Added
ConeGenerator.OnConfigurationLoad
to enable validation and/or mutation of the configuration (JsonNode
) before deserialization into the correspondingConfigBase
type.
- Enhancement: Added
CodeGenerator.LoadConfigAsync
to enable the loading of the configuration without having to execute the code generation. This is useful when needing to either further validate the configuration prior to execution, or be able to query the configuration without initiating the code generation. - Fixed: All dependencies updated to the latest version.
- Enhancement: Breaking change - underlying JSON serialization has been changed from
Newtonsoft.Json
toSystem.Text.Json
, with newUtility.JsonSerializer
encapsulating logic to enable. The following steps are required to migrate existing usage:- Rename all attribute references from
JsonProperty
toJsonPropertyName
. - Remove all attribute references to
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
; opt-in is the default behavior when leveraging theCodeGenClassAttribute
attribute.
- Rename all attribute references from
- Fixed: All dependencies updated to the latest version.
- Fixed: Added comparison context where reporting a file update as a result of using
ExpectNoChanges
.
- Fixed:
CodeGenerator
now supports inheritance as intended; newCreateAsync<TCodeGenerator>
added to enable. - Fixed: The
CodeGeneratorArgsBase.ConfigFileName
per scriptIRootConfig
instance included withinCodeGenStatistics
per script item execution to enable access fromCodeGenerator
.
- Enhancement: Added new
set-value
function to allow a variable to be updated from the template when executed. - Enhancement: Added new
add-value
function to allow a variable to be added to from the template when executed.
- Enhancement: Changed the project to be .NET Standard 2.1 versus targeting specific framework version. This has had the side-effect of losing the ability to execute directly from the command-line. Given this should typically be inherited and then executed, this functionality loss is considered a minor inconvenience.
- Issue 12: Added
CodeGenPropertyAttribute.IsUnique
to enable configurable property value uniqueness validation checking.
- Republish: Version updated and republished NuGet to correct issue.
- Removed:
Database
and related capabilities have been removed; these capabilities now reside in DbEx. - New: The database connection capabilities within
ICodeGeneratorArgs
have been moved into a newICodeGeneratorDbArgs
to enable this base functionality to be leveraged without the other properties. - Enhancement: The
RuntimeParameters
have been changed fromIDictionary<string, string?>
toIDictionary<string, object?>
to improve flexibility. - Enhancement: The code-generation has been updated to support async.
- Enhancement: The
CodeGenConsoleBase
has been removed and functionality moved intoCodeGenConsole
.
- New: Initial publish to GitHub/NuGet. This was originally harvested from, and will replace, the core code-generation within Beef.