Skip to content

Releases: accordproject/concerto

v3.12.1

28 Aug 09:42
24b2515
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.12.0...v3.12.1

v3.12.0

24 Aug 13:24
09b3d15
Compare
Choose a tag to compare

What's Changed

Full Changelog: v.3.11.1...v3.12.0

v3.11.1

18 Aug 12:47
3fa0135
Compare
Choose a tag to compare

What's Changed

  • chore(actions): publish v3.11.0 to npm by @github-actions in #687
  • feat(maps): patch concept serialization by @jonathan-casey in #688

Full Changelog: v3.11.0...v3.11.1

v3.11.0

16 Aug 13:47
b2469e4
Compare
Choose a tag to compare

What's Changed

Adds an extra validation step in the ModelManager to validate ModelFile object against the Metamodel definition. This is useful for catching errors when dynamically creating model files and to ensure internal consistency.

When opting into this feature:

  • In strict mode, invalid models will now throw an error.
  • In the default non-strict mode, a console warning is printed.

Turn on the feature with a parameter to the ModelManager constructor, e.g.

new ModelManager({ metamodelValidation: true });

Changelog

  • chore(actions): publish v3.10.0 to npm by @github-actions in #686
  • feat(core): add validation of model files against metamodel by @mttrbrts in #684

Full Changelog: v3.10.0...v3.11.0

v3.10.0

16 Aug 11:40
f8da8a9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.9.1...v3.10.0

v3.9.1

10 Aug 09:12
b8ee62d
Compare
Choose a tag to compare

What's Changed

  • chore(actions): publish v3.9.0 to npm by @github-actions in #675
  • Stefanblaginov/update prod semver by @stefanblaginov in #680

Full Changelog: v3.9.0...v3.9.1

v3.9.0

25 Jul 14:01
1ba9c07
Compare
Choose a tag to compare

What's Changed

  1. Support for Multiple Terms per concept/property in Vocabularies #645.

Sample .voc file

locale: en
namespace: org.acme
declarations:
  - Color: A color
  - Vehicle: A road vehicle
    properties:
      - vin: Vehicle Identification Number
        tooltip: VIN
      - model: Model of the vehicle
  - Truck: A truck
    description: A vehicle capable of carrying cargo
    tooltip: Truck
    properties:
      - weight: The weight of the truck
        description: The weight of the truck in KG
        tooltip: Truck weight
      - horsePower: The horse power of the truck
        description: The horse power of the truck
        tooltip: Truck HP
  1. Experimental. Map Declaration. Prototype support for Map declarations with String keys and values. Enable by setting the environment variable ENABLE_MAP_TYPE=true. This feature is subject to change before release.
map Dictionary {
   o String
   o String
}

What's Changed

  • chore(actions): publish v3.8.2 to npm by @github-actions in #658
  • chore: upgrade deps by @mttrbrts in #660
  • chore: state node version support by @mttrbrts in #661
  • bug(vocabulary): fix for vocabulary management for ScalarDeclaration by @sanketshevkar in #662
  • feat(map): add serialisation for map<string, string> by @jonathan-casey in #654
  • chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #668
  • chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 in /packages/concerto-vocabulary by @dependabot in #669
  • chore(deps): bump semver from 7.3.5 to 7.5.2 by @dependabot in #673
  • chore(deps-dev): bump semver from 6.3.0 to 6.3.1 in /packages/concerto-util by @dependabot in #671
  • chore(deps-dev): bump semver from 6.3.0 to 6.3.1 in /packages/concerto-vocabulary by @dependabot in #672
  • feat(vocabulary) : support multiple terms per concept/property by @dselman in #664
  • feat(map): refactor map shape by @jonathan-casey in #674

Full Changelog: v3.8.2...v3.9.0

v3.8.2

07 Jun 20:12
9e000d6
Compare
Choose a tag to compare

What's Changed

  • chore(actions): publish v3.8.1 to npm by @github-actions in #652
  • fix(vocab): add imports for typescript generation by @mttrbrts in #657

Full Changelog: v3.8.1...v3.8.2

v3.8.1

23 May 09:31
da9a0c7
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.8.0...v3.8.1

v3.8.0

22 May 09:54
248a663
Compare
Choose a tag to compare

What's Changed

String length validation (from @ragi-dayananda):

String fields may also include an optional length expression, which is used to validate the number of characters in the string field. Both the minimum and maximum length bound are optional, however at least one must be specified. The maximum length must be greater than or equal to the minimum length.

  o String name length=[1,100]      // greater than or equal to 1 and less than or equal to 100
  o String description length=[1,]  // greater than or equal to 1
  o String comment length=[,100]    // less than or equal to 100

[PREVIEW] Map Declarations (from @jonathan-casey):

The feature flag ENABLE_MAP_TYPE is designed to control the availability of the new MapType in Concerto 3.8.0.

The feature flag can be activated by setting the environment variable ENABLE_MAP_TYPE=true, and deactivated setting the environment variable ENABLE_MAP_TYPE=false, or with the absence of the variable entirely.

Usage

model.cto

namespace com.map.preview@1.0.0

map AuthorsWorks {
  o String
  o String
}

concept Library {
  o String name
  o AuthorsWorks books
}

index.js

const map = modelManager.getMapDeclarations()?.pop() // take the first;

map.getName(); // AuthorsWorks

const key = map.getKey();
key.getType(); // String

const value = map.getValue();
value.getType(); // String

map.isMapDeclaration(); // true

map.getFullyQualifiedName(); // [email protected]

Change Log

New Contributors

Full Changelog: v3.7.0...v3.8.0