alp-migrations 11.0.1 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAM/C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEzD,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,UAAU,CAAC;IAChB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAA8B,OAAO,CAAC,EACpC,GAAG,EACH,iBAAiB,EACjB,MAAmB,EACnB,OAAqC,GACtC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAiEzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AAIvC,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAM/C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEzD,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,UAAU,CAAC;IAChB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAA8B,OAAO,CAAC,EACpC,GAAG,EACH,iBAAiB,EACjB,MAAmB,EACnB,OAAqC,GACtC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAiEzB"}
@@ -64,7 +64,7 @@ async function migrate({
64
64
  if (currentVersion && semver.lte(version, currentVersion)) return;
65
65
  migrations.push({ version, fileName });
66
66
  });
67
- migrations = migrations.sort(
67
+ migrations = migrations.toSorted(
68
68
  (a, b) => semver.gt(a.version, b.version) ? 1 : -1
69
69
  );
70
70
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"index-node.mjs","sources":["../src/readRecursiveDirectory.ts","../src/Manager.ts","../src/index.ts"],"sourcesContent":["import type { Stats } from \"node:fs\";\nimport { stat as fsStat, readdir } from \"node:fs/promises\";\n\nexport interface CallbackParam {\n filename: string;\n basedir: string;\n path: string;\n stat: Stats;\n}\n\nexport default async function readRecursiveDirectory(\n directory: string,\n callback: (param: CallbackParam) => Promise<void> | void,\n): Promise<void> {\n const files = await readdir(directory);\n\n await Promise.all(\n files.map(async (file): Promise<void> => {\n const path = `${directory}/${file}`;\n const stat = await fsStat(path);\n\n if (stat.isDirectory()) {\n await readRecursiveDirectory(path, callback);\n return;\n }\n await callback({\n filename: file,\n basedir: directory,\n path,\n stat,\n });\n }),\n );\n}\n","import type { MongoBaseModel, MongoInsertType, MongoStore } from \"liwi-mongo\";\n\nexport interface Migration extends MongoBaseModel {\n version: string;\n fileName: string;\n}\n\nexport default class MigrationsManager {\n store: MongoStore<Migration>;\n\n constructor(store: MongoStore<Migration>) {\n this.store = store;\n }\n\n findLastVersion(): Promise<string | undefined> {\n return this.store.findOne({}, { created: -1 }).then((row) => row?.version);\n }\n\n addMigrationDone(migration: MongoInsertType<Migration>): Promise<Migration> {\n return this.store.insertOne(migration);\n }\n}\n","/* eslint-disable unicorn/no-process-exit */\nimport type AlpNodeApp from \"alp-node\";\nimport { Logger } from \"nightingale-logger\";\nimport semver from \"semver\";\nimport type MigrationsManager from \"./Manager\";\nimport type { CallbackParam } from \"./readRecursiveDirectory\";\nimport readRecursiveDirectory from \"./readRecursiveDirectory\";\n\nconst logger = new Logger(\"alp:migrations\");\n\nexport { default as MigrationsManager } from \"./Manager\";\n\nexport interface Options {\n app: AlpNodeApp;\n migrationsManager: MigrationsManager;\n config?: AlpNodeApp[\"config\"];\n dirname?: string;\n}\n\nexport default async function migrate({\n app,\n migrationsManager,\n config = app.config,\n dirname = `${app.dirname}/migrations`,\n}: Options): Promise<void> {\n const unhandledRejectionHandler = (reason: unknown): void => {\n logger.error(\"unhandledRejection\", { err: reason });\n\n process.exit(1);\n };\n process.on(\"unhandledRejection\", unhandledRejectionHandler);\n\n const packageVersion = config.packageConfig.version as string;\n const currentVersion = await migrationsManager.findLastVersion();\n\n let migrations: { version: string; fileName: string }[] = [];\n\n logger.info(\"migrate\", { packageVersion, currentVersion });\n\n await readRecursiveDirectory(dirname, (res: CallbackParam) => {\n const fileName = res.path.slice(dirname.length + 1);\n\n if (!fileName.endsWith(\".js\")) {\n return;\n }\n\n const versionExecResult = /([\\d.]+)(?:_.*|\\.js)$/.exec(fileName);\n\n if (!versionExecResult?.[1]) {\n return;\n }\n\n const version: string = versionExecResult[1];\n\n if (currentVersion && semver.lte(version, currentVersion)) return;\n\n migrations.push({ version, fileName });\n });\n\n migrations = migrations.sort((a, b) =>\n semver.gt(a.version, b.version) ? 1 : -1,\n );\n\n try {\n for (const migration of migrations) {\n logger.info(`Migration to ${migration.fileName}`);\n try {\n const migrateFn: unknown = await import(\n `${dirname}/${migration.fileName}`\n );\n await (migrateFn as () => Promise<void>)();\n } catch (error) {\n logger.error(`Migration to ${migration.version} Failed !`);\n throw error;\n }\n\n logger.success(`Migration to ${migration.fileName} done !`);\n\n // only add to db if migration version <= package version\n if (semver.lte(migration.version, packageVersion)) {\n await migrationsManager.addMigrationDone(migration);\n }\n }\n } catch (error: any) {\n logger.error(error as Error);\n process.exit(1);\n }\n\n process.removeListener(\"unhandledRejection\", unhandledRejectionHandler);\n}\n"],"names":["stat","fsStat"],"mappings":";;;;AAUA,eAA8B,sBAAA,CAC5B,WACA,QAAA,EACe;AACf,EAAA,MAAM,KAAA,GAAQ,MAAM,OAAA,CAAQ,SAAS,CAAA;AAErC,EAAA,MAAM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AAA,IAAI;AACF,IAAA,KAAA,MAAW,aAAa,UAAA,EAAY;AAClC,MAAA,MAAA,CAAO,IAAA,CAAK,CAAA,aAAA,EAAgB,SAAA,CAAU,QAAQ,CAAA,CAAE,CAAA;AAChD,MAAA,IAAI;AACF,QAAA,MAAM,YAAqB,MAAM,OAC/B,GAAG,OAAO,CAAA,CAAA,EAAI,UAAU,QAAQ,CAAA,CAAA,CAAA;AAElC,QAAA,MAAO,SAAA,EAAkC;AAAA,eAClC,KAAA,EAAO;AACd,QAAA,MAAA,CAAO,KAAA,CAAM,CAAA,aAAA,EAAgB,SAAA,CAAU,OAAO,CAAA,SAAA,CAAW,CAAA;AACzD,QAAA,MAAM,KAAA;AAAA;AAGR,MAAA,MAAA,CAAO,OAAA,CAAQ,CAAA,aAAA,EAAgB,SAAA,CAAU,QAAQ,CAAA,OAAA,CAAS,CAAA;AAG1D,MAAA,IAAI,MAAA,CAAO,GAAA,CAAI,SAAA,CAAU,OAAA,EAAS,cAAc,CAAA,EAAG;AACjD,QAAA,MAAM,iBAAA,CAAkB,iBAAiB,SAAS,CAAA;AAAA;AACpD;AACF,WACO,KAAA,EAAY;AACnB,IAAA,MAAA,CAAO,MAAM,KAAc,CAAA;AAC3B,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA;AAGhB,EAAA,OAAA,CAAQ,cAAA,CAAe,sBAAsB,yBAAyB,CAAA;AACxE;;;;"}
1
+ {"version":3,"file":"index-node.mjs","sources":["../src/readRecursiveDirectory.ts","../src/Manager.ts","../src/index.ts"],"sourcesContent":["import type { Stats } from \"node:fs\";\nimport { stat as fsStat, readdir } from \"node:fs/promises\";\n\nexport interface CallbackParam {\n filename: string;\n basedir: string;\n path: string;\n stat: Stats;\n}\n\nexport default async function readRecursiveDirectory(\n directory: string,\n callback: (param: CallbackParam) => Promise<void> | void,\n): Promise<void> {\n const files = await readdir(directory);\n\n await Promise.all(\n files.map(async (file): Promise<void> => {\n const path = `${directory}/${file}`;\n const stat = await fsStat(path);\n\n if (stat.isDirectory()) {\n await readRecursiveDirectory(path, callback);\n return;\n }\n await callback({\n filename: file,\n basedir: directory,\n path,\n stat,\n });\n }),\n );\n}\n","import type { MongoBaseModel, MongoInsertType, MongoStore } from \"liwi-mongo\";\n\nexport interface Migration extends MongoBaseModel {\n version: string;\n fileName: string;\n}\n\nexport default class MigrationsManager {\n store: MongoStore<Migration>;\n\n constructor(store: MongoStore<Migration>) {\n this.store = store;\n }\n\n findLastVersion(): Promise<string | undefined> {\n return this.store.findOne({}, { created: -1 }).then((row) => row?.version);\n }\n\n addMigrationDone(migration: MongoInsertType<Migration>): Promise<Migration> {\n return this.store.insertOne(migration);\n }\n}\n","/* eslint-disable unicorn/no-process-exit */\nimport type AlpNodeApp from \"alp-node\";\n// eslint-disable-next-line import-x/no-unresolved\nimport { Logger } from \"nightingale-logger\";\nimport semver from \"semver\";\nimport type MigrationsManager from \"./Manager\";\nimport type { CallbackParam } from \"./readRecursiveDirectory\";\nimport readRecursiveDirectory from \"./readRecursiveDirectory\";\n\nconst logger = new Logger(\"alp:migrations\");\n\nexport { default as MigrationsManager } from \"./Manager\";\n\nexport interface Options {\n app: AlpNodeApp;\n migrationsManager: MigrationsManager;\n config?: AlpNodeApp[\"config\"];\n dirname?: string;\n}\n\nexport default async function migrate({\n app,\n migrationsManager,\n config = app.config,\n dirname = `${app.dirname}/migrations`,\n}: Options): Promise<void> {\n const unhandledRejectionHandler = (reason: unknown): void => {\n logger.error(\"unhandledRejection\", { err: reason });\n\n process.exit(1);\n };\n process.on(\"unhandledRejection\", unhandledRejectionHandler);\n\n const packageVersion = config.packageConfig.version as string;\n const currentVersion = await migrationsManager.findLastVersion();\n\n let migrations: { version: string; fileName: string }[] = [];\n\n logger.info(\"migrate\", { packageVersion, currentVersion });\n\n await readRecursiveDirectory(dirname, (res: CallbackParam) => {\n const fileName = res.path.slice(dirname.length + 1);\n\n if (!fileName.endsWith(\".js\")) {\n return;\n }\n\n const versionExecResult = /([\\d.]+)(?:_.*|\\.js)$/.exec(fileName);\n\n if (!versionExecResult?.[1]) {\n return;\n }\n\n const version: string = versionExecResult[1];\n\n if (currentVersion && semver.lte(version, currentVersion)) return;\n\n migrations.push({ version, fileName });\n });\n\n migrations = migrations.toSorted((a, b) =>\n semver.gt(a.version, b.version) ? 1 : -1,\n );\n\n try {\n for (const migration of migrations) {\n logger.info(`Migration to ${migration.fileName}`);\n try {\n const migrateFn: unknown = await import(\n `${dirname}/${migration.fileName}`\n );\n await (migrateFn as () => Promise<void>)();\n } catch (error) {\n logger.error(`Migration to ${migration.version} Failed !`);\n throw error;\n }\n\n logger.success(`Migration to ${migration.fileName} done !`);\n\n // only add to db if migration version <= package version\n if (semver.lte(migration.version, packageVersion)) {\n await migrationsManager.addMigrationDone(migration);\n }\n }\n } catch (error: any) {\n logger.error(error as Error);\n process.exit(1);\n }\n\n process.removeListener(\"unhandledRejection\", unhandledRejectionHandler);\n}\n"],"names":["stat","fsStat"],"mappings":";;;;AAUA,eAA8B,sBAAA,CAC5B,WACA,QAAA,EACe;AACf,EAAA,MAAM,KAAA,GAAQ,MAAM,OAAA,CAAQ,SAAS,CAAA;AAErC,EAAA,MAAM,OAAA,CAAQ,GAAA;AAAA,IACZ,KAAA,CAAM,GAAA,CAAI,OAAO,IAAA,KAAwB;AACvC,MAAA,MAAM,IAAA,GAAO,CAAA,EAAG,SAAS,CAAA,CAAA,EAAI,IAAI,CAAA,CAAA;AACjC,MAAA,MAAMA,MAAA,GAAO,MAAMC,IAAA,CAAO,IAAI,CAAA;AAE9B,MAAA,IAAID,MAAA,CAAK,aAAY,EAAG;AACtB,QAAA,MAAM,sBAAA,CAAuB,MAAM,QAAQ,CAAA;AAC3C,QAAA;AAAA,MACF;AACA,MAAA,MAAM,QAAA,CAAS;AAAA,QACb,QAAA,EAAU,IAAA;AAAA,QACV,OAAA,EAAS,SAAA;AAAA,QACT,IAAA;AAAA,cACAA;AAAA,OACD,CAAA;AAAA,IACH,CAAC;AAAA,GACH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AAEA,MAAA,MAAA,CAAO,OAAA,CAAQ,CAAA,aAAA,EAAgB,SAAA,CAAU,QAAQ,CAAA,OAAA,CAAS,CAAA;AAG1D,MAAA,IAAI,MAAA,CAAO,GAAA,CAAI,SAAA,CAAU,OAAA,EAAS,cAAc,CAAA,EAAG;AACjD,QAAA,MAAM,iBAAA,CAAkB,iBAAiB,SAAS,CAAA;AAAA,MACpD;AAAA,IACF;AAAA,EACF,SAAS,KAAA,EAAY;AACnB,IAAA,MAAA,CAAO,MAAM,KAAc,CAAA;AAC3B,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AAEA,EAAA,OAAA,CAAQ,cAAA,CAAe,sBAAsB,yBAAyB,CAAA;AACxE;;;;"}
package/package.json CHANGED
@@ -1,20 +1,24 @@
1
1
  {
2
2
  "name": "alp-migrations",
3
- "version": "11.0.1",
3
+ "version": "12.1.0",
4
4
  "description": "migrations scripts in alp",
5
5
  "keywords": [],
6
- "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
6
+ "homepage": "https://github.com/christophehurpeau/alp",
7
+ "bugs": {
8
+ "url": "https://github.com/christophehurpeau/alp/issues"
9
+ },
7
10
  "license": "ISC",
11
+ "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
8
12
  "repository": {
9
13
  "type": "git",
10
14
  "url": "https://github.com/christophehurpeau/alp.git",
11
15
  "directory": "packages/alp-migrations"
12
16
  },
13
- "homepage": "https://github.com/christophehurpeau/alp",
17
+ "files": [
18
+ "src",
19
+ "dist"
20
+ ],
14
21
  "type": "module",
15
- "engines": {
16
- "node": ">=22.18.0"
17
- },
18
22
  "sideEffects": false,
19
23
  "main": "./dist/index-node.mjs",
20
24
  "types": "./dist/definitions/index.d.ts",
@@ -27,18 +31,25 @@
27
31
  }
