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.

devops
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.

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.

require('east-migration-duration-logger')

Plugins in East config are specified by package name string, not by require().

// Add to .eastrc.json: "plugins": ["east-migration-duration-logger"]

It can be a regular dependency or devDependency; the plugin is loaded at runtime by East.

npm install east-migration-duration-logger

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 footguns
breakingPeer dependency range east >=1.2.0-rc.1 <3.0.0 may not be compatible with East v3+.
deprecatedNode engine requirement '>=4.0.0' is outdated; modern Node versions (>=12) are common.
gotchaPlugin is loaded by East at runtime; if the package is not installed where East runs, it will fail silently or throw an error.
gotchaThe plugin only logs duration for migrate and rollback actions; other actions (e.g., create) are not timed.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
7 hits · last 30 days
gptbot
3
ahrefsbot
1
Resources