Skip to content

Commit

Permalink
fix: issue deprecation notice for .map
Browse files Browse the repository at this point in the history
  • Loading branch information
customcommander committed Jul 20, 2021
1 parent bae9f0f commit 7e94286
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ const parse = text => {
};

parse.map = text => {
console.warn(`
**DEPRECATION NOTICE**
@customcommander/ris map method will be removed in v5.
See https://github.com/customcommander/ris/issues/36
`);
const parsed = parse(text);
return parsed.map(
p => Object.keys(p).reduce(
Expand Down

0 comments on commit 7e94286

Please sign in to comment.