0.0.3 • Published 7 months ago

@trap_stevo/version-wave v0.0.3

Weekly downloads
-
License
See License in LI...
Repository
-
Last release
7 months ago

VersionWave

Achieve legendary control over package updates in Node.js applications with VersionWave. Designed with precision and automation, VersionWave ensures seamless stability, security, and integration for every update, keeping your projects cutting-edge and ready to perform.

Features

  • Automated Updates on Your Schedule: Configure updates to run daily, weekly, monthly, or at specific times to maintain peak performance without interrupting workflows.

  • Comprehensive Backup and Recovery: Captures full, timestamped backups before each update, enabling instant rollbacks and maintaining project stability.

  • Customizable Validation and Testing: Run pre- and post-update scripts, custom tests, and checksum validation to ensure each update aligns with your standards.

  • Effortless Restarts and Scheduling: Automatically restart your project with built-in commands or custom scripts, seamlessly integrating updates when it’s most convenient.

  • Flexible Logging and Notifications: Track update success, validate changes, and troubleshoot instantly with customizable logs or real-time notifications.

Installation

Install VersionWave with NPM:

npm install versionwave

Usage

VersionWave provides flexible configuration options, allowing you to customize the update flow to fit your project needs. Here’s a quick start:

const { cascadeVersion } = require('versionwave');

cascadeVersion({
    autoRestart: true,
    versionRange: "1.2.3",  // Specify version or use "latest" for the latest release
    scheduleUpdate: "daily",
    startupScript: "node server.js",
});

Configuration Options

OptionDescriptionDefault
autoRestartAutomatically restart the project after updates.false
versionRangeSpecify a version or range (e.g., "1.0.0", "^2.0.0", or "latest" for the latest version)."latest"
preUpdateScriptScript to run before updating.null
postUpdateScriptScript to run after updating.null
backupDirectoryDirectory for storing backup files."./backups"
notifyOnlyNotify without applying updates.false
customTestFunctionCustom tests to validate after update.null
scheduleUpdateSchedule options: "daily", "weekly", "monthly", or cron expression.null
logCallbackCustom logging function for update notifications.null
maxRetriesMaximum retries for failed updates.3
rollbackOnFailureRoll back if the update fails.true
checksumValidationValidate downloaded packages using checksum verification.false
startupScriptCommand to restart the project after updates (default "npm start")."npm start"

Author

Steven Compton

License

See License in LICENSE.md


With VersionWave, every version update flows like a wave, ensuring your project maintains peak performance and stability. Embrace the future of automated package management in Node.js, and let VersionWave handle the updates while you focus on what you do best.

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

8 months ago

0.0.0

8 months ago