Skip to content

Commit

Permalink
chore!: remove deprecated substract_entities. Correct spelling is `…
Browse files Browse the repository at this point in the history
…subtract_entities`

BREAKING-CHANGE: `substract_entities` has been removed. Correct spelling is `subtract_entities`
  • Loading branch information
MindFreeze committed Apr 23, 2024
1 parent a584fd8 commit e09f9af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export interface EntityConfig {
entity_id: string;
add_entities?: string[];
subtract_entities?: string[];
// @deprecated #100
substract_entities?: string[];
attribute?: string;
type?: BoxType;
children?: ChildConfigOrStr[];
Expand Down
4 changes: 0 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@ export function normalizeConfig(conf: SankeyChartConfig, isMetric: boolean): Con
];
}
}
// handle legacy subtract typo #100
if (entityConf.substract_entities) {
entityConf.subtract_entities = entityConf.substract_entities;
}
});
});

Expand Down

0 comments on commit e09f9af

Please sign in to comment.