28
32
  }
29
33
  },
30
- "files": [
31
- "src",
32
- "dist"
33
- ],
34
- "scripts": {
35
- "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
36
- "build:definitions": "tsc -p tsconfig.json",
37
- "clean": "yarn clean:build",
38
- "clean:build": "pob-esbuild-clean-out dist",
39
- "lint": "yarn run lint:eslint",
40
- "lint:eslint": "yarn ../.. run eslint --quiet packages/alp-migrations",
41
- "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
34
+ "dependencies": {
35
+ "alp-node": "10.1.0",
36
+ "nightingale-logger": "^18.2.0",
37
+ "semver": "^7.8.5"
38
+ },
39
+ "devDependencies": {
40
+ "@pob/rollup-esbuild": "9.1.1",
41
+ "@types/node": "24.10.1",
42
+ "@types/semver": "7.7.1",
43
+ "liwi-mongo": "12.0.0",
44
+ "router-segments": "12.0.0",
45
+ "typescript": "6.0.3"
46
+ },
47
+ "peerDependencies": {
48
+ "liwi-mongo": "^12.0.0",
49
+ "router-segments": "^11.0.0 || ^12.0.0"
50
+ },
51
+ "engines": {
52
+ "node": ">=22.18.0"
42
53
  },
43
54
  "pob": {
44
55
  "bundler": "rollup-esbuild",
@@ -54,22 +65,14 @@
54
65
  ],
55
66
  "typescript": true
56
67
  },
57
- "prettier": "@pob/root/prettier-config",
58
- "peerDependencies": {
59
- "liwi-mongo": "^12.0.0",
60
- "router-segments": "^11.0.0"
61
- },
62
- "dependencies": {
63
- "alp-node": "9.0.1",
64
- "nightingale-logger": "^16.0.0",
65
- "semver": "^7.3.5"
66
- },
67
- "devDependencies": {
68
- "@pob/rollup-esbuild": "6.7.0",
69
- "@types/node": "24.3.0",
70
- "@types/semver": "7.7.1",
71
- "liwi-mongo": "12.0.0",
72
- "router-segments": "11.0.0",
73
- "typescript": "5.9.3"
68
+ "scripts": {
69
+ "build": "yarn run clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
70
+ "build:definitions": "tsc -p tsconfig.json",
71
+ "clean": "yarn clean:build",
72
+ "clean:build": "pob-esbuild-clean-out dist",
73
+ "lint": "yarn run lint:eslint",
74
+ "lint:eslint": "yarn '../..' run eslint --quiet 'packages/alp-migrations'",
75
+ "tsc": "tsc",
76
+ "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
74
77
  }
75
78
  }
package/src/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable unicorn/no-process-exit */
2
2
  import type AlpNodeApp from "alp-node";
3
+ // eslint-disable-next-line import-x/no-unresolved
3
4
  import { Logger } from "nightingale-logger";
4
5
  import semver from "semver";
5
6
  import type MigrationsManager from "./Manager";
@@ -57,7 +58,7 @@ export default async function migrate({
57
58
  migrations.push({ version, fileName });
58
59
  });
59
60
 
60
- migrations = migrations.sort((a, b) =>
61
+ migrations = migrations.toSorted((a, b) =>
61
62
  semver.gt(a.version, b.version) ? 1 : -1,
62
63
  );
63
64
 
package/CHANGELOG.md DELETED
@@ -1,695 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [11.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@11.0.0...alp-migrations@11.0.1) (2025-11-12)
7
-
8
- Version bump for dependency: alp-node
9
-
10
-
11
- ## [11.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@10.0.0...alp-migrations@11.0.0) (2025-10-27)
12
-
13
- ### ⚠ BREAKING CHANGES
14
-
15
- * drop node 20 and build using esbuild
16
-
17
- ### Features
18
-
19
- * drop node 20 and build using esbuild ([812c4c1](https://github.com/christophehurpeau/alp/commit/812c4c1b0ad19984e389af4382a8d1e60643e4f1))
20
- * update nightingale packages to version 16 across multiple packages ([2f59b01](https://github.com/christophehurpeau/alp/commit/2f59b01c9c407da7c59c608a12d716058fff9c70))
21
-
22
- Version bump for dependency: alp-node
23
-
24
-
25
- ## [10.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@9.0.0...alp-migrations@10.0.0) (2025-08-02)
26
-
27
- ### ⚠ BREAKING CHANGES
28
-
29
- * update dependencies and drop node 20
30
- * update dev dependencies, replace parse-json-object-as-map with native JSON.parse, update koa
31
- * update liwi-mongo
32
- * update router-segments
33
-
34
- ### Features
35
-
36
- * update dependencies and drop node 20 ([fc5b322](https://github.com/christophehurpeau/alp/commit/fc5b322e076e9a3c7c4a235d16734b89fd85e211))
37
- * update dev dependencies, replace parse-json-object-as-map with native JSON.parse, update koa ([5ae7723](https://github.com/christophehurpeau/alp/commit/5ae77238cafc573fe72c5eb63b103802b8b2e537))
38
- * update liwi-mongo ([55e04ba](https://github.com/christophehurpeau/alp/commit/55e04baac1ccc46b83880dd03076b0ab0d705ae2))
39
- * update router-segments ([07ff52b](https://github.com/christophehurpeau/alp/commit/07ff52b3f851204256509056d0a4b25e1f630e5b))
40
-
41
- Version bump for dependency: alp-node
42
-
43
-
44
- ## [9.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@8.2.1...alp-migrations@9.0.0) (2024-01-06)
45
-
46
-
47
- ### ⚠ BREAKING CHANGES
48
-
49
- * merge to alp-node to improve maintenability, remove alp-types
50
-
51
- ### Features
52
-
53
- * merge to alp-node to improve maintenability, remove alp-types ([ead9a2f](https://github.com/christophehurpeau/alp/commit/ead9a2fd1bcbedce0be29ea0e444c5cead99c64d))
54
-
55
- Version bump for dependency: alp-node
56
-
57
-
58
- ## [8.2.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@8.2.0...alp-migrations@8.2.1) (2024-01-06)
59
-
60
- Note: no notable changes
61
-
62
-
63
-
64
-
65
- ## [8.2.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@8.1.0...alp-migrations@8.2.0) (2024-01-06)
66
-
67
-
68
- ### Features
69
-
70
- * **deps:** update dependency liwi-mongo to v11 ([#465](https://github.com/christophehurpeau/alp/issues/465)) ([f8c4804](https://github.com/christophehurpeau/alp/commit/f8c4804621cf179e4155a18121f5a8d4f144b11e))
71
-
72
-
73
-
74
-
75
- ## [8.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@8.0.0...alp-migrations@8.1.0) (2023-12-25)
76
-
77
-
78
- ### Features
79
-
80
- * update dependencies ([ddc8f92](https://github.com/christophehurpeau/alp/commit/ddc8f92cccacf6ed2baabf8555f0b37fe281ce9d))
81
-
82
- Version bump for dependency: alp-types
83
-
84
-
85
- ## [8.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.3.0...alp-migrations@8.0.0) (2023-07-29)
86
-
87
-
88
- ### ⚠ BREAKING CHANGES
89
-
90
- * drop node 16
91
-
92
- ### Code Refactoring
93
-
94
- * update to node 18 ([26280d6](https://github.com/christophehurpeau/alp/commit/26280d638aba1bd46fa42ad5a571b9626f1fff6d))
95
-
96
-
97
-
98
- ## [7.3.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.2.3...alp-migrations@7.3.0) (2023-03-19)
99
-
100
-
101
- ### Features
102
-
103
- * update dev dependencies ([9d7e24f](https://github.com/christophehurpeau/alp/commit/9d7e24f8e504d47feae64ca618dc2b3a69babc38))
104
-
105
-
106
-
107
- ## [7.2.3](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.2.2...alp-migrations@7.2.3) (2023-02-18)
108
-
109
- **Note:** Version bump only for package alp-migrations
110
-
111
-
112
-
113
-
114
-
115
- ## [7.2.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.2.1...alp-migrations@7.2.2) (2023-02-13)
116
-
117
- **Note:** Version bump only for package alp-migrations
118
-
119
-
120
-
121
-
122
-
123
- ## [7.2.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.2.0...alp-migrations@7.2.1) (2023-02-05)
124
-
125
- **Note:** Version bump only for package alp-migrations
126
-
127
-
128
-
129
-
130
-
131
- # [7.2.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.1.1...alp-migrations@7.2.0) (2023-01-31)
132
-
133
-
134
- ### Features
135
-
136
- * update liwi ([428845b](https://github.com/christophehurpeau/alp/commit/428845bd6feca4701ccde697b31867abeda337fc))
137
-
138
-
139
-
140
-
141
-
142
- ## [7.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.1.0...alp-migrations@7.1.1) (2023-01-31)
143
-
144
- **Note:** Version bump only for package alp-migrations
145
-
146
-
147
-
148
-
149
-
150
- # [7.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.0.0...alp-migrations@7.1.0) (2023-01-29)
151
-
152
-
153
- ### Features
154
-
155
- * update configs ([e9cbde7](https://github.com/christophehurpeau/alp/commit/e9cbde74ddbbb730bc2b65bb6d0b87f2bba8006e))
156
- * update nightingale and router-segments ([eb95316](https://github.com/christophehurpeau/alp/commit/eb953169651a5b335d2348f823dc65dc1261cfc0))
157
-
158
-
159
-
160
-
161
-
162
- # [7.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.1.2...alp-migrations@7.0.0) (2022-11-27)
163
-
164
-
165
- ### Features
166
-
167
- * drop node 14 ([5d5f90b](https://github.com/christophehurpeau/alp/commit/5d5f90b09d8532278aba75a97f10ea90bbb27919))
168
-
169
-
170
- ### BREAKING CHANGES
171
-
172
- * drop node 14
173
-
174
-
175
-
176
-
177
-
178
- ## [6.1.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.1.1...alp-migrations@6.1.2) (2022-10-29)
179
-
180
- **Note:** Version bump only for package alp-migrations
181
-
182
-
183
-
184
-
185
-
186
- ## [6.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.1.0...alp-migrations@6.1.1) (2022-10-19)
187
-
188
- **Note:** Version bump only for package alp-migrations
189
-
190
-
191
-
192
-
193
-
194
- # [6.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.6...alp-migrations@6.1.0) (2022-10-16)
195
-
196
-
197
- ### Features
198
-
199
- * **deps:** update dependency liwi-mongo to v9 ([#339](https://github.com/christophehurpeau/alp/issues/339)) ([14fa557](https://github.com/christophehurpeau/alp/commit/14fa55719c5623cdbc2f2da6909fdea35eb3658e))
200
- * update to react 18 ([6ac42b8](https://github.com/christophehurpeau/alp/commit/6ac42b84b80bf76853773f3b93819666684327d1))
201
-
202
-
203
-
204
-
205
-
206
- ## [6.0.6](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.5...alp-migrations@6.0.6) (2022-10-13)
207
-
208
- **Note:** Version bump only for package alp-migrations
209
-
210
-
211
-
212
-
213
-
214
- ## [6.0.5](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.4...alp-migrations@6.0.5) (2022-03-05)
215
-
216
- **Note:** Version bump only for package alp-migrations
217
-
218
-
219
-
220
-
221
-
222
- ## [6.0.4](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.3...alp-migrations@6.0.4) (2022-02-20)
223
-
224
- **Note:** Version bump only for package alp-migrations
225
-
226
-
227
-
228
-
229
-
230
- ## [6.0.3](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.2...alp-migrations@6.0.3) (2022-02-13)
231
-
232
-
233
- ### Bug Fixes
234
-
235
- * dont override react/react-in-jsx-scope ([5d21c9e](https://github.com/christophehurpeau/alp/commit/5d21c9ece092cd3397d1794211dae17cea6649f8))
236
-
237
-
238
-
239
-
240
-
241
- ## [6.0.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.1...alp-migrations@6.0.2) (2022-02-06)
242
-
243
-
244
- ### Bug Fixes
245
-
246
- * request.searchParams ([d4552c6](https://github.com/christophehurpeau/alp/commit/d4552c6ce41dc3bf7aeeaa24f5e4ddc16164ae7f))
247
-
248
-
249
-
250
-
251
-
252
- ## [6.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.0...alp-migrations@6.0.1) (2022-01-15)
253
-
254
- **Note:** Version bump only for package alp-migrations
255
-
256
-
257
-
258
-
259
-
260
- # [6.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.2.1...alp-migrations@6.0.0) (2022-01-02)
261
-
262
-
263
- ### Bug Fixes
264
-
265
- * update nightingale and fix tests ([3691716](https://github.com/christophehurpeau/alp/commit/36917162d0ee3dccc07384caf018b7760d98b744))
266
-
267
-
268
- ### Features
269
-
270
- * use ESM and drop node 12 ([f45054e](https://github.com/christophehurpeau/alp/commit/f45054e931eea88451d183722797eba057511236))
271
-
272
-
273
- ### BREAKING CHANGES
274
-
275
- * requires node 14 and ESM
276
-
277
-
278
-
279
-
280
-
281
- ## [5.2.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.2.0...alp-migrations@5.2.1) (2021-04-10)
282
-
283
- **Note:** Version bump only for package alp-migrations
284
-
285
-
286
-
287
-
288
-
289
- # [5.2.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.1.1...alp-migrations@5.2.0) (2021-03-28)
290
-
291
-
292
- ### Features
293
-
294
- * update semver ([d5428fd](https://github.com/christophehurpeau/alp/commit/d5428fdd2d7e63ea2ed2770f95cbd1849ba10b4f))
295
-
296
-
297
-
298
-
299
-
300
- ## [5.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.1.0...alp-migrations@5.1.1) (2021-03-28)
301
-
302
- **Note:** Version bump only for package alp-migrations
303
-
304
-
305
-
306
-
307
-
308
- # [5.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.0.2...alp-migrations@5.1.0) (2021-03-21)
309
-
310
-
311
- ### Features
312
-
313
- * update dependencies and browserlist config ([ec17710](https://github.com/christophehurpeau/alp/commit/ec177106dbfb094fface3d2791800916929305fc))
314
-
315
-
316
-
317
-
318
-
319
- ## [5.0.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.0.1...alp-migrations@5.0.2) (2021-01-18)
320
-
321
-
322
- ### Bug Fixes
323
-
324
- * deps and export import browser ([c8e51a6](https://github.com/christophehurpeau/alp/commit/c8e51a61befee852cbdbfb7697c7fd273a8d49ef))
325
- * multiple stuff ([e914474](https://github.com/christophehurpeau/alp/commit/e9144747913b8edae7dc1ba94767d03e085cbdcd))
326
-
327
-
328
-
329
-
330
-
331
- ## [5.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.0.0...alp-migrations@5.0.1) (2021-01-17)
332
-
333
- **Note:** Version bump only for package alp-migrations
334
-
335
-
336
-
337
-
338
-
339
- # [5.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@4.1.0...alp-migrations@5.0.0) (2021-01-17)
340
-
341
-
342
- ### Code Refactoring
343
-
344
- * update dev deps and typescript and eslint ([8cdc20e](https://github.com/christophehurpeau/alp/commit/8cdc20e030769d98d637b9580931cc5cc608278d))
345
-
346
-
347
- ### Features
348
-
349
- * update liwi-mongo ([00988b4](https://github.com/christophehurpeau/alp/commit/00988b4cf15607edf1306567c28ccf9fa6f07b87))
350
- * update nightingale ([359ef19](https://github.com/christophehurpeau/alp/commit/359ef1971d717af996b447768d5f8efc31b4c4d3))
351
-
352
-
353
- ### BREAKING CHANGES
354
-
355
- * requires node 12
356
-
357
-
358
-
359
-
360
-
361
- # [4.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@4.0.0...alp-migrations@4.1.0) (2021-01-12)
362
-
363
-
364
- ### Features
365
-
366
- * **deps:** update dependency semver to v7 ([#120](https://github.com/christophehurpeau/alp/issues/120)) ([6d6e49b](https://github.com/christophehurpeau/alp/commit/6d6e49b8aff784dceebbf62a488a5461626e6dbf))
367
-
368
-
369
-
370
-
371
-
372
- # [4.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.1.1...alp-migrations@4.0.0) (2020-08-08)
373
-
374
-
375
- ### Features
376
-
377
- * update to liwi 7 ([bb7da62](https://github.com/christophehurpeau/alp/commit/bb7da62))
378
-
379
-
380
- ### BREAKING CHANGES
381
-
382
- * requires liwi 7
383
-
384
-
385
-
386
-
387
-
388
- ## [3.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.1.0...alp-migrations@3.1.1) (2020-08-08)
389
-
390
- **Note:** Version bump only for package alp-migrations
391
-
392
-
393
-
394
-
395
-
396
- # [3.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.0.2...alp-migrations@3.1.0) (2020-05-30)
397
-
398
-
399
- ### Features
400
-
401
- * update dependencies ([70b1f7f](https://github.com/christophehurpeau/alp/commit/70b1f7f))
402
-
403
-
404
-
405
-
406
-
407
- ## [3.0.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.0.1...alp-migrations@3.0.2) (2020-05-02)
408
-
409
- **Note:** Version bump only for package alp-migrations
410
-
411
-
412
-
413
-
414
-
415
- ## [3.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.0.0...alp-migrations@3.0.1) (2019-12-16)
416
-
417
-
418
- ### Bug Fixes
419
-
420
- * update pobpack ([6e0b501](https://github.com/christophehurpeau/alp/commit/6e0b501))
421
-
422
-
423
-
424
-
425
-
426
- # [3.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.5.3...alp-migrations@3.0.0) (2019-12-15)
427
-
428
-
429
- ### Features
430
-
431
- * update dependencies ([2d1539c](https://github.com/christophehurpeau/alp/commit/2d1539c))
432
- * update dependencies and pob ([edee8ce](https://github.com/christophehurpeau/alp/commit/edee8ce))
433
-
434
-
435
- ### BREAKING CHANGES
436
-
437
- * drop node 8
438
-
439
-
440
-
441
-
442
-
443
- ## [2.5.3](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.5.2...alp-migrations@2.5.3) (2019-10-12)
444
-
445
- **Note:** Version bump only for package alp-migrations
446
-
447
-
448
-
449
-
450
-
451
- ## [2.5.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.5.1...alp-migrations@2.5.2) (2019-09-21)
452
-
453
- **Note:** Version bump only for package alp-migrations
454
-
455
-
456
-
457
-
458
-
459
- ## [2.5.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.5.0...alp-migrations@2.5.1) (2019-09-15)
460
-
461
- **Note:** Version bump only for package alp-migrations
462
-
463
-
464
-
465
-
466
-
467
- # [2.5.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.4.1...alp-migrations@2.5.0) (2019-09-13)
468
-
469
-
470
- ### Features
471
-
472
- * add react-alp-antd-form and update dependencies ([6f60e46](https://github.com/christophehurpeau/alp/commit/6f60e46))
473
-
474
-
475
-
476
-
477
-
478
- ## [2.4.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.4.0...alp-migrations@2.4.1) (2019-09-09)
479
-
480
-
481
- ### Bug Fixes
482
-
483
- * pob update ([ffe6857](https://github.com/christophehurpeau/alp/commit/ffe6857))
484
- * typescript issues ([23246f6](https://github.com/christophehurpeau/alp/commit/23246f6))
485
-
486
-
487
-
488
-
489
-
490
- # [2.4.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.3.1...alp-migrations@2.4.0) (2019-05-01)
491
-
492
-
493
- ### Features
494
-
495
- * improve progress bar and server log ([d7ef7dc](https://github.com/christophehurpeau/alp/commit/d7ef7dc))
496
-
497
-
498
-
499
-
500
-
501
- ## [2.3.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.3.0...alp-migrations@2.3.1) (2019-05-01)
502
-
503
-
504
- ### Bug Fixes
505
-
506
- * hot loader ([c880769](https://github.com/christophehurpeau/alp/commit/c880769))
507
-
508
-
509
-
510
-
511
-
512
- # [2.3.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.2.0...alp-migrations@2.3.0) (2019-05-01)
513
-
514
-
515
- ### Features
516
-
517
- * update dependencies ([9663e2d](https://github.com/christophehurpeau/alp/commit/9663e2d))
518
-
519
-
520
-
521
-
522
-
523
- # [2.2.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.4...alp-migrations@2.2.0) (2019-05-01)
524
-
525
-
526
- ### Features
527
-
528
- * update deps and pobpack ([1e19ea4](https://github.com/christophehurpeau/alp/commit/1e19ea4))
529
-
530
-
531
-
532
-
533
-
534
- ## [2.1.4](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.3...alp-migrations@2.1.4) (2019-04-28)
535
-
536
- **Note:** Version bump only for package alp-migrations
537
-
538
-
539
-
540
-
541
-
542
- ## [2.1.3](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.2...alp-migrations@2.1.3) (2019-04-20)
543
-
544
- **Note:** Version bump only for package alp-migrations
545
-
546
-
547
-
548
-
549
-
550
- ## [2.1.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.1...alp-migrations@2.1.2) (2019-04-07)
551
-
552
- **Note:** Version bump only for package alp-migrations
553
-
554
-
555
-
556
-
557
-
558
- ## [2.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.0...alp-migrations@2.1.1) (2019-04-06)
559
-
560
- **Note:** Version bump only for package alp-migrations
561
-
562
-
563
-
564
-
565
-
566
- # [2.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.0.1...alp-migrations@2.1.0) (2019-04-05)
567
-
568
-
569
- ### Features
570
-
571
- * update dependencies ([9278dc6](https://github.com/christophehurpeau/alp/commit/9278dc6))
572
-
573
-
574
-
575
-
576
-
577
- ## [2.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.0.0...alp-migrations@2.0.1) (2019-03-08)
578
-
579
-
580
- ### Bug Fixes
581
-
582
- * unhandledRejectionHandler typings ([7b54834](https://github.com/christophehurpeau/alp/commit/7b54834))
583
-
584
-
585
-
586
-
587
-
588
- # [2.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@1.0.0...alp-migrations@2.0.0) (2019-03-05)
589
-
590
-
591
- ### Features
592
-
593
- * update to liwi 4 ([13cf357](https://github.com/christophehurpeau/alp/commit/13cf357))
594
-
595
-
596
- ### BREAKING CHANGES
597
-
598
- * liwi 4.1 now required as peerdep
599
-
600
-
601
-
602
-
603
-
604
- # 1.0.0 (2019-02-17)
605
-
606
-
607
- ### Bug Fixes
608
-
609
- * alp-types refs ([7e9a693](https://github.com/christophehurpeau/alp/commit/7e9a693))
610
- * logger key ([2e82064](https://github.com/christophehurpeau/alp/commit/2e82064))
611
- * upgrade pob and fix order version rethinkdb ([c4bce73](https://github.com/christophehurpeau/alp/commit/c4bce73))
612
- * use findValue instead of findOne ([48e6440](https://github.com/christophehurpeau/alp/commit/48e6440))
613
-
614
-
615
- ### Features
616
-
617
- * MongoUsersManager allow to extends user ([c00bc69](https://github.com/christophehurpeau/alp/commit/c00bc69))
618
- * pob upgrade ([ae3bf85](https://github.com/christophehurpeau/alp/commit/ae3bf85))
619
- * typescript ([3541e73](https://github.com/christophehurpeau/alp/commit/3541e73))
620
- * update dependencies ([47d53b1](https://github.com/christophehurpeau/alp/commit/47d53b1))
621
-
622
-
623
- ### BREAKING CHANGES
624
-
625
- * liwi 3.0
626
- * too many breaking changes
627
-
628
-
629
-
630
-
631
-
632
- <a name="0.8.0"></a>
633
- # [0.8.0](https://github.com/alpjs/alp-migrations/compare/v0.7.1...v0.8.0) (2017-05-14)
634
-
635
-
636
- ### Features
637
-
638
- * pob upgrade ([42a9c59](https://github.com/alpjs/alp-migrations/commit/42a9c59))
639
-
640
-
641
- <a name="0.7.1"></a>
642
- ## [0.7.1](https://github.com/alpjs/alp-migrations/compare/v0.7.0...v0.7.1) (2017-02-01)
643
-
644
-
645
- ### Bug Fixes
646
-
647
- * upgrade pob and fix order version rethinkdb ([7e38308](https://github.com/alpjs/alp-migrations/commit/7e38308))
648
-
649
-
650
- ### v0.7.0
651
-
652
- - [`6fb2a83`](https://github.com/alpjs/alp-migrations/commit/6fb2a83972bfe769f752548b8f5b8b17138ab2e8) refactor: remove liwi dependency (Christophe Hurpeau)
653
-
654
- ### v0.6.1
655
-
656
- - [`860a8d0`](https://github.com/alpjs/alp-migrations/commit/860a8d00a7751a01d289c58e8a4a9e198433bd17) fix: logger key (Christophe Hurpeau)
657
-
658
- ### v0.6.0
659
-
660
- - [`854ec4e`](https://github.com/alpjs/alp-migrations/commit/854ec4e9925246face4237022c15c48185101bf0) refactor: update dependencies (Christophe Hurpeau)
661
-
662
- ### v0.5.0
663
-
664
- - [`1b120cc`](https://github.com/alpjs/alp-migrations/commit/1b120cc603607502fa065be85e4bfc6e86cc91a7) chore(package): komet-karma@^0.2.3 (Christophe Hurpeau)
665
- - [`363a3c5`](https://github.com/alpjs/alp-migrations/commit/363a3c54f5c4a6e11b61b606f043a7ee19581add) chore(package): pob-release@^2.2.2 (Christophe Hurpeau)
666
- - [`e596834`](https://github.com/alpjs/alp-migrations/commit/e5968345c151c2431834e7a9d2af49f6be9f3fcb) chore(package): nightingale-logger@^1.6.0 (Christophe Hurpeau)
667
-
668
- ### v0.4.0
669
-
670
- - [`8c33739`](https://github.com/alpjs/alp-migrations/commit/8c33739e99b64833472c705341f34c4087f0673c) chore: pob update (Christophe Hurpeau)
671
- - [`33c119d`](https://github.com/alpjs/alp-migrations/commit/33c119daa2a99f8812d2a7e2fc297490f40680f8) refactor: accept app to default config and dirname (Christophe Hurpeau)
672
-
673
- ### v0.3.1
674
-
675
- - [`ee75395`](https://github.com/alpjs/alp-migrations/commit/ee75395d3712a968abc2705827fed0edaf3fe6c7) support rethinkdb (Christophe Hurpeau)
676
-
677
- ### v0.3.0
678
-
679
- - [`7455623`](https://github.com/alpjs/alp-migrations/commit/74556232bc469536ae3f95d351ccdf4bbc9ad9cd) chore(package) update dependencies (Christophe Hurpeau)
680
-
681
- ### v0.2.0
682
-
683
- - [`3acfdef`](https://github.com/alpjs/alp-migrations/commit/3acfdefbcdf27ee6ceebca3aa6d1423bf67206ef) only listen to unhandledRejection when migrating (Christophe Hurpeau)
684
- - [`4f27e93`](https://github.com/alpjs/alp-migrations/commit/4f27e93065b13b4d6587c8ce78fbade09b5e01a6) pob update (Christophe Hurpeau)
685
- - [`d10d210`](https://github.com/alpjs/alp-migrations/commit/d10d21006cbfbe053a84df14b5b5cb4543322375) only add to db if migration version <= package version (Christophe Hurpeau)
686
- - [`25ff4f8`](https://github.com/alpjs/alp-migrations/commit/25ff4f8eee77330a6be6bb945900662e445fa67b) package.json remove useless scripts (Christophe Hurpeau)
687
-
688
- ### v0.1.1
689
-
690
- - [`9a4d1ec`](https://github.com/alpjs/alp-migrations/commit/9a4d1ec75ca6758b718430efa5e3b92a37274c90) update dependencies (Christophe Hurpeau)
691
-
692
- ### v0.1.0
693
-
694
- - [`e4896c5`](https://github.com/alpjs/alp-migrations/commit/e4896c5e25ace8fb0d4dbc79e8515cfc34f7596b) first commit (Christophe Hurpeau)
695
- - [`d0d0f65`](https://github.com/alpjs/alp-migrations/commit/d0d0f65c6d1bdc0f29687414eeef50ab3b4f7ef7) update AUTHORS (Christophe Hurpeau)