Skip to content

Add warnings when deprecated functions are used #80

Closed
wants to merge 3 commits into from

2 participants

@ForbesLindesay
Collaborator

I got caught out when the last release removed Q.node, would be nice to have warnings logged when a deprecated function is used, so that's what this pull request does. It lets you annotate deprecated functions with their current function name and an alternative function name to print out a nice friendly message to console.warn (e.g. "bind is depreciated, use fbind instead.")

All tests pass.

@domenic
Collaborator
domenic commented May 26, 2012

Makes sense. Could you update the style to conform to the rest of the code (spacing after commas, if, and function; double quotes), and be sure to fix all of the "depreciate" misspellings?

@ForbesLindesay
Collaborator

Depreciate is now gone completely. Spacing now matches the rest of the file. Double quotes now used throughout. All tests still pass.

@domenic
Collaborator
domenic commented May 26, 2012

Merged as 8341cd1

@domenic domenic closed this May 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.