getMigrationPath
HardKAS SDK / artifacts/src / getMigrationPath
Function: getMigrationPath()
getMigrationPath(
fromVersion,toVersion): readonlyMigrationStep[]
Defined in: packages/artifacts/src/migration.ts:196
Resolves the ordered list of migration steps needed to go from
fromVersion to toVersion.
Uses a simple BFS/chain walk through the migration registry. Returns an empty array if no migration path exists or if the artifact is already at the target version.
Parameters
fromVersion
string
The current artifact version
toVersion
string
The desired target version
Returns
readonly MigrationStep[]
Ordered array of migration steps, or empty if no path or already current