Skip to content

v3.6.0

Compare
Choose a tag to compare
@mttrbrts mttrbrts released this 23 Feb 10:09
· 180 commits to main since this release
690ce26

What's Changed

  • Enhancements to C# Code Generation from Concerto Models.
    • Now includes a decorator, @DotNetType to allow overriding of the C# primitive type for a property.
    • Optional properties in Concerto now become nullable fields in C#
  • The @accordproject/concerto-util package contains a new module, Identifiers, which includes a utility for normalizing strings to valid Concerto identifiers so that they can be used for property names, namespaces, enum values etc.
import { Identifiers } from "@accordproject/concerto-util";

const myId = '1st Item';
const MAX_LENGTH = 200;
const validId = Identifiers.normalizeIdentifier(myId, MAX_LENGTH);

console.log(validId, Identifiers.ID_REGEX.test(validId));
// _1st_Item true

Commits

  • feat(tools): csharp codegen nullable type support by @ragi-dayananda in #604
  • feat(tools): Support for more dotnet built-in types by @ragi-dayananda in #605
  • feat(util): add normalizeIdentifier function by @mttrbrts in #606
  • fix(deps): upgrade to webpack 6.75.0 by @mttrbrts in #609
  • chore(actions): publish v3.5.0 to npm by @github-actions in #599

Full Changelog: v3.5.0...v3.6.0