145 Commits

Author SHA1 Message Date
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
Adam Reis
372ab9c656 2.6.3 v2.6.3 2017-08-26 08:19:51 +12:00
Adam Reis
cf00882d82 Handle undefined ignore param 2017-08-26 08:19:32 +12:00
Adam Reis
4cbee855f8 2.6.2 v2.6.2 2017-08-25 12:53:33 +12:00
Adam Reis
76fe912ba1 Fix typo 2017-08-25 12:53:16 +12:00
Adam Reis
2aa5eea1e0 2.6.1 v2.6.1 2017-08-25 07:41:36 +12:00
Adam Reis
e5a5c8e3b3 Update packages 2017-08-25 07:41:18 +12:00
Adam Reis
790f08f2a7 2.6.0 v2.6.0 2017-08-25 07:38:49 +12:00
Adam Reis
4f4991cfe5 Add sync unit test for ignored files 2017-08-25 07:38:33 +12:00
Adam Reis
dae627324e Update readme, fix line length 2017-08-25 07:34:56 +12:00
Kodie Grantham
508ad44b09 Added ignore option (#27)
Ability to ignore files, since Glob doesn't take negated globs anymore since version 4 or 5.
2017-08-25 07:28:43 +12:00
Adam Reis
359aa4b8e6 2.5.4 v2.5.4 2017-08-15 14:19:34 +12:00
Adam Reis
42236ba44e Clarify usage for replacing multiple occurrences 2017-08-15 14:19:14 +12:00
Adam Reis
270549f5ce 2.5.3 v2.5.3 2017-07-04 09:00:15 +12:00
Adam Reis
bb3ddb97d2 Update dependencies 2017-07-04 09:00:04 +12:00
Adam Reis
abdc84bb1f 2.5.2 v2.5.2 2017-06-22 09:36:55 +12:00
Adam Reis
ac3afc21ad [bump] Update dependencies 2017-06-22 09:36:32 +12:00
Adam Reis
adb5fb1d80 2.5.1 v2.5.1 2017-06-22 09:32:02 +12:00