Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing the previously-deprecated grunt.utils.

  • Loading branch information...
commit 3ebb2a7335d016e026372867b6c088d5097f1d62 1 parent 9c33ccc
@cowboy cowboy authored
Showing with 0 additions and 25 deletions.
  1. +0 −2  docs/api_util.md
  2. +0 −5 docs/api_utils.md
  3. +0 −18 lib/grunt.js
View
2  docs/api_util.md
@@ -4,8 +4,6 @@
Miscellaneous utilities, including Lo-Dash, Async and Hooker.
-_Note: `grunt.utils` was renamed to `grunt.util` and deprecated in grunt v0.4.0. Please ensure that your custom tasks are are up-to-date._
-
See the [util lib source](../lib/grunt/util.js) for more information.
## The util API
View
5 docs/api_utils.md
@@ -1,5 +0,0 @@
-[Grunt homepage](http://gruntjs.com/) | [Documentation table of contents](toc.md)
-
-# [The grunt API](api.md) / grunt.util
-
-_Note: `grunt.utils` was renamed to `grunt.util` and deprecated in grunt v0.4.0. Please ensure that your custom tasks are are up-to-date, and update your links to refer to the [grunt.util documentation](api_util.md)._
View
18 lib/grunt.js
@@ -34,24 +34,6 @@ var log = gRequire('log');
gRequire('cli');
var verbose = grunt.verbose = log.verbose;
-// Deprecating grunt.utils
-var utilsWarned;
-Object.defineProperty(grunt, 'utils', {
- get: function() {
- if (!utilsWarned) {
- utilsWarned = true;
- log.errorlns('Note that grunt.utils has been renamed to grunt.util and ' +
- 'is now deprecated. Please ensure that your custom tasks are ' +
- 'up-to-date. (grunt 0.4.0+)');
- // This warning shouldn't cause tasks that look at this.errorCount to fail.
- // TODO: come up with a better way to do non-error warnings.
- grunt.fail.errorcount--;
- }
- return util;
- },
- configurable: true
-});
-
// Expose some grunt metadata.
grunt.package = file.readJSON(path.join(__dirname, '../package.json'));
grunt.version = grunt.package.version;
Please sign in to comment.
Something went wrong with that request. Please try again.