dojo / core

:rocket: Dojo 2 - language helpers and utilities.
http://dojo.io
Other
213 stars 62 forks source link

Have a utility for deprecating an API #220

Closed kitsonk closed 7 years ago

kitsonk commented 7 years ago

We should have a utility function that allows us to mark parts of the API as deprecated and when running in has('debug') logs console.warn with appropriate information on the deprecation.

We already have a use case in that we would like to remove .extend() from compose and instead introduce .override(), but just deleting .extend() at this point would cause too much carnage.