Commit Graph

162 Commits

Author SHA1 Message Date
Juan Pinilla
8fe55fc2bc Fix results TypeScript types (#86)
Types differ from the actual response, the result is an array for both sync and async methods
https://github.com/adamreisnz/replace-in-file/blob/master/lib/replace-in-file.spec.js#L230-L240
https://github.com/adamreisnz/replace-in-file/blob/master/lib/replace-in-file.spec.js#L939-L948
2019-06-08 17:40:28 +12:00
dependabot[bot]
9808759e1f Bump js-yaml from 3.7.0 to 3.13.1 (#84)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.7.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.7.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-08 17:24:13 +12:00
dependabot[bot]
2526995227 Bump handlebars from 4.0.6 to 4.1.2 (#85)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.6 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.6...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-08 17:23:55 +12:00
dependabot[bot]
d70abf1c70 Bump sshpk from 1.10.1 to 1.16.1 (#83)
Bumps [sshpk](https://github.com/joyent/node-sshpk) from 1.10.1 to 1.16.1.
- [Release notes](https://github.com/joyent/node-sshpk/releases)
- [Commits](https://github.com/joyent/node-sshpk/commits/v1.16.1)
2019-06-04 19:07:24 +12:00
dependabot[bot]
463a670c73 Bump tar from 2.2.1 to 2.2.2 (#81)
Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Commits](https://github.com/npm/node-tar/compare/v2.2.1...v2.2.2)
2019-05-28 11:58:19 +12:00
Adam Reis
6b8b7ce639 4.1.0 v4.1.0 2019-05-14 21:33:43 +12:00
Jonny Spruce
82a61a166b Add types declaration file (#78) 2019-05-14 21:32:50 +12:00
Adam Reis
3582851700 Update CHANGELOG.md 2019-04-21 13:04:55 +12:00
Adam Reis
1ce362c683 4.0.0 v4.0.0 2019-04-21 13:03:38 +12:00
Adam Reis
27f55721b7 4.0.0 (#74)
* Bump dependencies

* [feature] #38 Count number of matches

* Update make-replacements.js

* [feature] #42 Differentiate number of matches and number of replacements

* [enhance] #56 Support for CWD parameter

* Default config value

* [enhance] #63 Add --quiet flag to supress console output in CLI

* Update success-handler.js

* Update readme and add change log
2019-04-21 13:00:33 +12:00
Adam Reis
d607529227 Update .travis.yml 2019-03-08 19:50:14 +13:00
Adam Reis
2023fa8aff 3.4.4 v3.4.4 2019-03-08 15:15:06 +13:00
Adam Reis
179c82e125 [bump] Update packages 2019-03-08 15:14:00 +13:00
Adam Reis
6f6cbf8ef1 3.4.3 v3.4.3 2019-01-11 19:06:56 +13:00
Osmond van Hemert
f984b38e54 Update yargs version (#66) 2019-01-11 19:06:00 +13:00
Adam Reis
5d8e7eb6ba TOC 2018-08-28 12:28:49 +12:00
Adam Reis
261fd5d5eb Add some regex usage instructions 2018-08-28 12:27:59 +12:00
Adam Reis
54b2dd871d 3.4.2 v3.4.2 2018-08-14 08:58:27 +12:00
Adam Reis
93b5315d43 3.4.1 v3.4.1 2018-08-14 08:57:55 +12:00
Adam Reis
9a2c309a15 Update dependencies 2018-08-14 08:57:39 +12:00
Adam Reis
0f6a4bc56e Add warning note about glob 2018-04-03 14:14:27 +12:00
Adam Reis
893868790c 3.4.0 v3.4.0 2018-03-23 10:30:27 +13:00
Adam Reis
754fd80ff9 [enhance] Allow passing of glob config 2018-03-23 10:29:58 +13:00
Adam Reis
6ed5456aeb 3.3.0 v3.3.0 2018-03-22 11:48:06 +13:00
Adam Reis
5e64df1c89 Tweaks to readme 2018-03-22 11:47:57 +13:00
CxRes
d94c3aaa49 Callback for from (#46)
* Callback for `from`

Added a callback for `from`, which takes file as an argument. Allows the user to tailor the search string according to the filename.

* Minor Changes to Callback for `from`

Additional comments to explain the callback forms.
Reversed minor version bump.

* Changes to documentation for `to` callback

Reverted to original `to` callback example.
Added a separate example example for using the `file` argument.
2018-03-22 11:42:23 +13:00
Adam Reis
015571ab22 Co founder notice 2018-03-16 07:40:46 +13:00
Adam Reis
8e9d7826b7 3.2.0 v3.2.0 2018-03-07 08:42:03 +13:00
Adam Reis
60e7b82f61 Add verbose option 2018-03-07 08:41:45 +13:00
John
153dc27b05 Index added to the readme (#43) 2018-03-07 08:24:00 +13:00
Adam Reis
33dfe50c97 Document async/await usage 2018-02-21 15:36:57 +13:00
Adam Reis
0113977df6 3.1.1 v3.1.1 2018-02-04 20:25:30 +13:00
Adam Reis
7bec36e6c5 [bump] Dependencies 2018-02-04 20:25:23 +13:00
Adam Reis
697ee517a4 Update dependencies 2017-12-21 07:22:16 +13:00
Adam Reis
5c59c87cfe 3.1.0 v3.1.0 2017-12-21 07:20:24 +13:00
Adam Reis
310d37b2fc Fix CLI path resolving for absolute paths 2017-12-21 07:20:06 +13:00
Adam Reis
24ce4a65fb 3.0.0 v3.0.0 2017-11-02 10:38:23 +13:00
Adam Reis
879b41cb95 Revert version 2017-11-02 10:38:03 +13:00
Adam Reis
23235f88b5 Update dependencies 2017-11-02 10:37:23 +13:00
Adam Reis
3470f938fc Merge branch '3.0.0' of github.com:adamreisnz/replace-in-file into 3.0.0 2017-11-02 10:34:40 +13:00
Adam Reis
5da8f26270 3.0.0 2017-11-02 10:33:50 +13:00
Adam Reis
489fed8c03 3.0.0-beta.2 v3.0.0-beta.2 2017-09-15 09:32:03 +12:00
Greg Magolan
a0045eae5d Pass filename as last arg to replacer function (#34)
* Pass filename as last arg to replacer function

* - Cleaned up replacer function override to use ES6
- Added replacer function tests to Async callback & Sync specs
2017-09-15 09:30:53 +12:00
Adam Reis
1f5bcedb9e 3.0.0-beta.1 v3.0.0-beta.1 2017-09-14 14:44:13 +12:00
Adam Reis
ae5acca527 Coverage back to 100% 2017-09-14 14:38:09 +12:00
Adam Reis
8b45fe754e Fix tests 2017-09-14 14:30:51 +12:00
Adam Reis
dc3ea7368e 3.0.0
- Drop deprecated API
- Drop support for Node 4 and 5
- Refactor and clean up code base
- Leverage destructuring
- Option to disable globs (#33)
- Update readme
2017-09-14 14:23:05 +12:00
Adam Reis
c044c5a5cb 2.6.4 v2.6.4 2017-09-04 15:18:57 +12:00
Adam Reis
823cb1183f Explain usage of callbacks in readme 2017-09-04 15:18:40 +12:00
Adam Reis
6e67158700 Add Node 8 to travis test 2017-09-04 14:07:02 +12:00