From 35828517009e5ae7c02b65df56cbf22ba68d9fc0 Mon Sep 17 00:00:00 2001 From: Adam Reis Date: Sun, 21 Apr 2019 13:04:55 +1200 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 502e0ec..36125aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ -# 4.0.0 +## 4.0.0 -## Breaking changes +### Breaking changes The return value is now a results array instead of an array with changed files. The new results array includes each file that was processed, with a flag to indicate whether or not the file was changed, and optionally information about the number of matches and replacements that were made. See the readme for more details. To update existing code and obtain an array of changed files again, simply convert the results array as follows: @@ -12,12 +12,12 @@ const changedFiles = results .map(result => result.file); ``` -## New features +### New features - Added `countMatches` flag to count the number of matches and replacements per file [#38](https://github.com/adamreisnz/replace-in-file/issues/38), [#42](https://github.com/adamreisnz/replace-in-file/issues/42), [#61](https://github.com/adamreisnz/replace-in-file/issues/61) - Added `--quiet` flag for CLI to suppress success output [#63](https://github.com/adamreisnz/replace-in-file/issues/63) - Added `cwd` configuration parameter for network drive replacements [#56](https://github.com/adamreisnz/replace-in-file/issues/56) -# 3.0.0 +## 3.0.0 -## Breaking changes +### Breaking changes From version 3.0.0 onwards, replace in file requires Node 6 or higher. If you need support for Node 4 or 5, please use version 2.x.x.