Safety first! An utility to add the version string to your client-side NPM module without exposing package.json.
MIT License
Bot releases are visible (Hide)
🎁 New features:
--backtick
/ useBackticks
to generate with backticks instead of single quotes. Thanks @darylwright--force
to rewrite target file even when it might be unsafe. Thanks @alexandercerutti--property
/ properties
to pick additional properties from package.json. Thanks @dattran1999 and @alexandercerutti--template
/ template
and --template-engine
/ templateEngine
to generate with a custom template.--esm
to alias --es6
flag that might be deprecated in future.useEsmSyntax
to alias useEs6Syntax
that might be deprecated in future.🐛 Bugfixes:
📃 Documentation changes:
npm version
command. Thanks @sanjaypojo⚙️ DevOps changes:
Published by axelpale over 2 years ago
Changes:
Published by axelpale over 2 years ago
An almost-breaking change that is solved by running genversion at least once after the upgrade:
generated by genversion
to Generated by genversion.
to better meet comment-styling requirements of some style guides.--check-only
flag then you will see the flagged command to exit with code 2
until you run genversion without the flag. Just run genversion without the flag at least once after the upgrade to make --check-only
behave as expected.New features:
.
dot. Thanks @MourulaMinor changes:
--check-only
flagPublished by axelpale almost 3 years ago
Bug fix that improves Windows support:
\r
) before version file comparison. See issue #15 for details.Published by axelpale over 3 years ago
Minor changes:
Published by axelpale over 3 years ago
Breaking changes:
New features:
-d, --double
or via API with useDoubleQuotes: true
.'use strict'
header by setting flag -u, --strict
or via API with useStrict: true
.Other changes:
--help
outputmkdirp
in favour of the standard fs.mkdir
with recursive:true
.Published by axelpale over 3 years ago
New features:
genversion.check(...)
now also detects if the version module should be updated. The detection result is provided in the callback as the fourth argument. Valid detection requires you to provide options object that is identical to the options used in the generation. See API docs for details.--check-only
. Thanks to @caligo-erik for this.Other changes:
firstline
dependency as unnecessarystandard
v16 style
const
or let
instead of var
function