Skip to content

Deprecate old fuctions #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dani8art opened this issue Sep 20, 2018 · 0 comments
Open

Deprecate old fuctions #30

dani8art opened this issue Sep 20, 2018 · 0 comments
Milestone

Comments

@dani8art
Copy link
Owner

dani8art commented Sep 20, 2018

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();
}
@dani8art dani8art added this to the v0.2.0 milestone Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant