alp-migrations 12.0.0 → 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"}
@@ -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.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,M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ChD,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,MAC3C,SAAS,KAAA,EAAO;AACd,QAAA,MAAA,CAAO,KAAA,CAAM,CAAA,aAAA,EAAgB,SAAA,CAAU,OAAO,CAAA,SAAA,CAAW,CAAA;AACzD,QAAA,MAAM,KAAA;AAAA,MACR;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;;;;"}
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;AACF;;AC1BA,MAAqB,iBAAA,CAAkB;AAAA,EACrC,KAAA;AAAA,EAEA,YAAY,KAAA,EAA8B;AACxC,IAAA,IAAA,CAAK,KA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,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": "12.0.0",
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 || ^12.0.0"
61
- },
62
- "dependencies": {
63
- "alp-node": "10.0.0",
64
- "nightingale-logger": "^16.0.0",
65
- "semver": "^7.3.5"
66
- },
67
- "devDependencies": {
68
- "@pob/rollup-esbuild": "7.3.2",
69
- "@types/node": "24.10.1",
70
- "@types/semver": "7.7.1",
71
- "liwi-mongo": "12.0.0",
72
- "router-segments": "12.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";
package/CHANGELOG.md DELETED
@@ -1,708 +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
- ## [12.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@11.0.1...alp-migrations@12.0.0) (2025-11-12)
7
-
8
- ### ⚠ BREAKING CHANGES
9
-
10
- * update router-segments
11
-
12
- ### Features
13
-
14
- * update router-segments
15
-
16
- Version bump for dependency: alp-node
17
-
18
-
19
- ## [11.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@11.0.0...alp-migrations@11.0.1) (2025-11-12)
20
-
21
- Version bump for dependency: alp-node
22
-
23
-
24
- ## [11.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@10.0.0...alp-migrations@11.0.0) (2025-10-27)
25
-
26
- ### ⚠ BREAKING CHANGES
27
-
28
- * drop node 20 and build using esbuild
29
-
30
- ### Features
31
-
32
- * drop node 20 and build using esbuild ([812c4c1](https://github.com/christophehurpeau/alp/commit/812c4c1b0ad19984e389af4382a8d1e60643e4f1))
33
- * update nightingale packages to version 16 across multiple packages ([2f59b01](https://github.com/christophehurpeau/alp/commit/2f59b01c9c407da7c59c608a12d716058fff9c70))
34
-
35
- Version bump for dependency: alp-node
36
-
37
-
38
- ## [10.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@9.0.0...alp-migrations@10.0.0) (2025-08-02)
39
-
40
- ### ⚠ BREAKING CHANGES
41
-
42
- * update dependencies and drop node 20
43
- * update dev dependencies, replace parse-json-object-as-map with native JSON.parse, update koa
44
- * update liwi-mongo
45
- * update router-segments
46
-
47
- ### Features
48
-
49
- * update dependencies and drop node 20 ([fc5b322](https://github.com/christophehurpeau/alp/commit/fc5b322e076e9a3c7c4a235d16734b89fd85e211))
50
- * update dev dependencies, replace parse-json-object-as-map with native JSON.parse, update koa ([5ae7723](https://github.com/christophehurpeau/alp/commit/5ae77238cafc573fe72c5eb63b103802b8b2e537))
51
- * update liwi-mongo ([55e04ba](https://github.com/christophehurpeau/alp/commit/55e04baac1ccc46b83880dd03076b0ab0d705ae2))
52
- * update router-segments ([07ff52b](https://github.com/christophehurpeau/alp/commit/07ff52b3f851204256509056d0a4b25e1f630e5b))
53
-
54
- Version bump for dependency: alp-node
55
-
56
-
57
- ## [9.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@8.2.1...alp-migrations@9.0.0) (2024-01-06)
58
-
59
-
60
- ### ⚠ BREAKING CHANGES
61
-
62
- * merge to alp-node to improve maintenability, remove alp-types
63
-
64
- ### Features
65
-
66
- * merge to alp-node to improve maintenability, remove alp-types ([ead9a2f](https://github.com/christophehurpeau/alp/commit/ead9a2fd1bcbedce0be29ea0e444c5cead99c64d))
67
-
68
- Version bump for dependency: alp-node
69
-
70
-
71
- ## [8.2.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@8.2.0...alp-migrations@8.2.1) (2024-01-06)
72
-
73
- Note: no notable changes
74
-
75
-
76
-
77
-
78
- ## [8.2.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@8.1.0...alp-migrations@8.2.0) (2024-01-06)
79
-
80
-
81
- ### Features
82
-
83
- * **deps:** update dependency liwi-mongo to v11 ([#465](https://github.com/christophehurpeau/alp/issues/465)) ([f8c4804](https://github.com/christophehurpeau/alp/commit/f8c4804621cf179e4155a18121f5a8d4f144b11e))
84
-
85
-
86
-
87
-
88
- ## [8.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@8.0.0...alp-migrations@8.1.0) (2023-12-25)
89
-
90
-
91
- ### Features
92
-
93
- * update dependencies ([ddc8f92](https://github.com/christophehurpeau/alp/commit/ddc8f92cccacf6ed2baabf8555f0b37fe281ce9d))
94
-
95
- Version bump for dependency: alp-types
96
-
97
-
98
- ## [8.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.3.0...alp-migrations@8.0.0) (2023-07-29)
99
-
100
-
101
- ### ⚠ BREAKING CHANGES
102
-
103
- * drop node 16
104
-
105
- ### Code Refactoring
106
-
107
- * update to node 18 ([26280d6](https://github.com/christophehurpeau/alp/commit/26280d638aba1bd46fa42ad5a571b9626f1fff6d))
108
-
109
-
110
-
111
- ## [7.3.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.2.3...alp-migrations@7.3.0) (2023-03-19)
112
-
113
-
114
- ### Features
115
-
116
- * update dev dependencies ([9d7e24f](https://github.com/christophehurpeau/alp/commit/9d7e24f8e504d47feae64ca618dc2b3a69babc38))
117
-
118
-
119
-
120
- ## [7.2.3](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.2.2...alp-migrations@7.2.3) (2023-02-18)
121
-
122
- **Note:** Version bump only for package alp-migrations
123
-
124
-
125
-
126
-
127
-
128
- ## [7.2.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.2.1...alp-migrations@7.2.2) (2023-02-13)
129
-
130
- **Note:** Version bump only for package alp-migrations
131
-
132
-
133
-
134
-
135
-
136
- ## [7.2.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.2.0...alp-migrations@7.2.1) (2023-02-05)
137
-
138
- **Note:** Version bump only for package alp-migrations
139
-
140
-
141
-
142
-
143
-
144
- # [7.2.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.1.1...alp-migrations@7.2.0) (2023-01-31)
145
-
146
-
147
- ### Features
148
-
149
- * update liwi ([428845b](https://github.com/christophehurpeau/alp/commit/428845bd6feca4701ccde697b31867abeda337fc))
150
-
151
-
152
-
153
-
154
-
155
- ## [7.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.1.0...alp-migrations@7.1.1) (2023-01-31)
156
-
157
- **Note:** Version bump only for package alp-migrations
158
-
159
-
160
-
161
-
162
-
163
- # [7.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@7.0.0...alp-migrations@7.1.0) (2023-01-29)
164
-
165
-
166
- ### Features
167
-
168
- * update configs ([e9cbde7](https://github.com/christophehurpeau/alp/commit/e9cbde74ddbbb730bc2b65bb6d0b87f2bba8006e))
169
- * update nightingale and router-segments ([eb95316](https://github.com/christophehurpeau/alp/commit/eb953169651a5b335d2348f823dc65dc1261cfc0))
170
-
171
-
172
-
173
-
174
-
175
- # [7.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.1.2...alp-migrations@7.0.0) (2022-11-27)
176
-
177
-
178
- ### Features
179
-
180
- * drop node 14 ([5d5f90b](https://github.com/christophehurpeau/alp/commit/5d5f90b09d8532278aba75a97f10ea90bbb27919))
181
-
182
-
183
- ### BREAKING CHANGES
184
-
185
- * drop node 14
186
-
187
-
188
-
189
-
190
-
191
- ## [6.1.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.1.1...alp-migrations@6.1.2) (2022-10-29)
192
-
193
- **Note:** Version bump only for package alp-migrations
194
-
195
-
196
-
197
-
198
-
199
- ## [6.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.1.0...alp-migrations@6.1.1) (2022-10-19)
200
-
201
- **Note:** Version bump only for package alp-migrations
202
-
203
-
204
-
205
-
206
-
207
- # [6.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.6...alp-migrations@6.1.0) (2022-10-16)
208
-
209
-
210
- ### Features
211
-
212
- * **deps:** update dependency liwi-mongo to v9 ([#339](https://github.com/christophehurpeau/alp/issues/339)) ([14fa557](https://github.com/christophehurpeau/alp/commit/14fa55719c5623cdbc2f2da6909fdea35eb3658e))
213
- * update to react 18 ([6ac42b8](https://github.com/christophehurpeau/alp/commit/6ac42b84b80bf76853773f3b93819666684327d1))
214
-
215
-
216
-
217
-
218
-
219
- ## [6.0.6](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.5...alp-migrations@6.0.6) (2022-10-13)
220
-
221
- **Note:** Version bump only for package alp-migrations
222
-
223
-
224
-
225
-
226
-
227
- ## [6.0.5](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.4...alp-migrations@6.0.5) (2022-03-05)
228
-
229
- **Note:** Version bump only for package alp-migrations
230
-
231
-
232
-
233
-
234
-
235
- ## [6.0.4](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.3...alp-migrations@6.0.4) (2022-02-20)
236
-
237
- **Note:** Version bump only for package alp-migrations
238
-
239
-
240
-
241
-
242
-
243
- ## [6.0.3](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.2...alp-migrations@6.0.3) (2022-02-13)
244
-
245
-
246
- ### Bug Fixes
247
-
248
- * dont override react/react-in-jsx-scope ([5d21c9e](https://github.com/christophehurpeau/alp/commit/5d21c9ece092cd3397d1794211dae17cea6649f8))
249
-
250
-
251
-
252
-
253
-
254
- ## [6.0.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.1...alp-migrations@6.0.2) (2022-02-06)
255
-
256
-
257
- ### Bug Fixes
258
-
259
- * request.searchParams ([d4552c6](https://github.com/christophehurpeau/alp/commit/d4552c6ce41dc3bf7aeeaa24f5e4ddc16164ae7f))
260
-
261
-
262
-
263
-
264
-
265
- ## [6.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@6.0.0...alp-migrations@6.0.1) (2022-01-15)
266
-
267
- **Note:** Version bump only for package alp-migrations
268
-
269
-
270
-
271
-
272
-
273
- # [6.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.2.1...alp-migrations@6.0.0) (2022-01-02)
274
-
275
-
276
- ### Bug Fixes
277
-
278
- * update nightingale and fix tests ([3691716](https://github.com/christophehurpeau/alp/commit/36917162d0ee3dccc07384caf018b7760d98b744))
279
-
280
-
281
- ### Features
282
-
283
- * use ESM and drop node 12 ([f45054e](https://github.com/christophehurpeau/alp/commit/f45054e931eea88451d183722797eba057511236))
284
-
285
-
286
- ### BREAKING CHANGES
287
-
288
- * requires node 14 and ESM
289
-
290
-
291
-
292
-
293
-
294
- ## [5.2.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.2.0...alp-migrations@5.2.1) (2021-04-10)
295
-
296
- **Note:** Version bump only for package alp-migrations
297
-
298
-
299
-
300
-
301
-
302
- # [5.2.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.1.1...alp-migrations@5.2.0) (2021-03-28)
303
-
304
-
305
- ### Features
306
-
307
- * update semver ([d5428fd](https://github.com/christophehurpeau/alp/commit/d5428fdd2d7e63ea2ed2770f95cbd1849ba10b4f))
308
-
309
-
310
-
311
-
312
-
313
- ## [5.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.1.0...alp-migrations@5.1.1) (2021-03-28)
314
-
315
- **Note:** Version bump only for package alp-migrations
316
-
317
-
318
-
319
-
320
-
321
- # [5.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.0.2...alp-migrations@5.1.0) (2021-03-21)
322
-
323
-
324
- ### Features
325
-
326
- * update dependencies and browserlist config ([ec17710](https://github.com/christophehurpeau/alp/commit/ec177106dbfb094fface3d2791800916929305fc))
327
-
328
-
329
-
330
-
331
-
332
- ## [5.0.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.0.1...alp-migrations@5.0.2) (2021-01-18)
333
-
334
-
335
- ### Bug Fixes
336
-
337
- * deps and export import browser ([c8e51a6](https://github.com/christophehurpeau/alp/commit/c8e51a61befee852cbdbfb7697c7fd273a8d49ef))
338
- * multiple stuff ([e914474](https://github.com/christophehurpeau/alp/commit/e9144747913b8edae7dc1ba94767d03e085cbdcd))
339
-
340
-
341
-
342
-
343
-
344
- ## [5.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@5.0.0...alp-migrations@5.0.1) (2021-01-17)
345
-
346
- **Note:** Version bump only for package alp-migrations
347
-
348
-
349
-
350
-
351
-
352
- # [5.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@4.1.0...alp-migrations@5.0.0) (2021-01-17)
353
-
354
-
355
- ### Code Refactoring
356
-
357
- * update dev deps and typescript and eslint ([8cdc20e](https://github.com/christophehurpeau/alp/commit/8cdc20e030769d98d637b9580931cc5cc608278d))
358
-
359
-
360
- ### Features
361
-
362
- * update liwi-mongo ([00988b4](https://github.com/christophehurpeau/alp/commit/00988b4cf15607edf1306567c28ccf9fa6f07b87))
363
- * update nightingale ([359ef19](https://github.com/christophehurpeau/alp/commit/359ef1971d717af996b447768d5f8efc31b4c4d3))
364
-
365
-
366
- ### BREAKING CHANGES
367
-
368
- * requires node 12
369
-
370
-
371
-
372
-
373
-
374
- # [4.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@4.0.0...alp-migrations@4.1.0) (2021-01-12)
375
-
376
-
377
- ### Features
378
-
379
- * **deps:** update dependency semver to v7 ([#120](https://github.com/christophehurpeau/alp/issues/120)) ([6d6e49b](https://github.com/christophehurpeau/alp/commit/6d6e49b8aff784dceebbf62a488a5461626e6dbf))
380
-
381
-
382
-
383
-
384
-
385
- # [4.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.1.1...alp-migrations@4.0.0) (2020-08-08)
386
-
387
-
388
- ### Features
389
-
390
- * update to liwi 7 ([bb7da62](https://github.com/christophehurpeau/alp/commit/bb7da62))
391
-
392
-
393
- ### BREAKING CHANGES
394
-
395
- * requires liwi 7
396
-
397
-
398
-
399
-
400
-
401
- ## [3.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.1.0...alp-migrations@3.1.1) (2020-08-08)
402
-
403
- **Note:** Version bump only for package alp-migrations
404
-
405
-
406
-
407
-
408
-
409
- # [3.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.0.2...alp-migrations@3.1.0) (2020-05-30)
410
-
411
-
412
- ### Features
413
-
414
- * update dependencies ([70b1f7f](https://github.com/christophehurpeau/alp/commit/70b1f7f))
415
-
416
-
417
-
418
-
419
-
420
- ## [3.0.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.0.1...alp-migrations@3.0.2) (2020-05-02)
421
-
422
- **Note:** Version bump only for package alp-migrations
423
-
424
-
425
-
426
-
427
-
428
- ## [3.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@3.0.0...alp-migrations@3.0.1) (2019-12-16)
429
-
430
-
431
- ### Bug Fixes
432
-
433
- * update pobpack ([6e0b501](https://github.com/christophehurpeau/alp/commit/6e0b501))
434
-
435
-
436
-
437
-
438
-
439
- # [3.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.5.3...alp-migrations@3.0.0) (2019-12-15)
440
-
441
-
442
- ### Features
443
-
444
- * update dependencies ([2d1539c](https://github.com/christophehurpeau/alp/commit/2d1539c))
445
- * update dependencies and pob ([edee8ce](https://github.com/christophehurpeau/alp/commit/edee8ce))
446
-
447
-
448
- ### BREAKING CHANGES
449
-
450
- * drop node 8
451
-
452
-
453
-
454
-
455
-
456
- ## [2.5.3](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.5.2...alp-migrations@2.5.3) (2019-10-12)
457
-
458
- **Note:** Version bump only for package alp-migrations
459
-
460
-
461
-
462
-
463
-
464
- ## [2.5.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.5.1...alp-migrations@2.5.2) (2019-09-21)
465
-
466
- **Note:** Version bump only for package alp-migrations
467
-
468
-
469
-
470
-
471
-
472
- ## [2.5.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.5.0...alp-migrations@2.5.1) (2019-09-15)
473
-
474
- **Note:** Version bump only for package alp-migrations
475
-
476
-
477
-
478
-
479
-
480
- # [2.5.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.4.1...alp-migrations@2.5.0) (2019-09-13)
481
-
482
-
483
- ### Features
484
-
485
- * add react-alp-antd-form and update dependencies ([6f60e46](https://github.com/christophehurpeau/alp/commit/6f60e46))
486
-
487
-
488
-
489
-
490
-
491
- ## [2.4.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.4.0...alp-migrations@2.4.1) (2019-09-09)
492
-
493
-
494
- ### Bug Fixes
495
-
496
- * pob update ([ffe6857](https://github.com/christophehurpeau/alp/commit/ffe6857))
497
- * typescript issues ([23246f6](https://github.com/christophehurpeau/alp/commit/23246f6))
498
-
499
-
500
-
501
-
502
-
503
- # [2.4.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.3.1...alp-migrations@2.4.0) (2019-05-01)
504
-
505
-
506
- ### Features
507
-
508
- * improve progress bar and server log ([d7ef7dc](https://github.com/christophehurpeau/alp/commit/d7ef7dc))
509
-
510
-
511
-
512
-
513
-
514
- ## [2.3.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.3.0...alp-migrations@2.3.1) (2019-05-01)
515
-
516
-
517
- ### Bug Fixes
518
-
519
- * hot loader ([c880769](https://github.com/christophehurpeau/alp/commit/c880769))
520
-
521
-
522
-
523
-
524
-
525
- # [2.3.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.2.0...alp-migrations@2.3.0) (2019-05-01)
526
-
527
-
528
- ### Features
529
-
530
- * update dependencies ([9663e2d](https://github.com/christophehurpeau/alp/commit/9663e2d))
531
-
532
-
533
-
534
-
535
-
536
- # [2.2.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.4...alp-migrations@2.2.0) (2019-05-01)
537
-
538
-
539
- ### Features
540
-
541
- * update deps and pobpack ([1e19ea4](https://github.com/christophehurpeau/alp/commit/1e19ea4))
542
-
543
-
544
-
545
-
546
-
547
- ## [2.1.4](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.3...alp-migrations@2.1.4) (2019-04-28)
548
-
549
- **Note:** Version bump only for package alp-migrations
550
-
551
-
552
-
553
-
554
-
555
- ## [2.1.3](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.2...alp-migrations@2.1.3) (2019-04-20)
556
-
557
- **Note:** Version bump only for package alp-migrations
558
-
559
-
560
-
561
-
562
-
563
- ## [2.1.2](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.1...alp-migrations@2.1.2) (2019-04-07)
564
-
565
- **Note:** Version bump only for package alp-migrations
566
-
567
-
568
-
569
-
570
-
571
- ## [2.1.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.1.0...alp-migrations@2.1.1) (2019-04-06)
572
-
573
- **Note:** Version bump only for package alp-migrations
574
-
575
-
576
-
577
-
578
-
579
- # [2.1.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.0.1...alp-migrations@2.1.0) (2019-04-05)
580
-
581
-
582
- ### Features
583
-
584
- * update dependencies ([9278dc6](https://github.com/christophehurpeau/alp/commit/9278dc6))
585
-
586
-
587
-
588
-
589
-
590
- ## [2.0.1](https://github.com/christophehurpeau/alp/compare/alp-migrations@2.0.0...alp-migrations@2.0.1) (2019-03-08)
591
-
592
-
593
- ### Bug Fixes
594
-
595
- * unhandledRejectionHandler typings ([7b54834](https://github.com/christophehurpeau/alp/commit/7b54834))
596
-
597
-
598
-
599
-
600
-
601
- # [2.0.0](https://github.com/christophehurpeau/alp/compare/alp-migrations@1.0.0...alp-migrations@2.0.0) (2019-03-05)
602
-
603
-
604
- ### Features
605
-
606
- * update to liwi 4 ([13cf357](https://github.com/christophehurpeau/alp/commit/13cf357))
607
-
608
-
609
- ### BREAKING CHANGES
610
-
611
- * liwi 4.1 now required as peerdep
612
-
613
-
614
-
615
-
616
-
617
- # 1.0.0 (2019-02-17)
618
-
619
-
620
- ### Bug Fixes
621
-
622
- * alp-types refs ([7e9a693](https://github.com/christophehurpeau/alp/commit/7e9a693))
623
- * logger key ([2e82064](https://github.com/christophehurpeau/alp/commit/2e82064))
624
- * upgrade pob and fix order version rethinkdb ([c4bce73](https://github.com/christophehurpeau/alp/commit/c4bce73))
625
- * use findValue instead of findOne ([48e6440](https://github.com/christophehurpeau/alp/commit/48e6440))
626
-
627
-
628
- ### Features
629
-
630
- * MongoUsersManager allow to extends user ([c00bc69](https://github.com/christophehurpeau/alp/commit/c00bc69))
631
- * pob upgrade ([ae3bf85](https://github.com/christophehurpeau/alp/commit/ae3bf85))
632
- * typescript ([3541e73](https://github.com/christophehurpeau/alp/commit/3541e73))
633
- * update dependencies ([47d53b1](https://github.com/christophehurpeau/alp/commit/47d53b1))
634
-
635
-
636
- ### BREAKING CHANGES
637
-
638
- * liwi 3.0
639
- * too many breaking changes
640
-
641
-
642
-
643
-
644
-
645
- <a name="0.8.0"></a>
646
- # [0.8.0](https://github.com/alpjs/alp-migrations/compare/v0.7.1...v0.8.0) (2017-05-14)
647
-
648
-
649
- ### Features
650
-
651
- * pob upgrade ([42a9c59](https://github.com/alpjs/alp-migrations/commit/42a9c59))
652
-
653
-
654
- <a name="0.7.1"></a>
655
- ## [0.7.1](https://github.com/alpjs/alp-migrations/compare/v0.7.0...v0.7.1) (2017-02-01)
656
-
657
-
658
- ### Bug Fixes
659
-
660
- * upgrade pob and fix order version rethinkdb ([7e38308](https://github.com/alpjs/alp-migrations/commit/7e38308))
661
-
662
-
663
- ### v0.7.0
664
-
665
- - [`6fb2a83`](https://github.com/alpjs/alp-migrations/commit/6fb2a83972bfe769f752548b8f5b8b17138ab2e8) refactor: remove liwi dependency (Christophe Hurpeau)
666
-
667
- ### v0.6.1
668
-
669
- - [`860a8d0`](https://github.com/alpjs/alp-migrations/commit/860a8d00a7751a01d289c58e8a4a9e198433bd17) fix: logger key (Christophe Hurpeau)
670
-
671
- ### v0.6.0
672
-
673
- - [`854ec4e`](https://github.com/alpjs/alp-migrations/commit/854ec4e9925246face4237022c15c48185101bf0) refactor: update dependencies (Christophe Hurpeau)
674
-
675
- ### v0.5.0
676
-
677
- - [`1b120cc`](https://github.com/alpjs/alp-migrations/commit/1b120cc603607502fa065be85e4bfc6e86cc91a7) chore(package): komet-karma@^0.2.3 (Christophe Hurpeau)
678
- - [`363a3c5`](https://github.com/alpjs/alp-migrations/commit/363a3c54f5c4a6e11b61b606f043a7ee19581add) chore(package): pob-release@^2.2.2 (Christophe Hurpeau)
679
- - [`e596834`](https://github.com/alpjs/alp-migrations/commit/e5968345c151c2431834e7a9d2af49f6be9f3fcb) chore(package): nightingale-logger@^1.6.0 (Christophe Hurpeau)
680
-
681
- ### v0.4.0
682
-
683
- - [`8c33739`](https://github.com/alpjs/alp-migrations/commit/8c33739e99b64833472c705341f34c4087f0673c) chore: pob update (Christophe Hurpeau)
684
- - [`33c119d`](https://github.com/alpjs/alp-migrations/commit/33c119daa2a99f8812d2a7e2fc297490f40680f8) refactor: accept app to default config and dirname (Christophe Hurpeau)
685
-
686
- ### v0.3.1
687
-
688
- - [`ee75395`](https://github.com/alpjs/alp-migrations/commit/ee75395d3712a968abc2705827fed0edaf3fe6c7) support rethinkdb (Christophe Hurpeau)
689
-
690
- ### v0.3.0
691
-
692
- - [`7455623`](https://github.com/alpjs/alp-migrations/commit/74556232bc469536ae3f95d351ccdf4bbc9ad9cd) chore(package) update dependencies (Christophe Hurpeau)
693
-
694
- ### v0.2.0
695
-
696
- - [`3acfdef`](https://github.com/alpjs/alp-migrations/commit/3acfdefbcdf27ee6ceebca3aa6d1423bf67206ef) only listen to unhandledRejection when migrating (Christophe Hurpeau)
697
- - [`4f27e93`](https://github.com/alpjs/alp-migrations/commit/4f27e93065b13b4d6587c8ce78fbade09b5e01a6) pob update (Christophe Hurpeau)
698
- - [`d10d210`](https://github.com/alpjs/alp-migrations/commit/d10d21006cbfbe053a84df14b5b5cb4543322375) only add to db if migration version <= package version (Christophe Hurpeau)
699
- - [`25ff4f8`](https://github.com/alpjs/alp-migrations/commit/25ff4f8eee77330a6be6bb945900662e445fa67b) package.json remove useless scripts (Christophe Hurpeau)
700
-
701
- ### v0.1.1
702
-
703
- - [`9a4d1ec`](https://github.com/alpjs/alp-migrations/commit/9a4d1ec75ca6758b718430efa5e3b92a37274c90) update dependencies (Christophe Hurpeau)
704
-
705
- ### v0.1.0
706
-
707
- - [`e4896c5`](https://github.com/alpjs/alp-migrations/commit/e4896c5e25ace8fb0d4dbc79e8515cfc34f7596b) first commit (Christophe Hurpeau)
708
- - [`d0d0f65`](https://github.com/alpjs/alp-migrations/commit/d0d0f65c6d1bdc0f29687414eeef50ab3b4f7ef7) update AUTHORS (Christophe Hurpeau)