From d84cb86284608c4a4a83b9561c5c8f4526c501ce Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Thu, 6 Feb 2014 14:21:58 -0800 Subject: [PATCH] 0.0.2 * swap to `merge` to not act on clones --- History.md | 4 ++++ lib/index.js | 4 ++-- package.json | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/History.md b/History.md index d87bb5f..1ac112a 100644 --- a/History.md +++ b/History.md @@ -1,4 +1,8 @@ +0.0.2 - February 6, 2013 +------------------------ +* swap to `merge` to not act on clones + 0.0.1 - February 5, 2013 ------------------------ :sparkles: \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index 1875a3d..ec2a576 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,5 +1,5 @@ -var defaults = require('defaults'); +var merge = require('merge'); /** * Expose `plugin`. @@ -48,6 +48,6 @@ function plugin(collections){ }); var data = metalsmith.metadata(); - metalsmith.metadata(defaults(data, arrs)); + metalsmith.metadata(merge(data, arrs)); }; } \ No newline at end of file diff --git a/package.json b/package.json index e6e86a4..e9e3645 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,14 @@ "name": "metalsmith-collections", "description": "A Metalsmith plugin that adds collections of files to the global metadata.", "repository": "git://github.com/segmentio/metalsmith-collections.git", - "version": "0.0.1", + "version": "0.0.2", "license": "MIT", "main": "lib/index.js", "dependencies": { - "defaults": "~1.0.0" + "merge": "~1.1.2" }, "devDependencies": { "metalsmith": "0.x", "mocha": "1.x" } -} +} \ No newline at end of file