Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@reiniiriarios/newver
Advanced tools
A silly little script to help quickly update a version in package files, then commit, tag, and push.
A silly little script to help quickly update a version in package files, then commit, tag, and push. Useful when, like me, you use tagged releases and push versions manually and frequently.
newver <version> [options]
newver 1.2.3
newver 1.2.3 -c
newver 1.2.3 --commit
newver 1.2.3 --commit=true --tag=false --push=true --prefix="chore(release)"
newver 1.2.3 -cptx "chore(release)"
newver 1.2.3 --files=path/to/file.ext --files=path/to/another/file.ext
{
"scripts": {
"bump": "newver --commit=true"
}
}
npm run bump 1.2.3
For option details:
newver --help
$ newver --commit=false 1.2.3
Updating version to 1.2.3
▸ package.json updated
▸ package-lock.json updated
$ newver --commit=false 1.0.0
Updating version to 1.0.0
▸ Version 1.0.0 is older than version 1.2.3 in package.json. Proceed? (Y/n) y
▸ package.json updated
▸ Version 1.0.0 is older than version 1.2.3 in package-lock.json. Proceed? (Y/n) y
▸ package-lock.json updated
#!/usr/bin/env node
import newver from "newver";
newver(process.args.pop(), {
quiet: true,
commit: true,
prefix: "chore(release)",
files: ["package.json", "package-lock.json", "path/to/another/file.json"],
});
.json
.yaml
/ .yml
.toml
Other formats are find-and-replace.
These will be looked for automatically in the project's root directory. Other files may be specified manually.
FAQs
A silly little script to help quickly update a version in package files, then commit, tag, and push.
The npm package @reiniiriarios/newver receives a total of 0 weekly downloads. As such, @reiniiriarios/newver popularity was classified as not popular.
We found that @reiniiriarios/newver demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.