Registry / devops / east-migration-duration-logger

east-migration-duration-logger

JSON →
library1.1.0jsnpmunverified

An East plugin that logs the execution duration of every database migration action (migrate/rollback). Current stable version is 1.1.0, with no active new releases. It is a lightweight, zero-config extension of the East migration framework, differentiating from manual timing wrappers by automatically hooking into East's lifecycle. The release cadence is low; it's feature-complete for its purpose. Peer dependency requires East >=1.2.0-rc.1 <3.0.0 and Node >=4.0.0. No TypeScript types are shipped.

npm install east-migration-duration-logger
INSTALL
IMPORT
SIG · EAST-MIGRATION-DUR
E
east-migration-duration-logger
devopsjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
require('east-migration-duration-logger')
import eastMigrationDurationLogger from 'east-migration-duration-logger'
This package is used as a plugin via East config, not typically imported in user code. If imported, use CommonJS require(). ESM import may not work due to lack of 'type': 'module' or export map.
plugin
// Add to .eastrc.json: "plugins": ["east-migration-duration-logger"]
plugins: [require('east-migration-duration-logger')]
Plugins in East config are specified by package name string, not by require().
east-migration-duration-logger
npm install east-migration-duration-logger
npm install --save-dev east-migration-duration-logger
It can be a regular dependency or devDependency; the plugin is loaded at runtime by East.

Shows how to install and configure the plugin to log migration durations using East.

// Ensure east is installed globally or as a dependency // Install this plugin: // npm install east-migration-duration-logger // Add to your .eastrc file (e.g., .eastrc.json): { "plugins": ["east-migration-duration-logger"] } // Then run: // npx east migrate // Output will show duration for each migration action.
Debug
Known issues
breakingPeer dependency range east >=1.2.0-rc.1 <3.0.0 may not be compatible with East v3+.
fix
Check East version; if using East v3, this plugin may not work. Consider seeking an updated fork.
affects: >=1.2.0-rc.1 <3.0.0
deprecatedNode engine requirement '>=4.0.0' is outdated; modern Node versions (>=12) are common.
fix
No action needed, but consider upgrading to a newer plugin if available.
affects: >=1.0.0
gotchaPlugin is loaded by East at runtime; if the package is not installed where East runs, it will fail silently or throw an error.
fix
Ensure the package is installed in the same node_modules context as East.
affects: all
gotchaThe plugin only logs duration for migrate and rollback actions; other actions (e.g., create) are not timed.
fix
No fix; it's by design.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'east-migration-duration-logger'
Package not installed or not in the correct node_modules path.
fix
Run 'npm install east-migration-duration-logger' in your project directory.
east-migration-duration-logger: plugin is not a function (or similar)
East expects the plugin to export a function; older version may not meet requirements.
fix
Ensure you are using east-migration-duration-logger version compatible with your East version.
Invalid plugin configuration: east-migration-duration-logger must be a string
Plugins array in .eastrc contains a non-string entry (e.g., object instead of package name).
fix
Use a string: "plugins": ["east-migration-duration-logger"]
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
eastrequiredPeer dependency: this is a plugin for the East migration tool.
Agent activity
6 hits · last 30 days
node
6
Resources
east-migration-duration-logger — npm install east-migration-duration-logger · libregistry