5.0.0 (2019-11-20)
- export ExecutionError (9b0c23b)
- implement retry of git commands (a67956a)
- provide more diagnosis when an ExecutionError occurs (2eaa90b)
- versync now uses execFile rather than exec to launch children (b30783c)
- the switch from exec to execFile could in theory cause some usages of versync that previously worked to now fail. I'd expect the likelihood of such occurence to be extremely small because attempts to take advantage of the shell interpretation provided by exec would most likely fail in other ways. (E.g. putting quotes in a version number would make semver checks fail.)
- we drop support for Node versions earlier than 8.
- the special handling of bower.json and component.json has been
removed. If you still need to maintain these files, you can explicitly list them
in
versionedSources
.
4.1.0 (2018-08-10)
- correctly check whether the
tag
flag is used withoutbump
(cead876)
- add support for running
git add
by itself (775358b)
- The special treatment of
bower.json
andcomponent.json
is formally deprecated. See this issue.
4.0.0 (2018-06-08)
- convert argument parsing from optimist to argparse (51fb56e)
- drop object spreads (f42627b)
- TS declarations and jsdoc documentation needed updating (8f63e6f)
- update tests and error messages (db4d656)
- drop support for versionedSources as comma-separated list (da0490c)
- reduce -t / --tag to a flag (606166a)
- add a missing breaking change (ddb2dc1)
- add support for
-b sync
(b8db171)
-
The API was changed to remove the
verify
flag fromRunnerOptions
. Previously you could use it to specify a run that would not verify anything by setting the flag tofalse
. It would have an effect only when not bumping and amounted to tell versync to do nothing at all, which is not terribly useful. Removing the flag simplifies the code. Now calling run will always result in versync performing at least a verification of the source. -
setting
versionedSources
as a comma-separated list of file names is no longer supported. That was deprecated in version 3.0.0. -
This change required changes to the API. If you only used
Runner
and calledrun
on it, there should be no change that affects you. If you used the other methods ofRunner
directly, or used the utility functions that are exported by versync, you may need to update your code. The changes are:-
VersionInfo
now includes asource
field which is the file that contains the version number. This is not "breaking" but may be useful for you. -
The exported function
verify
:-
It no longer takes an
expectedVersion
parameter. Instead of checking that the files have an expected version, it checks that the files are consistent. -
It used to return an array of strings with the names of the problematic source files. Now it returns an object whose
consistent
field indicates whether the version numbers are consistent. Theversions
field is an array ofVersionInfo
elements.
-
-
-
the
-t
(--tag
) option used do and be used exactly like the-b
option but added a commit-and-tag to the operation. Soversync -b major
would bump the major version. Andversync -t major
would bump the major and commit-and-tag. The-t
option is now a plain on/off flag. Where you used to doversync -t major
, you now have to doversync -b major -t
to turn on the commit-and-tag operation in addition to the version bump.
====
3.1.1:
-
Updated the
typescript
dependency to allow TypeScript 2.x. -
Added
index.d.ts
so that it can be used from TypeScript code.
3.1.0:
-
typescript
was erroneously included in thedependencies
list inpackage.json
. It has been removed from the list. It was already inoptionalDependencies
, which is where it belongs because projects not usingtypescript
can omit it. -
API: The
options
passed toRunner
now accept anonMessage
option which can be a function or an array of functions. The functions are passed to theonMessage
method at construction time. Where previously one would have done this:const runner = new versync.Runner({ verify: true }); runner.onMessage(console.log); return runner.run();
It is now possible to do this:
const runner = new versync.Runner({ verify: true, onMessage: console.log, } return runner.run();
-
API: versync now exports a
run
function which takes the same parameters asRunner
. Where previously one would have done this:const runner = new versync.Runner({ verify: true, onMessage: console.log, } return runner.run();
It is now possible to do:
return versync.run({ verify: true, onMessage: console.log, }
3.0.0:
-
Support for ES6.
-
Now offers a documented API.
-
Supports setting
versionedSources
as an array. -
Deprecation: Setting
versionedSources
as a comma-separated list is deprecated and support for it will be removed in a future version (not before 4.x). With the addition of the support ofversionedSources
as an array, there's no reason to support this syntax.
2.0.0:
-
Fork from
semver-sync
. -
Dropped support for Node 0.6-0.12.
-
Added formal testing on latest versions of Node.
-
Support for TypeScript.