Socket
Socket
Sign inDemoInstall

grunt-newer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-newer - npm Package Compare versions

Comparing version 0.8.0 to 1.0.0

.cache/cafemocha/all/timestamp

42

changelog.md
# Change Log
## 1.0.0
* Document that grunt-newer works with grunt-spritesmith >= 3.1.0 (thanks @danez, see [#66][66])
* Support for an empty list of source files (thanks @ruslansagitov, see [#62][62])
## 0.8.0
* Support for a single source file that matches the dest file (thanks @btholt, see [#42][42] and [#62][62])
* Avoid unhandled error when task is aliased (see [#61][61])
## 0.7.0
* Support for `override` option. In cases where a `src` file should be included even if it has not been modified (e.g. a LESS file whose imports have been modified), the `override` option can be used (see #35)
* Support for `override` option. In cases where a `src` file should be included even if it has not been modified (e.g. a LESS file whose imports have been modified), the `override` option can be used (see [#35][35])
## 0.6.1
* When `src` and `dest` files are the same, the previous run time is considered (see #24)
* When `src` and `dest` files are the same, the previous run time is considered (see [#24][24])
## 0.6.0
* Deprecated `any-newer` task (`newer` task now handles this automatically, see #17)
* Deprecated `any-newer` task (`newer` task now handles this automatically, see [#17][17])
* Deprecated `timestamps` option (use `cache` instead)
* Consolidated `newer-reconfigure` and `newer-timestamp` into single `newer-postrun` task
* Refactor task for easier unit testing (see #16)
* Refactor task for easier unit testing (see [#16][16])
## 0.5.4
* Correctly handle cases where `dest` file is not present (thanks @royriojas, see #11)
* Correctly handle cases where `dest` file is not present (thanks @royriojas, see [#11][11])
## 0.5.3
* Add `newer-reconfigure` to properly reset task configuration (see #8)
* Add `newer-reconfigure` to properly reset task configuration (see [#8][8])
## 0.5.2
* Fix use of `any-newer` on task with multiple targets (thanks @royriojas, see #7)
* Fix use of `any-newer` on task with multiple targets (thanks @royriojas, see [#7][7])
## 0.5.1
* Filter out file objects with no remaining `src` files (see #6)
* Filter out file objects with no remaining `src` files (see [#6][6])
## 0.5.0
* Compare `src` file modification times to `dest` files if present (see #2)
* Compare `src` file modification times to `dest` files if present (see [#2][2])
[2]: https://github.com/tschaub/grunt-newer/pull/2
[6]: https://github.com/tschaub/grunt-newer/pull/6
[7]: https://github.com/tschaub/grunt-newer/pull/7
[8]: https://github.com/tschaub/grunt-newer/pull/8
[11]: https://github.com/tschaub/grunt-newer/pull/11
[16]: https://github.com/tschaub/grunt-newer/pull/16
[17]: https://github.com/tschaub/grunt-newer/pull/17
[24]: https://github.com/tschaub/grunt-newer/pull/24
[35]: https://github.com/tschaub/grunt-newer/pull/35
[42]: https://github.com/tschaub/grunt-newer/pull/42
[61]: https://github.com/tschaub/grunt-newer/pull/61
[62]: https://github.com/tschaub/grunt-newer/pull/62
[66]: https://github.com/tschaub/grunt-newer/pull/66

@@ -51,2 +51,8 @@ var crypto = require('crypto');

var anyNewer = exports.anyNewer = function(paths, time, override, callback) {
if (paths.length === 0) {
process.nextTick(function() {
callback(null, false);
});
return;
}
var complete = 0;

@@ -53,0 +59,0 @@ function iterate() {

{
"name": "grunt-newer",
"description": "Run Grunt tasks with only those source files modified since the last successful run.",
"version": "0.8.0",
"version": "1.0.0",
"homepage": "https://github.com/tschaub/grunt-newer",

@@ -6,0 +6,0 @@ "author": {

@@ -173,3 +173,1 @@ # grunt-newer

* [`grunt-rsync`](http://npmjs.org/package/grunt-rsync) - Though this task specifies `src` and `dest` files, the `dest` file is not generated based on `src` files (instead it is a directory).
* [`grunt-spritesmith`](https://npmjs.org/package/grunt-spritesmith) - This task uses multiple `src` images to produce `destImg` and `destCSS` files. Instead use the [`grunt-spritely`](https://npmjs.org/package/grunt-spritely) task configured with `src` and `dest` files.

@@ -185,2 +185,12 @@ var mock = require('mock-fs');

it('calls callback with false if no files are provided', function(done) {
util.anyNewer([], new Date(), nullOverride, function(err, newer) {
if (err) {
return done(err);
}
assert.isFalse(newer);
done();
});
});
it('calls override with older file and time', function(done) {

@@ -187,0 +197,0 @@ function override(filePath, time, include) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc