We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 901041c commit 7be7c0bCopy full SHA for 7be7c0b
packages/myst-migrate/src/index.ts
@@ -9,6 +9,9 @@ export { MIGRATIONS } from './migrations.js';
9
* @param options - to: desired target version, log: Logger
10
*/
11
export async function migrate(src: IFile, opts?: Options): Promise<IFile> {
12
+ if (opts?.to === undefined) {
13
+ opts?.log?.warn(`Calling migrate with no version is deprecated and will be removed in future.`);
14
+ }
15
const to = opts?.to ?? MIGRATIONS.length;
16
let currentVersion = src.version || 0;
17
0 commit comments