Skip to content

Commit

Permalink
remove @export class support
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Metelkin committed Nov 13, 2023
1 parent 3296295 commit 691372d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/container/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,6 @@ Container.prototype.insert = function(q = {}, isCore = false){
return;
}

// old style export
let exportCheck = q.class.match(/^(\w+)Export$/);
if (exportCheck !== null) { // check if old export syntax is used
this.logger.warn(`Usage of Export is deprecated starting from v0.5.0, use syntax: #export {format: ${exportCheck[1]}, ...}`)
let exportQ = Object.assign({
format: exportCheck[1],
filepath: q.id
}, q);
delete exportQ.class;
delete exportQ.id;
return this.export(exportQ);
}

// check if class is in the list
let selectedClass = this._componentClasses[q.class];
if (selectedClass === undefined){
Expand Down

0 comments on commit 691372d

Please sign in to comment.