Skip to content

Commit

Permalink
feat!(core): remove functional API (#760)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Roberts <code@rbrts.uk>
  • Loading branch information
mttrbrts committed Nov 17, 2023
1 parent a1909a6 commit d2acbf6
Show file tree
Hide file tree
Showing 13 changed files with 19,481 additions and 12,797 deletions.
30,632 changes: 19,471 additions & 11,161 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions packages/concerto-core/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,6 @@ class BaseModelManager {
+ void fromAst(ast)
+ void getAst(boolean?)
+ BaseModelManager filter(FilterFunction)
}
class Concerto {
+ void constructor(ModelManager)
+ void validate(obj,options?) throws Error
+ ModelManager getModelManager()
+ boolean isObject(obj)
+ void getTypeDeclaration(obj)
+ string getIdentifier(obj)
+ boolean isIdentifiable(obj)
+ boolean isRelationship(obj)
+ void setIdentifier(obj,string)
+ string getFullyQualifiedIdentifier(obj)
+ string toURI(obj)
+ void fromURI(string) throws Error
+ string getType(obj)
+ string getNamespace(obj)
}
+ object setCurrentTime()
class DecoratorManager {
Expand Down
3 changes: 2 additions & 1 deletion packages/concerto-core/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
# Note that the latest public API is documented using JSDocs and is available in api.txt.
#

Version 4.0.0 {3f40d54eaa27c50b304634848b802935} 2023-09-04
Version 4.0.0 {e89caf38b4162a260d7ff1910274fb87} 2023-09-04
- Strict mode becomes default behaviour
- Remove Functional API

Version 3.12.2 {bb8951ea059e312cd347b715bc9fc8d7} 2023-08-28
- Adds ModelFile :: getClassDeclarations
Expand Down
4 changes: 0 additions & 4 deletions packages/concerto-core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ const DecoratorManager = require('./lib/decoratormanager');
// DateTimeUtil
const DateTimeUtil = require('./lib/datetimeutil');

// Concerto
const Concerto = require('./lib/concerto');

// MetaModel
const MetaModel = require('./lib/introspect/metamodel');

Expand Down Expand Up @@ -146,7 +143,6 @@ module.exports = {
ModelUtil,
ModelLoader,
DateTimeUtil,
Concerto,
MetaModel,
version
};
211 changes: 0 additions & 211 deletions packages/concerto-core/lib/concerto.js

This file was deleted.

0 comments on commit d2acbf6

Please sign in to comment.