File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ ## Version 10.7.2
2+
3+ - (chore) throttle deprecation messages (#3092 ) [ Mihkel Eidast] [ ]
4+
5+ [ Mihkel Eidast ] : https://github.com/mihkeleidast
6+
7+
18## Version 10.7.1
29
310- fix(parser) Resolves issues with TypeScript types [ Josh Goebel] [ ]
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ https://github.com/highlightjs/highlight.js/issues/2880#issuecomment-747275419
55
66*/
77
8+ /**
9+ * @type {Record<string, boolean> }
10+ */
11+ const seenDeprecations = { } ;
12+
813/**
914 * @param {string } message
1015 */
@@ -32,5 +37,8 @@ export const notice = (message) => {
3237 * @param {string } message
3338 */
3439export const deprecated = ( version , message ) => {
40+ if ( seenDeprecations [ `${ version } /${ message } ` ] ) return ;
41+
3542 console . log ( `Deprecated as of ${ version } . ${ message } ` ) ;
43+ seenDeprecations [ `${ version } /${ message } ` ] = true ;
3644} ;
You can’t perform that action at this time.
0 commit comments