Skip to content

Commit 7e94286

Browse files
fix: issue deprecation notice for .map
1 parent bae9f0f commit 7e94286

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/parser.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ const parse = text => {
6363
};
6464

6565
parse.map = text => {
66+
console.warn(`
67+
**DEPRECATION NOTICE**
68+
@customcommander/ris map method will be removed in v5.
69+
See https://github.com/customcommander/ris/issues/36
70+
`);
6671
const parsed = parse(text);
6772
return parsed.map(
6873
p => Object.keys(p).reduce(

0 commit comments

Comments
 (0)