- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8
Open
Labels
Milestone
Description
There are a couple of things you can do in a transition period.
Add the @deprecated JSDoc flag.
Add a console warning message that indicates that the function is deprecated.
A sample:
/**
 * @deprecated Since version 1.0. Will be deleted in version 3.0. Use bar instead.
 */
function foo() {
  console.warn("Calling deprecated function!"); // TODO: make this cross-browser
  bar();
}