{"_id":"app-migrations","_rev":"365-c3e0a2c3c6e4c3e0f51923f6e0d029c9","name":"app-migrations","dist-tags":{"experimental":"0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18","latest":"3.2.1","next":"0.0.0-next-4d0e65954ff82d6acf17b3591b06ec4de66b7977"},"versions":{"0.1.0":{"name":"app-migrations","version":"0.1.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"Apache-2.0","_id":"app-migrations@0.1.0","maintainers":[{"name":"rueckstiess","email":"thomas@rueckstiess.net"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"2d2ffb52f755d830d7c0f2423479924e83851dc4","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.1.0.tgz","integrity":"sha512-kvPCndsOTtnh7tuInCPUV+AQnd5mXjpTTihDHJ7NkGgvMop4hRrmoZvEKEXfg5RpeTUXmCs1gE+5HGLIyvZ/gg==","signatures":[{"sig":"MEYCIQDWnW0rpP3N8YEe0Y5JhLb/P57gvZBjt5ATWbjYow4ItAIhAOSHfjS/pNi553gQN5IfUAMVF14nL3w6ZzpDu7OIJ65k","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"2d2ffb52f755d830d7c0f2423479924e83851dc4","gitHead":"b8ccfd04c02eb8042934e72f91272171531ff81b","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt","test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"rueckstiess","email":"thomas@rueckstiess.net"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"3.6.0","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"5.7.0","dependencies":{"async":"^1.5.2","debug":"^2.2.0","lodash":"^4.6.1","semver":"^5.1.0"},"devDependencies":{"mocha":"^2.3.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.8","eslint-config-mongodb-js":"^1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations-0.1.0.tgz_1457666885242_0.9083483798895031","host":"packages-12-west.internal.npmjs.com"}},"0.1.1":{"name":"app-migrations","version":"0.1.1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"Apache-2.0","_id":"app-migrations@0.1.1","maintainers":[{"name":"rueckstiess","email":"thomas@rueckstiess.net"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"3c05fd26d133c2bffe5373d850d0b80f252db0a0","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.1.1.tgz","integrity":"sha512-RY9/nok3ZcAKUjAlatyF2F3kiKfYuZaRUx4im4tOVODiw6cLPsM2NLRZgkZWYt0ZQiQcAa8+Cp8BuPFsuHOaMw==","signatures":[{"sig":"MEUCIGHlOlbF5RTXCBVXOGo7922gq3d2iIZVZkQr/x28Vrz5AiEApzvEx5GvRASl+gA0JvfRCKuEe+v6asYe7zCIMbX5Pgk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"3c05fd26d133c2bffe5373d850d0b80f252db0a0","gitHead":"39524b7ab2318c65bcc975ed1fc2b733a81ea9fa","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt","test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"rueckstiess","email":"thomas@rueckstiess.net"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"3.6.0","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"5.7.0","dependencies":{"async":"^1.5.2","debug":"^2.2.0","lodash":"^4.6.1","semver":"^5.1.0"},"devDependencies":{"mocha":"^2.3.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.8","eslint-config-mongodb-js":"^1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations-0.1.1.tgz_1457667142441_0.07313017081469297","host":"packages-12-west.internal.npmjs.com"}},"0.1.2":{"name":"app-migrations","version":"0.1.2","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"Apache-2.0","_id":"app-migrations@0.1.2","maintainers":[{"name":"terakilobyte","email":"terakilobyte@gmail.com"},{"name":"jimol","email":"jim.oleary@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"mpobrien","email":"mpobrien005@gmail.com"},{"name":"christkv","email":"christkv@gmail.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"keyboardtsundoku","email":"satyendra.n.sinha@gmail.com"},{"name":"pzrq","email":"peter@peterjs.com"},{"name":"justinjmoses","email":"justinjmoses@gmail.com"},{"name":"aherlihy","email":"anna@mongodb.com"},{"name":"redondos","email":"aolivera@gmail.com"},{"name":"dpercy","email":"davetp425@gmail.com"},{"name":"cilix","email":"matthewlevenstein@gmail.com"},{"name":"kay-kim","email":"kay@mongodb.com"},{"name":"glowe","email":"graham.lowe@gmail.com"},{"name":"micheal.parks","email":"michealparks1989@gmail.com"},{"name":"schwartzrw","email":"schwartzrw@gmail.com"},{"name":"durran","email":"durran@gmail.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"f45a869c8ca434bcdea43caf54afce864041eea9","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.1.2.tgz","integrity":"sha512-wsTYqB65TBnYKt9KN66LjnRf5i5SvYc4S6/R44gZQ/oRyH+eJAXVcnDljZDTKELY2Jywbbh57M5Rx29DfBj9tA==","signatures":[{"sig":"MEUCIQCmE5jATmTz7QyqsuIRGqASw8xlpillRkzhSj3rXi9YGgIgFt89A0sCbxSnyWX+gwNad/J+2cdKuKo1X3FNQVN8ots=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"gitHead":"66b6dbbf70d8b53fe4e7d29a0f1f150c36cb291f","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt","test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"5.0.0","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"7.4.0","dependencies":{"async":"^1.5.2","debug":"^2.2.0","lodash":"4.16.5","semver":"^5.1.0"},"devDependencies":{"mocha":"^2.3.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.9","eslint-config-mongodb-js":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations-0.1.2.tgz_1496253350710_0.7244218331761658","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"app-migrations","version":"0.2.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"Apache-2.0","_id":"app-migrations@0.2.0","maintainers":[{"name":"aherlihy","email":"anna@mongodb.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"cilix","email":"matthewlevenstein@gmail.com"},{"name":"dcoupal","email":"daniel.coupal@mongodb.com"},{"name":"deafgoat","email":"deafgoat@gmail.com"},{"name":"deepshah","email":"deepcshah@gmail.com"},{"name":"dpercy","email":"davetp425@gmail.com"},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"glowe","email":"graham.lowe@gmail.com"},{"name":"gregg.b","email":"gregg.brewster@mongodb.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jimol","email":"jim.oleary@gmail.com"},{"name":"jon.franco","email":"jon.franco@mongodb.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"kay-kim","email":"kay@mongodb.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"micheal.parks","email":"michealparks1989@gmail.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"mpobrien","email":"mpobrien005@gmail.com"},{"name":"redondos","email":"aolivera@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"ryantimmons","email":"ryan@rytim.com"},{"name":"sampoonachot","email":"joy.sampoonachot@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"schwartzrw","email":"schwartzrw@gmail.com"},{"name":"scottsidwell","email":"developer@scottsidwell.id.au"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"terakilobyte","email":"terakilobyte@gmail.com"},{"name":"thomaslangston-mongodb","email":"thomas.langston@mongodb.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"vrachev","email":"vlad.rachev@mongodb.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"bf3341e23c3fa0cae8ceb4673a51aa76a0da4352","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.2.0.tgz","fileCount":5,"integrity":"sha512-YCXqG8UaqMevQgeMKrALnaLSJHJX83HW9hjeQg1paLOSzCV1pV4EjHeRNnZpyXM3uONhV0I3tcsmTElPwmqfYQ==","signatures":[{"sig":"MEYCIQCtxhG56aLtOw62K0+0V0yWGDaOEhZdolwRJuTTo+8mHgIhALDJks3HIjfqWO5WAVWZwdiUXYnATDdaCEwPDy4OcHkN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHzRsCRA9TVsSAnZWagAADD0P+wVRI4fHJTakYQixzpLa\nEdjf8by83OxdQqbr/dxt2a6CCj+oZ7VvUd8M7qrlKAVkczgND11YxSkEZabA\nYmZw8WmvkkyPNlE/P5Jwi6/tne5uUK/WCo7Sq8QstsGtVQ6Vj1XYyhkXyxB9\nAdQKtrE7qbfchVIgGyMj4b8by3iB6YygUNrLbrVbbPzDULNvPL0WxBRWBKn+\nUp8esAXm5eq5Vp6/y4P4w9kRzvROEScI+oXz1Wr11Xm7SY5dlih3rNYwqKpn\nnQfy8/0GPdfe8T+4dQ9C51vV4hSqo5rSEW4osL9bf5InafwZj8mZDxC01gIQ\nkg4HbTdyKW8H3CjEZn2TC3iNTNipEmaD8RUwyu1XGNGBK3wvVQfGyS4YDDEh\nH+ocCkIvcsG5VxtepWPj5b5rlfD4sc87C5mnRTP8ZdCJrRJIRbtHt16cerku\nXHPYuiTomMLKnszh2Bv7iseM0yKhYxD7WL5dFnAt7CNb0gdwJl6ALqOsn6ds\nszaqtllxLypVam4jdfcat1pRJKYTQN7zAWicEIvztpEJ4U9l5EIrTY4XbBKx\n6iIPij+UlTzrOou4QrSXJ/CAkBXpN2yxVlShOJgWZ4kwdkxrb2YE5EoukwYS\n/N5ULuvU5tj/q8ZIKRun0xszRuanvJzbBK3x+RtK5ESXQ3aD8KluBYQ9s1aT\nnLNM\r\n=DcU3\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"cba4aad67da85abcd2de89a85e31b0e2f50795a0","scripts":{"test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"6.13.6","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.4.0","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","mongodb-js-precommit":"^2.1.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.2.0_1579103339869_0.5336877608231896","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"app-migrations","version":"0.3.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"Apache-2.0","_id":"app-migrations@0.3.0","maintainers":[{"name":"aherlihy","email":"anna@mongodb.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"cilix","email":"matthewlevenstein@gmail.com"},{"name":"dcoupal","email":"daniel.coupal@mongodb.com"},{"name":"deafgoat","email":"deafgoat@gmail.com"},{"name":"deepshah","email":"deepcshah@gmail.com"},{"name":"dpercy","email":"davetp425@gmail.com"},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"glowe","email":"graham.lowe@gmail.com"},{"name":"gregg.b","email":"gregg.brewster@mongodb.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jimol","email":"jim.oleary@gmail.com"},{"name":"jon.franco","email":"jon.franco@mongodb.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"kay-kim","email":"kay@mongodb.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"micheal.parks","email":"michealparks1989@gmail.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"mpobrien","email":"mpobrien005@gmail.com"},{"name":"redondos","email":"aolivera@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"ryantimmons","email":"ryan@rytim.com"},{"name":"sampoonachot","email":"joy.sampoonachot@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"schwartzrw","email":"schwartzrw@gmail.com"},{"name":"scottsidwell","email":"developer@scottsidwell.id.au"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"terakilobyte","email":"terakilobyte@gmail.com"},{"name":"thomaslangston-mongodb","email":"thomas.langston@mongodb.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"vrachev","email":"vlad.rachev@mongodb.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"744d1bb97c47336eea1027597df9dafb93030f4e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.3.0.tgz","fileCount":5,"integrity":"sha512-ZrmB2kaAb4CcJ2gUDmyMWOOnfBu2tN2j4lU/yPvbwk0yqNN1Wd2SGDGtQFcwdZhur6nDRsDiMNWLWNq7hmyKMQ==","signatures":[{"sig":"MEUCIDuJkYCODHGmTe7QPGthy4Nq5a6Fqz07frcewxgtLPPWAiEAleSydomaHX4s9XQncCGXmMCIUpTzHuCW9lBDiEJuQ1Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHz0mCRA9TVsSAnZWagAArNoP/2FTCjijYB0ccH/oYDII\nfkSoMQ/8RZ81KK5pw3l7BDeUWn2mKIqcIfuvdlmAohT7znzs1ZPhRe/d6I4B\nGFGDuuMQg5IoeoMU31eop+Hp5OTY+NWLhMiNRJxalIkrz1Pqdl94SLbw27bw\nDQgFciVYI6Kfe6oqR9Fh9LSOIAoWIW15U2kfY3y6lBRi2Xjd9KSV6fYN4FYM\nNRwzrNK4svqFoE6Oo5C3Qgp18TI2Z7F5e4nkMpi/p7Ykfh9y8mHwmgShozZP\nWPKEEBI0quBUOuMGtAblHVvMfXD1IQHbpp84ZUyQIviel0ckGd8Ppg58mATF\nYV7hp1zU5rQ2Oz2kkLWWBn1zsZOcp9X7bjqSg9gAE0jBJeIBNiGpOfeQg7jl\nWxfQ4O5IpV/az/Fld9Hhhu0dieKb0l/n0odzbpj6rQ5NBSTGRa4HF1dg8uy/\nqDJssT786WpXiFjgjq+JCAH9rU1yFoxiswNJbXQjwe3F4PPp1bb75RVjxsKo\n0QNJXHT0J2yyYd/Eit/F17zzo91MvImiNs5rYGVx47jnX68JfA4pmQRpfHjU\n9Eo8PIe4UyHDVs8fEpJNFFmbf7o2wqyQL3I3J5uhyEvpWRa8P23gkPwoggt7\n5J35s03o+4UGFICkRDcocJF3NJdTn5r+Bf5H6uvpPqtdn3/0HxZRdrCTnAEM\nxuEb\r\n=2nFu\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"e652e50f2bcd38811196f9649da6e3d61e1397fe","scripts":{"test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"6.13.6","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.4.0","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","mongodb-js-precommit":"^2.1.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.3.0_1579105573956_0.29149152626818964","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"app-migrations","version":"1.0.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"Apache-2.0","_id":"app-migrations@1.0.0","maintainers":[{"name":"aherlihy","email":"anna@mongodb.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"cilix","email":"matthewlevenstein@gmail.com"},{"name":"dcoupal","email":"daniel.coupal@mongodb.com"},{"name":"deafgoat","email":"deafgoat@gmail.com"},{"name":"deepshah","email":"deepcshah@gmail.com"},{"name":"dpercy","email":"davetp425@gmail.com"},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"glowe","email":"graham.lowe@gmail.com"},{"name":"gregg.b","email":"gregg.brewster@mongodb.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jimol","email":"jim.oleary@gmail.com"},{"name":"jon.franco","email":"jon.franco@mongodb.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"kay-kim","email":"kay@mongodb.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"micheal.parks","email":"michealparks1989@gmail.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"mpobrien","email":"mpobrien005@gmail.com"},{"name":"redondos","email":"aolivera@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"ryantimmons","email":"ryan@rytim.com"},{"name":"sampoonachot","email":"joy.sampoonachot@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"schwartzrw","email":"schwartzrw@gmail.com"},{"name":"scottsidwell","email":"developer@scottsidwell.id.au"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"terakilobyte","email":"terakilobyte@gmail.com"},{"name":"thomaslangston-mongodb","email":"thomas.langston@mongodb.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"vrachev","email":"vlad.rachev@mongodb.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"9ac53930361f30a5f0d27e87c1f561847c6063c6","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-1.0.0.tgz","fileCount":5,"integrity":"sha512-+Ey/1+NbshjNKX2VhsdH3cbbIEm2jY1vqX0RAl62zf3zHIqv7p+oS7TFki/s5V7b/V8GZUIiS8D0PQq90k+4eA==","signatures":[{"sig":"MEQCIFRHpcd7heZosZ1iMVxM/nubdlxKP8CrtpGMHmZH7/7PAiBY2tWz8/YAliRqu86eJcDsS3seFgxMaQy9ATQNng1ydw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMcdgCRA9TVsSAnZWagAAY7UP/iosHeJYf985JpRF4UGL\nN0MxMsTlZ1yil1kPpS3hdUQLVYBO3AsUrurYSL9jlKWplJbkQ6QfEhV1cVWB\nc5LxiELMuSePQOBokcPrA4mZvnQk9/bEgwtfrv4B9zFN9f5bzCYbJK1APqCa\no/RK0cezTnFrCfPFLYNgmbmVnrQkj0UOa7GYvbih1CM2Wta6MvHIj4Adpcs6\njT0vOr1Yvt5VhUgOBseaL+gsl8kygtudw3jsip5CvsM/T5HvLpjHyye4t5A7\noSMFhh5+0jb8Ug1x09BB63ftfnaV1s4oTu6C9hmJUM5eeOLZU8FFogRtTntH\nDuohWbqloRTwyqUDZhvRrYewXiPJqe5ZP5LLLrYCEEZiL6XWmhHQWq/uahNH\n0R55NfjG4v5+zkxVkzVZpf85HMKYfmg/li2WXuqo8NRjwV69RiJpJ2zPGv+1\nzELWN3lT606UofD5+2jXWuQ6MG/znMjBogu4C56YdtyHft13/KGhTk7nFchN\nWB8xv4CmXHpKpLowEkHysPOYe/NhEUSyLKd59xJPOUBMBe7kpLoyJxpWbuT8\n6MW40olz5OEzPrZ/4BAxptKC0pcrJaDvKES2gdXGt6BP/VTqHVTFc5Onybjc\naR2Zr2fbkQLp8ImqI+dFiVeS7j+qsh+HDLagAWN8tUqaS7wcIkxwpPkd6R0T\nHR+m\r\n=O010\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"34a27b079c2313c2485ab9dbb99379e166b592f7","scripts":{"test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"6.13.6","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.4.0","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","mongodb-js-precommit":"^2.1.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_1.0.0_1580320608044_0.45572284474519953","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"app-migrations","version":"1.1.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"Apache-2.0","_id":"app-migrations@1.1.0","maintainers":[{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"aherlihy","email":"anna@mongodb.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"69b57233cdfa5ba691082d23f3713c90f811d334","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-1.1.0.tgz","fileCount":5,"integrity":"sha512-CjnvLCweDBly55rI6zXJaW0cfIEQRwLjuENs2Bh5h4tn55qDoEnZSv20xNxEbvJsROvfE0Z3rzN3044y26RyCw==","signatures":[{"sig":"MEUCIQD73U7lgA6zHtBINAnYuljxBiJa53jNhm792ftX94yCTwIgfTPk7hJw+inHpVnoAJ09Lql3SPZ9dXzxg4PRjTr49mo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17072,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrog7CRA9TVsSAnZWagAAfx4P/RKs234V5dbOgz5DEcMu\nlxC3OEbNzLamhHKVxHFB8lD9Lb7rYA8DocguIOEtlrX5bCP6A52vl/H77qAB\nFoc69u7SusAl5U4Vf3hJd2+084NICbv7P2hCj7LbWXU+HQSQJQnMmImj2n+2\nHZkYl6biEnu8LNhz1zubpembaMabuVrJO9XXODDZt4VBVsc2MyeGp4cDZ+/2\nwRTOLGncC1p8l0eBtjvzK5DO0Y5Y5kZCTCQEOT57mH1Hugfb0xRTQEGCh+Uh\na+fzvNHSSVPG3WM/ikxjPF28AzZtAFjFpIGx93lMQh9skyKLQumvsqQRTNud\ngSmNf6rqUF4e12yuqLc9JAKBqL2pD6lJsFN61kBhPJZ4MhTbou8GujThjHty\nlAbbbLLAzbttNHhU6rSBat10OX1x1glidbix3W4Yo/4784ZA14YN3uNxZ3GJ\nQDosPyVj1BOJPbceAyPbqebHbruA1SNrgYcDnKry8Bz2KUjX1TcRhV0YT7cS\n+YDjlXxpD7TuFw9ppeC8xZUlJH6OJZnRG1Ke/etW6uLUeuXL+02i8nDYSCvu\nH+x+x1LtMV8zYdIAQYcM/tDl+3Z5Vb18bDZKqWb/AVHMJuReGLRnBHwLYbm8\n5rd1e8n0nAB+YUe049ctwaIZopgOiGHUniBx2Co9m1M/2X45mUQ51NlWJijV\nw7g5\r\n=KxEw\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"bba8eefe38447ca02a5b3c5004977712943438ec","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck || echo \"!!! Dependency check failed, but the failure is ignored by now. This should be addressed in COMPASS-4772 !!!\""},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.18.4+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_1.1.0_1622050874554_0.31839210992829803","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"app-migrations","version":"1.1.1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"Apache-2.0","_id":"app-migrations@1.1.1","maintainers":[{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"aherlihy","email":"anna@mongodb.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"843ed9f91e3973749bc0b1284964de306ce5cb39","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-1.1.1.tgz","fileCount":5,"integrity":"sha512-vdtC3Pc5ZdaInjLZEiaPAyyLrWBYDpnYLK/bBF1FU+KrU7y6sneB0pUrJFUkeukBByAfB2TgaAiEZDen4+nXlA==","signatures":[{"sig":"MEUCIEsLvkzOIRG8tWWkQcvHXSGUQQwJFaZOqpVmcWfbjHSqAiEAlwoMG9Qd064x0YD9xiljh/C/6MyZal4XcI8zAKkx440=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17015,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr6ZWCRA9TVsSAnZWagAAGCwP/A/NgMC5c2o+3aSS8eUy\na6WqtCYn96z5PFVTdMHGsQ1+YKqrQHW+ylZ8TBlBnGQ1FCgK4bLxYtgfo9M5\nqVmMeDbnGIn8pdqG7X0c+oHvdvLQjAleWQkagzn3SZn/yGK91HewZcCckbCK\n3X+bl1gctkaxG/CWK7PvzqGilGw0zksnHh1CmlweECiaj8THYPMihv2T5z+v\nBpr/qV0GL+r8qUvntOL4nnpI/BGJMV8GR0WtNVpnoLAn+RWDorlWtT+ErEhV\nWo0ZbYNQe2H5cpAOeZEUoINsWraJ94H29UzrSFurSGBLrcACfIMwEqBTCkUT\nx9AFK6EG7NHAOV70rKE//PrE9pnQaCu87hIMV5Yhnn2dSdGh+nhbB7Wz3swz\nfbrG9umiIJ5NSIfxfO6BNnwelphRaPyIPi23B7bhXVaPFlQQ6+w8wZMSgAMf\n7N6olQCNKHKcAcTaw+H8LKsmtk2jcZSvlti8WZyJxVFb207R8usZgUpfyX46\nLesmjL1dIxuiI0j8BB1Z0dgIOOKBA4eLIDftchW4kLhmcKtYZvdRfE9Fv9gp\nsA/AU8mb841gqSCMwOFhd4tgj78koFgaxmHkq/Y3nZFbaHf9fI6yF6aT9VQv\nUUNcCKwVma8zfzuAA9o+eXq+ZLxLz/Jbv6OQgGjUNXpNZrjV/bsPK87xcBqr\nHWeP\r\n=v5XA\r\n-----END PGP SIGNATURE-----\r\n"},"scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck || echo \"!!! Dependency check failed, but the failure is ignored by now. This should be addressed in COMPASS-4772 !!!\""},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"6.14.6","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_1.1.1_1622124118447_0.29592798952167154","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"app-migrations","version":"2.0.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.0.0","maintainers":[{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"aherlihy","email":"anna@mongodb.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"b86b1f3ada56e50fd3c83e1b1895e9c039ff26b5","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.0.0.tgz","fileCount":4,"integrity":"sha512-U+RJiHbVObzML/+a4/EmfloMd3qMb6dooLBiO/3acCaonlEV3LQjLpKw/4crldk71NJNDsB0lJhQVGKtG2XmUA==","signatures":[{"sig":"MEQCIE6yH5hBQhhZO44CpzLJDZGNPv5phxN/YYRqqOidsfwlAiABFs4EQI2QaYkVYQOHQFUlNtOoAOoHPLtJQNsIUMnTQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguQkvCRA9TVsSAnZWagAA+dYP/RmdnibsU9F6lL3FXOND\nEAzIUkzdrlAUGl0N9JrDjfBf1ZeaNIKhiBccsPq9WhqVApryY90d391IZ2Se\nR1T8L02O0jwiongts1JbJX+BH+br7qkRd0Obn0yDKAU3Y8vCEjP4+nsyUASj\n021qSiE/VxVZOf1oCsVlAP/iaZz19GU70TYE6SznS77Rgztl08mbMHblThex\nmMrYnCgcYcc+9H288xiize2haVc7CZc5Qk1p/fxPHESpfc37ztfc44TKpday\nY11B3OKFQCAn/9HlaRQqyJJgC68GwGrlGjaTabOK2eU9bw1PApL6Ms+l3A6i\nOJ3jaxQ9TdVyRnl7OkAyjKcKpBn5uGtD04IvgykGg0rd6xEQJ5fR3zUqO0Tx\nJWYa468qx5Bwx2JyFjawiDa2EpUlqeqB636sl4rCK4gLJXbysMW/zzBEff4w\nOeLnDNBHurSRpL19Iv67id6DATdWVjtjjqgcJb5ThmUWtGYi5Cy7vvdR0zRc\nKTVWHc5b9gMNIjhemSLO3aMatxKcWGRc354bRA3oo2Tzhm/m2ik97/ls6iTz\nQ8zjx0aoo7AHzUjlAwMJ/C0iEwoGUsT654AtKMMgQVPYahdjMBVgH+NVkn93\nNInf2Yd3D0IBWnDpWdYFrkdMTRDf7QGOaddNLzvTVA1TDPAMCI829KTJmEFG\nrmAU\r\n=Utsh\r\n-----END PGP SIGNATURE-----\r\n"},"scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck || echo \"!!! Dependency check failed, but the failure is ignored by now. This should be addressed in COMPASS-4772 !!!\""},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"6.14.6","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.0.0_1622739247637_0.9997744788211227","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"app-migrations","version":"2.1.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.1.0","maintainers":[{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"c5e40d1b716f182d68e90d1cfba6b9ed80618a20","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.1.0.tgz","fileCount":5,"integrity":"sha512-CT0kFGkjWRC3kn4DpOI2ORjdV0wlLuIoTmZR1aD7TcEJqUi6plplYjabSrW2bXwgaW2/ahKnhK8e2enm813jVQ==","signatures":[{"sig":"MEUCIHlapxZhx3A3wNTV5au3MTuiccCohzGdRb8ivvbHQ1SYAiEAur7G9XspgCq7kHq37RpgoQPK3equZu0jQ+uS5LLOLvA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyjbiCRA9TVsSAnZWagAA/DcP/3txSHHjdvwRJgStFhLI\nHuRiADkFxLGYSjb3GICNvg9Ve+hrG+QiP/xrJiPflYy16kQz9B7wo66V9SEu\ngPy7CFUxf3PnOXVFTrT6EWV86F9rIjO/OhddCaYk5A3ZiF12z/v7Y++JiMX1\nGIIodWwSbslR2GuoEZKkWNpLRymtyVm5E39nFewRV0QMr6F7NDCiqczQWq6N\ndp9Z3YXrSL95soJOg9oC45qQ0iTHKb5jwKr+59g5So65BHcE6gGbx8lfWu5D\nnDyNewFx4ELSb2B3fLRGSIarwHdq716TwkAWTXPHlkJs+P6w6gBXVInyYIa3\nBLayb2pLQ8OesxLLPKc35lLXa/Zqm3OxBV86jDpnub/VIWyCIUEvWjeK4cdJ\n0/xJIzOrmrXxR5CvWDmtQisrq1LFV8CUvQXFMWxXnRadGgcFKh7C3dlm4IsY\np/p6WY/3K81FfGPdRasxgk+DvMsWeMVlRElWGZXZhLzb9wXcHbDr3ni15JHv\n2TzJaklGrkq9Wq1EbxQrCd0C1yQNfcCWlljrDZhoDGrJhpX8eLt9GazTSHv+\n3NqCVxW7CGP+37v4bz4+CJWmv04oa/q9y0Y8SpjFGPeJOhlKsaDL+nRSwGGM\nFc9VLGvAKqvEZt69CuSg9OItV8TVcrzyLkvVJhPXxM7KRcIaFm11ZAPK1REN\nZb4X\r\n=suWv\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"cd0a29248dc71d8ab4e3428dcc04f534fcc48e3e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck || echo \"!!! Dependency check failed, but the failure is ignored by now. This should be addressed in COMPASS-4772 !!!\""},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.1.0_1623865057993_0.28843954923944115","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"app-migrations","version":"2.1.1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.1.1","maintainers":[{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"b120db78ac2e32c30c0e8e8d5a8ce292374eea60","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.1.1.tgz","fileCount":6,"integrity":"sha512-iKeKiFCdqsR24REgE8uS+qwWUuQWPoUxflr30YUC0NAO10ku4TrlyNXu1OYpOmB2+CelIX5axaswGGRYMaGl4Q==","signatures":[{"sig":"MEUCIFrwoVEkcxeYINPLi0mcTxLdYIJVoWTbiqPUYdEWNhPqAiEA0Gl24YGRDphrDD3DBclSOaF867J/CYWwud7zv5GNFc0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzLqlCRA9TVsSAnZWagAAFbUQAIuq2hMxrcUGF7ca+Eai\nOKqTtk9U4LIJBUl55ajhswsWtOZkcsTGr9FWoOwerPbF93Qg5Zi91dzzFg6a\nT4FwpDHUCV+arngHaoAQ2pfn1YoTBBvQgCd9ON0sx2HZDrLoZY38XfQlXfbw\ny2GNAfGaDrve9Q3zYYQbk1NJ/SdMN0Gi9wkWsAWzBSbZd2DcXGMS0vdM2cK3\nkSo14wl3DRNkrmSTVy+jUZfh+6Su7KkqPl780wwFSX8i7SxezG1SyqB8E4LV\nx7mR+yLPUGJKNyhB2dRMl3h5amzBdyT9BBDDOd2NTqM+FG7IrczNia11yPjv\nrXxrjNCXF4hJG8lG8uWsPd0KUoW+K/aVa1+cRlL/bHBEMjfZlFicNacRuLJC\nfr0skG/CZ9cDjJmyAEapsEerhE7ijcCQ6b7+BPAeslqbfXxmt0GoauaNvAyT\nwsMi5lb6pSmwHi0l83KBJGJPP5E0lcupen05qRwqMgmAhU9WUb7gdOsTNRD5\nPk4tfTuMmiPxH/ArLL/tbTvvovMQ5RjzDHDbGmu2Kq7AYeBN18VttRQBQca3\nKWdILfA5xLmAux+3TJZXSGPZE8qbxEaVMWrraQggi4o/1M9jlek/4CeTpM1W\nvrMIEJMh+mMSFYsJTcq4Km2SFIAl9maoHqLuuEiDTMljhU/OvJtoHIvETSYy\nbj9G\r\n=H8Sn\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"cac56f0836005f093bdc5967102e957a270d806c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"addaleax","email":"anna@addaleax.net"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.1.1_1624029861024_0.657600693195707","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"app-migrations","version":"2.2.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.2.0","maintainers":[{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"}],"homepage":"http://github.com/mongodb-js/app-migrations","bugs":{"url":"https://github.com/mongodb-js/app-migrations/issues"},"dist":{"shasum":"47168b8dd9fb225c941a7b34746a15ccca0b7751","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.2.0.tgz","fileCount":6,"integrity":"sha512-cIoXi6BL9XY+FaW3v0WpIbP2dJnTYJFF+4LS8/RSzocpTWKVYstNaN2g/X8gt1vWsP3yHvMXzfebmaw8uBtoNQ==","signatures":[{"sig":"MEQCIHDBbZ+ZG4FoyRPcDs3Q6cxWYZj6ZNZ5wgEDw1ZTbnvcAiAUtBeB4Bi1+NZ/IkgspC7iZO1J4lPBReijR9xnEXs0dg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0FrzCRA9TVsSAnZWagAAd7MP/0JyKE70r1zJB9mJdyQR\nIHgBBBg6iTth0Z61FF0C1/532sGpYzVnfXlL0zoGGz49wCzNZ0AiRuIGXq96\nPnNpWrKDJX2G3WPHFE8dNYoKeWokVszplWuNMQMrb1veKu9d1S9Jt9vCBu6O\nlP6hcHkWpLgpzGQLEndPBwwGQUqD6szF9hl/m0+NOqBECfw+L+lNscke7eKY\nRwK23dn9ezhhZTJerH7rbbieNRdjBwEjAIFUxSTgQQwDJExeleMZTtdXn/eW\n68oPNYJ98i0P+c30QcO/trSjLFISJraAOPco7QXOi9r34QFZRhtYE7gEGKn3\nv1b0DGcBzwJAZyaOws+wxs8Wtk+UfZRGTrCzql9LLICw6t0REMZtDqknUQ1h\nYICtCwXAl0kUK4pTGeBdV0i6FCwhWZUT+uJSLUWj1+qApF1XYgE8bUyQ9f1g\n86Lvc9+6ix0lGxtr3Zz52ae9Sn707qwaJgS3sLwLxeTKvLIwrhSiAgQqhRGR\nR3/ntMLuM/F3VwV9BJvwtE8TycejskDpMAT/36+Xrh1EZk7sDk2hLFm2GXVs\nA0Y2fi4PVdwdOHu9awLMd5Abpw/cRwXEQQidh+Om6z27Hf1nFPfBmqE1ts4O\nJZPUXe4JA0RGMcl4e58JOyREDjd0nmySaGWVuihpv0XAn86LaCFdd8zP+W27\nI6wD\r\n=1OpC\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"558b869fdc5c6c9cd59229974f214e1a40158413","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git://github.com/mongodb-js/app-migrations.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.2.0_1624267507085_0.5167791411660658","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"app-migrations","version":"2.2.1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.2.1","maintainers":[{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"abd2ccd508b7c84c1f7b363711ee4ea63893f663","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.2.1.tgz","fileCount":6,"integrity":"sha512-sEoMDMZrdeqW7WG4mgO7quFhGM8tSRXm4dzPaG6i3kkO65bQqcR7I18J7M2MhfW9paVpeeAaH02eaV1oSc4xyw==","signatures":[{"sig":"MEQCICG1TmyQe++hV7aJWLP0H7QOfXkO47mRBZBnKaOIZS13AiBq4hpNKM2LMcmtEK5VND0Zl88DTDsl4BHBPNutJeFWQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhC9JICRA9TVsSAnZWagAABUIQAIGPZnPj3pT0ZosYfynm\nwa83CkVZDghwfgvzN4IABm/R5R5vW94e0IobaA1PMzvi3X5FCpF+CXfdBEgJ\nBk82aQhyaD89oep9L+lH7/30TVohsuo18/86MJAYeHKXmI7WNS7OZGLJU26h\nxaAjAdDm8rU4jfsoYzH0UMxPO+7dGce0IXwFnf/xq8O6qSXldDR94zZBtnBO\nG/0pp9GkPVyRkiW0U3R9Oqdxs43cmRpPhavezi5QroRgmpgznGTl6a1ywks2\nLeMMWVSCOKeKAhZiF8SBQ3UF/luaCAJvhuBIx/yoL6XYRlrYHlR60opKKfnc\n0QOQB5sVE7K3Bdo5vUnG5MkbWTzLQ+/aMFwOgfEq9rr9qgIteBB+bNvgbK0i\n5WxxyKKpk81Iqs/euxzAjosKeKV2lo6W4tzmkcyUdbfYEkkv0W3oHKnKTxcb\ne2V3uTU6aVH0J4MbWRPjdo7BQTOkgic03dpH/rt27JRpC/P8uMvMFE2qFx33\nwLdV4/Mwm4+aJ5oHc3OMYeA/ixa78Nn2EPALeDSv/VSK5bNbcgUI857+pcqR\nsXgylr3MAH/f0u4oTfQdkuNfIsbdnNjGpMZ71nMcCrmYBibSAGS2/PDw18sU\nWpa+dM0RcGi7friiEk65hhZZmZ/ADAHl6Htz9vAw5mLebX45xs+3+YDBGm3A\nJvaK\r\n=FP07\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"8ec19acfe461d3f9c3e6eddc550669aefc029180","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"addaleax","email":"anna@addaleax.net"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.0","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.2.1_1628164679953_0.8283874401406806","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"app-migrations","version":"2.3.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.3.0","maintainers":[{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e5644435264a8370023e8d636df570a64a29f539","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.3.0.tgz","fileCount":6,"integrity":"sha512-zClHGVMwOjJfwwugkcveLDFUF160rnVEh6pZFd7rU5UKKvgudbVb3s6hdikGaUOVbeIkUn5eMwUwHcNdaOgw/g==","signatures":[{"sig":"MEUCIQCcGHfbSXRpYPL1mkosozHWbRzanjgNgZHCiDrUR6wIKAIgMVYV32qP5ilUErFyFw7PNjBXCyDdLYp96PYYkuZJt/I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE7LnCRA9TVsSAnZWagAAHawP/2GQE0GtQkzrQ6mIZ9KB\n0sIqUMgLZlR16Xau8sNlB92XpKmj0UU2QkA8Ujt905Up2y8GuH1exBlU2sQR\nbOa33kIwSWa1DpUcwgxsEvncga8NEKquKjqb5wQmYEeA0ySBWuenahxh9Ol4\n2HJOSubXK00WmxLYQw+bEClNiCIviSkt7UKmzF1ZEl+/MmHfBjVVzJ/RQx6/\nhCd1FrxiLhzdSkS1MsJ4GO+tO66qt5ohoRaMsleznL8ThkNM5D33zmO1uk1j\nkyLyMTySWW09tiTeC1kwnmT8NzeSNfGeDSXD9YeaOIimAqyaZOP3feIupPfd\n9gC+CDC5Xo4WyLar6YwAFDRjfs97+xp1lqO5dji74oIwA6Tbdh35oUk5Qyu/\nkR/G/CD9iLm7/ieXjwpfe20iXxu3sFVeNJK8mEveH0AjDeQs3NtPTMh6renp\nUx4ysRgCXVTDdS6z4u022ZC3+uplgbaQyXaHRIX/8Adq/1i1arP8ngsDW+iH\nkU72Z17/BvAsdEpuj0K7h4lUl11dnmPm9mCjvRSfAGO7TxF0MqBH3fXZn8Na\nNbfVl35zxY8iQ0tn1twTDa5x2Cek5ZhsV3JL6aQfup8eMuFJkxYUNj4Dnwrl\n8FhvEm6Xec4vJymsX2VKJg5WUSCJI2v3yDB0lNgh2u4Xkot6goZduJie2a/H\nJhzT\r\n=s4NN\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"0b67fb933285abd7115232cd2ffd96b47ac5ac62","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"async":"^3.1.0","debug":"^4.1.1","lodash":"4.17.15","semver":"^7.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.3.0_1628680935474_0.22718978092504538","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"app-migrations","version":"2.4.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.4.0","maintainers":[{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"54f71793e0b24f25dc210541847d61b8bfe8287a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.4.0.tgz","fileCount":6,"integrity":"sha512-SDCazZVsVsCqdcZNLo6sTMUGacvP3buR+azga8UIXxeEmqdJzd3m839m+83rWcYWia5Lavdrz8B9aWduMPtckw==","signatures":[{"sig":"MEUCIFbBjgiEAfwQb5LnpltpGiw0ezzk9p2K0v2HRIFtjaGrAiEAn9Dz1Ht7jLrfwdn/0GvqGMNSiOm9uHg1sD5HaOeNDNg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl4XLCRA9TVsSAnZWagAAU9kP/2IKYFKFIhvLUY1gf/ZE\n3ciS2jXrsaY/kw/ztwOX/znTJ8Pw3io6sM1icOX/UOiHmFaDp1lX+Ap45IMH\nOnmvxmqBArZzWytaZDns/llSuPqDUOJkgxweL5Ircj/Age3Fx1hz6ehd2FE2\npZA6dC94PwNEb9a5QMiDrZD458BIXnV+NT7HP1NE+KRr9KTu3uTccGNuzk9R\nHDkdyFKmhqmr573Z1gwLkXjFakadnQ2IkFxYlcJe+vHtNYQaKRxlwDPWDg0y\nTUJpzqygh1YYjVwWtSihkW/8ytsNyOZRP8wwVcIWsuwCvwEIvagnqGomwqH+\nqO6XHGnZCKMRPocfQrdnCHVEYX47d3DHrjaUOkWMqS96Jx+sMdkkQYVMH5aQ\nfcrG5GbC3Nbki/xjyzit2t5gFBa6htyqMDMS7+pOrbe/nZLmNXpW22CRinpy\na1/s9/kvS51z7ngSVet6z3U5h+s009Yuk9qYEvSlFjnC7McsHtXUnRP90ksV\n/ibUZvXP7YYfLZ8wvdHF6VNMixcWgYjdwHhhw2XbBzeEGlKu3z50d6QENnJ5\nNwyMyqENzOqmpPZXFf8Mp3PEiaE5EcXbRTGFt3LzuTQe7bRkT+Fhrg5ouVQV\nhR+xcUeTaLp0V7TNHHrrA0s0E0smO8fYQ3o2DDk3d54EajOYX84d5JiwJieS\nA6aI\r\n=hMdx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"8ef2cccaaab6d84a5fcd633ea8dfc4c7a4db551f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.4.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.4.0_1637320139663_0.8677752816349096","host":"s3://npm-registry-packages"}},"2.5.0":{"name":"app-migrations","version":"2.5.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.5.0","maintainers":[{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"5a7b3f9f5ae5049e5c5fd47b8c2738a596ff5fc5","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.5.0.tgz","fileCount":6,"integrity":"sha512-R6/AJ/YGIku6mLX29kscUPj3Z4q7MDLUz+hTbjUPB5C/a8lD2LdkjfVUTHU9ypgkeSSAlBd+kt4YhPcROrzwtQ==","signatures":[{"sig":"MEQCIHgqs+JDPdfOHQ193fcVYJ8KLunuiEOmvWmS5VxQwt6iAiBjukUrICuo/7qtSJshh2FVfNFMhfK5A7VXV1ZpsoViPw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhweFKCRA9TVsSAnZWagAAPikP/0bXtzOT65Lb5JdV+1FK\nut5p1YF/jIH79uXJWPAOv+XbaWbjCqWkWYs2W/2lF5qpXuSmQgHY9aG6XO/N\naYl2Z/irfdxeSXYv1HcrFJgZP35U4GWP15ks5aZ4Ol+Bcip0lQj5qojSQy9E\nO6p/L5PuNmIouq5pGS+ksv2mO4yMeBGldM6Qe7bRivroZOSmEO4eVSm3GjHu\ndKaHh9bBf8brJek+jt4Ms5ne6ea3vHIvOJW4CevoD9qm9gd/fS1Dy0oNB+0H\nL8bJwE2ddLgXuMWhOFPw64uEiUjwZaRuPiTzA8B9qrfguQT745sEfYFwH1/j\nx3fkanyQHWZ57uHGIX51SvhMeCnWb5oyxpww8/GbnX7Oef+TOscyL75IYyhm\nDrGQNH/wJwKG1d7umYFUxdpdUg63lrhIcL5D+1YhmsuvcGvQd+zzzpuKl3yb\ni0P8sZKy529U3my8Ff0AJ8owqaWA65Sx9HlyeGOOqGc8QvdGN3qR4cQRHl3c\nhkgril/kt3JZluSeKAB5TNbid3i7yWEPVknV3um7/JwHV1IDXtay0cjg4l4+\ngD2OLTM//xJPnAqsvRi8M3GdBwHnsBCtjYz/tx/GVINOhydlnpdBbSo5Tio5\nnzdUhi5qF3lMqh3pryPASl2LRhjghEM+pyaMfYga+Hyji6ukXm/sWIqdJtdy\nq22j\r\n=NBUI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"77166e3754e36e95c7ff7efb5a0ce5e0990b0ff7","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"alena.khineika","email":"alena.khineika@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.17.5","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.5.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.5.0_1640096074614_0.7204071585626379","host":"s3://npm-registry-packages"}},"2.6.0":{"name":"app-migrations","version":"2.6.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.6.0","maintainers":[{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"78f604bf5c7862fe38e45c0b16f0dfec305043a1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.6.0.tgz","fileCount":6,"integrity":"sha512-I/f9+5Flx4exyY4A/onveN+Xk7J0kuvyrnelgZNKG+/Dt5SplywBdZ5t+e0/D6ud4+xClo6MIA0nhzK3/wxKBA==","signatures":[{"sig":"MEUCICT90+dZicqaktARUVfh3x0I7uWCtjPKDejNqctFbopqAiEAulgCvvhtpE/m/YnakOlkVt1LwT/RHAIlL/uq/1Vislo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2IMuCRA9TVsSAnZWagAA3lgP/1FF4xzTONKOp81lZEoZ\nTZ2NWHfg70s8JriaT4OeUFWetaAWJ0fEcQ7uQkCV3nzwg8EyVVJfJ18d7zMT\nmuYngAFzF/H0f6CLzjnz/wFb4pEvfbVGmURkobCNK6DV2Q1yEEyqZLu4GacC\nQzV77m/HaR/SlTmmOPNoviukOtEfYUC/h6xMA/ctXnGi8Hqq4gXkNiAMV4CK\nSiwZDTg5VmGcW4YCe/g9ZQ6EOfotNfTXmHATT7EZUvk3iS6VodyC4wc5b6my\nnXMuIHvVifuJOveKZ5Wl+dIuGTDAbJztrS0ag+pM+LtpJIS8YoWMvvj7YMea\nCVUlSb29H3Pq5lM1iuVFvnIsfMAyRKcAesVGNl6xlaK3l5BkfdGNVXKOPtww\niwdfnf+pwFg/+qldjsUQHPmRdxcb3Egcg8TO+z95XSBrdIA5NOpBZU0cxZoK\nsV0dgEw1uhlzZgmyDsX0sYaqU+6xuxWI0H1mUy7pFfGZ5vpEz4YiJorhP/p4\n3YVRP9rFgJ683+BmWP1+QmnmdpHqaVzAXJz5ZC/2Ypp5GBelnzbfX9vWCmXd\njGHQSQUyhwkq7ZO8OjsSfqQ7K1kERaODut7ShzoAiWL6my5xk28iE0VzbyQk\ngEvIfYtmk996b4AR9VX42JdFI0dmXS9lkehP0ioeu1enlkMuhOysI6lvTqEC\n34Tr\r\n=yzTk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"542e3fa07d48435b1a7acc21c96de20562b843b3","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"alena.khineika","email":"alena.khineika@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.17.5","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.6.0_1641579310469_0.4337619252006737","host":"s3://npm-registry-packages"}},"2.6.1":{"name":"app-migrations","version":"2.6.1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.6.1","maintainers":[{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"brookescarlett","email":"brooke.yalof@mongodb.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"125eb9af8dcf6df2a6e1dc7cfc1c86cc7874196e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.6.1.tgz","fileCount":6,"integrity":"sha512-YLbVC1I+MEE8fsiQXsYKL7FQ0zeqGUACb09hr5sHMZmTSuYIBVMSwG4UH5HLXlGsPZ5bCqrdUGekjVaWbMDOtg==","signatures":[{"sig":"MEUCIDcgC1nv+xUexH4BeckZ5hzXS1MIpvqLbvqwICgXjlsPAiEAp4CmyQd4bJ92nt82JO4gq70d7rrCuJc/TLPY/3Kcrjw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3fEwCRA9TVsSAnZWagAAgngP/19pIuuA2u35Ir2OBIKX\nusscLBgwef0u5T0H8sX4yajj1VsQufp0b+SwtnfgpWqiNfMjj8ugqPQvnjQE\nsVIttD3RevquX212W9jRy4CbDo/NQA6AvISOoJnfuQ9ASu07Da7OTWfPm1ib\nV4QBYST25nZjPdOcsZqZ/mkNtOuDhNOepFm4UKWP+Zb0/ydmEKKHG4VJVEgb\np4E7WMg5xL/HAKE0JB4awB3q8pg3gD2ZqBGgJ3QGF0yCzeq7C/SjMLgHdcOj\n1GBE77t5VFo6GSgq+6F6HViU5+XMccbsso3pbh8EeEhZokxNoEoT8isbI7Ke\nAgfTBZaO5H5tk/zM+oWwd4mGjyv/i6rlTNS7v3LsqBdqxvWfXoEdgO3Js0KZ\nRA2IeoJwhyIzTxRq4AsnOxCI9g32kZc50MeMgKWXmJXTNOk1Jv3lxG3oDB2S\nR29Gc+FXexpXSLwRPWxob1gK+IU85GZE9AV+huGUHMwvhMy3ilVdjg67/pJv\neOIYuHn2x9DrWKPJOk9htIOJuBIKStKehLTZTpZayPJhW4dPTPnbRch0NU/W\nqM15e2ktEVZzQ6RDaWDg7pHANXB4fmwDccM9aMpGwVbugP2HnJY527M2wdTX\ny3SmsStHgPWOVOuJN6SGsv6BnGHgmoaj1Nc5YHZmeMPY3r2O++UOTTZvumwl\ncNhy\r\n=zQp5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"75710b287ad6e3ea08bc36b15e0be5ebb8f62050","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"rhysm","email":"rhys.howell@10gen.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.17.5","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.6.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.6.1_1641935151896_0.33262309253093125","host":"s3://npm-registry-packages"}},"2.7.0":{"name":"app-migrations","version":"2.7.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.7.0","maintainers":[{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"rosem","email":"michael_rose@gmx.de"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"3571d51eb4e0f02d5f2d12cac88f6b5fc99b3d27","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.7.0.tgz","fileCount":6,"integrity":"sha512-/TSVadQoSVnAShlfd5IYU3+dlw1mqyecGIJMHpMJY944fMkFV+Y3vmIRn1cCYOV5F7//nHzy+9dR8gPaCDyF4A==","signatures":[{"sig":"MEYCIQCDf1t/RvnHHs3AIo1kgW6hKtuSikI6kYj5K0ERWTbMFgIhAJIVox1+e+ampaWI5h0irOiyXJVxCNNGHZXZEwdI4Tx8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+9nSCRA9TVsSAnZWagAACBUP/iZYa+I6mBTyiosgIBdQ\n+XuPfrdDvVvZFpzCEkEj003GMsGdICFXiRQ3huUT0k7/8fj3+zRdMrQgDZef\nkGz4GqXHCt5cEOfrH8usVeIJx4eWb980J3SfXkUCDH4IR1EVA3ZbJHcu35nE\nzxjr1JYvKDdIZIUZcyABa8OSV2OzGBzTXqvgXaRT5M1kNq/34w1XKVLNY6CK\nTvnYILS6qeWI8tP9/cRBcmQ6C2j/VkZpV7Om3gw15IlSA5HqZD5SCqRaN4r3\nZUqjE0btBGs8tQMlM1Sv880TC0+FmwwmRZu9LjoT3LiLMsbs3Js4+R1nYvrA\nS9Tf0a2wxbqlw4QsyEzKyHY14fGWOm0Zr4chwMhX6ZCR7UUWYQKs+A2VLoqj\n4N7gD9SZQ+rtfjku1D8RiIlK8pZ1de0vE5O4Xf1Vd66vT2IrvRXTHbd9rPlI\nr0KM3Wxh97SvUTpJgEs2vS37UjQ2EOXHsJdX6DiZ/b0yO9oA29frMANkniiB\nVaMH0GCihzjHbGADyS/btoZKNmIYeu2cV2J5fej6njZQ0rCtTFuiOcbXDHGg\nxbRTi7Urvy4jTP/euUt1pKT6afWPbIdyz+2qbilo1Wq57zkTC+HjtKuePU3w\nJU7x5LbQNRigwAQFGCfZiXaScVBWQT+mUPbf4LfLFoxclv0N+HS/ZogUdugM\nYvDU\r\n=Brx/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"6563679c816fa44691a53b7e27fa0cb5539e0854","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"alena.khineika","email":"alena.khineika@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.17.5","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.7.0_1643895250350_0.1241359589503801","host":"s3://npm-registry-packages"}},"2.7.1":{"name":"app-migrations","version":"2.7.1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.7.1","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"a6662918a116504297b776ffed76fb3a9d8ba6d1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.7.1.tgz","fileCount":6,"integrity":"sha512-Wik+ecrRphntXIX67GqlPvyQeIXIJAtTpl3QxfFm+7vrkzY/nDuo0Dbj8J2iWWAiDeLz/u04xUyPCTuxV+Z1Nw==","signatures":[{"sig":"MEUCIAYri7OgAHWTSGO1YtEUPT6GtShzISlJw8H7BlQbaHypAiEAjPdFaxcMV7Wjb1D+g44KWXPEXp2AgvYFjSu5UDfYK8Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGNRHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+pw//a4zknrPaHxFUqb+bGb/zOxMMFiQVz0cnvEt1ej/43x2CXimP\r\nN4MkTFrFT9GvX1M7ecTGiwVHx4P3A5SWVIpaK+OU4FKHrQNPY1yEn48c1BIf\r\nyjzZebibfN115i8THyNQPie+0VXBse1nWaRDqEByfsvKLbMDQOVlB3Ogxbs0\r\n04kfiWMqq864yBZP9MeJpKR+AgfTlkV36XKvizvMud2+y8C9QAW1GDIlzA4T\r\n+3i0CqN+6bF94+LQx5ysuTZIDDwDzOa77LvwV+7inUSRumYDtpeEpnxMYR5M\r\n0pvHoNEL8bYiDNOVpsq6fWBhV9XpKWR/Kjp1GM/VmDuod2TIUDD8HiuzRxWs\r\nRxWaifUJWGtfBYT1nmTuLrNsXAEK/mcEkvCd9fCv8uLGN0HWfTk2RSsT3qYR\r\nvHRV384u28gyPJZHoO6NnDRG1348r1t1xcFIKCp20O4mcq2U9jwWNkiERu99\r\nGZbVwlYKqxeTbjK4gEuCOQY8sU7l7X6+3Sa3EVqCnYJ2Nj0ubePpTOS9n8EL\r\nezuhVTfj3Z3ws3E434FKRLwJq65fSMrpjon0+zN1ihw+BedHWFwXDJDd3NOL\r\nnYbjQ4eGGSM5YLNEvcT2DtMLd08rDXOhI9H1VQ3TPdklbiVFM1K92fsdjh+b\r\n/bcDD4J2+vcNkwS+EYu6qgDto6iy55CzbxI=\r\n=Tz3o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"82309afe6b0af6509e295de55a5d3170b7ed205c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mabaasit","email":"baasit121@yahoo.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.0+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.18.0","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.7.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.7.1_1645794375044_0.058845455286876014","host":"s3://npm-registry-packages"}},"2.8.0":{"name":"app-migrations","version":"2.8.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.8.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"aef87835116c9c88b146c2f150ac2a32c2b7b143","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.8.0.tgz","fileCount":6,"integrity":"sha512-wzLf4NNdBZfO5Yn8XCYkc7WifUOe8f2CkC8K68YthOPbkzoEUYSjs+8mzRmB4OPfCPiIxpv+54rsnU2rQ3S98g==","signatures":[{"sig":"MEQCIGmDXZ86mACpDfUx5keRx+D3laFC5kftDiWE3sgNfayPAiAh3Sl1smeXwoGHSMF0v2OaMWI5RCTLUHiNKy8JwUE6qg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGOMdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrR1g/9G+UnKFS6o237sFSv2KwKpAh6Suim+HNiCPGnHJt0Gs95a4gy\r\n+wpK6KqVhT9aL8ZpST1J0vfjWkHjkQeAmmNMhHvaCg1qOigc5UKH0YYsNyRM\r\nAJ+5YITXLGKFqulffwRfRp085wgpaB9tv8B5zlyAdmDb++6xH2DWvBIAYBSm\r\nF0RAzHFpAri0aiNk3ZmB1kwvAwQTrJxI1RNW+MVZCxRnHgIzV9y+Q/viQ9Sr\r\n3HO6PMQrfpiaLRS/9x9+51utCPKxHrhy2WwpKIw5RCoDlHR4GyS2v50Rsjpr\r\nPS1csUdHqks7Q2lR36xHeQHb9xHDf6sfwzKPss/AFvxtv2AF1LRtAbLzVk5P\r\nj+omKuyKyncEX3zyrdY2SeYvpFNOm1nthgsIt129DKczlGJMqfeZdbvnpz/G\r\nCY/9BaN0N4Q2GmxFU6s+BLeBD2FpZTje9Ppc+QdPrOb7pqzY8pMTumbaz/GM\r\n15gRX/UYybaSgYYJ168GWrYqfirNwEQ92HgZ7Jj4FLUL4MMEv6QwZcTnjdtg\r\n/0Qk2n6vCHBSRQi4BOzQayeSb1TjXGvvIKfO9f4oCsqoTEByl4XiTtNBSanE\r\nmwDIrAKIhJCBx8HqV7Gah5L9AFCk4tmCfhJsCZKxPYW8QD/WqQqIMMsp9b5E\r\nlzLqQTHHRnw+hQiFtEw16zQSTvPh7TwV7p4=\r\n=bP2V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"2bb63cdb1d4e825f280c0d2af14b7298c5769490","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mabaasit","email":"baasit121@yahoo.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.0+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.18.0","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.8.0_1645798173212_0.8910319696477167","host":"s3://npm-registry-packages"}},"2.9.0":{"name":"app-migrations","version":"2.9.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.9.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"072121e56ee8ae0747aa282d5aa0f1d2eb64deeb","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.9.0.tgz","fileCount":6,"integrity":"sha512-aPqm9PPuZ6FeKtUDCxHKHes8z7APNICznqS/Myr1rfqUmEwP6faABLCnFgPecxMeJ7uH2LHH1KZfz0eVujlj8Q==","signatures":[{"sig":"MEQCIDYeG8bG7qZj815yKC6lKgFyKyndEh9DxBdL+BmrjabhAiBdxTCSPQpgtKWK74q6K2BV0xM0FLkF0+oMoWaxcz1KwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiINJ8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryoQ//VeQDyIDejYeT+qdWdeCRutg/K5Pjib+WqQXq350uwn2eRhD/\r\nFmfx5L2Af5Dduux17DhEF3GP3LtaE8PocWXv+D/ogbef8Q4BsTzcEMQeWHXW\r\n/s0kSP3BoMzT3pKHN+ZpDskKx/ZJU1KpJvS2rQjFnOSEOZBsl0r8Ha+zuS/a\r\nn0rkAORq8803je4R4VhsR44+GLTnyk2BDRjp4R10YGXuLaBKHW07jSg0m3w+\r\no2CTVb/VyyD7q7DLpiZPRTSzb+jY5hEp6IEL1DbLUSW8eD2uUwmmMUA5LIO8\r\n9oWfPesc26KYqPYj3Gd0uU1aBv9J4v+SbvFAQRCvT8r5NinggRXLSSRNf9oG\r\nbruUnY/K29ZnXbg3bs991ESjfHLBRWmvbpRN9EwuOCuRVRxOfbCE4pW7Zde/\r\np9owz2pqFKezxxJwpnbCi1yGlW4ib9Nnsv5OfjV3RQcEEAyr6tuvULTHh1hx\r\ngFU+YepDU50SoWgEBV+CI2gv8GYB32bpqMjGh9jCBEbQuKzhbFXSyZJre6d0\r\nUFog3PjWpVkLPdUofSafHW3k0NTg86WBmikdtZB5OVozbd1dMcGtxERmi/yw\r\n5LxdDpfi4Hba01SgDtM0ZDWXL1VLi7fMJANTa5p4mGugsSqM94mA0WmC2sGf\r\nyL0lCmOYdspBxJj1KyHRGosKTe/CS30gTfQ=\r\n=qcSY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"c125a379bd769b3305e494b68a4fc9bdfdc7d1bb","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"lerouxb","email":"lerouxb@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.9.0_1646318204038_0.8640000847977403","host":"s3://npm-registry-packages"}},"2.10.0":{"name":"app-migrations","version":"2.10.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.10.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"9e64572d0306fdfefc12cb12c5f870156ac458e8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.10.0.tgz","fileCount":6,"integrity":"sha512-q/AnlGCeslYzTL82wf4JTIkw+kbRuT8GyfSwaaVl6Wa0PtNp/N9fBRF4wr500vMkftzf9qeD8PlVF6CFwVy7dA==","signatures":[{"sig":"MEYCIQCSyu3qzPYo0g3sSU8gVozD2Y/zwsMt/y+1xYmFO51UEwIhANhyESIT4CI3+xYv1nIDob3JPCZbbsH/X3I3RzVD0BiD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRI/dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp16A/8CpjWv3LrgYgfIvTF77+yvOG51x02OWoPolvinqPsrJ6Bnael\r\nbtuCQgK9F867E8Buu2UHvvcQmED6qEr/EYqUO9gSrl4mX00m9zs8/Uy5oHRZ\r\n0TxHq5JkrgEjFqwRSicZAnAPlGoxA9mogi02Jr/s1sZ5BJncTaDiXRMuC2mv\r\ndeuuxlcrOj1Reb9qBHLnNnlvN5e+zd4W2/ZGvcmGgJ/cOFLvkdsMXEA8KlFo\r\nkNQHteE++/msRmeLddPaQjNdayD/hry9E8lnB1LzWzQCq/UqDSzn56iuuzDT\r\ncv6J5jnatWhoCpmjHK+THDH0WAYGJXUhySAThYx5gl8lbctMkug6fC0Jab2c\r\ntHXSanAGFSP18bbiN2ozqk+tkDpmoyt/9jO5ybsC5PbyHjdKh4gI4yyAOGyb\r\n4Yum3KY0xMyipkHRIDzt4uw39GEd0AYS8A5GxVhxm+usxSPE6Jx9pIh+gjF9\r\nib5NeKDb+9u/JCzk5bxqwzLmCZuZXBig8/FCYaaIVEZVnwmZX7e2LNLv8oRj\r\nkMBnK/BEuMP/oxzqfeOp20XZ8eknkcp0sxxP1CY2vBbolf7j5ttsF22nSL15\r\nMYhvOeCjrVfYLP4ue3+yHZnbroCfNaR0+nVYo1zdTxFbFqSGGxOrZA3kaq+W\r\nQVnmJ47LZrnjbmtgWZXv/QfVCr1XfnWINTM=\r\n=Jypy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","exports":{"require":"./index.js","webpack":"./index.js"},"gitHead":"a1283df32eb52881cc00eb73f8d435f772cdbfde","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"rhysm","email":"rhys.howell@10gen.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.10.0_1648660444773_0.8238029731713015","host":"s3://npm-registry-packages"}},"2.11.0":{"name":"app-migrations","version":"2.11.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.11.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ff59c9c9f1fef5aba502eb9abb34affd997056ca","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.11.0.tgz","fileCount":6,"integrity":"sha512-61QCQLX6/15c6BU9OfAxNc+6xaF/7P1WJf0zqllZFnjOQNLrGX5FyLrmxbG7hHIogMkqYUJw0mD+8/5DdCpllA==","signatures":[{"sig":"MEUCIQCDoXoSMWJDNHZsrYaF+h/RQZm3AdcWxaUwqEvFMtLBQAIgD+r05gfq/5NFy86hFtUAPM8rAOEdyOKl+aytNv52eQo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaW+xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokVw//Qf3ZRukLnWaNMCPuo2cHWWWVSEAdxImZOSsdyn7hRmciCuuH\r\n8nydcadDtxSqJk4tLsC7i/kznn1l/Y9lZ/wNpSUFEW3f6o/TJRucdxZJvCYM\r\n7R8PKmmI6sDOrkhMJb5hteuYkWxmmFqlLO8q60sh1dWxoLFa6v0Jb91xMsdH\r\nWQ3Sq05c+U35zrgn0rRDA0YEv0+RanH7mU4UbT7wqqBbSPwhGS0yoM7JRGAn\r\nQDrjTEI4nCA9stkjMxBwFCivjBbbFg0b3OV+SmkoirHNQ929pKKj0qXWgJV7\r\n01hZFzEHepnz9qsO35Y/2mqWNl+S3kO5i0OTm2Xbn7Rgwzqj9bQepRqmcdFE\r\n6pEho128o4R/bAq/ijW6e7o7WDMo4LijswxF4iG4xpbG3hJwmG9TLGQ4X/rE\r\ndHCQ/1zMCY7kOLfUQyhyIszNmBv8Bym59sx/8yLPBGRwZaHCtKL/BVG8kRXT\r\nrESJPpJg4uMMscHvGp9l9okuAeBkoNDsR4PglfJy3qibF4e+5vDk94mkJdtS\r\nGoGV20tKzW7d8/vS10MZByvN1lHK3h1EfG8HYwj0DHbamUywd9GRVtBEdOM9\r\nkJA+xMb6j8XneXDiqG8creWa5H8bZkf+/4nUvApNe+9dEdTqNm92LEcVgz21\r\n+8a211C/TBApRZbdlEn+MLAKrSIE6dkpivs=\r\n=gQni\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"2c4149184e87b8340851590663287b914d7ee63e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.18.3","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.11.0_1651077041102_0.46032174644322343","host":"s3://npm-registry-packages"}},"2.12.0":{"name":"app-migrations","version":"2.12.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.12.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"4ca6762c9952d8c1cd3cf22401bec19bb7dc457f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.12.0.tgz","fileCount":6,"integrity":"sha512-uFiFBjD/eJaRYVkJwieMdG2KFBuGvarN0GQjetwerDehNchKQkeNaF+7jkNuYtNC2LXP0bz5WnGHPxmEKgoJWw==","signatures":[{"sig":"MEUCIQDVmRYtYXW+7CvROJ7+/2eOTneUkl8NZQLFSlKe6hb9EQIgNcoQUGG3SDFq+7X9Kod+b3rwH20Lpa6DmvwFwS+5pv4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifM25ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqQw/9FYK7mY6C/IzH8h6Qtpxqf3nmXvOydyiUkd05cIPtLy/2biuq\r\nsBmMkp1kbYCJEVOBJH3oIiWVaPReCrsrUuUUbe5PaN1+Aj/1HjClqNKYk+85\r\nE6mCs2e4wNSIv4/S2lnhLooRxlsx5s6HDw25wvOHL66mP0UZ9NYF8Wb5t/ED\r\nJm+3S+1A8fxCnfxh15oWzeM+I0B9fsmXKYwmWRayOk6xuzykk7HHQl6LzPXU\r\n8M3Q1mKt1egHwDcj3rdDqXb/YtYj3v8cSDwmg0impLc22x0y/WWM1yrNMwRY\r\n6VsN9PsQrFbWMmYxIYxQLCqLq/LI4/+VNmTmrENpTeig5t5TASf0E8SgDvn4\r\niQWIn01Tr/jbS7+5xfiX4hgdThBoaClT/t5Aduw5DAKOZ9ayj9pSKrXKsK2A\r\nfAn1CysYQcmhavZrt6hQ0L/1KxHu/Ulqc/Pwm4QQQrx4fUs575tKGUe3fe4l\r\njircX++3hrGaAqFP2RWmsT6bxnMCu+09vlFY3LfySGJcD7jMtBQCUuHVd3lP\r\nI0RoPdVxIOzhcGQMMp/V/N5Dzf84vM3JObwTZCwwEHducif3oYdVjPpfhXgf\r\n5/lsZhAZo1YwWCAWljAQTnZqJUBc4GzmfJE4nW8MxKl72Stk8OAIUn0kA6lc\r\ngklx8cN9IpfQn1UzBqqZZNle6/Izz1XNO9Y=\r\n=qSoe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"63c32b940f523e4c3e45b86a5aecaeadef93253f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.18.3","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.12.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.12.0_1652346297203_0.5292516048100342","host":"s3://npm-registry-packages"}},"2.13.0":{"name":"app-migrations","version":"2.13.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.13.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"team-compass@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"6917c8d18b69b37e38b271b9f9e5adb0a1ff773b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.13.0.tgz","fileCount":6,"integrity":"sha512-6HC9K5wkJD4ym8APK+CFmgdXrUNvUwcNbkJ2rxx9v6L+HFXWoILIpRqHeQ2N9v9DCDrInpoIqhQTwUC6g70/BA==","signatures":[{"sig":"MEYCIQCzP7n907BPNnYBNK/dr8mUoMQnX/JbBNUL4f6bB6JnBAIhAKLYoPaIT7uDChUJmQ6hRTMIpFng8qQ4hcfpyw8GWcVh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuWCkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovDQ//YSOk/VriARoRBVvTVg5mpzTWAN/qI7FaTRSYKsiRD1kJKkW4\r\nzmIlkAcBFopdyRJ8jIKKvVnt9vpvYF5wpcAh6TLexso2ESylhFTRwY385FU/\r\niCkCLg9E4tE2bjrSNIM+ynJCDbSh7B8fMmuaU+9k/iJSsl50kHhbKdnPIBQ6\r\niFSgivBuzBoFpxafhcDUNE3qDRNe7w4TlRMTMFltrJOwbmxvjJTCvMhg1np6\r\n8c2CKOIo/e8HCLiy6nv30h5pM4O6fMuzhJ4vGBnB5RYawGrGQ8fgllQpMcrU\r\nsicwm/Abmu05LuvV90Q61ajVK/hEMQMExj5iK0MRFwgAzahq3/lXYrJx8bIM\r\nDJyqicN2nwMZDjXMWEj5BxRoLeYLGwpYUvcMfLz427CZA/ENvfEcL/l/BbRs\r\n0gUngCukq8NYNRso2isv/8AZfhqVdFxI/RmkaPzpUo8YJ0/R58boxpKPSBYi\r\nHAPF3oiZ/Bq1pkN/AYPc3uPRH8lkdySabkrrUFHJkEIx4dhQqy6qkkq6pNTO\r\nYjA3cctzsby1Q6I2bfoxOL//T93MXWslWBXqDtfw1+KNs6AZdbqT7MlNK7Wu\r\nvnUmWrvRgzueP2f9zJ/lWoJ6YZ0nsESgTKQrpiheIzXoCqwVidHE2rfgPb6Z\r\n6/JIXDo0gwrkF6oD/dp7gqwfHx/RajqQM/I=\r\n=53aG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"a4e705ec6d13393d2e14e906838bb67548e7ae35","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.18.3","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.13.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.13.0_1656316068692_0.46956100246741306","host":"s3://npm-registry-packages"}},"2.14.0":{"name":"app-migrations","version":"2.14.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@2.14.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d513f5519f2ab0226fbcec181c6b504a1cd41079","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-2.14.0.tgz","fileCount":6,"integrity":"sha512-tZSDKpJo0V4s5NZx8dJ8RudYStL2wN0f2dCyXpBn8jM48P16h+DYZnzZQ7lr8zlsEyiEMCCKe5zeN3to/tXaPg==","signatures":[{"sig":"MEYCIQC5Mq6Mb82lsjnY/4AhqZ3TiyOlvUrsgc6O3UADPv/wqwIhALcyTfB1HjxLjN01gNZAECT9C9sWEUwWAg8wmwCuEsMn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizbotACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpvhw/+PY+VRk1Xb2bKa/hccIbr90MY2dpV1W3ktpF4qHJM+p6wVPwx\r\n8l7K6XJdNNW3Yu9NiOYNth9twRbXDHHmVLSxXlJDVh4nchXRkcCF2tNtfA0j\r\nZ1MjXBA5ArQpPBshCJ6vlDcaz8q8y4N04To8qm2/2/RDCe4QPvPv2nYTT5hz\r\nZ7Suv4GeiJdMpV+EvtHmkzdGFILBblkECbxXbUM0WAwKYRORWqEL4kdmdr5S\r\nKRkCLMolSOLhybKmLv3JDSWzSBi4HqqSzCDXDNdsDf4BFgeP4MnDW5dMFJKB\r\nG1GW5BFL97N0K7/jCRkd/7aHk2qy7WwUJv/4fVP60oLrKyx1vutXekrcWbcJ\r\nY8P6p9xBftDCr/bIh6uG9u2gBbcxFaJBai4pkX9lR9vP01hEMpVzsELgG+A5\r\n3L5dq9e7g8+IR/+Ytdh6SZDS8WCz7CRmMaFLNeL3FRars3ppY+v1L1n8soka\r\n3zuZ5QTQrByjrb+0rurkZxqfEWUFr4C0wKSPzk7zY1yqfLFTNqMQOffrHK/J\r\njIXe46h4uAZAs8w5UKJv3xOsTezPf/do+0vFjznrvtBAJ6bP0wv+7D0HMwwz\r\nvVbSvVWS4pJ2vfELTk3PUiGtmhDLm4YeOMCtnBR5CJHhOtIzqEAoc21JtO1o\r\nkAOAur1KmwcHfGFVyWnlt/p0jIUL5MknpOs=\r\n=WYXO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"9f5498524c3e50d351f6f36fb015ff14163a39cf","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"14.18.3","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"4.3.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^0.14.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_2.14.0_1657649709021_0.6661390131118108","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"app-migrations","version":"3.0.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.0.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"4cd3158e5af3031cbc16cbc41d0ed9b9ac244196","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.0.0.tgz","fileCount":6,"integrity":"sha512-ETKFhXsFwM+sdWfZU+FnR35BFMR9ZH5O6krTpFoMqdKYI0OE6zePtw4gkSxRw63sqd2ShbE3jmQr4I02W1vWdw==","signatures":[{"sig":"MEQCICxyIJSEyZfCP3Qy9wgLFuSuaMBAiH7ZHTWtg8zUl+jNAiA8NJfGrSuJIZSqBcJwEEwaunQ6qT4PJxA3VOzUiYW69w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8mBMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpM0RAAispkYPtI7Pqaj19oUOLdJNrrHJJYsRSAjZjQuVCJRLZDStmB\r\nxgHlnnNIWbrDDyxxAxsDB6mRkbAjnwPOLDYZPcisJWGx6CgsIRh82HuEzxlU\r\nfGV0T8G0NJl+PMup3rrixY+XTN/oSXtGfEjj5vfNpiacNzoLqujIlenc2zZK\r\njhQkDLIHChHSSwuZ/M99iCeYpmZN7t3m8kdsqTsoXTNjlW6wCRGHzYVZjx1b\r\ntHXPrk/nfAEUhAPP4t+o97SBYU/PXEbt96erWqtaTEMzLbi8KIP4+OnGALqh\r\nTjKF/8cRqm/UPUSbMMiGEkyJlinDN1q4nrhlVYfqRWuvI1x6ez1Hszl2+SiZ\r\nrdyTuW4+hRiIs9J1ABuNKk+iHBYntMWHzrYzk2WUopofpTDc+0sWogMQK5jW\r\neLfpj8ooQxlWn7Vf98fqdXz/VnItMR5895KavIgCsvU3J+sepaw/pXPG5y+W\r\niBoY+iWeTXLwoN6j1nwuTTzOcXRpTifvcK8ZpGiAlN7hHR8eNf15nyXXOMZU\r\nBbQK0cMi3xNuFFqoZ+S+UDBJN+M8xrDsITOgpun0LrmMp+tlqVPOntckHyiA\r\nTL2JDwNz/vnSY8HB9b/JLhx0fb/Qc9pmz8GVR1yh+oFJBEa06JzPvPMMZpUr\r\nXmq5anefoxtzDAulCAvVzBg9XbX7caiB4NM=\r\n=rcRl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"a30734888ab496a07d58e26870e5e33b374e98f7","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.15.1+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.15.1","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.0.0_1660051532677_0.14622424237469067","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"app-migrations","version":"3.1.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b7f96ce22449921c537740baa2f86493828cedc2","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.0.tgz","fileCount":6,"integrity":"sha512-FORULm45u1SoJSFsfu5S/YiOL9VzgvbQx33RH2fwbWA1qSo4NT/zBz4hJ1UBAi7N8wMPhHuY5i9QPVF6Ol0QsQ==","signatures":[{"sig":"MEUCIQCjwJNFsob2jl1dplLquGcV80KrbBggBlL4AdfPHbf19gIgI4pMyk/5JErVl0zkM+6pXK0ijfabaD1DrP0FylKJN50=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLHu/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCXw/9Go484ddm5okOjZ8seeHppdAzpr8vkxorG4SWraWiNZ37ZeeS\r\nxjXpl6Y2Gz3y9F3Eev+rakrdPpm8j1Mgq9tA1QkztxpWBiXXE2Sjool3kj5t\r\n0y/mRngXAiodgzQNGxACdbP8Qd/WvLS1IeNYYxiSucixMbJ5UXAKR6b8OYnF\r\nxAwVsNMayAJzqs8qJzrgBeWVKE3c/b8RzEqz3iHDcYFn9LPC/2R1+e64jZ9r\r\nYSS62OQupgHVZDwP7FpxlmILFXUtlIgEpjnflBqt4oJwBO45xCnae/QIChf6\r\nX+fN/36+mHgxUIhuzjjTekJurQF+vUbvV858ZzReFD7HZwe9xLj2/2rB4Lc6\r\npoWhd3RWeV1Tt3oWDNMTr+7WVE/pvMq6j+49tMrakszj7axHUxXcIUZT/Gpd\r\nRYG+zE7C7uIlLuxsA/Y8H/NaQUsVe8w6NG3I9Zvnbfi5btap2ujfGqqcIY/H\r\nieMAyDhY2GQoLuH4nt82vRHnswAC0Cn8zVAiURns+I532OkkkNjW9r734FPR\r\nylQtWEwmq45hRI3yC4UxQKdrnJWsRUK5du74pc0K727qwDF6AA7UCgfwDijP\r\nYyDyF9qCCMpTlP9nbiDWnOEqbMPegQdvgr0KF5fA3omyFJgs39266olgVnfK\r\nBytAY+sFYRMnMMAt+67SbqsQ8xpE9PyMORs=\r\n=uJ6T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"51f04a0ac45c3b51a3ffb98af390c811d1404380","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"alena.khineika","email":"alena.khineika@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.16.0+arm64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.16.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.0_1663859646691_0.5802745760089856","host":"s3://npm-registry-packages"}},"0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18":{"name":"app-migrations","version":"0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"111917bb86c8513a9f24f09c2b840f7ab05a7acb","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18.tgz","fileCount":6,"integrity":"sha512-GEFx/0Fsd9ZH7gGbnujHv4HxMC8NwML7PyIjhyyuOdxR1834jrhtFB9oQTb10aG7FJMhAUOWPDbpeDj/F12k6A==","signatures":[{"sig":"MEUCIQD1i0D3DM7JNwZHGDzSX9pBbRHlQQVE5BmbEEiAUPYg3wIgBvfAeE7c0Mf9pULPIleTvlqPSFLoF78cRQ/xMJ+hbZE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMaZMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdcRAAomaOr29sFZSIvUCBcWcqdUsTib01L6bh8z83kFbiPEtfl01H\r\nG4K41iUQjcKh1AdUcyvflySAhrJfTsHgHU58JoQA1d1G14gGgHD/l2NU+cxK\r\nKMcSNGQElKG2/QwRdnyG6eJPypGJ9uRza5EYrlyr3zRMQDcBqtZ7BSkvFkn9\r\njZi25xB8bWqK4h7eK31oprCHMkhoDvoEAhSd71RS3AbCblEYNYRLBHryXPlj\r\ntvDzQDwyqmihYRQvH/KWVwDxbp8Oyf9/9o7HMy4HPhUGbfMTM/BJ7wZX2FFP\r\nIKpVN99MmWbnQ5huh4MMr1WYaN08kPm8EOgTdG69oxikZIywbhkrYTbu4ncV\r\nD38Z+AHshVqRgNvBMwg+A0DzmUlijUoFZ3MXX0M2gcpXwWK0Pvz0R0BmqLdm\r\n+ocXjqiHZLjs0ibPWpgvsRYknQPhQYEm2U6rNa57ZphUwFTspC+ZfXJ8XYMO\r\nNEtKj1un/Q9BAZwABsdLkZwZpnH7RIV+l1LapbmpLMGm0/QxJY/jFvw1M114\r\nTowOZe8HTkCW92C4g1cwFA1mchOtC+jTvQwkHb6wX3oUZ6I/ncUbz4wwM9SU\r\nTQmAaOyAjrWH1w7AMSIkhJJyCeOOOJrNIWHLMsOOhEH2Xtf2gHVATEmikPu3\r\nuNmyzp4ddqKLEBT13Uq7PmaGCLXmcXvGUmc=\r\n=gX2y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"85bec9e9b95acd9ace066254edfc492578f4f8b2","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18_1664198220347_0.909238725649369","host":"s3://npm-registry-packages"}},"0.0.0-next-e30a9e850a8a66b70770fbf6658a3e35cf1ff8b8":{"name":"app-migrations","version":"0.0.0-next-e30a9e850a8a66b70770fbf6658a3e35cf1ff8b8","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e30a9e850a8a66b70770fbf6658a3e35cf1ff8b8","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"15670fbad279e755921e156fd073ba2875a17166","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e30a9e850a8a66b70770fbf6658a3e35cf1ff8b8.tgz","fileCount":6,"integrity":"sha512-VOifnH7l6m9XwDmjEyNCpiYyqPoYzfdTy1dac4j77dThQshgJoV6inYkzuACHdeO4E3WbWgIgWfdmockFgaJhw==","signatures":[{"sig":"MEQCICLAzVbCWcuL1UiRekMdfiU2pc1m1532vnqjFK3CgO+tAiBFfjJFKDTfLsu2QpXtROAmeBXtt1yEdWT1itnVAdNUvA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMbIXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQ9g/+JncX4BdqnjATQ9G83HSjRNfOwnyIXQdnN3plJKzE6xQa5y6J\r\naUt0QiR5obR9U/y43vHfqQBOp7UmbUGnfSbWbAh18CiVRZshXT1hX5977E98\r\njwhy5BXonrSd++hYh3B1IJD7hvkZr9h57HLvX8QNqSdGshFwPdE8A7TC/lTy\r\nnN/yFABMnrdklhCX+ONnxRihD8Vl88JOBeU3XC9vox77sy4SfNHW02FpWvjO\r\nd/FFnwLUaKKSYlqfji+C+Uo1jhbNCQ1wtM24vay4pq7T86IqOJ+S5D8pkboB\r\nolffsx3a48dnLMf9+V2wW0HygcDLWv9kMiaT10lyPD9Rw9Pn1+e8tC9K4cLw\r\nVzMc73J/d9Jd1mazhltLG8kx0f6DH4dxOVS0U24JimIlAOL5KGMxREDMz7+3\r\n+c744/THENNlH+wxaHHkUMYF8A6YNUxizidB0HVTvpdZnVrWD+jCKmomNSh7\r\nLF5tyuhvz6hMHN2z+bJimlruUPozTWxYaWINGXNLP79dqAQDNGr/8wnSfxlu\r\nX/kRMrrLqZ4WOUo23s8xAgRfCe1TuxEqU58RMIXO+qmk72VLBXNnFVYBmEbB\r\nsx1txFtZ4mqk/U1bjyhuAMC5c20eokog9OHJgDZ9AHIgj2IclW8yiiMm9Sof\r\nwUf4iDUo/c4zxu4y8kVXuq/Zka5gHLYiLlg=\r\n=SNiP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e30a9e850a8a66b70770fbf6658a3e35cf1ff8b8","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (darwin)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e30a9e850a8a66b70770fbf6658a3e35cf1ff8b8"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e30a9e850a8a66b70770fbf6658a3e35cf1ff8b8_1664201239397_0.3112525977491585","host":"s3://npm-registry-packages"}},"0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5":{"name":"app-migrations","version":"0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"93dec1d2309f62a0f3cdadd712fc39a76ac8a243","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5.tgz","fileCount":6,"integrity":"sha512-qLEEndK+Xab+aZ45M01vHKvyT1ZrArYDtqLXC/T8tFlUapV6wxzNEfS7a1m7nFHCfOLKvTZe4LsvJ/mhAIf2uA==","signatures":[{"sig":"MEYCIQCS6nSKMgvYV1RAFFFJs5bbknTTswJpwdpHqNJLS2S4WAIhANSf1FyyHiTmI2ZWyWZyL8DszDuA9nGDuduM431W0gdQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNHwjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmSg//QQd6exWIk/UHvmfuSzBCIneC6saGTBump4R4jR8y044Poj4R\r\nva13M/8BgL1rVbwRaq10ZW7R4DxaIW1g+hsbq9mrtZDLP6NIr0/RycDJhxu7\r\nTxXcgPvs8cq/93Y1LKtLx9jtdGofMiKW89lc5eoI0wBGWzoAGw1YOd2huCOh\r\nxQPC8vvFgIhaVmDRyNNyYijJrh2cgb1TwpUKNMJx4t5SmVvYtAsI6cTxOFqH\r\nCwAN99t4aOpawXQI6sTvd8Lb6mYqliX2j/J8Q2hGsoiViSCjOW+Rl26jj0MI\r\nbUytakgaAcwyRym2hX7vIXmkk9iwPs1/SyLMKYv+9tKsv8+wmSSTcG3fqEu0\r\nKVfNaQCx8pEM0VLADEb1Fhz+TEMmCgKYLFW3iUt6fHsgDysPkaTxSD4aEJiP\r\nktNih2rtm5yD7hMnYQ1QgvcXh9wHSUsFg1/Xxxmsc766d+nQEnPr72Py8G6T\r\nrKl06lGKE0IX0fJJ0GREOtLvOzmiXK4vLONRazT1O+R+eAJ/7wSSwVM04UQ1\r\nyOQGIYoCEWVtUATOlz46P513jdQtE1VRIQjjsJ1baD2GgthN5OruvwZ+eNl+\r\nb5LtleMKu/zmXX/v3CKPdTrfSE9TJQ0p4z3dk5CLTiFFfwnDyrNUKUh7hL0V\r\n3ZfWHOKe30KqWoD0ucddZl4mgh3FtrKCLSQ=\r\n=y/7H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"25b11de63d51aa4ca7fda0f3eae67999e3418ca5","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5_1664384035753_0.2883491076844662","host":"s3://npm-registry-packages"}},"0.0.0-next-dfa464112f63969f158bde32322e393fa2b77940":{"name":"app-migrations","version":"0.0.0-next-dfa464112f63969f158bde32322e393fa2b77940","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-dfa464112f63969f158bde32322e393fa2b77940","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ed936f9f2a71876b3460bc39bf9289e11e544521","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-dfa464112f63969f158bde32322e393fa2b77940.tgz","fileCount":6,"integrity":"sha512-kyjTrGIcEUihbt9tyLCxcYPmevu1QYZCSb//yaouMQWBZozZCeghlxQWIGzH1k+xrn0AhKpff2ljylYrDSgNgQ==","signatures":[{"sig":"MEUCIHY0i3V2b4bcU+c7I8o4q0N6OHrdjGYPSWUlYgS65fdsAiEA5a65XQyDY9nccQ0Za9BzJoPjKO4Hdg72OgbQPNDxzHk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNMUjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFjRAAiLXWRucowA04SGe5BkKiMOk6lNjPOSWV1kFE/2lqrAF6P7BD\r\nbgJWpaHpn1ZuKDnNg3/LWqh1xPCTTBIOQ4OF7jDVxIstM9AI/q6YUj/ld+24\r\nfwO6NdVMAKjryiSwM8jbRlXohFgmCsDVpqJ4vhlvca65PJbriLLsuLt5SpzC\r\nJ44OW3lD30+4gKW5l7iPY3DPlGiEr5zUX4owftoz3h3EsimZBTNfcemyWLNk\r\nuBUmjcox/jC/A8AkdQYpXOetiRpdhLAIXHF8Kh0+xchXmiZZcH8a3fVjaPNs\r\nMaZYqe25aoy8g96XVwPCoDiouK9PIQNjnmzVdrnGzypQA0bDiiDksjQ4lQ/x\r\n5MjQXTCxzrr/XieRAELbGI0EnTMymBqi0u4iIR5uCMZ2WE8cwy34G1aPt6aQ\r\n+SCsfoLqFwfai+rblC7/ARFp/gAv8MQ7DNsWVEHb75w6VqVe4u1hqOYgm4O0\r\n5/uZ7BMyT9vd32JAvZ9Aj4qUIGAwF/88blcwggT9PbpfO2tx8GKbSpINEgAP\r\nTiWr76SqFmDX807kH6KZRrJakmJkVTnrmxQZ09q7Suwnagsdrthnj+zyFSh2\r\n9owH+QdAqQdAJuI/lc/hbRToGZStBHjc6CBgT2hlRD9zSrcjGjpwbWT+pepJ\r\nU09wg8fqlb5IM0KnAcrwDr2udJ2i1hsYxyA=\r\n=12e1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"dfa464112f63969f158bde32322e393fa2b77940","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-dfa464112f63969f158bde32322e393fa2b77940"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-dfa464112f63969f158bde32322e393fa2b77940_1664402723327_0.7965379535373138","host":"s3://npm-registry-packages"}},"0.0.0-next-e42d58083be39ce9f112e6ec7f9fd1fdcb666e3e":{"name":"app-migrations","version":"0.0.0-next-e42d58083be39ce9f112e6ec7f9fd1fdcb666e3e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e42d58083be39ce9f112e6ec7f9fd1fdcb666e3e","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"60d9b5133eb07c33af22061d9c3ffea8f502a063","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e42d58083be39ce9f112e6ec7f9fd1fdcb666e3e.tgz","fileCount":6,"integrity":"sha512-E74eqA5ahaUdtCwZ8gqvR8Z3LDEiGcbtekikZfgD1NzP6JXlsYoCdcO/PAO+1A2znvPw0V8+V4kTcCdZjILztg==","signatures":[{"sig":"MEUCIGjH+UJJKJQzMvfOemTInqZJ0XLUSHpM1FoAxyyhkiWnAiEA5nKGuRVjL9Bb6JSiPJQCfSD+CsMaz1GCuQALllLiGew=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNcLDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBAg//Yv1q1NWJg752kvWRrC0uOBDiUc3nxlqwywOWFdD1qWWS4cKg\r\nZTgaZAfZ4tsvg6CbF/3MjSvffAwgM1uV31xYN4MJc2lOhrkwF/NeWZAa/GA5\r\naZ1evN75xYhfLney/ds674AZHt67z0sR4XGPKX7dFyvIWV2tzxCwC2EjTcnq\r\nHU/8YiZVJ2ZnPUyOQA0OJvMnWyhSNbqt0mbpMygPAPmYPFF1sJQWSU197u8n\r\ncIV8VD3Z58LXfEWXBtup8bqqvDeOeX6QteBzGtN0B85F/ohcKUMwW7Tc9xX1\r\nQODisLDz/gJ16VnZs3AgxFik23He2maiwqopp3+MKVUSh5jL/j1aAj7QDx1p\r\nKF5TGd8Pg0yyzE60IfzUpnyByfQNWeofcIyipyAnny9tChdbWixJ+Z7tnpHD\r\nKYUNZZUwWphTikAY0BrltSatXJWm6Y41AH4ndnwtXFEcMI5AZRLlNF2KCAhL\r\n62HtbCigJ347rH8g/nHYBdmvUtMknzskbYHf6LXbbKt4JAPQdpgZKWqMeOtG\r\nNxGR05mR1o2/Fonhd1fgLOJvExGf9gy2NyKyE16Fbv002SSv5SiZmrVmV2sX\r\noxb4WXzMNpjp5KFlslhvUIUUJSm/8yt/sTt/HiJBUt1fhExzNumWkISEbTPc\r\nYYuwVsQc9W720uCSGZTmkis/pJaCBeSPTRo=\r\n=WQPo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e42d58083be39ce9f112e6ec7f9fd1fdcb666e3e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e42d58083be39ce9f112e6ec7f9fd1fdcb666e3e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e42d58083be39ce9f112e6ec7f9fd1fdcb666e3e_1664467650744_0.024886043671690894","host":"s3://npm-registry-packages"}},"0.0.0-next-5f69e8129e0242b4e507fee055188a8a83e1f1c1":{"name":"app-migrations","version":"0.0.0-next-5f69e8129e0242b4e507fee055188a8a83e1f1c1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5f69e8129e0242b4e507fee055188a8a83e1f1c1","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"7daa725685e2c6e658382c4197424a8416c6cd44","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5f69e8129e0242b4e507fee055188a8a83e1f1c1.tgz","fileCount":6,"integrity":"sha512-SmKVLkAjgF777IlsWeqtJ7makH2sU+76OWHYx/IIp5MgWJQjcBeqaoLFcDFOvXI/egIO/D5cnlu9dCIzyN2JvQ==","signatures":[{"sig":"MEUCIFGG0v1Wvs6hd49sn4h3hwnDrnsw/sLkfHyIS9zeNEHTAiEAh673uVPNSwrxC5Zy74J8DtkfJwMYP49sphUs9VR7HB8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPWY3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNOw/+OPoX24fAI+80QE6XrUiThNuWlHOY4rZNu8SmqcaX1bviLNBZ\r\n9D/ubLN3d3I4950iV8Ku9Ll5BUiFKI5u47Ij6N7eKovgQGVJFvOcSHDj/5c2\r\nSSz4QuCv8KGCWDXTrfyF8zvLYos5Zuc1yODF6+8ZcH/PIMdtAM/8OEPl6Se5\r\nAVuksG4NEX+EDuFYpsZukfUtw2stHaZI1/C6PMWumhj6s4lB9PvvfqurJoVM\r\n9v88YwEEvPsH2pWQh1p+GurEnf/PT2Z8zTHFPklbuqqfQgt2w2C8g1pOVgsf\r\n1ersQF9WSJSnYZ1YGVNoMzi8yCC91w1Bhuq0PLNcY6GuKDD1sUTHMKqbs7a/\r\nNXWAnO35AZ+xCzZVM5D3gDrZwy4KipfkbsuWyhtHUmxCn38KaBYw3Gzw7xwH\r\niN3ZUAETOSFaW+WjuixddlSAnIo5pTry1+yPYDtw7wSWfKgZeMbc695bsxoV\r\ntSUgaQb3qM4Cl9NKTU1tQOk60WVOlbpiXu2zbzOug5yK6rUoHpJ0NxQRtzRb\r\nYHdXuWiiRxX0tCo6yuJkUYSlfxZCZCGQ7OrhBnFUOaHXX1wlkHPWfW182cqF\r\nJzvJ5kiKFb7cipfDfg2uYVc5BLw5z1E9pHr6ttZp07VQ61VAoYtHrakfUNvc\r\ntzivXFNszVzZiuKeTRH/yG3cOOZqAA92LuQ=\r\n=GBMI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5f69e8129e0242b4e507fee055188a8a83e1f1c1","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-5f69e8129e0242b4e507fee055188a8a83e1f1c1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5f69e8129e0242b4e507fee055188a8a83e1f1c1_1664968247731_0.30127289999010753","host":"s3://npm-registry-packages"}},"0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f":{"name":"app-migrations","version":"0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"2b01ff164130968e9478cc4af9f96c8a611142bc","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f.tgz","fileCount":6,"integrity":"sha512-mJ/fEpE3kn3XyVVsUNPsz62gnmcwqrZ/nonjWcuHW63uBn3XN8S6bVQZLU7weQf48JxamJYbdnqo3INU4jLX9A==","signatures":[{"sig":"MEYCIQCWjzOZtque9pmJM3U5nEcI4buHrVkd0z6PpmkdalWIiQIhAKvg0eGlqz3OyDtRtU2dZrmI1regFnIPsaykQG0fkYIv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPa1/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlSw/+NsTCvfTeN8DQc8Q7TKXUCy+he3J5VDzE7D2N2w65LVsu/YQo\r\n2Cvg4uLsS33uImMoLSj9/0J44Wm6cZWGNXimZ0Wg4uGuoX1SdNj/eH3c1iI5\r\ncux3n0PlCzcipVhphJUhx5XEHjCyQGCb6FL7D948Wy+7vheZiSWg1ur+hVrg\r\nNKWI4pptxPH6ufK8un3LwWIaob4TFRWoij0sfbUusyfq29a8r0qdTr/A8See\r\ndRDGvBMRrEBM1ZL/bAxFOAZm8qUoDJOMl7vBIggGECjL8rJhu4YNAzZ8O4nN\r\nP0x3Z52QQGm8zLYR/E3r7Lalng0OqFlT2GJlhgKqO1f+IPdCK/npJ+u4/XW/\r\n1i8ePqtqEcSY/5+dbGL8Kdw1MJGI363bRTm9ZN9E+fLkCQHoUhTCQoIoUQqN\r\nvu+Y97dLcswzPp97g7BfyWaxxhBMp1z5za61UzSwx6jB2bUQN0kC7GrWLszL\r\nq0ZV/FbwhRXDBaGTbIWe2HjCMfaHviyTdW20hhcvsrQrDzB8RAaGd49fQpNk\r\nA0iWEXRE46KVJ++Ie0KhQ0p0an8KHMb4snR7mC4vLdw5PjszBvDsSo7iVtta\r\ng1pBkPaekMenRydUVLIFdhq88gtGlMZlG41d0/r2SVlaC4UTc6911WMvMZUd\r\nSIvP/Vaj1uAy2icWb3HPH8bJcfbj16ro2Fo=\r\n=CVHw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"823f55a862f13d28437b87fb594450b2208c0d4f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f_1664986495018_0.5896170479518292","host":"s3://npm-registry-packages"}},"0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47":{"name":"app-migrations","version":"0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"f344bbbf77c85cd7246799151796ec2f895ae4d1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47.tgz","fileCount":6,"integrity":"sha512-noQLCZIG5n5qDdN1fOytNTpcXvmmMj7c6FV/8mB2MCOUUQEVg3SwXnYQlrYYV+F53/l/nANPRnBpoBb9qpJKAw==","signatures":[{"sig":"MEQCIDRqKwUf0ihKKw8nT5/ehefQytKGOTrKyYVGI7Y/23lTAiB6TOoGJes7a8AMoesC27M9RNeRGiuScKruc1nEH32NcA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPqQHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq31hAAk8p0xJ3GMMsfdxZkYAHcaw4h+a8dICdPWgDXo4+uy5uEd94k\r\nnAppfvyKaaDx3HAuM0jupjjO3flAW5im2R6Qvakanuq3bB8V+Cru6Z+CjJMu\r\nbnCAni8gR4ISjQ92Q3weOR0FREF6cCarAXDBFAbs8eYnMZT+RVSwfM0XBjen\r\nlahuhgFp5/HuVZ+6F1V+iEfw+zIUwltZ3C4YhCtCgaaS/RT+rDrtCzI2PuBO\r\nwTQg0PlKCLPQudCHNyR96RMYCN5DsKQ1Sril2HgaTlybbHs8vANpPfn3+B/o\r\nz4XeRaDFbXvqQFiHvTDfr1tXOOebrTdDaCiUJZgHQ7fUbz0+riqBuT3VKyft\r\nv5xmc7RUPfRxPFBV5Z4FNwmITda4iceDiVno9+imoJNCRF1RXeI99kBL1aR1\r\n1VigJJyJJaN1npR3TowirdetFADN0Ove4WZ192f4aZm19QK4xJS2FEchGHwe\r\nNeEvBzQ5m7NkD6iCqH+oUK+RYhLoRhqIYIqGWnX9BwGInu+GMIxleWlq/aQL\r\nb9LGtBzO0XadpGugngoBofChT5d9PaIOlH4D6oqLDRWIp70qkw8ilVQgStUG\r\nPQ4YfPdhTuvaiIXpkWCB6x7H47WCyQrULO3He6mR64070NtWlaIjRaUVfmDN\r\nfoLaqlfElthDq33Uytz7PgTY6J3M5M6O3oc=\r\n=1JEu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"01a3ac56d52443bc859ccdcf7ed301ffbdea7a47","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47_1665049606832_0.03452747410720147","host":"s3://npm-registry-packages"}},"0.0.0-next-cd3c5c1303c464ef7900dc08adb8154d15c7f3a9":{"name":"app-migrations","version":"0.0.0-next-cd3c5c1303c464ef7900dc08adb8154d15c7f3a9","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-cd3c5c1303c464ef7900dc08adb8154d15c7f3a9","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"bc64c4ba3f28eb9d67fe0e2d267b837cbbf05d9b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-cd3c5c1303c464ef7900dc08adb8154d15c7f3a9.tgz","fileCount":6,"integrity":"sha512-MKm5nPvgCSe4KR5V9Y3wawJh3QBNHSmuy9NDN21o8gc13XLJJEvxVeWbTgOoAzLOma2QMCHlHPvqIq2iZrzqkQ==","signatures":[{"sig":"MEUCIQCnoZ7BdbZVgKhkK6JF/vqp4JD2x0Bs6oBmvyunPezJ7AIgPjcG/69TiE26J9QWzZoOrgkty25rmR4cDVp4+MXShDI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPumxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCMw/+Pw2HADpeOtLQT+KOPSdHcQdwru8+7WPxo+FRPX6gtyGZknr3\r\nEZMKZUkJSP+t12C7A0UOT49pTqej3zntjXrrq7YYlRHRAztskVRcQuqrb4rm\r\n8XxtxI4GXyLcQXQv4n0QrjS6Q3aM4nSC7bi0Mp0VUognGrZiWQ37YwkMgOLV\r\nI3YtcGc8R7ljkFZCv2LuzcKMR4T/tghjD8bAEuIHJfAp763XypDOKXuXGngN\r\n1JqaKjA4pYQ5heTOsg4N7btCFSk6IwgfPHgJuDBPeUoM1coI7yUrisjzPYKF\r\nSnr1mymvV5KHihM7FtyQN08E/b/7FSBG22J0zyjfuHpqwD9+ySudeRjabWEK\r\n/KMih7MiZBmFUk1OOLkpkT35U+8+4T48639qOgeJs3vvTrtsg0FSMhbKw4cJ\r\nPm5vExoLq4uGoaljMvXK+3W4hyrrQvTAcfHeoFtCT0b8DPANEGd8yQEgyfjF\r\nTxLVvR070Q4yGkU0CXeSwDCtRzz0tgSs3NwAU8fGhXbwbJlfkPLPO5v3ks28\r\nc0eBjmHQyy1Zgmb9K35KwqrXgkujNg7wbFX/c4crstzH43d/HfNBwYVoPZSw\r\nSB5bfC/+lyMCM5nIaZAdVF6z2foX8KcalbITO5FYxPYf/9fYk8C55tOzQmv/\r\nA8D6jtqKZEo3PKEXtiCOtBpnxr6RYrtlxQg=\r\n=gvai\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"cd3c5c1303c464ef7900dc08adb8154d15c7f3a9","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-cd3c5c1303c464ef7900dc08adb8154d15c7f3a9"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-cd3c5c1303c464ef7900dc08adb8154d15c7f3a9_1665067441331_0.8610467438093163","host":"s3://npm-registry-packages"}},"0.0.0-next-d9691f3c8230e21aeb2817ac2c984aba0d79f09c":{"name":"app-migrations","version":"0.0.0-next-d9691f3c8230e21aeb2817ac2c984aba0d79f09c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-d9691f3c8230e21aeb2817ac2c984aba0d79f09c","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"5dc21828c4654e9883a044ad676de25a9f3890c6","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-d9691f3c8230e21aeb2817ac2c984aba0d79f09c.tgz","fileCount":6,"integrity":"sha512-nKbK5OIiP/WfY+C+TJgt7kYgi53D7cAR4DfbaNkaM5NCksGHTigGbwWOdvQlZz54rjJtjBcauXsIaRP0REHnpg==","signatures":[{"sig":"MEUCIBajKMcZjqneUAhuO5+7sRXY2d9IRiBRSu+b8+zQo73SAiEArQrOQpBhlApe8jD3EpBbzpk+Ffrew0TcZv+qQDE3DTo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQIGkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5iw/+LLRhCVBsH38dhCAv05SaVQzCXMm4AC8x+VE4z1OAFKHUj82R\r\nOyLepJcEjQGLsgdPU+LnoU8D8iec6deYdksDkGI5yyKZ8Fbrx9o839dT/Pld\r\ncXFdjnxGjSsHkqbt/bkSN3alXvSGvqmjsf4YJ2a7a12MADQZDUlnFWlyi0TQ\r\nw+I1QdGz/KAqoBFufUo9PQLpJSR61hKS5G315fzIFoXT56T4JSNBoQLBAT74\r\nkNnzaK+DVPQeiAhlfp0ZR48T6xePmcT4pp29udug34/F6srifIxkO+oKJgTZ\r\nxWEDKQt66yMCmSNqpBmTmOZA9Gsp8Owu4uPMsWXOfRbmfsX6eL2/nOyrGzpm\r\n1WmA1HJQTAizFI+5080MEL1WJ8Atj1hCvvR9AmhGgUb6Y9/MgazTdZu9XNVt\r\nlCi+4eBvkckQUS1SIBZrDk/U7qWNKPc17IQY1srADMYZEPf172ZCz2yFtTUm\r\nchcSLK3TvCGUmYjt8c++WvIGxrI8ldhEruRd8Em2CSffE6KYy8ummjNnlKgj\r\nIyxeO6qcENzANmPbSM7PmMnzmSaWQ6aTtk0Ana/j+EBIXoGgzf9+BlJuYMRv\r\nz+4nnKY952mMfk1T45SeqRiaJ+JUYK9ig0zk064BRA1Cy4OdldJTD7BKg/jp\r\nSZpNBlhpGciynukCzM6ywLS+4YcOOCDLH4Q=\r\n=XTNp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"d9691f3c8230e21aeb2817ac2c984aba0d79f09c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-d9691f3c8230e21aeb2817ac2c984aba0d79f09c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-d9691f3c8230e21aeb2817ac2c984aba0d79f09c_1665171875594_0.2863413505641701","host":"s3://npm-registry-packages"}},"0.0.0-next-1cb9ea1724d90e58422b33fe089df5b774e0be10":{"name":"app-migrations","version":"0.0.0-next-1cb9ea1724d90e58422b33fe089df5b774e0be10","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1cb9ea1724d90e58422b33fe089df5b774e0be10","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ae9628e0d358aeec70c6cdc3a32ef92c66362529","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1cb9ea1724d90e58422b33fe089df5b774e0be10.tgz","fileCount":6,"integrity":"sha512-g+g0NYm7IT5xqpuelujteiP71tanp3UCRkxiSbtTIF9FRZYK83G9iyPu0jEJBiqan4k9NR6E6QAvsl0MmkXLAg==","signatures":[{"sig":"MEUCIGX4BVoUgGFpJJrwPu9RBIc61G1a1ZcQRbd+guqzlrUrAiEAgbMMLU2oxhZKto962S8KBOAK2016xo0+XR7XDJE6F48=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQILGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeHw//YXtxwLyl30K8MYo3Zz+AL4JGx0rkzpcNYAsN99r+cHrP1+W9\r\nCrUI03l+ZSWOP0uVYAYnEXkOKunLgO94Yl4XrXp+iiPXfoktfohRJAfikCE7\r\nhl30FXgDZgrUfHP9kdXmcEb8YTGTTSHwMYpB3D5b0n6G5AoPtBGvio+vXze9\r\nUcfSHN7KMkE8ElYRqnf+6HsGfZmQj1gH+WoQnR0d1YXn2evv3E5wjavcAlWt\r\nLPwLJIPjSNK39qFavbvLJcTgKe6iM1k37cJj0Z9qsbfZFBND/5tBA5x8OXXT\r\nID2G2QaqtcApW8iv9VpQXchQT67Ow8kmGxQwmiONBLZamEaBepg1YiU5CdiF\r\nXknFrdUSWOoxT6V6T7Ge49EUF15mIpJz4yPxGe6RxsVeDuKwlw4524ND2MmF\r\nRpqVpcaLrr+dhiCpLLtdODcGX+SjJLZ4GM0K5b3OnwiqCUTSV9CNAf0BQbmO\r\nDHr54Xfi9PAcDT8rRpuVdeiZNaKppiHA+xSdbqYBiMWZs7PTOJTAwnMp9bl3\r\nA1twR++L4OI3WVuk2ZThb22Ju7rxNp70AxNUrArNyR0+Bgw/OUKO7iqNZzag\r\nZY3fo13LFvK1V32Rh2lhq+Ttw3Bat7NAuwQUGTHQJGUUmdBBkiwkddLfMelG\r\nveGW/VwT2ouYj3r1K8Wv0A1ioPDX3pZLcoc=\r\n=KzNV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1cb9ea1724d90e58422b33fe089df5b774e0be10","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-1cb9ea1724d90e58422b33fe089df5b774e0be10"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1cb9ea1724d90e58422b33fe089df5b774e0be10_1665172166170_0.46725487255974407","host":"s3://npm-registry-packages"}},"0.0.0-next-4216a27cdf41425fff35938bb42040bb93c2d246":{"name":"app-migrations","version":"0.0.0-next-4216a27cdf41425fff35938bb42040bb93c2d246","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-4216a27cdf41425fff35938bb42040bb93c2d246","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e98455b45e3bcdbc61b1c8d9339e6e5e65233da8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-4216a27cdf41425fff35938bb42040bb93c2d246.tgz","fileCount":6,"integrity":"sha512-qXmqvnejOwH0KLZehg+GUVmgXktZkv5e87IzC7PjLNtjASQI7uyjpRzArOwm9TZyqYCpy53M8k/V+1NycEr1kQ==","signatures":[{"sig":"MEUCIQC9BRI3BZBT68rsJlpK2jxvzpXJLkUHFRMMFioSkjEP+gIgOARHv3woLF+5VZ6z4RcY27SZXlP3/v8Anhg4bN7G3AY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQIVMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmry1Q/9G8dJFvBsZxbgA9+YZo404z/6sXSoImGORWkSXtMNM5aDAw2y\r\njnMFYzSq+QAzb83uuvUixgr/kU5YkD5GQ+KN61r+C/vyGD5a5Aapnlz4nEjR\r\nXBigtMp/VKWg0AaITgEpfTxqdbxVpXiN3K2eC4fQhBvH2Vsx77WV5MYpTWvT\r\nO67IqG31FHuJNK570zd2KCQ0asDKFJxNMhI6ewX5gICbQ84loack7Pkthx5S\r\nppS5g0qEgf15eXdt/RXRABk7tYt5c4dqwcB2RRPeAGJ/gKj2yNHfr8ehB95w\r\nWDbMXUqd2j+yc6j15JzR14RT/K3raR9FE+VgCORjoYgpyTxKttbpaBixHYfb\r\nb/5B/g6/FNOKd8DJxk30N4Ea+LHgv49l4INwZU4MIDc34scTFjY5grBHsZPa\r\nUCTIUEzLUIvvVwWNYVAN8N4Ju8UozY+DDvNzG/hwJ7DGhFkkkD+/PWbI/JfP\r\nsbphNcGkg6QaNTxfMrHvxWKBcGmd8XzpmnZZmRpKNHQulI4MqMEJuNIPfVf9\r\nI67DburYLW8jtfKffjJwwDHmJbnYSEF9t51QtD1yYXFWd7FwP6Qo9MB9B787\r\nNOcZt74NXkkKUKR6vWn1IRK7c9SuR0GfdUvy+vfWGynJexx1NJiJXd0qipQK\r\n43zmeV/RehoIW6JbJ+LcBlMrfDdKjVsZojI=\r\n=ij7Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"4216a27cdf41425fff35938bb42040bb93c2d246","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-4216a27cdf41425fff35938bb42040bb93c2d246"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-4216a27cdf41425fff35938bb42040bb93c2d246_1665172812121_0.7203217210286623","host":"s3://npm-registry-packages"}},"0.0.0-next-e3d7e58db726184c34e0d2d9f3342595a865eb55":{"name":"app-migrations","version":"0.0.0-next-e3d7e58db726184c34e0d2d9f3342595a865eb55","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e3d7e58db726184c34e0d2d9f3342595a865eb55","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"31cc5be7927572aa718b9db670f9b972a8958c15","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e3d7e58db726184c34e0d2d9f3342595a865eb55.tgz","fileCount":6,"integrity":"sha512-6eTseFIc0wMd83ENXgVV8BGsz7/4PTwmthegrku0wSTRPqGsJzSFS11xVNK7LAlfPpfC1D5p7hGEioYhepR3sw==","signatures":[{"sig":"MEUCIQCMoGUAfUoRK7Xj6fTw3NpLexoD+nt13giayHnuXLj2sgIgaeIea2GiUDhOKYMO7EJcM8/Vg8r035fLaHUiKGelN7Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYVkUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpo7hAAlneoAity/AFTiE7t+E/l4Akmdx9lCwuM+P/Xvu8yW0afYEY8\r\nFD1f0Wo4pW7MNLQz8IE0aC0atd4TjWWsGAzP/m7SuAcav6Nto02w9+qo58GR\r\nYbsjUPnySqmdoVRpogmq3Hrm58orRjNQijWSDVHTrf2h6ppigVAPbFkU4/AV\r\nDL/An7yTlr0G7wkJlwnmRl1zZs0ntmP27z0gOhVpUNwwk99zm3y7KhcMpr+W\r\n1vrwgqeQr+3bXrerbRgF8vFnMIHWu7aK0gqN0p4o96B4/IncxJGL/jIWMQkK\r\n+6cv8EMYitkwH2xFBRAMWotaT7hIwC7glvVREL9lYOVgS3zfXeVmd7einY8E\r\nEKXFdBM8OjRr7O5k56JKlJ5X/cqsXa2zDWjScmjkEq1lhOtEFepJMoxY3Ncw\r\nb8Lmz1608ZwXpZRU6yBOuhliC7AMW3fIoEhtOaOuK4vR4occji76wy3CLFZ8\r\nXSZkajqRQKiRnGtWQrHi/ALBy4qG+bJS+5r8bwjoHDQNiuYs3wdAcci8WmJK\r\nusrSveqKnqsm/hHGYxvcgLzU9m13amdpMz12GyPCisKc+5q/IziyLON5rc1B\r\nbc+jxEFyZPNrmkFrUGIIwtbJGpHRT1Ah8sJxGYgPzPapPCJ7i1tytCNZfkB/\r\n7120uG2MOZa7Cvd/zrQ0IvNTXB3TOeVZcGQ=\r\n=BksN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e3d7e58db726184c34e0d2d9f3342595a865eb55","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e3d7e58db726184c34e0d2d9f3342595a865eb55"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e3d7e58db726184c34e0d2d9f3342595a865eb55_1667324180101_0.8670603792927505","host":"s3://npm-registry-packages"}},"0.0.0-next-dd9be0f790095ebc62a3de5b5f33543ff3c55cf3":{"name":"app-migrations","version":"0.0.0-next-dd9be0f790095ebc62a3de5b5f33543ff3c55cf3","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-dd9be0f790095ebc62a3de5b5f33543ff3c55cf3","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"68dff074609bd289a3a3af2fab423cd8ecf2c7f0","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-dd9be0f790095ebc62a3de5b5f33543ff3c55cf3.tgz","fileCount":6,"integrity":"sha512-QOsthqTqwHWe8iG96qQLt4S/RFJ2P7czh/re3SipKPeki60jz5gQX6cLHmS4e+hRX/bHVPOBKVYTkypAJNPx7w==","signatures":[{"sig":"MEYCIQDJnFg1Ws1eIAkLne44WF07P9T54gmXRz5bLuRTW3ZuNwIhAJ4g/RPBn6e2fcsjWB/Xv4a1z/4HE0CZYd0rscIL5e87","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYjQqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZIw/7BmDKXMCH9Vl8AHGeBEmxDUP+h9c7Oj1jL+aGYBnoj2pKwCvY\r\njbk66ncV+LThlQBJuYw3gs5pHHqTouTWqQqSfWJ69rQzPG3SDiKkjK4tJaaZ\r\n3n1aiP9aXLYZnPy8KwOyTInMngCDRLOwNBVVpsVCCo0IirUzUfcJR3//yqNm\r\naGret8StXJfkfq2ixiIKP1yKxzxXVauFiMW9DBJ5lIEa3DodtsuVCCox9GQj\r\nVAs7p59SJi0ylfntNiPSQ6DL2xaT2Kl1WKw0LMwR284XtSZpOKbB5Vy3Fuiw\r\n7Dkk/dFjm0vEZQbfiTeMXWhq4ilnIuAlftCgu2+ZQViEdMmgW7Xv9bG0BQG6\r\nQy0o9HhUh4lVftW4KMoXuTx4ZrnESEBDFrZcZ22I8eMJ9lyi5INhX+GOa+NU\r\n8Zc5KaSOiYkIkggx3bVkBkwrUhJui+wFdeNaoX+uY9He/HZS6MTd93eNcM8s\r\nuyvVUG/L3NyNv+o3khp3ecZScUJmWl1/txSJyhbAEBWiws3LTxfz6YO851OZ\r\nWkBH6J6SnE69ZmgON/gD1xABlSengFdXVs30Njce/d+JrATZxXBUZ4ENSJbg\r\n/r8g3dS7SYlkOCZxZjjv2+OvDuoZOU9Z3gIYOKooqmO18YI8lavHzQYYDCHS\r\n6h3DN4iX9UKTMHW1crMaa3yvuO3kDQXkKq0=\r\n=chzH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"dd9be0f790095ebc62a3de5b5f33543ff3c55cf3","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-dd9be0f790095ebc62a3de5b5f33543ff3c55cf3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-dd9be0f790095ebc62a3de5b5f33543ff3c55cf3_1667380266327_0.3043318522346188","host":"s3://npm-registry-packages"}},"3.1.1":{"name":"app-migrations","version":"3.1.1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.1","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ef3d9db3fabd31f9a79afab2c91447c24ca7012f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.1.tgz","fileCount":6,"integrity":"sha512-9qZCYAqvJ+4xuUblY5Y1eNjULYmgjYVrB5JwLGMaS6Q6zIMI4jcHCni7AEiF0Bvm3kno1zzn1LzIk1HyLOnbcg==","signatures":[{"sig":"MEUCIAKSEUqnHvbh+9wMkm1COhd6Xdc+jC0nUAt8y1lxxZWuAiEAnrtk5d4oysyBzVnReNhE5XG8wvQZyKYPgHKWja3KYHY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYj1bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmroNQ//f/UpN8/jqmro0KFieF8R5ilUdY07vjK6+KOgMZx60IVu49Tt\r\nv9qP1yOWgox6idAZJns+yJaM5G9xQoN9Er3oJGRJmp8wsGlnTQEgwWK2BqY5\r\nKv296zxr433eS72ifRkgB3Q2RAjo7Ry/QmsmGr43YMssSdsKxMWR8nwXc47n\r\nX8kU7Z6e6zSWfkmZs993AOk7HNXhfmNPYoYcCilflPHGxD8KgrdcMZQV0HDQ\r\nKRchL6NntsJWB1tddqzciP70TgsedXPzbfkddWzxeXfBsSeU56mfif/QHi/5\r\n+YhSOd+F6fI7EnWXVqH5BMqANpUq08b52Cv2OPk21m+GvsmCpRdwCaIJbOMh\r\n42FgLfQpOyGTKywVVuRsZ9goyRVP9Yv/Sgt9UHY7avUMCuHX3nVKOBS5U2S5\r\nC/fhRoIThkgLKJLwQ9GxgWbbexjIM5sOBwgR8piIoU+7T9ensv1IER8dyVNo\r\nrF6nzbBlr9DtCnNZBh1/mUaCZNeDGXk7G+7UFIxKgL0P8R7H+Fg0bMxs+p2l\r\n2epc8SpMmDhuwbf8K+X3MmIIeOIrbY8yOyLvz9TB44t4uR7OWDXT38XpZisi\r\n6p1DemtVopfw4NrrCDtWpHqA3J2Yi6CmCkM66L00grJQinfhufx6L3JbSmr7\r\ndoT8YRDg7RXUJZQ5UgzfjYZOnkw4WrZXB64=\r\n=UsuL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"10815be8fd57f3bfd89d061e1592eb7136d4a0fb","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.1+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.1","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.1_1667382618993_0.06337385396223771","host":"s3://npm-registry-packages"}},"0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb":{"name":"app-migrations","version":"0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"acf8275e295dd1ff288f5c6ef3ebde2abadc07b7","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb.tgz","fileCount":6,"integrity":"sha512-xN/dW1A9MsoaEuy8vzROinEUvQ3DMD/YbgpNv40ew29PkxbRtixc9tVZ17TGs9370U3D1ZqbXPK41hZW2kpnOQ==","signatures":[{"sig":"MEQCIApdSlYKioO04wlI0ZVfa6APj/zWNAJl+uvI9dlV+dD7AiAUi7Tn/z/uuYqjX9A9xBjR3bi8VZVM8oe/bI4xiPqFOg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYlTlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvNRAAkFRGkEFWkKlZq7YGlWdoXhuVXxorZleZpqYVrnIUruXmg/bK\r\niWOxYH9qFq52Kf0lgkb76TtH2EiJ7jQm70UB+Q9vdm/kaqN2ERblGDe7Xh2I\r\n+3xsU5NZd2qtYvyagMS30jCp3tC1pKcBJbt8FbXUhIutlIwGSR2ji13IlqwK\r\nK+yHf7vVxCdOBJsd5A605uj1KGhWl+3xdRQ6g68lvzvljjLt8lA/cIsh4hJn\r\n8tn2EbCw6VMuAcOLk57aM72vZXckRxgV3ogCLqRGC6S8+7C6Z7W0UsGmd+di\r\nhQXPAe48/X/AsN5wwHzxBK+2T/4hK545QZRy5TbYqGZ5scVxk7qzS9KLVpte\r\nwxceEwJNx8uQke5kEWMBV13ldST0ffezRR8Dsl7wW2HiaSETHVBR/fYIAU5t\r\nHganZUd3GbQRPjcp3q3pwP41Vxnt2WqnxOy/sKIOt+ins+ZSNynmFUnc3F1O\r\n5AptPGKjpYfP5AOonRQ6Q3DRcD8GVYEdyjphXxmKeq506etkBWhCoIYs14iH\r\nE5CEsiRGJnp48MixF/pvQym+Xuefj8nN+at5GSmmrwjRweoqGpB65o+88S1y\r\nXrbC5xyUlG0C+ZAMMJCW7cpsmk4Nz+jDrtak2MvtSm55t27DW+qe9+73Pv4Q\r\njVwPpvOcmQ/huC+oa61AaLPbFnAm+xk9Wmc=\r\n=dWJD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"10815be8fd57f3bfd89d061e1592eb7136d4a0fb","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb_1667388645678_0.9085348551983723","host":"s3://npm-registry-packages"}},"0.0.0-next-59e1f6f134da2a3417bd69a71c7788320608ee5d":{"name":"app-migrations","version":"0.0.0-next-59e1f6f134da2a3417bd69a71c7788320608ee5d","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-59e1f6f134da2a3417bd69a71c7788320608ee5d","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1a87af6838357194fd53c98c4d5f0e78aff646bd","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-59e1f6f134da2a3417bd69a71c7788320608ee5d.tgz","fileCount":6,"integrity":"sha512-PMLWnvQw/L+PhGcokF5SqHC82a9m1KZuPBGxFhcp/9RKdVD3eI5TKfTx56Po0qxMQT/nrAyd5wtPBun7rhA5xQ==","signatures":[{"sig":"MEUCIFIeUNLVadlgcBVtP56211IGEn8pjs4M8PBdLocCKUZoAiEAt00eSxkzpoA0pct1PDS4xidaFi4+2pka9+i9jBxeDrI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZIKMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJuA//cAXmETLIozyV0h7lOyLsQxY6qq294JPz+pg7jyhTQEaDREBM\r\nYVrsZtxvEbJl5pa3GxPQdgRUHixvDdpy5wH6C5MrjIrmAVKtR+jl55lYi/nJ\r\nJihiTxgCm5Kxg9dzV7VSUD8m3xsFhHF5grCMpJXzuqpsgx4NcKY72e+7CLG5\r\ne77LRitsaLaV1WGHRq/Y+m23wb8hOtoQ4I/qhDrb4ZzVwwMTMCHjp16lH3MT\r\nc09buNi2/cubcOuEAIox7TYzEvQOl0jDre6q/iIsXFZT9rTieCcCweJc5ZK2\r\nO6l0PSafFz1xQOOQ4enLW6DqWefSRC47tXwsEQMnlOecheDMAjf/JDQYl1St\r\noPTM/Ld2t7M9mU1yaCWUSDLiNRlYIxyNUoeFP2qo5E4hCdZ6eBLxhx1oHZ1Q\r\nQUjGxM6hxOY27qXQE2QVgS3VZkY4BeedeqdX/lLfmqFtyoIZDOybUMrrUq78\r\ngqReYjlMSF3X9jLuaNc4I5PslhpI9oBA+AAScHwL4HNo6BZIk6esC1C9ETyf\r\nkbaJlUXdN/+YG46KDV3hsJL/WinH1rJFqVHfTD+j1/Yf3sA5SvOeY5j140mt\r\n5PW7MyG4WIA7xtTnpxsHrn2g2eQ6hWJuOBRnUrl6Ykm/kdlSETFBuZZc27jl\r\nQykfD1Ghjmrgu7g4V2TJFOifu9zEWx0y4dY=\r\n=L4p8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"59e1f6f134da2a3417bd69a71c7788320608ee5d","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-59e1f6f134da2a3417bd69a71c7788320608ee5d"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-59e1f6f134da2a3417bd69a71c7788320608ee5d_1667531404551_0.5923890239750993","host":"s3://npm-registry-packages"}},"0.0.0-next-ea4f317e964c0504e54c01d83c385280a9135bba":{"name":"app-migrations","version":"0.0.0-next-ea4f317e964c0504e54c01d83c385280a9135bba","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-ea4f317e964c0504e54c01d83c385280a9135bba","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"86b49d7907e10c7d0ad70010f95f3ef98eacc384","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-ea4f317e964c0504e54c01d83c385280a9135bba.tgz","fileCount":6,"integrity":"sha512-9XdfMrpSiiElqzM4+E0+do1uoe0PFQGl+TSBkAY7cMgIOuGW4CvUFCWEa6P61eQCwVyp1GNzFegDj3mygsfm7A==","signatures":[{"sig":"MEUCIG/n2TMyuzPiXGzlhB2As7qng1fUqCmDJbtInh8sQpSbAiEA5LtqbQ5KxdyoiC/wIj7tPFKBN9lxzwyidXpCTCwt+Bc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZIR0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjWA//QTw2MGuBBUCAtNW0br0IpmFvpsADP1LKPENwU9D+i1LEypvm\r\nMdRPd1h3xKbZ22CceAczUt18HiggwTqhbJwX/cx1LkiVBchG170ffkX7Q2Cc\r\nHg21I4tuPfER9hQi+EMElJAeCuk6fLx2qNRsIYRfcyusybqxS0LfoI8YzMc5\r\nR73LreEeg2mZTYCh+ADPolv5jscjJgOW8+BlTsPN4ELQDJDvcimn1KKQ0o34\r\nECz2lZ9KyfefNa9oC4EoByfXjBgfOxfWm9uZDjuSWv9/N3bye4DN39G6UPlJ\r\nAq4bjZrbziTUAi8ENcXdCB/q4GB7f7zH5grLXZWc1tsUfb9XS8t3jzZMku/A\r\no9TNdOC4ZonYgfQdRStS3BSSOIQcoMvZ/EoBZjDZISAq37X6BT0mcqieV4ZZ\r\nLBi3AcO0YiqOeblXh1rgWPJJV7X4rVvug0cdkmz0pHicXDL1r4wsDVqyZ8nl\r\nLzTceIkoEUy8F7eYN5YVXLyAtQcfvQv8ktMjx15RsqMoosUKlO3bQRdTY2Kl\r\n3zBgtU9g2VGVofQafxolgPIqePLbVZ1pdT6i8dvCtaV2w9sw88cWBQiFj+Rn\r\nudNpxRRq50psG1bG3mFNCUL2UIfkMlEjAUzZ2Ew7bf2/2x/yUyKSxM0JFEQi\r\nwdxk5vnv6moXYTntzyaNA1AnkCpu8Eldww0=\r\n=OqpY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"ea4f317e964c0504e54c01d83c385280a9135bba","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-ea4f317e964c0504e54c01d83c385280a9135bba"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-ea4f317e964c0504e54c01d83c385280a9135bba_1667531892634_0.03223866629877392","host":"s3://npm-registry-packages"}},"0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04":{"name":"app-migrations","version":"0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b124a4da96597d52affaf058b66b3709561c651b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04.tgz","fileCount":6,"integrity":"sha512-04kZGizGkcbo+gZ0xOOrRgQCavJvY/6BRy+5m4xeuLaYU3RBjnKMgArIHG5rrAWK+52fULa6vQ1qkxhnWSGdHw==","signatures":[{"sig":"MEUCIQD7czwlfoS/b9/fV0Q7Nys3VCfLJ+YLKdvRLYsrDlBnEgIgcCRDHHgib/zCAvqiym5zlJ0r3wAMYcg4qRtdXhzn71I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjasm1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWZBAAme6LhPa8mTYZ1IbbUyxSk6alUaDFAkKzM5tBdb94MrdczCKT\r\nyIi7zsK3+X2/P+3g5xeSgvsXS+j7yupGAaUu6sFQ6r6DGsipNvPKVnWujeWh\r\nsLdqueaUTTpB2JlivhyRKb2GrjnIzitBMY+F8olDCJxvHhUZfaFN0BH94o0p\r\nfZnRp9slLLjasLB8mINwLm5+qor9R2HwgIfNTn6pJGXlym8NxdMVzjB9l+XR\r\nm11W7TDK8KnTgvuG9olNi9IN0REzo1Yy6USvEy031Zg8UyedN7iK4QCdw/RU\r\nw8IIn3Pz+y2hO8N4CoLJ6Rbg9VNYnnXTHppVqq3bBJrzy0lzwlK0FoGprVeR\r\nvi/1wxF+XfIOWVO6XpSe7k/tIPr7S48yBQ3GKsfQPsvc3O5QNCZA5pAyr6zS\r\nXW5GJ/n0tXEV5pw8JM2OX3sFb6HDBtOt+6T2vPNev9vA6oIIyktpKMmaCnnq\r\nrLL10DuIH5uW6yUDJFHCCCtmSXdT/s3AK1f+BfIDggN1ijSix2E1568k5D7i\r\nAA7Qbk65hy2KE03HrSBCT1HTA/kKMdV2W5ehSipguYnBZ1LwKlyrFNsW6q/s\r\nkv0SxUgO8a2WJ9LMYbyX8Z8v9lk+U+LC5Iy1TWtQg/3q/VdI4VxGUy5x/Xo4\r\njP61kodZQNN+TTL6xgodVRxYjiyHUtocvac=\r\n=ynrI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"bfa0f33f79b0349abe5ad03576e17682f507fe04","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04_1667942837688_0.42274055736725447","host":"s3://npm-registry-packages"}},"0.0.0-next-5f5cecf01c890c348e17907482b03cea2f8c5f21":{"name":"app-migrations","version":"0.0.0-next-5f5cecf01c890c348e17907482b03cea2f8c5f21","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5f5cecf01c890c348e17907482b03cea2f8c5f21","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"a6fa63770ae4f78c7c0f479d51d9f8577266d966","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5f5cecf01c890c348e17907482b03cea2f8c5f21.tgz","fileCount":6,"integrity":"sha512-etOblBqD30yU22AzAo3RncqiUpQ+uzNZjzm/XbJd7miPbbIvemtVo2ea8TJ2ugyBS3akoY8CIsM8SypQeaOJ6w==","signatures":[{"sig":"MEUCIAD6bU9n2RDzpuvrHdnClCys/glIM27OVUnp+YelYFExAiEA5lUUnKnNQ8fWphrAcy6I90ODL3eo8Pn0teJOpnpcjP0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbDtZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvYA//XjovZ4mxxBVOYeBqj6gj6yfDs1kwt6W5jU3UK2Cu0G0C24/m\r\nlRos8BKSVOl6W5q2BPKHoOwuwTTrgm8OI9r2KS/1PrwJGs2qz9Qf1MbzuU98\r\nuy+xbD9R1bQdyVfyg0+eQ97lCD8oKpPZPC77UnTtI1C1dgTaP99S6pP7YzxP\r\nvYE1qbg4F0qWGU/ZsNYdDD550GT6e7909DloxjrKIcJaB17WywBEe51BJ80l\r\npODZenMgyd3G/VB8la598vzde0hgrODiXuR+DwWrGjgKIm3gpbkeYj6/0FJ1\r\nuJPn9bUUQQhqWRUA6wsWWG4j7i2tSjUGsoa+SvaR5p7lsGvhfJYsNaF6hK1C\r\nibKcY+TYQin+344SfmhWGM+LlT3qfdBfNIjZUL26UT0FD9LYmmOKJCE+Z4JB\r\nOUqpIOdRKAY3t4As6JIe5l82VXwe9iiDFqf+kAEdMG2hZ9OUztBBiYZfogS9\r\nW1dk5VFuAcDfjY3oC4uo7mT5xCZ81b1kQcw7wtAWAtTBfKhWlGuhxlA+yYGZ\r\nX5Ij9TkwJEHtVHJNxBpY8bNCv5Z19M75HZcF0NjbLEqcyVLPIOsfuFEQ3Kqk\r\n2Gnk2ZPyIfp48YPuKq50dztwtNQcXs2Q3nvf7QtJGDgB4dAjVPU0zd6dxIZc\r\ni4OnQYXeE5CUtnFdzAoBbyby4LQnOMUo5MU=\r\n=C8RS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5f5cecf01c890c348e17907482b03cea2f8c5f21","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-5f5cecf01c890c348e17907482b03cea2f8c5f21"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5f5cecf01c890c348e17907482b03cea2f8c5f21_1668037465550_0.559843836280997","host":"s3://npm-registry-packages"}},"0.0.0-next-51a8e00f16dc1652cb0f0674c540570614a8895e":{"name":"app-migrations","version":"0.0.0-next-51a8e00f16dc1652cb0f0674c540570614a8895e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-51a8e00f16dc1652cb0f0674c540570614a8895e","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"8a6227f9eca20a9d4c32f2f1121b06cde2d01cc1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-51a8e00f16dc1652cb0f0674c540570614a8895e.tgz","fileCount":6,"integrity":"sha512-p7bbx2od4B0PG6J+WtB9PcNh/NHZSSaMeTnIE2Gwq+2H4sM/RP++9tawPAOdmlALZlKZYhx3fSU/6yzr2/cvKQ==","signatures":[{"sig":"MEYCIQD7wDrePMNat4weoLiIt4HieYJVPfi8mPoNswpwqWwtpgIhAJkCI6BQkX4L0RdWFDyMe+z/G4s7if223Z6E99AI5CGE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbDyzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDLA/+IqObyDC8FsQj+7hjvtdvCVO1ONs2rQT67NoMOvbVz0bewBat\r\nGvkURdJ+T8p2tpPkC3GuuPnyUUGVXQdN7iDAmptsqm7dbZ1dMA+UiHI1K1z5\r\n5dpQ1uUU31/mCGWhit/TONELchvGmvmo0lzffHuPUqL3wAJBG+ZcpzsWcASy\r\nnd18MGUpQzeLoEPm0IYr/Fpd2cV0wRPx+Bdk7UM3E21/gVEAcq94QZdDFbZi\r\nJ57kAHW6wJpX/klTBUuaRY1urfhKQaa60jYeesVY6fCv0FhkwUqF1gYkXQOA\r\nAB/zFA0/hvCf26IXWFZbRWAh5WbAr0kBUt9a/MLcAprafrArw7zNmbzO1BMG\r\nVIbVUQopsHCulmUs1XjoGaTPluQHlmJlo2x2brVbEtW+GNBpVlqkSx7napa1\r\n3bGFkXs3NxOulVqBKxgouZH6QmXeQC7TMe3JS5T481sIaxNvplaE2DckyM07\r\nQRIwdkSvrizedkxF7o76GXzJxd01+Hliiwiw+Y+ZP3s/HGlyBTDH6KcnTo5O\r\ngVKS8L9NsyY6c0yeVEbkSDfnCAT1BljbT6v4uXEkvCfrzik3BL0BVHPrpQje\r\nYaOtQ8JPRc4gMDm6PPsdcGBKN1xbqcnLMJylmWuJHNABZ3fOfEcprSpl5zTZ\r\n6H34u8RA7TMUAf7Mlc215wgZd1muSbXMPJg=\r\n=Z4J9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"51a8e00f16dc1652cb0f0674c540570614a8895e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-51a8e00f16dc1652cb0f0674c540570614a8895e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-51a8e00f16dc1652cb0f0674c540570614a8895e_1668037811168_0.5722100511220629","host":"s3://npm-registry-packages"}},"0.0.0-next-6d1491390706ac21857752412a5e4d10e112a29a":{"name":"app-migrations","version":"0.0.0-next-6d1491390706ac21857752412a5e4d10e112a29a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-6d1491390706ac21857752412a5e4d10e112a29a","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"5b641fc5b22571243532c692d547811ea6a35ebe","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-6d1491390706ac21857752412a5e4d10e112a29a.tgz","fileCount":6,"integrity":"sha512-YZjlS+us8PnwuUADyNkMPS77kLI2CSRytcokFf3dZ48kSwZjE/m8AOu1hrIoluvGw1lySjFZI64boe0ZGWKRzQ==","signatures":[{"sig":"MEUCIQCoH/gADbRJjDfnCHHZc371iMEBqA46mI8VNWyMTC6sFAIgJMs8dgu4UL0XIF7S4K9L+zm+6fDXL01u1RmdHF1HMzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbD2xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOOw/+I2pJYJsOFUkL0ycHkOybp+l7/z6OXPS9TAU6OPGc20fBHyjh\r\nkorhawCe8YMHNxmkFqyMH2lF/eoF3iVZ05t59ocSUdqGm51Fg5b0aomUSRQ+\r\nB630XMxZRiY9XAzp0WBAKpyDPpYE7JuxsiceW54hKDn77zj/nWoa8xm8S2gH\r\nIcLltLzM4846Jib3C34FkJB4RlBqtzD+cJvadw+TPFT8A4hlRHGALrOMF2WZ\r\nCfwt3/+FxVB6RsnTK3U9eTSB6arByiOrVF7oX4Oxz/5RP0I1O6uXkySuaczO\r\nfF2woPAVPyeLyB0w1t8EKE3ctcC7IXQMh6GeJwNrR/ExMPlesBxoOL5DNIOz\r\nr5SfhBeNpPb6EmcdcGdVkNeOLw0VLfDAHRbAZXlBui1Ex8BIkegBBTCyUYTv\r\nw3ShRDwoSbg1W7KMuOkzXyABub0gJRwp/KRrBnjO3ltfQacq5GLuSPqacqJc\r\n71oKKgczw4u+LIyzheUh34VYTht4oqMdd6a36zh51+psURbx4yFnRXkfNRs1\r\nxZVRJ9TC+dtyTEcTrQOKe454FmXXBuob6DlV64401NR77qUe8fSZAivjyxSo\r\nFh8Eo9Po6AFud8wMcKzoNz0v1PuT7kUrjHaEY2BwyMIB6mPbJ6JbyXuqR9l3\r\n2UoRmouFWDJdPsnClaf/YI7xGk48UVISIbQ=\r\n=pSs1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"6d1491390706ac21857752412a5e4d10e112a29a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-6d1491390706ac21857752412a5e4d10e112a29a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-6d1491390706ac21857752412a5e4d10e112a29a_1668038065033_0.16747787342729903","host":"s3://npm-registry-packages"}},"0.0.0-next-44318443f2cd1088082181789b25fc26a7a11bb2":{"name":"app-migrations","version":"0.0.0-next-44318443f2cd1088082181789b25fc26a7a11bb2","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-44318443f2cd1088082181789b25fc26a7a11bb2","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"80366bd3196185339e781249cb35bb262eb108b1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-44318443f2cd1088082181789b25fc26a7a11bb2.tgz","fileCount":6,"integrity":"sha512-sywimp2cvj1lGUQVhyOARh9yH8kEo3e88BzjHw+ukEQ6OQ4DWwBX+Fi6lzRrKa/Wu/Xh874L4R6w4GQoDfTPww==","signatures":[{"sig":"MEUCIQD0M3yCfR/75/sH8p+N+gIjFGQCW7quJD9+dlwZzPEz3wIgZymJV7yfc1yKU2i1pU+Zg4qFC5gRVvZfRItSz1JbTdU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbD4VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqt2g//d3wblPkLP+HRHBj5eFCWtMFg2WpbZLLi0Z8gpiXagmvfK2ug\r\nBGrkaKO+qX2h5JofeVPFhjvkEETKhcdmv8cwHLEKdA6CoN2StGr25kB7ECkb\r\nK1EPfw8eAa3ExCnX+9HCtfjXazHRXQXFpPLG5i1YWVLAwq+1XU3Pn3ZRVat6\r\nCBGKP3tkM4k8QecDM3xd22S8xHssbjd1A8IcpvbL7OeqUgTcVYeLFeYikVbi\r\n9pK3BB49a74P3VYZmxofPURdGx9pFItmrN7eLuXBQzYFIUXZsDx9zUYH3vYx\r\nOYJudmBOJuM1DPJ8x9N8KU2FT87/VnXw+9j1YCFlhKY+hL1YOdo6Xuq51b9O\r\n0EEvqEWaEWxavjZyHYZ7fkkgTyxHJ8qo6EzYzwxUhKRhrdN61C1OG1Isbr/I\r\nZxLBbO+EgmT6tuyqi6PVcTOK2C34OPCioKS0Nu6MGF1mIWk7Q4kiXQvXDPzE\r\nsx/DFdYdQqbAPNnESM9vOt3a5NqreRgOBfHE8aJASZl1BlaIkm66C/VGp2d4\r\nH9TiDfDR/mCoq2UzQvAIJBkwC8Gg8TzCEu4z3EJ3UHdolTeoiSl9fdsIpxIH\r\nxDhzY7aj5q+a4l05yJKHQmOieCXUETq9hsCxmH07MnCgsNo2NPahCktOdZrc\r\nmD1cnWm5hQ9XmYnCGaMUWFgTTLJO8/4KZyI=\r\n=yzph\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"44318443f2cd1088082181789b25fc26a7a11bb2","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-44318443f2cd1088082181789b25fc26a7a11bb2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-44318443f2cd1088082181789b25fc26a7a11bb2_1668038165077_0.3015227033532837","host":"s3://npm-registry-packages"}},"0.0.0-next-3b50f8232d3349fe79554f36417d7fbb45b6352a":{"name":"app-migrations","version":"0.0.0-next-3b50f8232d3349fe79554f36417d7fbb45b6352a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-3b50f8232d3349fe79554f36417d7fbb45b6352a","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"4d59a8706b94430bca868c91d9c61b81574536af","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-3b50f8232d3349fe79554f36417d7fbb45b6352a.tgz","fileCount":6,"integrity":"sha512-vs0dp+yEPqShAhLeHZc6f4skf4U0K2dhE9bGQQL3oUymIK+o4At3k5DqgSs1gih3WCHx2CpxY74PZpdewA1bug==","signatures":[{"sig":"MEQCIHQpZu1wB8Mz1b7+E8wNONBjylzpCBNir8PQnhYc64ybAiA7KZIH4lvhld0NWy0VT0WK6Nl6h0ry3GfaJTLR4LSiMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbD8bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5Bg//dmzcInlIoKR8KYA/hEo/pnANbqNK6R6fYvVFN7r2l+bQugIy\r\nVuMG2O4YLFmqrT2G+8RgwBkUCXo9IDkE33X6mRNR1XtK2XlNIxrT7IU3e+un\r\nGQ9X71yYBzsD9ewDaBXTVj8pxS1qVuLjkHoSf7XSn/jL+8cNmygaPLHIbKUD\r\nXVdy7R0j7f5AK9i19FcjzZ/sFhAAzj+ElLrgonfiRXHhOg42Hk/pxa2NL2n+\r\nwzP/bJSgNJJBoPtgfcOJBk7B/crcNKqFMKkqItqEi9XBp2Cpis3P18WPwHQE\r\nUOR2I5Aj/SGhs0xMBqfhkr8Yl8lnZQTlcDOWO+mNFXDbGKCemzjSMYNZe9we\r\nb7aB4khJ8phCSU07CetF9npqmTh3nsr7FefSc9g4sdSvQ+03XaIynAaQfn1F\r\nFfMFPL6Q+3R6CIyUKc1bw8HLvS0CfQOd7dYyKSe1JQ9XDHtJnwYu261qvRdQ\r\nAQ+lD3CllwgOQzazJfDZe7+kOx+GRrJaCJ3f8aXgc4QmLxeyidv4VqCDxHuu\r\ny5+6/r8NcxO57nw2xYIEJkKLvneb/BUhUWU/eAsjSe5Wql96BiZs/9wjFtx6\r\nlWUbUVAJ0JrKtif5CQF2m8km8N+k2HP2gBfF31w8p1XXizz1ZrDcQlE/NYU+\r\nkhOIzr3ur4DjsvyyVzwlAvBP/nTzxPB5Psw=\r\n=h88k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"3b50f8232d3349fe79554f36417d7fbb45b6352a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-3b50f8232d3349fe79554f36417d7fbb45b6352a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-3b50f8232d3349fe79554f36417d7fbb45b6352a_1668038426893_0.2303087766057692","host":"s3://npm-registry-packages"}},"0.0.0-next-47b085701d7c0b212b54bcac46f6106d34ec429e":{"name":"app-migrations","version":"0.0.0-next-47b085701d7c0b212b54bcac46f6106d34ec429e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-47b085701d7c0b212b54bcac46f6106d34ec429e","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"2d6248115ab23a357c22d33ea9dec45583f540b8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-47b085701d7c0b212b54bcac46f6106d34ec429e.tgz","fileCount":6,"integrity":"sha512-WU9RxPT3Pf2lPWTP+p0U1SJ+NIKNIdvFcmG9rpHzfxSTPmiT5DQMRV8jN6VAPepBPcU2AxLSG8KQsSfuygFlAw==","signatures":[{"sig":"MEYCIQCw0Mw99BL7gt5V0ALiHtRLpkKD/xOUV8HSvNxCHu18NwIhALpUnBiN3pr5QfBzKt5d6zjBlen9o4eGBpOp3MVoNUti","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbPKHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAxQ//VDvGpK0bHcT5cEWlDpjNHQhVz49vNpI9UFwfjqe9EgBvZwtT\r\nICWrk+AwcDQwThXDww8Dc/NF7Cbu6l3omJFykihl/KSB+/LjSLUBuibpwWO9\r\n3ck12XMUNlyGRip5BxwmEAkKBV0oOIF0slYKoCgz9SS54j3gNKsq+lic+/6b\r\n2QvIr1KzGp4pbr6eOKVlyZiCj6L0tlE1NWhwQJiD4neC2/4TUJebrX2cVMSr\r\nr/4Of4eCjuy4x7MAc6JtIMUFIoUn/y8th/ZJPhDEcJCTOlxFI2vuMifjDSnJ\r\nPVkKXmNhJgXzyS3Tju/wl3VB9YWvgPtUOj8aoaY30KM9AdtF06kq6U+ui8NE\r\n1uXqA3ZEQ+VnxTNEQOwQZeaglB5osmV1C5fxIbp5enRAOe2PbZ/dh/TdHbqH\r\nHEwFq9ZB0AUTkTw1zviprPra/xvm5sQyjhej/DgDRvKMY+mRHr89xOIKL/tk\r\n2mEpi1LdKHOENvCDJLV+54Rs6WZyGjTDCgHOmk4kaRUsohjkaJuUzj1CkBbL\r\niZMMQJWqBKr5fJqbLWLuugZgv7+JF5/7cK7FowreUY2ImjXVpJU6i0x38iN5\r\nEDRwSD7/qqc0e5+e5eqk6pjGwuUfipwPohQmZXMOeahgO6pQ/Rjiqj2pXkbU\r\nNqseO83+U0HlH2Fbw53o/bvW0BaSvskdHzo=\r\n=UX6b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"47b085701d7c0b212b54bcac46f6106d34ec429e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-47b085701d7c0b212b54bcac46f6106d34ec429e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-47b085701d7c0b212b54bcac46f6106d34ec429e_1668084359195_0.26493108597074677","host":"s3://npm-registry-packages"}},"0.0.0-next-9e3b266e199e346a30e2c20aac373d48c2ea9888":{"name":"app-migrations","version":"0.0.0-next-9e3b266e199e346a30e2c20aac373d48c2ea9888","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9e3b266e199e346a30e2c20aac373d48c2ea9888","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"9a4d8435ef499ce3012f94624b25e1e0e8b861f0","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9e3b266e199e346a30e2c20aac373d48c2ea9888.tgz","fileCount":6,"integrity":"sha512-y2v/DIaAf6kfd6e8uWuSLfhFFpB42jqqI0UbvhXntgEr+z1FnwLMFEi7W6Sw0W/UmFNljxL+0Ny4Ww0T9VbIYg==","signatures":[{"sig":"MEUCIFK87rGFmetlzR4XvjmsUz3/Etqirvo4YvAeZciGI8wMAiEA48okBBvXk60cA4WuL04VvlpWiEu0JaQWrTF/tEWSX8o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbrP4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPXxAAlfO+cmRrJpLA6OpBymnusqQRhh9bTRcub3AabPjfJcYsnxwq\r\n4K8Y74hBZXeb0Zb0DhUZqd1aCWkyvHtT5KOscxVQy83VI7vbWotz0k14R1Fm\r\nIGTLVV8oaT42bpyiK47vyJCcWn6dqV0Y0rnuf6A4TyzmBOZvT+Hnz9Ybr9xr\r\nWWEq1PwOJKK/wuneK3iF2WamTSOk/9HrbhyIOcX0Eibj4Gl9oDdMOsUBHhy2\r\nQruNnATLtUCSYKZz5xa6azF2dNdbbMzUGYMrBA5Gl9yQY5bF9hb4+hByGEdq\r\nbJi6FuTpZ7BSDg2Kqmytgf5BeUIbNR3YwV+EbMkTIXXuzQHDOCVURiuqHCDn\r\n0YRTuFAD8oNXyh2++DJk/M0MQODkWRT/0KxV+P0zc6TIczx3iqw/5mDJlZeJ\r\nvkB5gg0j7jyERoFtUKFy12vJYHeExrxuOMECOSUFhvxvRbuofWIDOUvymoub\r\nVJ5iHAM7Wi6qbg+ElcGiFpq/qNKxtCgeCNEY3eiK3enAZAsZGs2JwhSbcHSH\r\nVB+Cl2i76+x/9+PdrJR1jjki7qSzWmB/d7fbNFqLR3ZsEJe5Mh5qAsb5bYbB\r\nOrA1AC7/0zlmDM6+9H3eGvCemutk6lEMuuZ/ss+QoTa+LMZqYj90kQVuhLq+\r\nBdax2QKw/+VO7Wtpu/nWHsihryGIdpSMTqw=\r\n=83Cq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9e3b266e199e346a30e2c20aac373d48c2ea9888","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-9e3b266e199e346a30e2c20aac373d48c2ea9888"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9e3b266e199e346a30e2c20aac373d48c2ea9888_1668199416598_0.2170043394536696","host":"s3://npm-registry-packages"}},"0.0.0-next-91daa029e219b08cf0b775b6648d35867f2272d0":{"name":"app-migrations","version":"0.0.0-next-91daa029e219b08cf0b775b6648d35867f2272d0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-91daa029e219b08cf0b775b6648d35867f2272d0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"401c1c018b0cbb8911c64c2cb29590b4d442821d","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-91daa029e219b08cf0b775b6648d35867f2272d0.tgz","fileCount":6,"integrity":"sha512-4uGBQMT+x99oFFLV0Ss75dx2CvbsQOAfeohDMq/i+oQrpZA4NQsbioF9qBNMrTscHp+gWX5XPC7j55+Z1ARMig==","signatures":[{"sig":"MEQCIGMXcvq6sn3dpRYRGNqK/3FWh8cygssKLM9feLSakTE9AiBhcbG1ZTi2q/3veDBByLu8hHDTkwrh82UNNxLVw+4KQA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdW5gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpm6w//dY97GEbqjiSKPQDkssV4JTAhqkqNvuiW+4f+i8uG4cMpYEvA\r\nJCCdSZFU+MX4APLLXh0e7YbmySrsm7DoezJLebR8+B9NKIHdl+99LJSSOfvo\r\noWej26WK32kSwyvRaEzlMgcUadWynT3zYAWu3YrrfepfJJVcuAPOmJuKE9JJ\r\nKYgAqnkKaHs3e0FL3u1bn7LMqUa9fidylKck2h4fN3+p4LqANHyaS+L2/vlH\r\nQe4Aw2rQCtD+is/ILNaoZMQ24pDvasW0MfehHEHOv+9q7At58Lr99J7xjmGK\r\nZCb4K9zHD+aHhCFds5EbSbbW3uDAyO54LgkxhcH6b/75k5BeVIHkPMka0dtP\r\nKwmio6o+27PYBCpsJ4swx2g4qMO0vAKdrAxl1/p29qSJwr1AVt05YELsUfMn\r\ngsLml6qg5EU+po+q/POwiE8BxVaS33J3/tNinNNTJVJf7LqcI5xSUkVQAXPK\r\nnsgwW2TEEytnBK89KRY3CJSK5YC25dFMzBeUcTdUDhH27V6EZRbDI9nn8f4T\r\n3LaP8PWBgL6Xdu57zkyo7ZoPoy3ouG3HM0kGyYPvoK2Bj1VK03aJlP+eSBTB\r\nOZEAW4XkMpQi45nYZsFRYhpe+DH11RL5zg8COsVdW4M61wqcnwxSgpTxafUy\r\nWnAse04uIBmP8AvERGuQOXXbRkpKesLBAEg=\r\n=5tAn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"91daa029e219b08cf0b775b6648d35867f2272d0","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-91daa029e219b08cf0b775b6648d35867f2272d0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-91daa029e219b08cf0b775b6648d35867f2272d0_1668640351818_0.07047064756196741","host":"s3://npm-registry-packages"}},"0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c":{"name":"app-migrations","version":"0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"97a97336b7fbef04af1d8f37680dfd8847f038be","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c.tgz","fileCount":6,"integrity":"sha512-pcbqw3/tV9v+8it3tY/u5sK0RTqfo9rNx17GNBwoXuabqeStrtdDwApyeW44z35+A/gi72nzhCj3HQDRAH8IhQ==","signatures":[{"sig":"MEUCIBzA4lE0lvoMJUTUGCFGEgAveLKccPTk5PJNVzumsv92AiEArUt3Ge8/yEI6MTBdROZPUndbS3lzyh7UWFlM8mqT8Tw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdZ8sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMEQ//YAf5MhEOyuQm5d9oqcw5cj/XaTif1PdWzH3QQcUjn8y4akoT\r\nM0I9mSa2KxjKG20c/vBC/TG8RUjzVbxUIyOV4G2aW15FY4NPcRWbvhT5W2gN\r\nnz9OcjLyd6F9HmvJKZUjc0txCjwMvM4aRFaHE5jwUh6kTgygu6ivPhRXi4vD\r\nvstIsiCqj7gkx4hK7baEV2aF46MbWCAhoz0YtTiWA6L1Z00VY6shl5Iu9+oM\r\nMOl12zvsTNQi5lCpdsfRe4540bvHVCR/mSIrHiMkaCX1JfGrONwiM7X4fxT/\r\nz4/8ibaPTtTkmTllVVqnl+ZVug0yC14fpRAbU5QFCVzldZzf01pf7Pqc69G/\r\nIjN2VG4LnPC/oPVRjGTNqdYjMuADYpr7K42gz18GGEwMCopjClgB0RSg5s1J\r\nvoIgj3LCMNLcKXtZD3xZOKKx3qr3OSIyWPGpxoVmNyfpff4KeyhFJUtQLVyl\r\npjTXTqOUd+Fen9RxMr4R6kMqxiGfYrOH8W6AA2DnNkslu2v5IpmNKhTkUTzc\r\noQOaJM8Vxbw5s3kRBSFa4S0QZ2AU8HaycrYrRn5xqoOqDPBT1r/NTh7DHArU\r\nAFxjwlnYqdNSmuQwRV7ikh2N6IOOfBOsIsuRsTfCS7iaH5rpzrSAoHZ9l1Zi\r\njwOy+1tyz7yCxbu7xkdzYzAHhRYp35XXmnw=\r\n=nGkh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"27bdd4c654b0108a364c4bb3541996722734028c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c_1668652844362_0.5155832272700696","host":"s3://npm-registry-packages"}},"0.0.0-next-7f1112246f97f222dc289edb7b9f0359d8f020cb":{"name":"app-migrations","version":"0.0.0-next-7f1112246f97f222dc289edb7b9f0359d8f020cb","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-7f1112246f97f222dc289edb7b9f0359d8f020cb","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"eb3313d50af513312591a5ea0aa0f2065da55adc","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-7f1112246f97f222dc289edb7b9f0359d8f020cb.tgz","fileCount":6,"integrity":"sha512-6GWhCYSkB3x1LQ8ufZrFDqeXU9AHBn+X3LQucHfArnokj1qSnlTxR3VsYFDHYHO4MB2aOIwICUVUMgrhy4MkmQ==","signatures":[{"sig":"MEQCID+GDM9YCdxK5Qepmd56Un21dab/6ePOILEiHkcc8RLRAiB6qQdRTOwqUH20DR37zYLc5r4j9O6nwA8E3ozedl5Cwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdaFhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqpfg//d413rRq/WwI+salrTLK3QvdVbWDTZQ2GrIb2F1UUMF3bpnJd\r\nSuwkLBP5vnWX71mwldVyu97GOAqcKGLyRKW2L3CshdeXMFzkcfmG1/B17yKM\r\nGw49k7k4LpsMJ4GJIAlAOEQlV0b208tN/v3UVg0CU1lWHnPh8UIsbL1F6I8I\r\nEMFShd21pIhZrTNwO59sD8TM6YPP/zHbUESAYzv5GdtcXahFOUanFo/Vne8Z\r\nGHDN0F6sHpMtLR/cdoSVXeshIc3s4AvOMQfRctz5SrTBQyB3AfTjLWGpJcHg\r\nZT3ph3tRKOV2dB5UnzTX/OW+vcm5DBuKjymLAA7yYDoqDg0fXM9H0JlpdzPp\r\nz26Im1/nod6dl91wzD3Xk0UOW+ckFIwHWmeGpYIPK/G/V1PADFjUnJGZJLAF\r\nTP84xyK3u3FfXC4maxM5C4F3Hbl8i4PwyIuOYaeeyDW/PiUaqEejPR3hGGzO\r\nNx+3vYFeNfmID0uuJX3//QtZjsCZdztbXgArhXoIFhbAaJ199qniL9Wm6cPx\r\ntG0QQUwC1d5glMEl4zu+rZ92LrQ8Q+h36eyWLoi4llUqHFQRYBc7WJilJUMa\r\nEwIpyEtCynU816eXgF8tcE89T3Ln9XHyv+48xzU65NXb0nEvSs+JB88GNED4\r\nQlbcsqgCIbx3hHhJ+Qr2G+isvbJQ5rNvscA=\r\n=EfM/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"7f1112246f97f222dc289edb7b9f0359d8f020cb","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-7f1112246f97f222dc289edb7b9f0359d8f020cb"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-7f1112246f97f222dc289edb7b9f0359d8f020cb_1668653409700_0.9288108484962927","host":"s3://npm-registry-packages"}},"0.0.0-next-c12720c09369b6620405de027fa85d469db43e9c":{"name":"app-migrations","version":"0.0.0-next-c12720c09369b6620405de027fa85d469db43e9c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c12720c09369b6620405de027fa85d469db43e9c","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"f2a76150171d461e7fce5c10451c9da5ea56391f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c12720c09369b6620405de027fa85d469db43e9c.tgz","fileCount":6,"integrity":"sha512-CZdp4uO5DcRw+46BBQt2T2cZoZ+IRuUHh4QF7AvyVdeOFZA/u05DxIgXc6QBZfYJDjrjFuO3ohYz4FPHLdYgag==","signatures":[{"sig":"MEQCIGO33EIyVbT0Xc9+whPtNWS3V7OQ5yYUT1Rn7BSZ5o77AiAK3d4ldsX0vDk8XDbB6QewNOI2aTWtE6AC1FG2dhIlgw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdxE9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJvg//evbIy4WHPsotIaOm4JdJTlW3bc7Q8HgEI9Vtt1zU7UmB8B6l\r\nIjdwsmD+q8cxUoPs9z8OfAuln8OpdYuivp1zIfHwrTUe98uH3bHSNPhCbt4i\r\nlSNkyq0Sd2gkzVzKVRViUaOeqjrC6QvNFjNkgw2hGDYG4YOXpIRvn/IPfzpe\r\nqvvwYFzfatrOEQEUnPvdQbb7r175/QJHxEGztK9LM/OitneD1i4ihNLilPfq\r\nxSanVo9JCmRl/W/qWFiMm8sBTRC6IzJICXYTH4/KfcTNrQW4IJroebvUYN7G\r\n9GV1iVEQMhtH0AsOjB1jRm1vr81vih+k548WY9KdtJzwWduahitlcmTroC09\r\ncKub5aXpJtvO0wraD0MzcEm0YRHMsThLkY9c/UrDU6a9xWrmxrEJwQqj4J8s\r\nVpyt8Ve6yUzV5hKs9DG5STlszrrn+NL6EkdPAi5RwkoF55Qcd1usjPYr2O9j\r\n+j8HhNOEpR8NkeM16Pm2IjxeSPZ2ykyQf1Abwa6A37QgkJGilJ34k0HNz1td\r\nFPzKJsp6HW+Y4DADJE0UTGXhnsrKZeD3WCTIyK+tRQ/IRRoFrEJLfm5p+w2D\r\nH2SARlbUk1uNWUodoQXS60DWXsTwbTvIsE+kQzr0lSqpyUzPX2//3H/v0c3N\r\nuyULbT7bH/7OvXDqBux32p46qxhXEb3YfIc=\r\n=Q7/F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c12720c09369b6620405de027fa85d469db43e9c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-c12720c09369b6620405de027fa85d469db43e9c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c12720c09369b6620405de027fa85d469db43e9c_1668747581296_0.16150834361389865","host":"s3://npm-registry-packages"}},"0.0.0-next-2122563cf622c0d212372dee10ec2a4a664d8006":{"name":"app-migrations","version":"0.0.0-next-2122563cf622c0d212372dee10ec2a4a664d8006","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-2122563cf622c0d212372dee10ec2a4a664d8006","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"42542d265afba57e46632b1d0b04017154361820","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-2122563cf622c0d212372dee10ec2a4a664d8006.tgz","fileCount":6,"integrity":"sha512-65qWKiSY7FgNF6Dzcm6W7tzaeZNbXkLy0QI9D1VpKI4F5eCxpNXK3RpHM0XiBHxTZF1v0PmcHnzm8Y/axI97YA==","signatures":[{"sig":"MEUCIQD0W3RXL+lvq90KGyjghRGIeTiszUNTDQVyDxo3TomFPgIgT1/OImI1/AjJMFAMQDpSEEk0fOvzEzjLA8K0bLalgO4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdxOKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVNg/+O4WsepQQg/iPcxIBqBMH5qEE+2eBO+JnJqovrTE/HHZExJPp\r\nhUJbV09mGYeH1pQrDd/7Dozye9VCZOpvT3DdU3rtkkfVMO0KXZP2mVP7OREx\r\ng94JBwq8UgHoSrkRq0IqkvLFl0GRBBuGqR0N5egDId8kzFSD2wwFDaTnZsC2\r\nNAL4NlKqcKdFU89egQairhWfaU56htIsk6wbtfrmBell5+BWIrAX45TVUlhi\r\nUVSUyJE3vLlQnuzbrCDPOv3NmVtr8j8vAusJa13wuxKVLG3oyteU7DKFAQ0S\r\ndMS30p4wIouF41FptXhR+N8pAYQpwb2Od6FRswCO+vvdtn4ZUDbHN/fG+f/1\r\nYBDKqO0Ar6SgNgjoWFCNWyJ64g06h9fBhBR8qwlc0cDjO/Zwpd02XAtu8wRg\r\ntZSVFbmHuYIkZOQBPPzY+xescKOOkoNpCg8QFuJvp4+IWXlTR+gsWYv0wNDo\r\nzU/PYeiCBCFZ4t6NOr8GXi5p1i8pOqUy5mJlQeTpkSQAXKPMwiQb1yhCNTIh\r\ne+Y+JTiYkbjIab92aE6/8TnU8c/E79YaOKS33+0yYUxjkdP73mz8WzBYNJfj\r\n84Uhoj8f7jhlh4+lGO2eFlTR0yMkSo886/Vyh+LBE1DcEa/Z+m98vp4wBnOu\r\n+Mx3mAnXKYsFT44j9+Sn+FEAwfwgMV5PRsE=\r\n=2f3u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"2122563cf622c0d212372dee10ec2a4a664d8006","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-2122563cf622c0d212372dee10ec2a4a664d8006"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-2122563cf622c0d212372dee10ec2a4a664d8006_1668748170462_0.7521193233700907","host":"s3://npm-registry-packages"}},"0.0.0-next-c31c6db319e5099ee073b5782609b1dcfa2370d8":{"name":"app-migrations","version":"0.0.0-next-c31c6db319e5099ee073b5782609b1dcfa2370d8","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c31c6db319e5099ee073b5782609b1dcfa2370d8","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1d9e2af191735a553cd08c2335a9014ec9c0a6a2","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c31c6db319e5099ee073b5782609b1dcfa2370d8.tgz","fileCount":6,"integrity":"sha512-M+AWw6vJycxfN1OriXtIVzg1JfHYY7vNF0cZOLnDohUamRWKXMdbaatQe/YZIokCUcxFcUwbDcpr3AtPrlX9Nw==","signatures":[{"sig":"MEYCIQDzu0MwKU9r+LWWuXtcEU/3ik/wfeMhDypN9h2pAP1pfAIhAOSXJxOSI7bL5tvuCiwGWzjzUVeLfdyhZhJ7ZwkwAs5+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeHylACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcOg/+NVXn7WVTdnOIYT5pNPImQ6PhDaWmakHsJlovj7Z5WrGJRrGU\r\njYPOEk8Tfxta4rYkcl7frL4c8L/nP26SBLjGLPdPBMmiSHnEGqDks47Q6ifk\r\nz9GeL08SUcCzNKiSq0oxLUGU3McIgzdXuaHug+PJNjuV+TlDwJfnypYkwQjn\r\nHAy4qie7pZkJH7ysy+nR2EkkuLuCTVoXiKPPSCW2qi1uqkLDTVXXAF+B6KbB\r\nHSk1ujpyLtnp0TnxwGEo01W5Bj/mYRhetno+GFubrkyb3uHSnIFFGhhF3pro\r\nLXd62uUVNp1XCqdI3m+ZTjnmdUowfoYm24vJaq6Xu8mYnpfpar4xy6quKlvY\r\nD80lmVY/Wxr2TSv8VbNTJ/cCmjlzJLO/LbBga/HmmwX8Dxblt7IUs3WtakBS\r\nByFc+aTtKjoWRPHYBLxdXq02VlfK6zw/6B2IgClkn6ths8Jj1X1zPpoMWL25\r\n9kZ3oaJZFgKIFfp8UroTWZn+zKc4Spq508zzF3oeRLkon+LDLKdqoZB+IUO1\r\n7OHDJcA8tgsm/Elr84ME34j6desdaSicVs/IgaGoD8UNspLSJK8Hf/OvoGRp\r\ndBuXfUhCKNzwxpwKrp50RBBlpxGKBcFnTm7p05XklqpoCews6I89lnnOgtvc\r\namy8LzMiwrd6cCc53AXZjrI2nfdSaE7x/yI=\r\n=mB7a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c31c6db319e5099ee073b5782609b1dcfa2370d8","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-c31c6db319e5099ee073b5782609b1dcfa2370d8"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c31c6db319e5099ee073b5782609b1dcfa2370d8_1668840612934_0.9328842529750896","host":"s3://npm-registry-packages"}},"0.0.0-next-981f8ae49e299320ca0add5ae8e58c8738baa699":{"name":"app-migrations","version":"0.0.0-next-981f8ae49e299320ca0add5ae8e58c8738baa699","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-981f8ae49e299320ca0add5ae8e58c8738baa699","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b28059ed9d089657c2afb3fef553642b89f029dc","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-981f8ae49e299320ca0add5ae8e58c8738baa699.tgz","fileCount":6,"integrity":"sha512-e35tHPaiA7H194bqxtcHUoYujBE6HNU9c8yzYvJ7HpjruIPSPPYdgZup0086mNVGj4bvvufvOfxf5xF4wMD2VA==","signatures":[{"sig":"MEUCIBOx1JAMjROYA/O+sf5vSWP0oyGy2lFKIA17aiuigeijAiEAmH6y25bp4oRi0x8l2ahhz4+REMXEIi2qYr86IaKFBz8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeH/bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo33g/+Pvt3pn72N+O5xdKEJ13L0zW/JBpsBqg3kHX906xNM5uPf8q1\r\npP/dxcNq9gZ4Wt0mI4dGppQ1rUddazBKQzIvRNzzJPrlGBIkb1bOpRjVPeSb\r\nI0dmQz0eGVqsW83geaFo1o5uQ4DKBqzCxyCKq4eq2hL2VwEu7kbZDsyIWN+h\r\n55MppNBy0uJJmebjwL++YkXOBOZgkFKxpBHhzuQUevMrfrvqWZjcrKoGXwWz\r\nmI9TfyaY+oX5dnqn8jSjgusmtSBu0Btg/yuuFRt2KxskfN9x38QTlm5ksUNA\r\n222r5OiBo/mBBECnelcaOn92U7Gk/4i+vIut0iU4uZ5izzYgqpSDJYtB4xSa\r\nTVxx9su31dh+dSIHrwAGwxRg3NP5ZCShM1k0DXx3ZnisK7AMaCdkxlHZ5/W8\r\nk6VqqcY097U4Jo1zKz0xeOrAwBP3pSVp3HTHSBerYvOL9ekV3tfxhsX5zL/c\r\n4cuF8AQ7VOBRzpKDMkxJ29gayXiTwxW6HvhT3+cpZ6QAPVg1GVD3zG53mvBU\r\nRjAt6fAslaBLEUq8aW/X9pFcXKNyF+PqrgX56sLcCKv2F1apx+q077iwWHnQ\r\nR/84Un9Gf59giHOuKVQq6mBbiB5B9xSG1ZKhBzMuLg5sk9Xq2ETSPWkiz8ra\r\nRDQUH2W7FVisD9t+h/MDxTBkMwLODDE0mkY=\r\n=HJbx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"981f8ae49e299320ca0add5ae8e58c8738baa699","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-981f8ae49e299320ca0add5ae8e58c8738baa699"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-981f8ae49e299320ca0add5ae8e58c8738baa699_1668841435168_0.2416739386521931","host":"s3://npm-registry-packages"}},"0.0.0-next-6a646700444fec2ae51cd86f87f6a29e58f774b0":{"name":"app-migrations","version":"0.0.0-next-6a646700444fec2ae51cd86f87f6a29e58f774b0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-6a646700444fec2ae51cd86f87f6a29e58f774b0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d6782738f40b11f4a56d9c188bd904400603c569","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-6a646700444fec2ae51cd86f87f6a29e58f774b0.tgz","fileCount":6,"integrity":"sha512-N8Tqcdxog+Qf4ANMDrqxJm1LQgF/PjaX/7FicG0WWcKh4UXL4cRXDoeu3OyNvzmAcnJ2yxiHnwS3ABROrqBieQ==","signatures":[{"sig":"MEUCIQDWZEKldjbajo1sPBtL6Po/a4qaC8l1mvIzUPrP5V0+TQIgU+QkmIN8VO6p/EiUT6mk7neyPpqt2B6jnH/g+hDG2Eg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeIB1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuoxAAnSFXuKlHT2cHF+OgOY2c6TztlzSouZqOmPqgikA8clw/aVou\r\n309t5CQ3GIObr7OI43VDnpa+XTQntC+M5St4qPJ2MmLXF/4SDGy8Fndleapy\r\nJ7nCt2JgCHPNkQMYj3NShgRtOcXDFM2A+oHDZ5lmXTEip2Wg/gXoMtXPAT3J\r\nFUI3iAJ2x2eYvHqlVFusIqv4CyeGAJycM0VJ8rTkodz7RmOjQkdC2bP1bXBs\r\niznHtxYMlWAcLFgjEwIDAOPseDhP6E5LTAX4/eOiSxLkpHzv5bpL99bKn/af\r\niGN9SVrh5b81uLB4KT/9MbiTlUi9Nhp77TWWxbP5WY6+hFgrBA4UbCHnH+Hh\r\n8+velIhybKpJgUcaddWqBH+6CAsnxlxGqDB41d9AU7g9VvjL6lK2pvYukgZ5\r\ne1OejOAMiiM+8txiiFtynj4kU4kGvRbkR7Oi5lX31Z7TFDtd7eJQ/fT0MsYt\r\n1Tl3+Jwv13uDaOEyKKK+LJcvXI8a21vHiNqpELJlHL7b/KEpNA9jE0XhBqjL\r\nHaJ2erxKGKlR+uaEebxymDM/S8TI6SWTAI5DB6pZLDJxCmquaVcQgmwpd3Ls\r\ndr6RsWWt0piqP5fyGei0A8XL26WSi9UFpC+1gummEGZToIGtfYk2EvTaDnvV\r\nMO/rFqCG1aNNBfRqHnMchDY9ALoQHomJlMA=\r\n=JaDE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"6a646700444fec2ae51cd86f87f6a29e58f774b0","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-6a646700444fec2ae51cd86f87f6a29e58f774b0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-6a646700444fec2ae51cd86f87f6a29e58f774b0_1668841588940_0.525603305514659","host":"s3://npm-registry-packages"}},"0.0.0-next-112bf8f8b20d7181824478f76e627ee32d6e03d7":{"name":"app-migrations","version":"0.0.0-next-112bf8f8b20d7181824478f76e627ee32d6e03d7","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-112bf8f8b20d7181824478f76e627ee32d6e03d7","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"598ea618d4eda0724f9f55f29f6eab9d3508a4c8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-112bf8f8b20d7181824478f76e627ee32d6e03d7.tgz","fileCount":6,"integrity":"sha512-cSCZKF7HRJqxZb7Zzerf+4Xap0NpWscaWH/IXwjKNkz9/CnyVhHWtblHvTGbOqhGPx+qFJZvaIfrI2mFypkf6Q==","signatures":[{"sig":"MEYCIQCx8dr6YCrJNGsNV8VDqEplG04BgNmTmI8zKg/Kh466AwIhAMEa0VMfIJ4o1kGYFVIxnoT/ssKH6nkesQ9bRwu0gTKl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeT+6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJZRAAhJLQcZdVf7Y8PsUiTgWKgM+CalAleFtB7DqJzseVT5wv8xso\r\nAsKgz9mKbNTxej9phJFhrkgE+/I9Snawu/CEOg5y6F8VOqRGBpr80dcGFr2k\r\n8FDbi+dL4omnRg9umT20ANBkK4ncxnHzQJtJqAMxVnkffoJuqGQeHpKWWDYU\r\nVCSTslSwDgG1WvD5gbyAKzVMQwWtKiQ1d817KEDmKN2wxbfb2SzXoKEFNDu4\r\nadkLRZ9NfPjeZGYECTV4egoSamp+VXa6x6hAjIbDERp2U0Avx9/jIHb8JTYJ\r\nKLGE8IxxaaCzPSoYzxYRVlOv05TVIh5Ov8K/q1rY7a0Hh4MVhidaByr0K5Rd\r\nnz7G7jUUG3x8sGH+MZTRHQ4h77VnbtMRZ3Rne9zuwxAVCD14CjeL+GVpK82S\r\nCp1xFd2lqr4OSr74JsbGzhPbtjIcZshLjPpoJdJ6SBrel5+uTkAYazH30CNO\r\nlcKEk5YdwjCYRTdFTsQiMEIdT3xwCccJOd61I6so1GOfAhI21yWGMvxXJCTJ\r\n8f422jTQTNYXxuLDgiD7AT35WHTtqyaEGighcZs4JvANOBEzBQ1xLuxgW43v\r\nDSaplqCXdhGrfdwwzV92+ihhyb8u1+Ef/mwSGuT3464/N+0ebqAv2giCh6U8\r\n1NWSqRRvrV6VxmsyCgRQ8AHRTqazvDqGHw8=\r\n=RWCc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"112bf8f8b20d7181824478f76e627ee32d6e03d7","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-112bf8f8b20d7181824478f76e627ee32d6e03d7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-112bf8f8b20d7181824478f76e627ee32d6e03d7_1668890553892_0.78083490108306","host":"s3://npm-registry-packages"}},"0.0.0-next-19de7da29c34177349014132e37b723c1cb16ebd":{"name":"app-migrations","version":"0.0.0-next-19de7da29c34177349014132e37b723c1cb16ebd","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-19de7da29c34177349014132e37b723c1cb16ebd","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"53ef1664cc4b3954f0bb3995c5b71d681be1f515","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-19de7da29c34177349014132e37b723c1cb16ebd.tgz","fileCount":6,"integrity":"sha512-Y1JJVIR+Y+yUoPfMIY+0EUhFTtDssd9S5KtnZZbkpeEEqlWi+EL8V8/nA9L98NVQFgSp6aWKsTpO7MS8As7+Aw==","signatures":[{"sig":"MEQCICHUPNkFcq8T972RyyiuoHgAIxJe0Z4yA6FPrH607nRpAiALsrMQ1+pgOswJRiUQOpjobvsDelnC/5GH1ijkjhWG1A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeVXYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaCRAAhPZCpCrwfai6EN755DLzsySHcu2mCckLGCKj7tV3nBK8BT6S\r\npLMOA/0eGoM3v3L1qiIw49PQFsXFPVl/tIRke0iTzfTV7nusiWPHyKFib7LM\r\np/kvKfUxy5883RI2yaLPE2Q3/OFlXnPhMLVDiyuI+ic8JVa3/YvomDLIpvY1\r\nF66TiUS8/pXvJkb7+97Z6OB5HIBM92Ox4btW6picfIbuwEX5ZpdsDvdP71ol\r\nPrcOriKinc89cJWAZVd1+y0yDFto4hZeNfO2igGDdonbQCDd4ilJt4352oTi\r\nYvZcUm3OdS2y1LRnnR+BfcifcXwJOUN+caXe1cUPOqEZ1yvwka7Rg4YOw1u0\r\nRf7hBm3XELiqRoURYzQP9Cfpcy7D3g8tf6CkK4Sx2Z0UIAdsb+S8AyhHPszo\r\n+PHb4EniDPsrxPHLE1v69yNueKSdU49Ta3FQSxaMbI8FsbF8CcO0wYVT2M0P\r\ncOt2PjbNtuPftjbXGVTx7NXrzSJljlh5RPhnzQ06tK6sNE+PQfkABBOfqSPb\r\nBAeP0aAi01C/TEwL68rqNPfJ27b1Gd/b/ryZfXAHIljKr2AGlEMeHzOOM7iR\r\n8F35LCjx/n1Rir/joi39WiDPoXvIDkGP2EAMFmn5J6ZVQ4QIggzlUWE0GFD7\r\nZMlZbK2TCIrLXEDUscR+bbPaZHvfgSI4WoI=\r\n=ltkh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"19de7da29c34177349014132e37b723c1cb16ebd","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-19de7da29c34177349014132e37b723c1cb16ebd"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-19de7da29c34177349014132e37b723c1cb16ebd_1668896215862_0.678483133021895","host":"s3://npm-registry-packages"}},"0.0.0-next-1484036deb50fe0421bb8be4c48b2f9e56c17a46":{"name":"app-migrations","version":"0.0.0-next-1484036deb50fe0421bb8be4c48b2f9e56c17a46","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1484036deb50fe0421bb8be4c48b2f9e56c17a46","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"cdae706d1acddf14119560b7041f6de1234d01a6","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1484036deb50fe0421bb8be4c48b2f9e56c17a46.tgz","fileCount":6,"integrity":"sha512-CY/HgQl8XrseAoXbvuGWJHnRJwvLjyaTPXyTJleAuzcNOniaTHYPP8BtJgxo2PIziGNqPaUy2F4YMfSWdWFFkQ==","signatures":[{"sig":"MEQCICZUQqNh7j8qa8wVh4L2CTWjejCaoSAVAkrO0GRUYk26AiBFc8olXAtpnAesj8LDomfYdz2C6TLo0A4oRQ2MwDsD5g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfDatACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqu/BAAgfmh+fSkI0jHdrTz2iM9QEttFrF7YejjD3hkIe21NGA+pXIJ\r\nYfg4kuAJQsq4SONGyyq3aeKlvmGOClQhyFuHxCJQOVj/+Io9yPA/F3Uv75Wa\r\n+xxQYjIMm1Lk+ERGXOo/Nsda6tL1nKr2UKIRmGx1pTvsQjUxAWv6lCP/7Qrd\r\nbxqzIr83jshLE/LslMHerxf5mEsH0R9Jj5Ypl8ffeiyjiUco0eL97poBq08E\r\n3WRDQAhhlYEbfAgHCQ/Isa2C2p5Cp5oAusyK2nTKbqho1eTgGsS4Dfzdot9M\r\naneINZr3ymjuBDdbEKiM9g9lvdAMD4IHkLSU7XNC2t5bC/6DF15LP53OyTyd\r\nGz3mR+alOXxAsY45lh4CUOYte/Z9pvrrvojZmBLpffcjVa8BiyJ41p/qo4dc\r\nOL8BKOJ2KxV9unk6HXrjjW8uHjMmwn8cIIBTw/8P1hx9bHGfcs9Rp6GpXP2i\r\nQDiRADzPGRhXBrqRYARMMsN1K1II0lEIEN+WyeqD4U3ODuOCjaweklkjLHq+\r\ne02ZMhs1o7lwM4X5Kkyvg2F41YVZSZmhjTndxsXtMnuEKZpgXCvHAW7RX1ag\r\nfgrkmJvfjQD9Cg5dC/Kz0OZVR9VC4PpPRMHc0mOlPYW8vjqo8kPQjTzkjRjx\r\np/py8W8t/ls6BH04jf040lQBTGOQlJ5oTDs=\r\n=Vkbt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1484036deb50fe0421bb8be4c48b2f9e56c17a46","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-1484036deb50fe0421bb8be4c48b2f9e56c17a46"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1484036deb50fe0421bb8be4c48b2f9e56c17a46_1669084845624_0.9517240928935247","host":"s3://npm-registry-packages"}},"0.0.0-next-6e34a0d07479c665cdfa3bddb6bfd864365f6b8a":{"name":"app-migrations","version":"0.0.0-next-6e34a0d07479c665cdfa3bddb6bfd864365f6b8a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-6e34a0d07479c665cdfa3bddb6bfd864365f6b8a","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"864113d4aea8e8303e203ddfee466ff5e066b056","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-6e34a0d07479c665cdfa3bddb6bfd864365f6b8a.tgz","fileCount":6,"integrity":"sha512-h+xD25sYrNUTqbHwaWPzJT1FFxlHwqI+aaUYYS7HvN34mkPNAfgX3BrgFhduh/YMyLBAkYdzDQuyQuTIXMMt7w==","signatures":[{"sig":"MEUCIHekdry1jfW7w+tVF4VKPhPVIEj5cHUogoIaX2K7h8HUAiEA4S91JAg4ucI8oCjHc/6pjTVEjoHCYecr80KN+4HvtZM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfDbfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQ3A//Uwtvf0Y7ZKFckqwzjkQeazPwhrNLLWmCQeO7oofN9G6d2E37\r\nIkhgXab0ogbX+GGgf+3cO3m5ZBsNVXtlPLCetjbI5PDRUwXYWVJUhRkrp27k\r\nY/7dL4ZSPfqgdG0p0/mAnKjkUDnhaqRzHslXxWJ5zgpxNg8V3f8SlKRI6ZNV\r\n5KA++i2mr1k0gdkF/nA1eqti/julbJKAPqDpLcN2Fk4k2oq9Q6wLeT0SlTYT\r\nZuDNrKejtzdfFScxaI3Vwf7S1QJ8AtKkZF8jxUoPAVvbNvZaiuMPEbciEFq3\r\np+yCmGUWyIXifiRpQ117UFBc1sCOl+HYZo/KdhOpiMlvhYtMZH+3B7cda09Z\r\nBvmPDsjHzV7JQGBTzVrOYZzfsAaR6qCWnsHPTScGuKlEuAYRxzYlhhmsXLZy\r\nVsWFrJZQcdPH9BP/GdDXm+ADXcEV+r3ZSNMBlBPL+dPaY2fpb1k5uOHtU1Eu\r\nRQPfFKAoXnjpSkZLY+wc6lbOYk5ytlj2t1BfUNGqfe6Hd7tnj3mR3tXZ6BKv\r\n3QadpQPo5py/+xX3rWX9tjV9LYljfpDUTb36FYBCYi1waFVmuu3KsqqbeJaO\r\nsmQeCIZcbsPTIGuhnkgsgZeQWveMf0JqssZ40ssdsmxS99UV4BsrmBHBxsp8\r\nACs1bA9SoEhC8TJRlLvdlwOIvntvcKaLcGs=\r\n=npKP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"6e34a0d07479c665cdfa3bddb6bfd864365f6b8a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-6e34a0d07479c665cdfa3bddb6bfd864365f6b8a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-6e34a0d07479c665cdfa3bddb6bfd864365f6b8a_1669084895274_0.20210208055722423","host":"s3://npm-registry-packages"}},"0.0.0-next-31a3fe49cf0eba4c3afe85c4a4139ce198cb0e51":{"name":"app-migrations","version":"0.0.0-next-31a3fe49cf0eba4c3afe85c4a4139ce198cb0e51","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-31a3fe49cf0eba4c3afe85c4a4139ce198cb0e51","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"fc20d032190642e95ec27e8f860de230099d5625","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-31a3fe49cf0eba4c3afe85c4a4139ce198cb0e51.tgz","fileCount":6,"integrity":"sha512-rnXxMSdUWnKyI4EqhhYXzV+9H0waBG2LijvRV/x7PM1x1e0vdvKrQ15/Ux1/T+E/qLIpAJG0CuX6Ma7BH3a7NA==","signatures":[{"sig":"MEYCIQDArJRt7dfEvbgzR/KJ+q5bDED2ssI2+sjTRGY7CZA6GwIhAK0PiBdnLnqNtTvfk8LyfcQtfd+dwf+21946HkjfaOTV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfDeMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoiqg//SY6aU4FKSEe5c663SnTlp9wcRmYpQKZqI8S8f/BuAKiPD6kH\r\nPIk3qCk3UNqPBn51gkszMNJOdA7dEEZrNQDtHsUwShOOefklC9RY8R+RHoA6\r\njb/B6PxeaiReOPxTGt/q65ips2mRch/k50kzAxq4uRAq6APo1RgHAZUq3AAH\r\njzUXEV56//CqtOjghmpW4ZruVUuBdSBFUWPUPZItAiq5IN1TB1iZ6uzkR3Eg\r\n+QEKXIaaPpqPsEm3SSug2y5o86mYAfckoQrBUT4nCVdTNw07v/jFpRxhDHwU\r\nH6fjUJ+ENMJcWHSDXK+wCDw40fbEib5vRjN8DnrzIxFNclVG7pIfitjrSTro\r\n9CSaRnc98aOMDv0kZ4t/K+/YjaV8kF3XEM9UMihrtbwChU98NwPeQ9OUYIhr\r\noztWJARU3CCKojET8yy7AQdNe1vKrGB89SHZMRIJLOAdN3BUnEqI9q5kvMRl\r\nyeKSjK0cqMYntSN/O10eqWQ3/O5j1VaQkI16zHDJs0Cip2nxOHeZrxHbKCt7\r\nDvtVWLYN0NjQfxVLbHMRntCi2TkppNghyplAKCGmL9zPtn8DUEzpGRwo5u/N\r\nhgyZ9VSgNSN3aiz2TQLSu9XcKnaxvQ9OTRYGjsX6C7wsNIDd2iWm3ZKkUsqI\r\nkPndrxZa1Qj+g41gIqewNYXJSpdRaazbosI=\r\n=oFlG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"31a3fe49cf0eba4c3afe85c4a4139ce198cb0e51","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-31a3fe49cf0eba4c3afe85c4a4139ce198cb0e51"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-31a3fe49cf0eba4c3afe85c4a4139ce198cb0e51_1669085068274_0.767096290305449","host":"s3://npm-registry-packages"}},"0.0.0-next-bb1a39e78c30cda5ef910174e54d2c9708186388":{"name":"app-migrations","version":"0.0.0-next-bb1a39e78c30cda5ef910174e54d2c9708186388","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-bb1a39e78c30cda5ef910174e54d2c9708186388","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1489a88556415dc5a2545ac336019ae133aac50a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-bb1a39e78c30cda5ef910174e54d2c9708186388.tgz","fileCount":6,"integrity":"sha512-Q1oIRl50C09jNNVxF78odPvVOKQbLohj6JoEtEy+5LvH3nvoomPuqjqZXF/M1Wvg7OXuKyFiOPQJh+ssbhYefg==","signatures":[{"sig":"MEYCIQCOMgpcFhA+n1tpQ/6R4B9gVF4dqRqbbicYsk+0vut/GgIhAOzzvtNq+SODGxQ91ktohAWkOUMJ0q9GrnaXfWXyW+qt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfDjcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYuw/+Lap2eodDtOa4c+rWb5GZVTTnPBY/G/XJ033neE++xSW7ZqOa\r\nuilpOS7ZMGK55+Px0J9qqOEh/G6COKGK2OvqBagY3S+iUvhr7rILLqVb6Pd9\r\nxNgcXZv2tjTb0ooc9ODq+Qon47Ce/30CBOfmEHPvWiYwuxMvfp/gST2cUHkK\r\nCezItVRIhws+6OVXNnp8ejuyrARUNOkC3gj7uts4aCw6SCCjscdYqXk3e4ZL\r\no7ZCRiKsskd/8mG4Ic5xFQFrBZxKcxt6vPdNRD/s+cp+g/b/TpjPqRxQ8h/O\r\n7vRLIwDMgOB9/xRuSpmvFuozv8INX3f1bBZm64OcOLoHZxWtr+spa0gYvnEV\r\ndX/znS8jpX286gofUWSZvUUgLlEWy267ekUL8ERZHhfyIYXJp4zPgg7GvC3p\r\n7x8AhxiWmM5goJFSa5e5/cvBTM7twiGiJRwBbhnhlR8fQKtZKq463bi19Qea\r\ncTkFvgMpAlUNUYyNHexp4e4M1v6cvCQVbRzgqYCp7N2he9tpfR9sUs0Z96O8\r\nz6p2lorzCQ47l9xvUXd7AAjYAlxN1iVMSwqH2ZZFRApkohjkPM7/kilfqrJ3\r\njBXTnLIOjsu/Ce/rPnyG7aNwmKH7h6snUMaiRJY4SMx0d/Zy1OcbZ5vlelHz\r\ndhlxOMM+8v6NMcSEINQIPa87GCbJ1EWtAU8=\r\n=YaFL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"bb1a39e78c30cda5ef910174e54d2c9708186388","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-bb1a39e78c30cda5ef910174e54d2c9708186388"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-bb1a39e78c30cda5ef910174e54d2c9708186388_1669085404738_0.08546827301801874","host":"s3://npm-registry-packages"}},"0.0.0-next-b5a88ca5d89936f4997a6df7c6e08614f25de0a1":{"name":"app-migrations","version":"0.0.0-next-b5a88ca5d89936f4997a6df7c6e08614f25de0a1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-b5a88ca5d89936f4997a6df7c6e08614f25de0a1","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"3ef18a416db5a07aca78d805365aa678fb55035f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-b5a88ca5d89936f4997a6df7c6e08614f25de0a1.tgz","fileCount":6,"integrity":"sha512-x9PkBEENQWR2AxPvAV1VUeNoVymymF00HmW4oG63prhJowsjLA7+cufP4+TsJMnKxoS+OExJv4n0u5+REWzbTA==","signatures":[{"sig":"MEQCIEKW10CYtKingG0aR2+Dxk5leaGH3b0+GgadNdNTkyRzAiApqL4Pw7F5981Os+2LzaRXSNM8slVIkPxbrDdwB9voyw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfDlbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotwRAApL0rNJsqvvlc+VsognzuDl3BpW5E9BLbV9Hk7Z/jkLO6Frwa\r\nA9U9mjajRNEXZNaJGXwy4wo8vGDU03DB2WGSEDQHOyOgF/IQUvVkP4uJkD1S\r\n8HQsGoAZRQCPDhRu1YVHZWIiO/1c3IkJlJrWwP6k+DeXxoaLWnoRQO02jtB3\r\nSJaVkujRoyopUgJ5K4JCv2tdblw6rQDV/gsPMj8ZCs6NTrdXWc8KixPShO0P\r\nqSFWPJM7JX2ru4Zspl4hCONATAgMWliLJEZj0zBs+GjqaPE6CM9qhoaPlsG3\r\nTSd/oK+C1cTw7X4ikTD9E5RZcvh+QvOI+/Nm8Ys67oBwPxy33kbFOVWv0Frl\r\nzajquP/Tc4mNOvAC570Ot697maXn1sttmZc+EHKk8kF4Lwgwehz+feYqMong\r\n+Ja1Ka6yKCGEKy/cBHPkXvIi2uDCODSVoTm8vt3BVFSbwzI9ss9VjSrnd7hX\r\n5u0tRB/uAzD0My7Be8jKnt+MjDB05q32L0E8SC9b4KK0lm6S2hbdw8+YJ5S0\r\nCSKGGFaxcDRhn9HspastHx9bXCuroc2iTJPCcQxzSRF5F6Y6sm5jREg2xy4u\r\niN8Uev9ulKVKO8ydlon79TimzhvNsXZHINEkOnzwbzrgnGgCUF84rMRQu4DL\r\n361EInvpzB+vnXl8NHB6yKSfwiYN0swqNg4=\r\n=3Y4p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"b5a88ca5d89936f4997a6df7c6e08614f25de0a1","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-b5a88ca5d89936f4997a6df7c6e08614f25de0a1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-b5a88ca5d89936f4997a6df7c6e08614f25de0a1_1669085531204_0.17254296797111635","host":"s3://npm-registry-packages"}},"0.0.0-next-9a3af5fc8cc6a9ccc96866e1b71d0a33c14d7c08":{"name":"app-migrations","version":"0.0.0-next-9a3af5fc8cc6a9ccc96866e1b71d0a33c14d7c08","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9a3af5fc8cc6a9ccc96866e1b71d0a33c14d7c08","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"0ab1370e86214635c71deaac1e727096db8477e7","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9a3af5fc8cc6a9ccc96866e1b71d0a33c14d7c08.tgz","fileCount":6,"integrity":"sha512-2mZWvjRdyZATPVpKCwJJ+7PMLuZ9e7dFBIZ6hbif98r2bsmVTu3Np2Oo5yF0ElAmyVLPxE3R+pQPHNwg5LBWnQ==","signatures":[{"sig":"MEQCIEfEQN0KsFkrGyEHVTErVXTzC1F0ujKyOXmymdEgntk5AiAO3rpOcz3j93tUrbpUtylTOiUKeTW/INX5pkCzrFTdAA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfDsjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0uA/8DnbyyR0nADZ3nBEA0ibqCgYmA/LRYgnlNtkSArEuvP6eZUba\r\nccuAa/zBN2/winSVMn+ba07hXtaGJ2goJGpXWZfH8es18jj5CV6peJGAKYZr\r\nlePJ5kWzFTlXX+PEQOisqPUhLDmdh3YyB8FU7BgAxJ+oue9Bg6I1H7Ysj54K\r\na01hplgdlnrMh4xnje0rRk+D/jkBYLo657G4CYBITuJHeN7y+Ktg9r4ZTgmx\r\nXNuL7yZEOBP803xgQGt9wjxz8Pi2uBPbP2bUZ4Ihrg6qj96/zi2AmI6r2bDC\r\nDnfM4z/8vl6uWfF9MWO33vXTcPQqdiVUhxH6eYvEw9WJWIrdVDs9FNf6/GBu\r\n1sYI+B4MLFnciD239g/s2nBatoNXOOniljqBOMXvhKGnGFPgpGNVWlCn0Jpc\r\nxhTIT/vXZHTesxs9jAf9jTU59RfNhTN5CxpOfA9M85NyqGPjIZTfY0pJh0ln\r\n4zEifjpJxdWtCXKLV/HXJtuOtvhRDH+MbEB3i/qEOv5aBb+jfhDqBMWwmFAg\r\nXVxrJB2XcP3pI+2mW0IaC5MJ/l/x8LjTwnr2pvtzGFbcYFESpmm2p/WpLaUo\r\nI+amN59J2W1M24cGmYWMCttOQraEox2vIcGFme3iIfmjM4zQgzHDCVQ9+mdS\r\nbpJfrL9Buig1Z8SvXQ/9Ob+s7d0eIeaXEsc=\r\n=IJJ4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9a3af5fc8cc6a9ccc96866e1b71d0a33c14d7c08","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-9a3af5fc8cc6a9ccc96866e1b71d0a33c14d7c08"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9a3af5fc8cc6a9ccc96866e1b71d0a33c14d7c08_1669085987065_0.18057225434436996","host":"s3://npm-registry-packages"}},"0.0.0-next-2cde0fe836b81baa0f68d274840a5f97b8dae0c6":{"name":"app-migrations","version":"0.0.0-next-2cde0fe836b81baa0f68d274840a5f97b8dae0c6","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-2cde0fe836b81baa0f68d274840a5f97b8dae0c6","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b8ece11660ae36bdff9588266482ff7012d213ad","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-2cde0fe836b81baa0f68d274840a5f97b8dae0c6.tgz","fileCount":6,"integrity":"sha512-7wKpXPSDRk+dMd9rKbu/GxcdYQvxTMeuI3ytjG/SlHMOXISUjkxHQcM/yY+wlVQvvKVeSs2eD/QGOf0FILyVBA==","signatures":[{"sig":"MEUCICdohW1VZ3zxyiy0EO1DiCEdjckDYT1vNbuQO82CjFQ5AiEAtt3B0ZsOzdKInIPqXc/gRfHy/xgvP36GewT+RuYgrAw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfDxbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqArg//Q1Uz53gPH7wpXiQo0H0e1NHYMwTjq8pxmldcndo9aOSzoDAY\r\nSIC2Ac6RmA8LOC82JWl9TUe9zn8A39Ys5WowAjy+4tPDnXu5zh7tuy1h7eKk\r\nAxnUaxOOl2DkUQhLiVgndfzzU1yZUHS57Ao2AnMwUhUTx79cmbvCF6qIeBNa\r\nQfyT/rtbdC5vioC286FATKowp9LGSgA2gXQItc9PFa61KYZc6ZTsFFeHc+3y\r\nt+ts1BHxyl7K5Gs6Hm1u130yi8tA4O7SgPF1+jj1RUNw7KDo1IFhGmQDqMQS\r\n7fGpzSyWdss58UEAPTkelenv1XhNxqCgfBLHrXdQidUJTf0vB+KwKfT5IGa1\r\nzNq+0Q3oDnRK9CHnoDILPzzYODLv9NLW1aKAgarvRTYkGZRlxnioLkN6/MI1\r\nS2TWFgAsKXf7bG9Ekhs/xroTAe3w02qX/oLIcL1LziEEiuT/XU1Zvnh5E7lx\r\nGbR5VGbmgacnd5JXLsesWD24L+rvADKtdDwnhSup+KrgHVF6cSInHuqr7YQR\r\n+P08L3Ix8NAoAbB0SzZRcYbvMKNycX+nQaWI69yzZSQ4SOUeHvqq5Kck/Z4Z\r\nE3cgP26fvU0ybXpmRjJOZ+VRQXVlQ0lUSr+WU8xBeA0b+76tq/sgTWKrz78D\r\nqtDtwPHwD/KEvv3y7LqzbslP8G5qoxu/Gk0=\r\n=2UWQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"2cde0fe836b81baa0f68d274840a5f97b8dae0c6","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-2cde0fe836b81baa0f68d274840a5f97b8dae0c6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-2cde0fe836b81baa0f68d274840a5f97b8dae0c6_1669086298933_0.1426309674187416","host":"s3://npm-registry-packages"}},"0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a":{"name":"app-migrations","version":"0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"3853ee48cf084162e6679bc6448ff538437ddc80","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a.tgz","fileCount":6,"integrity":"sha512-9B+Fuh2gxvIvdeQKF4kgjbgmJAqCzw3IXAf+h8/Uy5qOG6Nz3HVlg957b0xoc3lrAQLCYTEwywxfHEO5F+WkRQ==","signatures":[{"sig":"MEUCIAGzV2/E4fi4v2yoHQ6D1OlNPzrDvCa0zYEUK3jeKJkAAiEAyLJf2gXIFS8rs8p6808W0V/sczkDngg5re9wGP4bruQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfXnAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+bA/+NMhwZA4TIlkFmEFC9QZ2Fl+880/ZXOHU9fMLArM8TmnhUX/b\r\nj3YRNzzJ5Z5sLmlL0KeXBN7Bfm1MP1O5Lsyxrw+BOSKECapBz3M4HPHXbv9o\r\n9VYSAgHcOX5bWLx5Z4yKuphnHD8DdINhsWZMta4JZkcd3W+nhdTHXDmGpfgZ\r\n4i4C42okoH0etWEEKRZ0ETZWs4dP9eFWvVD8oz298wELN77zJZNinGJiSRP7\r\nm+hsf2Z1TMnqLzXCWfBWD0pk1Zr75hoSIUHwdd911h1AMf1xGsK+RyELyqRT\r\n5jFVVgYxB024M5u8XCFnA+VZQ7Z9JcrJqdUkx1iP2ZeHETravRmJ+RucsSB7\r\nRcw//jKVxrwgE9L5yz2nAQd4QpMRRJd0XOqupS0YHQTbSONYUgSpmEWNaHPu\r\nkIXyoPmQ3UHacp18uix5nrkapaazRRzuGzWoeq2DSUaFL22LYjAq8mr4Ur9I\r\ngiPihTN9NOe07O6J2m6qH7PP/geioGN1l2udb6XegK1WHa1yRKca873X9PR2\r\nuW+g5YZIh2tdR5UvCzDusVEgW/PUQwPtWyx6Or+DzxvojnCvg2WS5A9R1O+u\r\noJlJMcq54Ia+Aibv/4Vca9uCKbhXROSw3J7wxZoDVnOQQNzKyJZxjvZlDnHW\r\nTCwMlsfYop8hmjlLuWn3sVEPJWHOfq7jOPM=\r\n=W/Fz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"feb0121be4234a831e6bce640173de34ce95dd7a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a_1669167551963_0.620857785919599","host":"s3://npm-registry-packages"}},"0.0.0-next-64ed9e6634006598c90fc79f71c554ec401bfc8e":{"name":"app-migrations","version":"0.0.0-next-64ed9e6634006598c90fc79f71c554ec401bfc8e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-64ed9e6634006598c90fc79f71c554ec401bfc8e","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"621c0f92d4952519dce0228c027e92c9d16b93c0","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-64ed9e6634006598c90fc79f71c554ec401bfc8e.tgz","fileCount":6,"integrity":"sha512-TN3IcKyZ0uJdaW+YytjPhtVoVeksxrY0sbX1yKIDiZpEtsS5DBrZoUAikH9mieghOVCERF/nHh8G/S6rWGWnWA==","signatures":[{"sig":"MEUCIFGnEoDg3VT+tnHLIBO9EvK7Aufu+mTrMq6eHF+NkNktAiEA1p8lb3zKsRFyhYBujHnuYRR8OlEBzQ9p8o7OzQEKGCQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfYJZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohihAAjPLW6EuJJi9uxtRme9r/IEHowtEL0gXAJPxhOJ5tavx1fUIh\r\ntrRVOJIo0MlKIMYxsGkmS1SNmoZM7hJ2kqEkLSYL0e47zXcX+UpDYB6ReKul\r\niPgILrFbjr1O0FqeSbwurdl/Non8UV/gp7Pcu5/a5RCFEHGIekWy32ccHiVz\r\npy9YC7DOr74T6Tb/0m8GtDq4pTKy5GcIzcbzb5fYJBoqcLNKIawgYgMFJ5N1\r\nEpDtosTucXOKLsF1PzUlvHDTXKpSh9W479GdodvgfuiQzWtBk5vAktfS5Oqm\r\nZiFzCG6geTDOeAg2l02NT4WR6LRlqCkiKtagpsggHj9jAlcIbhUYKyK1IoZt\r\nQKJ6bUL+zGtOA8QTAEghohZO9FlptfjZsOAS+b8JRDX/voAyvgXkmvl+AWjW\r\nDhdVjAbzf6LRHw6Vp2F6PJ4pk0MtPUQb7ag5Wtn7ClVtXP5U9f0qJuMVp9Aa\r\npXeIVgZVyYmvnqZrGHgHRvQXh5uROds2eazmwRL8yEnfC8XQsrlGCnhZtHTh\r\n1r3RUqazcFeNHU7YICLeB8q/9CZR7tkwUzS5fQ82pd/Isfvv2k6SJmt303hm\r\nDsMHJuavxswwQJI7GyNVcWbWL+SKPTSkF387yZe+2HKfCwrbBEb0K+E0aByq\r\nYM9kWp/HanNn1/i9o5XyIpVIL237kdO0GBQ=\r\n=uy+4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"64ed9e6634006598c90fc79f71c554ec401bfc8e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-64ed9e6634006598c90fc79f71c554ec401bfc8e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-64ed9e6634006598c90fc79f71c554ec401bfc8e_1669169753313_0.5738985491376629","host":"s3://npm-registry-packages"}},"0.0.0-next-a005ee4428ffd61a00127102fa0c29212a52fc83":{"name":"app-migrations","version":"0.0.0-next-a005ee4428ffd61a00127102fa0c29212a52fc83","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a005ee4428ffd61a00127102fa0c29212a52fc83","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b5389ea00c48fdd92f56950a118987ac837856fa","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a005ee4428ffd61a00127102fa0c29212a52fc83.tgz","fileCount":6,"integrity":"sha512-KC0y1OqfgP5IRjLj6mR9Vzo7jiVluwRREUtrMr1JQvA18HCnCzIybboTrnW1NgVABoEioJxPeuJlTLWgBDRfuw==","signatures":[{"sig":"MEYCIQD8AlBjbw7Tm8dpGjmY3MSEIpj6oD/0rm8iLAHuh7EMdwIhAM0o47AiATL8Fnn5r9N60jHjab7cEFrbCzlVBUhi8VoG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfuNUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFSg//dM7tO06pTTeLa0WtZR8YhG+T2RG+WTYxSwEhUMoCWWCl9z/b\r\n53wFajJRhCK1Ohoj0jbpxta0ktDzyCAiIyX/Pxjr5RUxTnui/w8vj2O/UHq/\r\nn6ZFUB9NG9oJ9oVFAvEJ0ErQAsgPPbbSk98/nEwXANfOIvRtXNBXKy4MEWwJ\r\nA7QGKFBw2c7q1LqnMWOnzAUqo1m9LJjxyNCFGd81d2DQ60uRzqsNNJXOzfan\r\nLtgV9CJ/09nx72of76+EubNgq3iXDlT/SdMB/TiltCnX982s1GYycxQVHx47\r\nOc1Vk2JJr8GKcmBsHqWjlZFgSJhNleS1BjBuhZbPDqMcfAoj77fo8heQhVK2\r\ng7W/RGddcTBrCZidRknHm/PMaE+ICklFOSEMiYNnLx3jmgNLz9CsOGy04KYX\r\nFczdE5QBnwN6oX6ApfRclPTbVtZt9C0YbAkJIfsxkwW9qab5i0EnpeqoO75r\r\nz7Uio45HoGxMKcjKwIyabCkVKsmQAG39lGRwtqLQRR+i28mJS/dqPrIYU8Wn\r\nSUxn2BEK795CZadFJMnbtJUEbhdRCc8nHafyRJIxbOLPa0fxDMf7W0WLALOE\r\nMAchZla9NjpIgVZ3fJOUDeniI8mBKSBBW/lKszTmUwsdbzrn7YGKnxp/9ahu\r\nA/Cf6cU89KE+hpdJHlcNZsBbuWWS+vp3rBE=\r\n=lzFf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a005ee4428ffd61a00127102fa0c29212a52fc83","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-a005ee4428ffd61a00127102fa0c29212a52fc83"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a005ee4428ffd61a00127102fa0c29212a52fc83_1669260116053_0.8154292055359762","host":"s3://npm-registry-packages"}},"0.0.0-next-e06434c386fd387cc5650fc9c0906b46cb4d6c34":{"name":"app-migrations","version":"0.0.0-next-e06434c386fd387cc5650fc9c0906b46cb4d6c34","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e06434c386fd387cc5650fc9c0906b46cb4d6c34","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"11b2416c256a8d61a5270b9c75d5b43a20982a1f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e06434c386fd387cc5650fc9c0906b46cb4d6c34.tgz","fileCount":6,"integrity":"sha512-i+tbCQAs0EdgA3qE0t/pk+UkJZWmBU6BcHZVpbh+HTM1DyQWDJOC5C9p5fUiwACh8AttfVCgxk4ejoNzoNlToQ==","signatures":[{"sig":"MEUCIQCrCNLIeW4Nu11jBidt9dzayDCy/merXKbRZvonpxRFXwIgAMciA0/xt6YpReF4Zdl4x4qR8DBJcs7SbPQUL26p5TA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfuaOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqotRAAjqqTl7tEOsGq0jk2itKeEYFG11kNT0faBB8KnstzeMt/XP9v\r\nnVne2eP25dfom3UBpJrMsA0M0jaWwniWWQ8ZtIb9QXudvPRwPYIFkvnG1W0h\r\nNjtnLY70KEnLn4tOdqLd9zjF6L73Q3bv55HIwP/gmBKe7QBVhJK1/fswXLDx\r\nbLH3ZWW/e0SNCdpGcbEHLYDXBRHQIGPWkcgFo8tTkxbJ+OXxpLarXm/Ix/cW\r\nL9riXAYhglNAC0/fCQKbQk19cLfoLrB6dOzqwAgoFixbqc0MLvglg9PbYv3/\r\nILAMFd9DWCmAE4sZxM8mmLPfw8mXufHDMW5B/VAZfG5quzM0D5loQ3Aj3UKc\r\njJXLK0ExFfF9MW8iKTFTVnc8gsco4Xf+lnCy5vHMUqd6zjxYApmIJaQCq9Cn\r\nk4hOMBCq/9I48uZ1t5nAjxJQzfh7cfgTCzahFHrqs75cSoetPmDM6TFIhFz1\r\nXV2Wl9FjJxKGTVHLTi7z4p7phrCrQwl3js24VDs4Po3ZNo5uFqtoomKzCgYA\r\novjgXmpqOffQs0FdzTQOrioSP4lg3JQLYskhRpCtLbrkQyxM9tWulg4nNIfb\r\nQxLeUYYcG1iD0oGyKrAF0c9eORkl+DlLjaV4YGEA3HNw5k5vu9idCI/E0gaw\r\nfkpy9ALPrgQcdZstXduj40GMKI+EgB9xvCE=\r\n=W836\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e06434c386fd387cc5650fc9c0906b46cb4d6c34","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e06434c386fd387cc5650fc9c0906b46cb4d6c34"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e06434c386fd387cc5650fc9c0906b46cb4d6c34_1669260941940_0.28371586977669017","host":"s3://npm-registry-packages"}},"0.0.0-next-8d44ba9084fbf5b834ca7df8b77135d3c8fc6896":{"name":"app-migrations","version":"0.0.0-next-8d44ba9084fbf5b834ca7df8b77135d3c8fc6896","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-8d44ba9084fbf5b834ca7df8b77135d3c8fc6896","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ec16fff234cb65a74753ad5979a0b2621f86149d","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-8d44ba9084fbf5b834ca7df8b77135d3c8fc6896.tgz","fileCount":6,"integrity":"sha512-iMloO6oA7PCcHzptQbVBlTyLQnlbh0md2db6wKxe9+x6XK8lS0u0pvsXT8QDu1WJdnUNr0ev3VHtZPOORRgCvw==","signatures":[{"sig":"MEUCIQDwdWwbobRTYA16Dk0kuphCH6YZp39AMOpQg4PP9rLLwAIgddRcIeDGaipE/8yJCr6dXaWKiwrdZiO/L15CFRgytUM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf9HsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8zQ/7Bw1e3CXt63ijqSkzatGtVIp9FC5kzUqTEvuy28OExEi4mDKr\r\nMymjXtOsHqLdoPOsZqG9woXsDuDhdYJR5rq010aHO7mGTO6joR2I4KzBimA0\r\n3qOszda+FMFysexqdp4ZZl0cOenwSOxWXnKoXl4e9K6PFyFLW/yWXXucfg5Y\r\nHr3056AGwOfyre34yLuLn+7h8nNaPC6mH7TAzXace4QsNFupz4ybRV416W26\r\nBzTCjopOofdp6Spps113SQWTEXQLyGSH4qoRTE6lqx3/Mmgzgbu12HwyA4LF\r\nTEHEYsNYgPDv46xLF+jf12pO9FTwsQpbdqxglyoegwc4lU/ZnJNLsokLg1I8\r\n4MF7aDWyKJa9y7yQfgtQj72Fp4ZXMUuwtRFal9V5Hq8oWnNEp274XTrm1g7K\r\n0yvLl9Dy8+WXXhjrNW1g7okS9xQA3iq3dn9IxMX77uCiCYnvLPJbCh8MBTi6\r\n7+0gkYS+bARjFVlF55ECvNXN0jof6tuF653ieQSXkChaasWNyjLVbAagUC7x\r\nodcP3+4vTwDeCnUwFGl3gvacH5arX6czu1CO27ql1LJknjV76yXwyo6TAE0W\r\nN4rLrDPit2MRO+oC3bHEa14gZ0OTajpy47tBd50VsP+diXM2Uu5giIlNE4cj\r\n7ya3VPCYDvotS7M4O2l2aKIfAajR9WiKZhY=\r\n=Tau2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"8d44ba9084fbf5b834ca7df8b77135d3c8fc6896","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-8d44ba9084fbf5b834ca7df8b77135d3c8fc6896"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-8d44ba9084fbf5b834ca7df8b77135d3c8fc6896_1669321196560_0.652354849433509","host":"s3://npm-registry-packages"}},"0.0.0-next-74685ebe9d7b81dd4a870c8ffd51152622741526":{"name":"app-migrations","version":"0.0.0-next-74685ebe9d7b81dd4a870c8ffd51152622741526","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-74685ebe9d7b81dd4a870c8ffd51152622741526","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"3ef98ec4e5ad9b3e1b411e9ab149981968ab9cac","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-74685ebe9d7b81dd4a870c8ffd51152622741526.tgz","fileCount":6,"integrity":"sha512-5HMeioGK9QvnLYvuOBgeFDv8VlDP2zqlJNX4sd0Lm4CbAjVpO03Oda/7b9Y6a6SeH1+8/H2rh/QzK9440hMVhQ==","signatures":[{"sig":"MEQCID8Z+YxEjJi51H7kcMv/7ZXm2h8NzjAmVtfO5YkzIUmKAiBU5csWg8Svx/676UaPcN4sFZs5akjkhTOkWKADQth3mw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf9NwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5VQ//TWzI7b/ILeSbihY/EpvdFlYVmtXi0NnijUA2GO2j7ACZFgNm\r\n6HGSo+vBKos7p4rX3cLzgIlOaAf6bkfx0grJgWMpUWKCWhYVnCSOlh3ww2DM\r\n2BEkuimx/RWYJRMGEd5showVb2vmg3THhpMJjGYrg16eQJ0/uNiGiyjxNdaK\r\nHtbqWXWEjMmcfRrxrXGzEcxSgVa9OkNMRtTgwoiPynlqCGR4aaJqo86botvb\r\nFTDjygqSNg7Xp0EoBJGgcRj6Px8p009TnwTH1f6OZwwUBfcUMUYbgKQo68I3\r\nVHGEYTf9s8G8nmO1Q6o3g6v/zTNLdASGkW4EpuI2Jp8Z5CfniOnNORVk1v60\r\nDynZwLaS9nPfrjYDkK/4lujZHtLDA5A/HeCtEoc/8f/Kjd2m7SQAD9niMUW+\r\nQ2pPYzZQA3nMHFwqtCXRNtcRLTe0DLrm4MRyXcuu6+GNpxncRerxi/W6B9Iv\r\nOJHv9dquCXNzKoYBLdAmf1YB+EvvP4kKw7T0q77dQfopR9INhlnHBF+ivZ8t\r\nF94bUtPuxUyzYUYeJNB5JNAV6ReLZ6C34UJ0el0sjBaz0kjsrKvdffhVvQqS\r\n2ilxqynFJR+BRR5tYwAf/eaaXqibQQDb9GCjTtPL21GGY7uJorGQWMtuh/4I\r\nna1gEadsO4ozWJ8OZ5MPmMuDr1gnuea5ClY=\r\n=E9y9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"74685ebe9d7b81dd4a870c8ffd51152622741526","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-74685ebe9d7b81dd4a870c8ffd51152622741526"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-74685ebe9d7b81dd4a870c8ffd51152622741526_1669321583930_0.7111189774926425","host":"s3://npm-registry-packages"}},"0.0.0-next-92270b35885e90f6eb7b153275848f7a2be21278":{"name":"app-migrations","version":"0.0.0-next-92270b35885e90f6eb7b153275848f7a2be21278","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-92270b35885e90f6eb7b153275848f7a2be21278","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"5b0bc6f1f47bff16a650ab123711705f06736dcd","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-92270b35885e90f6eb7b153275848f7a2be21278.tgz","fileCount":6,"integrity":"sha512-gevfoCHSH1Edo2QefMd2QcxLF4IAEfoANhkhRNDe6ilMbUk99Glg0iy5/BMq3mqxCKjZidZv2QjTI6SP85VIxw==","signatures":[{"sig":"MEUCIFdvk2wqH6jABOAU3HoRwYqaw/7kCT6Z4uHEQeNyDnpYAiEAgyr6UUjTMGHWmFn5Vfi3cRMupnaRJPIWrhNYFjf4ud8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgJJ5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+wxAAi87jXa4h9/TZl2A/1hJ0u+vnlrhU4nGmv5q3eLQ5ed/bklC3\r\nQjRZ428lC3/CINVXdIF44boqhJBy7mq+FV6PFKxvORFQs8gyhthKRiSX9n2k\r\nNooOTMLyY7onM/GBAPQBjeDPcFahoolLxN8zAJA9AUUXacXOAuoy6M7ApgRt\r\nfhl3nAvNboNUoLGpI3NEw0v2O2EJzTLwiy657gzwXs67ulqif+CGLjiHMtBb\r\nlW+hVAleDwi1Bl0MdSjElbfH7EDgNcHkCPtXzpxTEQpYeBBJQ458mEvpDLG6\r\nq1LDOUV4fLwKbm6K3ox8xrahRTFPufou7l3OFekPRGs6hEcSW12mva+QLKtb\r\n8RPNI0i3GQq2JvjVE4miz0jr4EK2s3ouWGARWxCZF/6FsfmBfvpHTTU8mlCU\r\nXDcTlpwZ2nmxmgNonnJiSG1FCPz6CgbKkX+wJ/LxCZZnv/s4wvYSDurzPgJE\r\n6eRIpTkVp/VDkVpyXhbwsxdVhXwW9mv0wBIahnlytKetaIOYG8XlUQRPvYm4\r\nQwQwevMF2Sl4lWj7ZagYplC4QIHLOV+7PpDeeKTDihWjYwrpzVGADLFVqRIS\r\nc86v2pziY3ZWFPSbcH3G/54KYYkkYJbNhJ4FRTDDpZciZVm5vWDHYs5k/WfC\r\nW4WeZu4qdoRuBwBKjBRU4SuCcWFwuaS/XIQ=\r\n=lWEo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"92270b35885e90f6eb7b153275848f7a2be21278","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-92270b35885e90f6eb7b153275848f7a2be21278"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-92270b35885e90f6eb7b153275848f7a2be21278_1669370488949_0.6531393628582229","host":"s3://npm-registry-packages"}},"0.0.0-next-f9347a106881d77aa4b1f7f37daed25d73c5f92c":{"name":"app-migrations","version":"0.0.0-next-f9347a106881d77aa4b1f7f37daed25d73c5f92c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-f9347a106881d77aa4b1f7f37daed25d73c5f92c","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"5f021a5acfc7c670c3b414774d1ac5b0edd4c306","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-f9347a106881d77aa4b1f7f37daed25d73c5f92c.tgz","fileCount":6,"integrity":"sha512-vLA0hhZMJrFBoBkRK4LWTR4lI1FS/YMLWV+4QCn+RfFdbE888xRvNqGy84sCJ5XDlcBeTWkKSmVFiUgmO7Gv1Q==","signatures":[{"sig":"MEUCICjpNEp5TcNRARHbvCL5EVLNQ/KEz24d0EODTfuveYFJAiEArimh21Pi+Ke89TDD99inEIeWzFUyd0fEc3VGdAkYZCo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgUX3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrt0g/+L2pSN2hnKUDArBy9M/+X2+s4Bpd2ZgOSQsbeK3hHa0t+cnNm\r\nncwHajdEq6oDtkUg2UWGxiYMDkct/OOP2VxRJkTvyEK0up7h+rJF2cbsycGH\r\nKkRyIosrLeU7IKTCtoFSwUG1hvoO9QQgWb4REkZk6DVRf6t+XqnVOI/iq/8Y\r\n+1qq1G8P/+BdVnAPemQygbR1EJLpimtTCW2Rcg7KWe0QBnDsf7Vvbo0AR4cf\r\nZGhfatF1tBxttCpLOetu7Xjs2Zidv3S7C3yVtOnCkDJa6dvbVOd17nFRir+i\r\ncspo/H5D37bWm9BvFslrrDaLk3fLwOymPso7rgPIlYj32yOelC+NQkpBFdVA\r\nU72ZAtO5tfpTi7a4u4fCizNLrplBwSkqrAkyfH/LYDD5LABHndc1jh4prLa9\r\nDcylcDro95m5Eb3AQ+psM/650eLVvIkuFVVGPqVecgSZFho8ITmbupDm5GeU\r\n6c4dWDP1Sfi83bA2uf7bsAZrcY8bVBSRdeL+g+w49sSjbQewjFn6iL9QbrRg\r\nkN13RqNeIVGUdPTlmWzyr1TOPui+2v/ETE1GEGtef1eDfjVKCA/1N2V+uQ85\r\nBrZyKfSKzp/t7qOn7rHCtLn0w7828AuI24vp6m+woZEXbhUq3pzD2W/l/y8E\r\nRG3wp3To+VqcBb+QhtMkGnByU3WuqA+ekZc=\r\n=Lf+y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"f9347a106881d77aa4b1f7f37daed25d73c5f92c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-f9347a106881d77aa4b1f7f37daed25d73c5f92c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-f9347a106881d77aa4b1f7f37daed25d73c5f92c_1669416439479_0.6195211779328937","host":"s3://npm-registry-packages"}},"0.0.0-next-94f03d5249971d1eea1868df296db6e766f40f9f":{"name":"app-migrations","version":"0.0.0-next-94f03d5249971d1eea1868df296db6e766f40f9f","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-94f03d5249971d1eea1868df296db6e766f40f9f","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"dfba9d960fa2ee0bd484749dcbd6b2c29bd42731","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-94f03d5249971d1eea1868df296db6e766f40f9f.tgz","fileCount":6,"integrity":"sha512-9y300IbHMTmjWCpnvlWPw125Ik9WKJRp3bdHqkdd5K0JNobXA6m3zG0qRNRV1Ik7GdwXH68c37jh8Q4hpCbBVA==","signatures":[{"sig":"MEQCIBzafk0evtsjO9LiDYbI4iqj3xY311aNRnodABfV4dKlAiB+x4eGqrOAMwj3DKvOH/+bGoJUt+V+y+ukBtpOJ8R4EA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgVQ9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoc2A/+K7vBCrG5WZet8WJmacl8fsvHtW48E5DNqpsptlMRK0lwuoJS\r\nbhlKn4V8kFvU1iAnR2/S9afHTalct/FIFCXetgj6V6Y7cLUwZCvzkpL/w199\r\nA8HqojkCUsccysl8zPsLeiXQ/5PTBawlEjm5IeeqkTaQ9zarWkxoGsOGRuyQ\r\n/jpnrolwa5FRX1K83EssBn3Rh29t43OGVPNvnN0SS/GcFAl38EgjGT33V57i\r\n9wEsJBquHGYNfR80PGZa9/w1np1fnD0acLwPuerWZHPmoUwAglq7SxAv9z1H\r\n3o5mb7VVldLzPW8ascYMFtMbQYPtMLBb+H/IlyRr3xN6a0EsOMrEYKVG7vF2\r\nytSF6vpiKsVxsMhICV7NHKzzVhr76w3SpnJHPZS0pLazWT+VNq8LsvDytqs6\r\nUSl0BmMskzkoMuMjexctDr/FzQLE7igQM895QQM4sh5gZUisQvNsidD9k96c\r\nPDSFaapAs6Gh15oftWY/h9fbAeB98TPhybUlLdocFssG4xa8Jl1SCCj5psqy\r\nmvMnp7Ilj20BBhGwkxJrFUM8T5aC+ZsNBVCQBOsxi8gYXgUyNxjJTnoIFkpi\r\nlmhm5NfL0Ph6Y4nZb1zhciSfCQSYnkbjcIfsA6/aIu2OqwkxArzUT2dGOIu2\r\neeUP+9Zega9s1mTXXQxSThkFQi6aI9mfNkw=\r\n=tRni\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"94f03d5249971d1eea1868df296db6e766f40f9f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-94f03d5249971d1eea1868df296db6e766f40f9f"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-94f03d5249971d1eea1868df296db6e766f40f9f_1669420093299_0.36307934853033763","host":"s3://npm-registry-packages"}},"0.0.0-next-e3ac63bd187d674b27865523c639e78bf78ac7a1":{"name":"app-migrations","version":"0.0.0-next-e3ac63bd187d674b27865523c639e78bf78ac7a1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e3ac63bd187d674b27865523c639e78bf78ac7a1","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"2ccb9ac16bf6ac1026d8d30cc2696a8ab6f26a0c","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e3ac63bd187d674b27865523c639e78bf78ac7a1.tgz","fileCount":6,"integrity":"sha512-dcpcU6Mp0EMN+IbUr8X3RhSOdzIEXCGPsaDcn7L9dC7qwTck7su15fVYiVBJbTnNRRYlcO+X6yHbMj09eudrBQ==","signatures":[{"sig":"MEQCIH6KfG/XxTbJkXpMsqzwNoHA9MrlxAsilpou/ypqn0WdAiAn0LC2Myz0WE+Ec+JWfzmBpR8J0bF3ZPHkFkmJ8MGFww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhTGvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmppWg//doxKZzcQiV2gQI2VOIeavBl5hAdI3uHsbOfasQg0RsagvLCW\r\nZmVXaury0PEwaQtNMkJ3fFuS9Ob/iHnSQ88n9aVJ5Dk78sTdAF26htyLI/O1\r\nxeS8EdIsuOluGzdUiTglSHIMiiAR6aar96w5yOqJ0mkx7irE2xbk0gFgXaxE\r\nikyt6KpvT4p+BvOn2mlBkavt1n8RbQhepp+b+kN5ixnzpjap9OpSWP5Ebep/\r\nHc3UYU8kooJyoDQwrQDkGX3bcfJs9anJPwRHcRS0GEd1jx3B0L2/K/gi8sYI\r\nAl5sE5zjPQIGeM5qDu899EMhDT0uxen6qqUK0hHvaofHxIeO1okIg+2kL2N4\r\ngH7ofy3jT19JgjAMCF134YfgtfYG19yiGCkfNMerYe0R2uN10spyw+i8aMR7\r\nbKehc9zq7V0pio8e34F6+EP+4Gbw6hk7L72z/StL5bIT3JxgKoW4OtgEMmy0\r\nP2Cx6/WN4Cf8GaMy+NI5dW2ASM0q55NCwXlIefb2N6UzafQpV4tPleqTmlcS\r\n8MybPYsXHb82Cs5LQJRS/R2n3AThQavNEYXchR29dW1928LBpce++OKGg51Q\r\nLlYS6Sj7VIi5C8Y3KudAl3Tt4GdbJLSzWGa/Bh7lfoyEgJiMbb4ezzPHQ3OY\r\nZDdQU4YtQtDgyYtBOOXNnA/jNwe0GhSV+dc=\r\n=Vjbz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e3ac63bd187d674b27865523c639e78bf78ac7a1","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e3ac63bd187d674b27865523c639e78bf78ac7a1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e3ac63bd187d674b27865523c639e78bf78ac7a1_1669673391356_0.5510417959825995","host":"s3://npm-registry-packages"}},"0.0.0-next-92d0020f1616b24273dd45bcadc1f36b47a690d7":{"name":"app-migrations","version":"0.0.0-next-92d0020f1616b24273dd45bcadc1f36b47a690d7","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-92d0020f1616b24273dd45bcadc1f36b47a690d7","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"c89fc3a5f0c409d74c5288c3821bbd1bab70bac1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-92d0020f1616b24273dd45bcadc1f36b47a690d7.tgz","fileCount":6,"integrity":"sha512-dxQBlxRn3zKm9wCbCBW13PMqych9UKNuBCGHwXta+RlotKy92qPL97QUzOesus9KjT8U6+GwAAH8ZM0I1Z4Kfw==","signatures":[{"sig":"MEUCIQDTFh3U4QqCub32RYWjyStX2ZTW5Sgti9sdRuGe3j8hhQIgMP7orcvXws9uuyMmvH2yuGMRgi1K2SM+4xohDZrO55o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhdMvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTjA//aQmolnDrbz57ks28QOAUn4QVaRy3UlkM+fvg+yQ7kWjRyVKi\r\n5XU8NJtIk/VRgDHVi6hXxDkOktIqHYyJrmDKKwYag50IqA09x0WkDbOx3lrc\r\nY0DGVTGGW0BsYZ4xjvVKPxJaLEPf7WNQUYu0LZGeSGWOshbew9FkiO9II5Nw\r\nZk05QAd68mLvgvkOlEzBGy1FdIXiYvmm6lRz4ZPqMAJW4a5jaITEpvtQg4N/\r\nOn3M4CJuz0cnX2HQTIQShseqccGUOuXaoNhZPDotOEP56+FqZLzW/SX5LXG3\r\nFWgkuOkHm+uxRCzNGq7GmxXY8xXKf/Ohm0uHab8oKhVIEJRrTzMVvdo32KqM\r\nF/pY9EGoCRkFfvNATZyseprP4lUluoAoQmF/E9X7BqBUbSUH2AAXZfUYMt27\r\nvEqw75B2Chc4fsCm27Y4x07erDYARchgdeUyLsIxqRPtITVQ1Og5MHJi8Uz+\r\nETJFfVJH48YoEBvFMaXgGA74djbsB2BQujeAjzcI4gEBho9fcb5OrW0exA1n\r\nMPBPG7NUHnB3YCz2XvZ57tm1UT9A8bsnoKukmj6y5kh6NGh6Z+0ffV+/PNpa\r\nBO9AXV1IDMm9aJ+3GlagIdRZ92U/Yz9RabJuH8n44lVieJjzXBpbV/JATJlO\r\nvKkM8Nw8p3bncKnyaW1ubjOliINkZNbFzvs=\r\n=TDRu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"92d0020f1616b24273dd45bcadc1f36b47a690d7","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-92d0020f1616b24273dd45bcadc1f36b47a690d7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-92d0020f1616b24273dd45bcadc1f36b47a690d7_1669714735672_0.17452043275001472","host":"s3://npm-registry-packages"}},"0.0.0-next-449f5b693a70d24bf653fcbd3719d8d88d91d899":{"name":"app-migrations","version":"0.0.0-next-449f5b693a70d24bf653fcbd3719d8d88d91d899","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-449f5b693a70d24bf653fcbd3719d8d88d91d899","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"95cb0955873e164dc02c80fbc45ec647d4358cd6","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-449f5b693a70d24bf653fcbd3719d8d88d91d899.tgz","fileCount":6,"integrity":"sha512-zlRKc9s4LIKEXfgfOBhYP7i7QysPWoKl0MB6PMZzsmIpz2cuqit635RcKv0zYVDkk4V1Ci7LbnSjAH1sBb4omQ==","signatures":[{"sig":"MEUCIQC57fa0kh59IlWD0t1AdrOOW/iIZ2ijYfKYXrzTruAU3AIgA9zh2KnlQCWLz3OgVqBHutEUMGaSyWg06/MgX3zfqy4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhpc9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2rQ//ZXeEMU3UpYKoC2NHS9Z9IqoRDIqhyGu1p7IUBlc0PPwOA3dw\r\nkI7TopHW/ZeViJIPBQjLacoMYcDfqiLVF39j5htjFExSa7i1cH8V3P47mr71\r\nBlL/mEPkJC2CWZjzCSoRb3s1UfgTx7XqkK6Kck/bWcatUBUccM+yEr2BACXB\r\nQ+av/sVHcPETXrhG86+5i3k00A9doLb8VhwTZcpPIjgYl54NZSNtJE+cLJHB\r\nhzw6UOZvmBop1B+tSaSFeqnTMpw0m1hXFo5mBaZRZtf4vasq6iXxkhfRYvPF\r\nhk8CGELfOU7wIdpcqbQTOKB4MMstMs/Ea3PA7YOjH+bv8aPTcQe0M8xealrv\r\nGTRFh/Pu5P/GfkQBKznC/ilMvDylK5a8qODXHEIvtz5e6wTfWqV0DkdcUdE6\r\nSQEk0JO6ZcB0MbnTyHWWPrlEngKKDbggp2Ic1FxBPGYSndYLJf4IpATG9XvF\r\ngdSCUUpD+df0zVvQ0F8GIzwSqdrSTr656b30sTYc/+Ft+Ok+hBb+lYnOnxOj\r\nQDcOPH2O6JvJOnQIrGAMMPDq9ShOgbh3erlr3k3LtPcz4p/hGtceWTNMYebo\r\n4JdxFnU5zfKMRnosUYt8K6hhnPmJvUE9bSYYYCDjuMMGyKPEuUeUx1W1l5AI\r\np2MLIY/+Ezcelkbli/MVLqYAmM7r7DyMrC0=\r\n=XoIF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"449f5b693a70d24bf653fcbd3719d8d88d91d899","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-449f5b693a70d24bf653fcbd3719d8d88d91d899"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-449f5b693a70d24bf653fcbd3719d8d88d91d899_1669764925376_0.04140027639936905","host":"s3://npm-registry-packages"}},"0.0.0-next-9ee9b0963df24390835a677f1a9081d9bc53ca2a":{"name":"app-migrations","version":"0.0.0-next-9ee9b0963df24390835a677f1a9081d9bc53ca2a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9ee9b0963df24390835a677f1a9081d9bc53ca2a","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"3b488523792d4eac591a91de721b395b9e17283e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9ee9b0963df24390835a677f1a9081d9bc53ca2a.tgz","fileCount":6,"integrity":"sha512-nHJlt+AuvM/lFhSbHtfukco/cQpoh9F8CQlZieM3zuUna8mH7h1ThO778mMA0FnVDUZ7+u69M2PykfHfraiQVA==","signatures":[{"sig":"MEQCIFL86i668TaWNU+ggW7y9T/1stDnzvVRs44S+tbyF3dlAiBsaPQc0BcmMpQTozxUEDb+L5YtS7JtF6xm1bzo58OtoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhphHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqClBAAgLbCq/tbJjgpJ86Z2Mm60Re9AQiLiCl3nCArqBYGFyKpzjWV\r\n4citWwU9Q5ekCuMRw4XVnuAHt1qlTLzEhrSMdK8SmRc81naPP+WZZTxEDzxy\r\nGO6n/gbw0y6UiGbKSAqZmLvb18WHm7koEF0QBwPGszQd7wlUCeX+j89V6EtS\r\nWKYrn1AUPTe/KuWcsea22Su+bJGXtLFQwq8tEi6sDyo6ah15F30pfRvazvki\r\nrwJyHX7gtkQeC3sGJdyvaL/vrQjKiVUXzDDcSg57Xah7ehMs28SjWkMgpHFF\r\nVrgAdJopsP4uLw/4U2z92kK+gPH+5UE88O3AiahVPCoCKevEL1Nb6eLmbmBu\r\ndQUYEgLQvBypa/FueGHWCKPHj3lJ5ZpziyX0d1ovWNdUxMwnkXdAKGYuPNde\r\n3beFqK1+I4AHrJJ/Jg0iLPTGs06AwPDYuNRiQ1NRXfuAc5VOuKgNL+I2VMqO\r\n2wq5QAEJg4xSVjKY6eZGGp6Te2KlPPuOE9SvIerurR+uvu2MFpdSjrOvxjwU\r\ngBb1qMZ7GkpruGC8uA9u6136zuT0057UqzYopY1akZi1DdGlYpVQbr0sq86X\r\n4Cc7yPZGuTt7DlCWvgeP8aGOFOdFUcHdPC+e/1Tk8tZlbNhhAZn/GMqUMckP\r\n5xg58JjyqWxLsafUn0+Z4eI58pMT+UqSTgo=\r\n=nnIs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9ee9b0963df24390835a677f1a9081d9bc53ca2a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations.","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-9ee9b0963df24390835a677f1a9081d9bc53ca2a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9ee9b0963df24390835a677f1a9081d9bc53ca2a_1669765191793_0.2628983637113038","host":"s3://npm-registry-packages"}},"0.0.0-next-98550b9ab2651e46658429899a0b7353249a18c0":{"name":"app-migrations","version":"0.0.0-next-98550b9ab2651e46658429899a0b7353249a18c0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-98550b9ab2651e46658429899a0b7353249a18c0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"0a96bd9c3e871ac9e6366d2f67fbbf19eeae9769","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-98550b9ab2651e46658429899a0b7353249a18c0.tgz","fileCount":6,"integrity":"sha512-Wjf6TQDGdsrH5CvRxlNm9FwOHwjALyt0EwT7wATrl1xeghHXsDQigYqEVLgSRXITbJWhbOd5bsX1V4EKWsAgBw==","signatures":[{"sig":"MEQCIBSf1xbh8/g+m9efYz9KlWAuC33iAiTK78ZNEWBvEA/lAiAuGUkcO2iDgEEgzLz+hSKfeME0HxwRd8TznsaV09hlYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiHgUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpekxAAkMxLA1rSFaLLaV/VFbE9i3Dr1IfsLCX1ndJwwzT2iPG3epR4\r\n/8Gpvlt64h316or8gU0pocCY2YyoaopEcSfhsXfxFLuTBKKOjU9fm3Lt5rZv\r\nYTnKlk9HiPlWLsvHo5f7JHty4+XdI7BaM4f4Rm8ZG4k8l93PMs82t6JdXhhF\r\nkL7jWZNM1jYViDUyWXyvRyJ5FGRvqSmb573TzaPFnPf+KRALFB6KXg3iEr4D\r\nd1CYDMLLfYrQl8yuyLb/Z05ppA38p7lKFNeOLNwSr2hKPF14hY4SUIwiUQ5T\r\nywY0s9oBoE0VgMtsrEv+DXNtxs+c31eHIMlr0RDERKg45hgXftW85UPEd0dC\r\ndoMWuHmUToEuB/Q2YIaTZRTBtvJUVAzyfFo2qN4MLp7nmZEXx2lMrtG0LS9g\r\nFS7LBs07Co3nY0ZJhe374HPx6R521hpnsodeWqnmjG9bPzcwwCgCesnwXayp\r\n5XdfSVJ6GlmgH1KAoBMUHF5j+6KizUCQfFy9jEgz6U9cqlTSiYWU+FDUua/W\r\nQJOj4C5FE+JW8UbdG1tWdGkSbJ/RBHkebMAdc9YnVbEmoCre2bVQm5ze9VeD\r\nxXmLvuw6XFZgHpRACsFW0hq8dTycpSrj0nsVi33hkwvdl7Gsv1n7hqvdbdpn\r\nhwBIJB66N5EsvTq7EUxT1bEyCCqBMcm9BlQ=\r\n=BgGF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"98550b9ab2651e46658429899a0b7353249a18c0","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-98550b9ab2651e46658429899a0b7353249a18c0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-98550b9ab2651e46658429899a0b7353249a18c0_1669888020406_0.6030737845913752","host":"s3://npm-registry-packages"}},"0.0.0-next-f5e96f4dde195c3f4c44fc6c373583df1178a29d":{"name":"app-migrations","version":"0.0.0-next-f5e96f4dde195c3f4c44fc6c373583df1178a29d","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-f5e96f4dde195c3f4c44fc6c373583df1178a29d","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"6422dd967d050121fcbfb8a321e9cc9b1105472b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-f5e96f4dde195c3f4c44fc6c373583df1178a29d.tgz","fileCount":6,"integrity":"sha512-ymPUHIZhu2ndAHGf0p+MQYi1niulY47idfShPwuY6utZ5R+hQZ0eCNAk9h13vmWRqDlMJHxy2JxwXvtph+BntQ==","signatures":[{"sig":"MEQCIHASGtTsE/IPNbWY5SZ0rPMxHIxx2Ad/wKWYikPvA4PTAiAqBq8nE5ZxZyaoE2B+7MSxpabUow+1o5BgRm8LfzR9Vg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiTXkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJnw//cFgjkAvaG2BCa+bs9IEoOdu+20kFpcqI1xyRA7T7HwbVRo2m\r\n87gkwTbLJIWcJUU1MCUhU8jrlMBL/Mz64V8m1GUMdG1MFDzKO3GpIZTd9q3H\r\nPmbn4o7F4AwR/k38VVMiS+QFMp0sYN5TWTPLpiiYvSCe0lVxSRG+/Nzdqhp1\r\nOlMCWBS0lX00fTXd15LAR6vFqPTnFCeFmo379h+0Qc3FhIXuQbKSi6siCN+V\r\nAnfPz1NhElXelelFYI3iqbmPKyH2tH22VPhBPKILeF5ieWCwAEf9YGbjad2+\r\nEvBLFgjFTwqCPlQSemeZEUuQJSOvwsrCq4Zq7vT8M1jBywUHYv7KR9hJgFj0\r\nt9dXLM9gttkZpApAHvYGi9LKPbCiaQF1UOWUUdeID8oRipZSWE0jmASYmUl8\r\n7beowkFGq1Fgj+52txGlnwwCfHwgsVgDpFjEEm6qyG8ouchVaw7VhCar+EEI\r\nTtDF4LtdN+xU1hrVrWaed423l0TQSLh/vkuJp8oL620N7lO7XMirqD9Qr4P6\r\nAAZorLxICGuMKB1dCDltztivWYP/GFRdcLLMphBmC7uRFh75gPWhyqqQt4d1\r\nTQsDU14fHHh2GJUQyWl825yBFA5eC0ux96NPJFzk0f24lTRLPg3LtZK4SBrk\r\nMtB5IXiWSTi9bmuAPgETupcHKCf96WMwNAs=\r\n=iBM0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"f5e96f4dde195c3f4c44fc6c373583df1178a29d","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-f5e96f4dde195c3f4c44fc6c373583df1178a29d"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-f5e96f4dde195c3f4c44fc6c373583df1178a29d_1669936612606_0.30595365228938665","host":"s3://npm-registry-packages"}},"0.0.0-next-21edffba0b9d147d7a297a3e4a69d68cdca09b82":{"name":"app-migrations","version":"0.0.0-next-21edffba0b9d147d7a297a3e4a69d68cdca09b82","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-21edffba0b9d147d7a297a3e4a69d68cdca09b82","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"67b971d065e39c37c57dee8bb70ceb55c7148653","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-21edffba0b9d147d7a297a3e4a69d68cdca09b82.tgz","fileCount":6,"integrity":"sha512-3qVbDAIaZzdFYWKMwAzJAp/a34rGUZFDhW0dOkzkBPRVjH4Ch5DuiM6mp+Ey0J5m5GDLy2CIAgIkhEQyKSbXkQ==","signatures":[{"sig":"MEYCIQDSG8RjTYu7Uo0lWkBJqI4c0QzxxHq8dtlx3m3g9bI5QQIhAOSPH157v7BtwieGqgzzxSckxRRGmgIq6CkR4Yhmqhyf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiTifACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosaQ/9GHwE+ywjcNkgauLPeLnjT89lokmeqzi1lcsU4/OGoCunW5kt\r\nmLohlvUBhuQXDRwsEvanvImuuycE9S5vT/7V8JfFW+E5aVYiCJD59jAW8f88\r\n2eYy8NbJ23TMYei+tfpdMvEHyqCAqIxIpey6svJvXdluVhRqF+vVSzDgessh\r\nX4lIdXJOHi56ypYRj8gkrwdimGOxQw50YbdJun8Gh0ctshOC2kmlkWtbTZG0\r\nnFpNMWdDECyZqcd4Pk8pqQKyAk+U8b1oBL50ALuqawwl/sWDdVaUONu82L/k\r\nm19zOPSYgY9uWG8gZJ1MBy5b6FcedmMbcdmywehst6bBqSkNjVASk3DHHIqJ\r\neZZerTDx+PY+acp3g8baarTxZQv0dlTuQ5ATmvoajKTTxohiBr7329RJRsMV\r\nqBqJSsY4ueCIQARvg24z+oyWq+6sp6Z8zAGrB3BuFFmk0cHonvdHb92V7Glj\r\nDccED7TD/5LCl6LbshDKOmOZLGbzWGBcfs2OAJBxlAUUY3yNhq0EYACSu/J7\r\nUuxQwvQkJwYR9CqWlq1enYNG6OHDapckv63b48zRe1tTsAxWEwjCSFfYfWgu\r\n0rnaLOsqVHxtYcw1eLASDvM1hsNcHAS8iNM+6mMdSj8AVZktRZHhqaCoyPX0\r\njJbZ8QQ0abmgSEObQKmTxSofnftn7CDZZTM=\r\n=6CQa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"21edffba0b9d147d7a297a3e4a69d68cdca09b82","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-21edffba0b9d147d7a297a3e4a69d68cdca09b82"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-21edffba0b9d147d7a297a3e4a69d68cdca09b82_1669937311230_0.21073377846961994","host":"s3://npm-registry-packages"}},"0.0.0-next-6a5d526328ecfce1da82bf064daeb19f1c2bf6a5":{"name":"app-migrations","version":"0.0.0-next-6a5d526328ecfce1da82bf064daeb19f1c2bf6a5","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-6a5d526328ecfce1da82bf064daeb19f1c2bf6a5","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"5affe01020e67b682d8f2598978b25a453ebe9e7","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-6a5d526328ecfce1da82bf064daeb19f1c2bf6a5.tgz","fileCount":6,"integrity":"sha512-NHT61LNN0/6yp1B0AHIHflI3QM/MoS/dXq3cbGGc8DJ5FhM5EYxCFEX2hKauBC5ogiClUm9OOdHEwGDbq7qcwg==","signatures":[{"sig":"MEUCIB4d4CDFZQ6bDCZIzuPmIeY5KoFkpeUyOYJkzZ1/bHXrAiEAiKMvRAcbSUIwalhwjSKLomik287afSxOxmz3lmBsX7c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjR/FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6mw/8DcsBkKeVrB2wKD8m0cTAszJieTwSrOWsHF7Ny0fus0QXrhjY\r\nUu4Itq+M0L7XIMMkiK7K3TRZVhghSvUOdqgzESmDvdf3lUUausiKPDWQd7hL\r\n5iGs6spPU7iZhtV9Oeg/G573fjc+9Ae4NbuoE/7PEk0JSE5zhgg0ahba6jVq\r\nEAQtisouNwTL2K0T/FZHKKMHaeDoyMIRSkn8+ZJQVIKKa/IU7PGU5f23Rlmc\r\n4BpgGRthNyxd25KV13oFVnnAL7AEfhMmjoC4vB8O6nyQO6xIvVKrroIj/NdI\r\nDG7ar0KUEiVhQvyA68foVK1s5xf4obCxLPiPeU3JyjtvMyL7FCYPKZPVbKpA\r\nLMdxgr8xEB/PolsyzHqbTsAo0//fGnTEfbg0c0XIu9Yz+dieiuH9v3AhYSRi\r\n6QYeecnuDqHfK4eTS1C60z0Zp5BbKZvBbwtOwfpzEXbkmsfFqxRB9dOtvJJ3\r\npxFiLb2jtr/IFYj5xkPl0adRGxAO/S7Qxc+JVbp3B4FJDRDV/HBuhu/Dre2d\r\nXBw9QtgLeaBVdLw3EXFyGM4Y0e8j1QnBz11PwzxfPyJzkqhtiqVqg9JJWyAJ\r\n8GakCd1qhExkFtF3PkE16IHn5tdMyVruiJvca/buBpK0kdBpI2tIMs+Tkafy\r\nfx1UGV/u3vfWBJgd/OXJvDMdZ8eiIrwNedY=\r\n=pClp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"6a5d526328ecfce1da82bf064daeb19f1c2bf6a5","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-6a5d526328ecfce1da82bf064daeb19f1c2bf6a5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-6a5d526328ecfce1da82bf064daeb19f1c2bf6a5_1670193093664_0.19246686615286657","host":"s3://npm-registry-packages"}},"0.0.0-next-aafcfc5ac487a7962baee26ca6c5870e66de2533":{"name":"app-migrations","version":"0.0.0-next-aafcfc5ac487a7962baee26ca6c5870e66de2533","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-aafcfc5ac487a7962baee26ca6c5870e66de2533","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"bfdf3cff932b076a615b194f4ea408197926874e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-aafcfc5ac487a7962baee26ca6c5870e66de2533.tgz","fileCount":6,"integrity":"sha512-wPhJ67CEdYIyKVmgZE1zs1F2a80w9FDmnXB0aYtGOpLXt59sSv+XqQSb6Y0TbFFnyOnIZL5Hq6ZYk0drkZdaTQ==","signatures":[{"sig":"MEQCIBat+M6gQ4ax0N4172ZfJP+whysFvUqUjVKsYfxt+lLxAiAZ4BzJrgL7SxWLrJ8YNv7M6ChSE/7q8dt8PrfFs6LDog==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjbuRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYfhAAlpEbrge3+I6F3wAdG6QkN6v3cwXCypPG2+okD5gBroILP1AG\r\nv2Wvl/Ze70/Cc6dbtm3BFxS0pUqgo5voih9Bi0+M52II4XmgLrPiYbDD8sIY\r\nWYhVYQwwnGub52SlO7kKP/jt0d71M/AZo8IvcliuMNocpNhz1P22lhnI8Zlv\r\nY5ZCsY5G0vuR05gc3biBcpFnlG8wbyhm7ZvBYSmX07j5dDKFUPMhusWb742G\r\n9Lb5icn/GnICAaCZsetM+c7wu3mepzCn+b2lhEf/AGQgWaWBBDRsW+A7AeE9\r\nv4PdMjhJzqI90L6wfyiS/L+zV4Yxyx+njU5lZXrUnhY7CRasRKmWtTU/4AZ3\r\ngXb7uicGwVm4zf2jPNP666Ipd31WIA61/hEITtIff0hx2VoTqt+jo9ennHmK\r\njgKloA6MFMUX8pBSTCD31luK4v+Gx92nr11p49Muz+8+1qvkvwORZMMFl/BC\r\nnbSM+yP7FFQi01Yo1ktUQgXlcEK3SuBdOspl0eSGFyv+CJ55U4/Ihli2JXCf\r\nP1B+6oDRH3HM4P4Z6/thOGFIQmXcqYQ0GSCQslaAnGXqOj49SwL0Gi46so+r\r\nniyCNiFfp/AVQ6OTTD6g+dvPZe7VnivW1+pafVUu3jlkfcOk22PbHWwGpPw3\r\nD9/wu982vVVl1TawVXkkS7syX8otulh9Ur0=\r\n=vpn1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"aafcfc5ac487a7962baee26ca6c5870e66de2533","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-aafcfc5ac487a7962baee26ca6c5870e66de2533"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-aafcfc5ac487a7962baee26ca6c5870e66de2533_1670232977440_0.11256475391235399","host":"s3://npm-registry-packages"}},"0.0.0-next-2f189f8218b434e8d36a7472a2ac843f17147b9b":{"name":"app-migrations","version":"0.0.0-next-2f189f8218b434e8d36a7472a2ac843f17147b9b","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-2f189f8218b434e8d36a7472a2ac843f17147b9b","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"fdf8592e63f6a2e66c4075bb4eb48fa51473b45b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-2f189f8218b434e8d36a7472a2ac843f17147b9b.tgz","fileCount":6,"integrity":"sha512-aAxHOAFuaUjwVMTYS0liZpnwHiXxjnJz8lQAyxJctklrgCoc205ix+dgDswkRXoo+4A0npnb9ZllcPzY9MqNiw==","signatures":[{"sig":"MEUCIAD10WYBlXiW6s1zeVqy6hC96O7ZN4VIc5xQW/1D+z80AiEAkcgkG17qawGUKI7KIxzCASqCyJnB/jXS1UUju6FX2vs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjpJGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqj3Q//d17AGK/IdvRw0gauL0UIRs8U+p2sF4PFbEUXpWiFkRLFjZP8\r\ntiON9al/KJQkfivOKbfZKjJ5XB4IvlqWskwp0akj2XYtf4UhLFuXlPpMMKp5\r\nRsco/NGmayyrbI2SCBtE7kMElpKxUcr/BZOJg/Haca4MPRBZTzSwPQXOy1Rc\r\n3j0nlTeTQcOJ6heVWC95kdwxR45rBrh8KRRFYI+C6VK2hmaQ1ArZ/aWlzOrX\r\n0LHUkYKJvUke225lavmuytwy458twfRtkIJClppVBFXskVpxkf14q7rS5RRd\r\nP3GqY/DwuGFQ/4LQBM1Vhc1HMf7KRPnXIGRf4VROeEfyA6bvanQQvkHAuDkt\r\nrXvtlNB6sWMtT6dQ9Dw1D5mwS/xmuEDz28q7oLoLrE3FYbdomVxr5qWhhRay\r\ngUCjw6IQuDnalUNT8t7OxbhG+49nwDNNef5A+OJG9JVKnKrIxNURTmKcvQQL\r\nNYqPW1zzhjBGxnDdZeS2pH+XM3s/CfO6qxyghAF0shCNQ3GQJugjnm0WV7Et\r\n1oV5Xx8aRlQeewx6enJ/qHBNgCRowi4MZwIAWfor4lkjIRLfeEoYDgSCxHMF\r\nZ55BXH0r1lmO2jAOM9yYG+pFEyRsmpsxDs14i4XP7mBZ2s7Eq2GUuAyQ3+nz\r\ns2zyYsU7Z3QEdCn6vd3S2VtR8gN71MCyVaM=\r\n=iY0S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"2f189f8218b434e8d36a7472a2ac843f17147b9b","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-2f189f8218b434e8d36a7472a2ac843f17147b9b"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-2f189f8218b434e8d36a7472a2ac843f17147b9b_1670287942149_0.6563263725816868","host":"s3://npm-registry-packages"}},"0.0.0-next-faf899c161858cffa138dc64f4fbf9c0da2145e0":{"name":"app-migrations","version":"0.0.0-next-faf899c161858cffa138dc64f4fbf9c0da2145e0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-faf899c161858cffa138dc64f4fbf9c0da2145e0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"0af635c9a1c1ff1463c1aad4051827bdd05746b6","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-faf899c161858cffa138dc64f4fbf9c0da2145e0.tgz","fileCount":6,"integrity":"sha512-+AJ7IojeVmLddE6ZgHS+qkUY5xqW4NG7SHGs9gmccaisnYU3jZPTUTu466V7bxAeryCXTjGeLnOtBLbTxOrvBw==","signatures":[{"sig":"MEUCIBIkK06jxPltIz2Jxn16omavLz0ypua7LPqO6qLySU0VAiEA0TuGcDnDNKOwjDKR3alQ9hti4WtBe5A675bTn0CzPJ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjpKrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7uQ//RU3eoQNGKcnKWuyGEhyWrUQZakrD0hkeRLiwfnKGW8yKANru\r\nxHgxYU4odumJ5lkuT8kEXk8Cl+VYWNaVDS9i4TJYNL9b2Zb8rTupsgO8/ifE\r\nMQ3Qh4Rwz7I3Jp7RaLdreaQDz1XyLnkoQuN4A1od7DEiBUbTtuw5LjmDkY8O\r\nTQGps9OmKBL6kObdPRFhFJNh5KHiQu6u0tessLxNxa6vPqX6kp+FdHo+8DVl\r\nTkNVbBrlSu9cNc+bHpRxZeTOrwvu/hRYgmcaiUz+L8rvjY6oTAe8FG1lL8Z2\r\n4+88nmuspVYLZU5fS4n7FXNjR2B8BMmdChR769LbAnUyMkA6LCSAVXHmcmR4\r\nN6B1FUjyiuJJ1amnmAvj0Pk1wwNx/ykRcLyCpPZI0SsScmNaUi/D0JOVVC/4\r\nK7hRBrqtHwKrDNF74sJvTtcpm4Lor8N+iAXJyC/MHD7ItesW5GVqbjch8f6N\r\nwCbuie+YO4mjA+HpjV9wZrciLnZMPpjS7a39qLHbel0icICXBItHqa2iVnkD\r\nO6IRHVqOxsr4XGtpwfLRsxMdlqW/6Fzpo86dgx3NZlcGl3oKFHzqbqnD6fKQ\r\nemnlNp0podFDvxHijQ3bAahtP3G5+Si5xw7qq0HBV5ltOn/6bgP9tM1L7iKR\r\nSy80paagGFddPqjtn0uPgV71ZgG9F9eQ6w4=\r\n=PN4o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"faf899c161858cffa138dc64f4fbf9c0da2145e0","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-faf899c161858cffa138dc64f4fbf9c0da2145e0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-faf899c161858cffa138dc64f4fbf9c0da2145e0_1670288043797_0.044330615247991645","host":"s3://npm-registry-packages"}},"0.0.0-next-f5d7198f71e9d27890af5dc79d01c3950c637d49":{"name":"app-migrations","version":"0.0.0-next-f5d7198f71e9d27890af5dc79d01c3950c637d49","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-f5d7198f71e9d27890af5dc79d01c3950c637d49","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"4c344620c51cd0580800a95cd528abd2d1da19c5","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-f5d7198f71e9d27890af5dc79d01c3950c637d49.tgz","fileCount":6,"integrity":"sha512-+SDiu4xaXCTjcQGPbBOL9+hy9TzOc/Mif1m06Eat/9INOxPHNc+gdGIl3g9CBbwMZVooFeYOVsme1LDzzHREug==","signatures":[{"sig":"MEUCIQC+S9zwRjZyRHyeQ7Uxb0F6EmLWU5TuTaAfVAKMn4P3KgIgMWh2vwgjfhdOTGvWuDTlRzQ/0myP3RgHM6tlleCG0DM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkMncACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5yw/+L7yVcs5ZTkgyFOZOlruLCeSLBNC4pK9IZiv5N58mNjCxQ7Gk\r\nqAwesa59460MBTA4E4ouJpAxlg5gYNAHZ/Iuf+RojWuyTsycpfJDjnMvpmLe\r\n57/4fxWtpKEP86S52ExxRU0Hds/y2RbHEidhCnBy62WV4CacBYq1HPpTKDMV\r\ns2C6ARretsKyNEXqrWa8/XSEc6MuZ3rlWP310j85XMpqyir2cn8GQmbQ6tCE\r\nzLpB3CjcExe25I/qkTmIcMmcoTHl/eVwuU7Ot6xuh2kEU1i//prjDsltWFLF\r\n9PJ22lRbjraVVhu9iP5KsW7dDR/P+RK9D9RCmvbjLsxlAc30m4Tk65SZzXEc\r\nucElb4KkDAz28B2JHVRq0qycxCfFS4cib6KtoVPlkZYTcEyoRUahfpo/X+8H\r\nQOgoYSF+zaIKsWsci355rSqbD6V3JY3aibbSyb5QBEHMfyAnbqeeUroWyjXo\r\nwWvBXnJbZxrTqukkxiMGEH8R5iMqcm0k+DlWcHHKinLPw8EcwVjDmFArnl03\r\n2Hg+287seOt/sV90J+Ty7Zhxs5L1PxI9UEOZgXi4x6zzTS3QJmI8rKJ2NCuU\r\nPVeDjJuRjbwLp39QHsOEFofIrAZnN07gnFWT+0XSiMoo6VjvLF60B4gG3M+P\r\nzssCgRaviEnnDZFZ49eJ3mriULhJ01KypMc=\r\n=+lPZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"f5d7198f71e9d27890af5dc79d01c3950c637d49","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-f5d7198f71e9d27890af5dc79d01c3950c637d49"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-f5d7198f71e9d27890af5dc79d01c3950c637d49_1670433243799_0.9001078138687331","host":"s3://npm-registry-packages"}},"0.0.0-next-1336f6ccd01a8b5f63ed6bea289fa9f8fc4d9557":{"name":"app-migrations","version":"0.0.0-next-1336f6ccd01a8b5f63ed6bea289fa9f8fc4d9557","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1336f6ccd01a8b5f63ed6bea289fa9f8fc4d9557","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"9b1e49a6f98a0f8813cef6600252fd229ec27125","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1336f6ccd01a8b5f63ed6bea289fa9f8fc4d9557.tgz","fileCount":6,"integrity":"sha512-jUaF1HbRB1y3rpEfLSUF55smC82NzogGQQcKJwjhU5I6SE/kcWLdlUMyfml2Q/ahwSq0qK/ye0w2Vx33cYPqsg==","signatures":[{"sig":"MEYCIQDSGtQBYJcqPOr3I0qEIYQGUO/Pn8ciiX4CDOuVR2G30wIhAIP1ohE1pK5sbbn8hDibYgrIDvpVco+GVYETP3wb5BnV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkqEDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp88w/9HN9c0ZHbi8CsX57o2wKlvaZe+wJhPWubdmwIPJLyHo+MIyht\r\nEicT4vMsv93eKHPx4GcbzCoTeeJck76MC2W4JWASUIJhNkeJqit12JdpDJe2\r\nWJ4eqsVRnIEYeop07wDHuG8n2RZg97wbX9sq9tDCUDP7FsKuUVrR1ijU0SGl\r\nLTuLMpVfE48zUqRRg0X18RJrW6BjpkSZ1gon9cUCE2cjJodUOL26anO1yFD1\r\nabB4NAqwfIb0RvyhQqiOBusVAtdjNbKxy54VpEovjVSMNdSC72GZ9VOr/rzI\r\n4BD6dYp4GTyghW/9T+7T+PyDcwgxXJwhqDVaQOw4SQFGQBoBKrEl/Zym4KKE\r\n/qoRdBt0EFDm8jh7osEQezFaMOFzY+MkD71nMs4wtAbO37Qtlv1cHWPQ8OV5\r\ndMDxHlYy1cHkkCtp/SXYSJDfjjdh2QrOO57h/Suv0zskxGLPc66bfwrj4DPB\r\nKPIpB5POSw0zhsuD/dnwV309wOdv6O2duZhGTx3UXcekWxVebbL7LiS3D0bB\r\nyxLrnZ0s8ASqZEP0bz/XADkgulri2xbZkvIbkpCpzfYUzIiXVnT2bOa7zHe9\r\nloIviv36aB7KaGhLrnC1If2noR6MKOjwOJM2AQfOqHoXsLHKPypsgeSned40\r\nRdCKiC5INTXZQ0QXE5/BorCUGSqfFOu0Lac=\r\n=+oI7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1336f6ccd01a8b5f63ed6bea289fa9f8fc4d9557","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-1336f6ccd01a8b5f63ed6bea289fa9f8fc4d9557"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1336f6ccd01a8b5f63ed6bea289fa9f8fc4d9557_1670553858784_0.5444577697331181","host":"s3://npm-registry-packages"}},"0.0.0-next-d43728ce0cf99f511bd2d2aebad966bc49276179":{"name":"app-migrations","version":"0.0.0-next-d43728ce0cf99f511bd2d2aebad966bc49276179","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-d43728ce0cf99f511bd2d2aebad966bc49276179","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b3354020388a8810b92582fc1d9b9c1f91a25568","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-d43728ce0cf99f511bd2d2aebad966bc49276179.tgz","fileCount":6,"integrity":"sha512-knDmvqDnjAecv3Drbr18Nl0fvdjZxO+zl7ug6gcUHZR0TdLFGnU6fjzofTaHDCENNvJKVdkB/2T3B1UXcBmZzQ==","signatures":[{"sig":"MEYCIQCju5sy918j8gluxQpj1O03j+pSbqvjw9F0fd04Lx9VHAIhAOPV3AZTtp2/ilt3JMPJguqf/Sl8Ez5ofYecqezH8Wmd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkqGVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonnA//ZqrCVuPV1KEG0XNImGSErUACSobvbhfqd6TcWvCLNxTZg/fE\r\ns49ud2BvCmv1cQR915VOqJ4E0kHJ6aYeVFjQx9oeSPP8xgeep3HmIrGjegPL\r\nTBRWVGIDLDrnU36LlIxtDdhNR8QXBI/HkTDy5PbASFVnzyUArYHlMJ33h8+S\r\n5EKSrRYcTwXYFotyMsxCe7Ke5QOCxkD0oe6iD8wmPiGftmWNZzLIaBy9gCsb\r\nkP+OrcVqxgWyvIOrhrQq6ni6EPHvosuRl/283R04B7cIViXWiyG7DVStEgxh\r\nzhw7f+gqwb3ZBhzE8w3JiwkAcEvldRXBNiqUq3I4iqD20yWUF/KFBbA1d1UT\r\nJ6f0HkF2BQDGGe8U1mTjmQax2liQnaYkdRCO6fGpXB18ctRDLkp3dr/UuOpP\r\nYPCFl+bNiXcrOdho6mb/7NXeyqH603ZtcLP3CGpiVjWmMEVnXMedmgBUXVVm\r\neyPiKFZuuQUwyOiLo+smyYY6HSsUeYvefrcUFwbeyrSRYVRCy2N0T0hyPFKR\r\n/WJiA+uH9KeYKQOp6B2ZUWsHF3n3OdEKOnUvKQaMHB+Iv1DDZo4LLWqHgruV\r\niHlHhWp06WF+KWnuwd4uWynkrEwHAaFtcj1o0Wk2I0NMP7weaZTX5dW0YWhr\r\nsUUL0+SS6TiupFnMeiDc5fNEoX1XhYiENcg=\r\n=GvDZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"d43728ce0cf99f511bd2d2aebad966bc49276179","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-d43728ce0cf99f511bd2d2aebad966bc49276179"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-d43728ce0cf99f511bd2d2aebad966bc49276179_1670554005538_0.4822746600370249","host":"s3://npm-registry-packages"}},"0.0.0-next-0d9e77c42a99b49fd4ecc7167d0c769866f92ef2":{"name":"app-migrations","version":"0.0.0-next-0d9e77c42a99b49fd4ecc7167d0c769866f92ef2","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-0d9e77c42a99b49fd4ecc7167d0c769866f92ef2","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"991f6d38f6c89fca3171c1c6f6e0baa82512458f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-0d9e77c42a99b49fd4ecc7167d0c769866f92ef2.tgz","fileCount":6,"integrity":"sha512-YHcZQU4AbKYz/rA7Sp1p46/LkHKKqv3X7FPeeMi4tnQwj6RZ6n7uhlycnP6+mBDzX7FZmbb2vpyD2hofV/Pmtw==","signatures":[{"sig":"MEQCIEZxdVoqoZ/1s5uTPU3DPpFlUXRTNuolzxi2+r1rBEhfAiAwZHVSQtWPXbqdcXZy+xwPQeZzwDCW5mt8ncSpRVOGUQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkqPZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohHQ/9GfVKdILhBFZiqs1uPsLgz7aXjao/lWugNbcl+v/X9Q8TduEx\r\n2wrqEZWTmT5QOucivfko5TqwOeE93Ot1pbsRdnQDx61JSL2h5lUU1gYm/Wtz\r\ntYuapTI7t1yfpRxDbnPsiOu5obrpt+cAu32CAzkuwpaa7oFqpI45kWGpoqQM\r\nkLs4ffu/JurlkIANXrwy+ufwMPNLlET9Zcnp5WjuWGVeRPrefwxZj2sqca/1\r\n5Yqcl7tkUIPIOknediSpBGI2wBZ4G4E5/yPYcRchtLPLxuHpJec7UMQDTtvC\r\nIiLbJOmfgsoWy0c4dg0bAvyCo9cUkCAK/VRft2dHEkwXmbS80mmYFNCrVPtq\r\njfZh0wNwSUKmB5vEVILWBRpbO6dS2znkMM2VQw0w4mcw7sIkOxLjjSYBk4jf\r\n72OhuNds9K9sPA4c3xOt3tpe2bt7e0DuWqW2mWsIaN3plzw2CQMnMV5TUBy+\r\neRSa6RZxR5ZKWGPrWc+cDVkxTa2dDC9dQRwS04TshcRixAx08utM72TysQg+\r\ngBbympn5EkjqZnnTUC7wPkLC7TXxqBqtO0Qgw1CBvKv+U0t9/LC9rqucSeIZ\r\nn+h5TUkctJMS1pvWw8jWmoOvifx5jv1qu8cifODKTotwIBASHKAPAKjHX4KV\r\ndkRvFFVGfNq0DUfF5PspZVGcXHk34bKccv4=\r\n=xpvz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"0d9e77c42a99b49fd4ecc7167d0c769866f92ef2","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-0d9e77c42a99b49fd4ecc7167d0c769866f92ef2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-0d9e77c42a99b49fd4ecc7167d0c769866f92ef2_1670554585196_0.0729505477170107","host":"s3://npm-registry-packages"}},"0.0.0-next-7db57a9d912a713312c9f79acdfcde9e49b554d9":{"name":"app-migrations","version":"0.0.0-next-7db57a9d912a713312c9f79acdfcde9e49b554d9","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-7db57a9d912a713312c9f79acdfcde9e49b554d9","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"339de2f15767a755731398ac498f351c04e821a3","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-7db57a9d912a713312c9f79acdfcde9e49b554d9.tgz","fileCount":6,"integrity":"sha512-YBpaz8u7jcWwTqjlbhz+A3dG6HITaUEdILqUFxOOgC5FhXZLfeI43oVdoyRqEk7vvhYuJfGbTGDT2VzW65JbrA==","signatures":[{"sig":"MEYCIQC02JYgb0Gm8zMndzn5BpfgkjQ3CwGijmuI7g1OfjJDpgIhAOA36DA4GOCeTAPj1hhk2NFfs4sMLDrpnbPAJr81wqMi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjk31UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyQQ//ROpwtYT2PoCPrT/lNiAmLxEvYINfGHLGbJVd1qvzNbP4mMh7\r\n5BO4jd7UmDuFQ//N1bTJatz2K+rLSaCSmhLZL0vCFmkbo2H4e+ZUsKP8HFLC\r\nkHsbaE75zQztHz2qEFpm6dRjx4Px7dt++laejDQQTkf4LZ6A40mIhzsCCt6A\r\nRrqT67Mq9Q85dJnu9unMeltVvzy591JJ23gVU/bb3OgqJNHB2G6HUTIj6zhp\r\nAgWw8B3AnXtHyp/tkOETyFvItd3jdnlLdLTKKf/BxfiBwJHbIdCm/WxGAPPV\r\nMKfeYJtX0FchH+AYUKMNdY7XLvLAJuYfAUtC8ssR44zJVvkAyFFot8sWpfln\r\ndiIamuZjcB0u0KTMJmKU9NW3nGBTb0Wutff9AvnFmccVPkG4PMOO4rZ/1MW0\r\nPp7P2vNpj0zhWxYv1oOghknOV/BwSgpNHxyLhgP8Me7t4AVRJufxFRzqdV3i\r\nRIwnbBol+lAjEOcAhlR/lEK7jL4mxNLmcUIDQjRApRT8xra0TjK9Sy05c4ZJ\r\nj3DlUWsxxEtL8L1ty/2+tMyHUwNGQfxLiZHUN0B1fM35SWb/LmBfkgjZYzfm\r\nvdbFAn1qmYQrmo8QMQ5w2eTMT3jE9lR1h9wF/UCkk9tbOC54tGksCzBNXRVt\r\nG+l0t1Kk7G3W3Vw3xyNzsMReQbnF8iYVCCw=\r\n=8aX2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"7db57a9d912a713312c9f79acdfcde9e49b554d9","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-7db57a9d912a713312c9f79acdfcde9e49b554d9"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-7db57a9d912a713312c9f79acdfcde9e49b554d9_1670610260652_0.5644927625033878","host":"s3://npm-registry-packages"}},"0.0.0-next-907430527b638cb96704541b347715ec1dcc648b":{"name":"app-migrations","version":"0.0.0-next-907430527b638cb96704541b347715ec1dcc648b","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-907430527b638cb96704541b347715ec1dcc648b","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"9f16852c43cc2c11acef5819fedac260ab00e3f6","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-907430527b638cb96704541b347715ec1dcc648b.tgz","fileCount":6,"integrity":"sha512-WW6ojI0KHv9DvTw7KHX1IO8JMhrA4B8XNB1p6Cxt1kQUhZlgd8kL5yUBn7tAt06DCmNqmewKyv503gLPtKc2gg==","signatures":[{"sig":"MEUCIQCQPhHQRFkD+X7RQ9fRfdujns/p8QsHneoJPSKYxP3etQIgOpx4M3ICFc7whIQtqn4GreaEtzW0WCYLvZSu5k0nFMU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjl54SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVIQ/9EAaZ9S0dUHl5HQA1r4vcjwZpptYsugmkULtue2NHoTqBaeOS\r\nl65zhWH/GXb3MVbmHmreeLiV2Ao3ltCt9ZGRpssZML9yquLAI/ntn0CNO/hZ\r\nB7kESKYwMdItwH/CLtK0vgalb1saK6zIJOhrF3rO3hPIkl3kCFDzYJkVq7D5\r\nR0sO1yhTfTLP3wqnJhZyuUm0apm7HH3pG5pIrr9SbvKcZzy+jXCAcrS4Tyub\r\nIvKV1+FmQqOyJm+C5Cskbek4x1MC9rvbEmF9E3ZltE0ZInYrmcdqVLG8fX9K\r\n+RrEbNTMa5FOC4SPpJE21xGXcToRk5vwzoIAIViWftJmZnPHXGC9AET6qs+m\r\nHE4Gck4coJhlETDzJGkuOs2YLbO69LARAEB/ZMSOqVqDxlfGZMAWArNredrd\r\nE8qikOGNsUYZCB5x/6TrDcDSAvRIKN4it4h14EiCTrgvdnU2HnRSHoQCKSGv\r\nKn91RgneKU6MVeHR1RACsXasvOWPUzd/u16tHgHY4Dw3Gcs/rRi2cifufS5s\r\ngxgjCk3+/rHpyfGQUA9IGO347CXv9EMMOB9E1g5wdUpirYc3VfQqEoJZ+2aK\r\n1DoxjOGf8RzM+emBebRDbeKcC3JfVcABoQGjLkZtVL0uu+hkOn5VX7FSBTAu\r\n0uGzfh2P3PVAoGaCJROif6fzDPbAlv3RR/I=\r\n=tTTe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"907430527b638cb96704541b347715ec1dcc648b","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-907430527b638cb96704541b347715ec1dcc648b"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-907430527b638cb96704541b347715ec1dcc648b_1670880786487_0.9765417242301024","host":"s3://npm-registry-packages"}},"0.0.0-next-3888dd701d06bedcc2b043270c5dc626b9997eb0":{"name":"app-migrations","version":"0.0.0-next-3888dd701d06bedcc2b043270c5dc626b9997eb0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-3888dd701d06bedcc2b043270c5dc626b9997eb0","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"fb8b507eb3ea35f4adc88ab11c93e59aa40fce2a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-3888dd701d06bedcc2b043270c5dc626b9997eb0.tgz","fileCount":6,"integrity":"sha512-mDmh6b+HxyKsY4LXUmqG93kkLcEzORZ9vm9DGgCcU2+oG9W/ypW98l6XmLxh1DHXkQcxyeAWVhGm2VGNi232Aw==","signatures":[{"sig":"MEYCIQC266214C8x69d4mvSTm/BjdA0/2iRQ9omI4RsXHyp2sAIhAMMRKTd2rI0qv37iB/mfrCHwhsv+nHaX3QXCY9/o7KMv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjl59AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6uhAAmJZAf1TgPjhGwagUqt4VIppjcSrDDlbh5y0no348x3VgWmWG\r\nBP9cububwJ4vCGy5gfLz1T+Y9pb/qB434Gvf5+72MSprkIqLd1guuN6UBD6A\r\nWERmm4w+nrbfTMR5GA01kXTlBelCu5Et3zFHcTwFxlW23AhfISGKJUN/v4xv\r\nppydzNd2xELORUdVvn+koy45w7zTc2X1/Wuetr3RZ0dl7Tq/xoXtQGNQLjih\r\nX6jV6I8T3ixeRhY25bbOJJHQfyZn3zh1bo+YK3KzD51HURMOPPK1Ku7APzdk\r\nEhDlGNJJkxCTx/thOoxy/OM/4dIuiu75Bl3AUhf7bl3JZaZCIsQtppSgNxaA\r\naaIvGUiIURmTAW1ZpQDbtUN2EtnuXrR2jMMXnH39GTHIn+Iq+yi/AzQO97rU\r\nt6r6NWBAw948/CD/wJdAzo0SemZbsU5rjQtCK8+/blxhVR3t73G0s2vb+23O\r\nqw7UKQNZQ1qcgBbEFdAmsxuELC8352dAMFTUxSiqv/TLbPORauCNrRX0T/4m\r\n5zhc/K7RAordSxDV2QkQoSrTk4WGHjgONZOAGK5UYzlr5vOJqbcm3j/NnUw1\r\nNTO55YPu2x7WTPiqkd4b31MgoaRLWuLjhMXUnsIRCkSADzHv2K2D7MsAlhfk\r\nfNrU83xidXW3qUypOBP4XvhzM8ZDx4Mlu9c=\r\n=XFpP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"3888dd701d06bedcc2b043270c5dc626b9997eb0","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-3888dd701d06bedcc2b043270c5dc626b9997eb0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-3888dd701d06bedcc2b043270c5dc626b9997eb0_1670881088059_0.25116292832653264","host":"s3://npm-registry-packages"}},"0.0.0-next-dc4590988660016a4419dbc587f3182af207ed15":{"name":"app-migrations","version":"0.0.0-next-dc4590988660016a4419dbc587f3182af207ed15","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-dc4590988660016a4419dbc587f3182af207ed15","maintainers":[{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"f0d66edf9ebcc8dc73b2fa71b7b3c96f41650e9d","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-dc4590988660016a4419dbc587f3182af207ed15.tgz","fileCount":6,"integrity":"sha512-o73P5Gyqy4JE/cQjpmQl7Trf0q2xV4ApQTrXzwSB6brZaMgZZeS/H68rqtDdCvXXlCHtqNbFn7sPW6RKFeNerw==","signatures":[{"sig":"MEQCIB5YgGpj+GSrF6BUyAspET3s0nV0+Fxscmo3bVi5wJZfAiAKG20sTFqbAjfcFnAHHA2S5Vw9BQ0z7rNcjGQtnDVsjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmhXHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqixw//dtxVfogAG80frHgZJxb+imHYHFI0qgxWg+VQbDZI2jsfWsLn\r\n2BPf+5C/H+1cC3gz3UmFWS9JidXNG/DuwTm2cxrW8vuUQRiD9r+S2Pf8HWNH\r\n+CDhUtZcDi28fYJnv9qhr/aAzSBRYYbvoTqumiLtk9ODXJ1+DIJOdcc7j489\r\nM9erKl7pwzC8cvZZyZQ8e/KT5Wj9u3xkDENc2Si+rQPebqiRO+Gtizafa41Q\r\n0PcrHIxcY7tBFOye4x4WdQWpNIcxXJhQ6EUU3zgIUSB5aSEb8jaoYNg6cjvn\r\n+XeSsxek00fM1bL9ru1lgQMbAVoFHp/4qy3yd+rWWYNYM4q1SQWvogDpH6Ts\r\nj/03RZSoxSLjnAiJQDAgcjo8olRi2p+SbJdBjh19VaYhqiywFOhpAvrt2Eb1\r\npGGCcDAfOoDvYM90XY3Ax1hTSIe8JGownwAu4BppssL31XA1/acHf380PHzo\r\n64m5XdtlMPL6zmL3X9tHlMJZKO9w25NFr0L5bl4gMP2K9B/PoNwa7wO6NT8L\r\noAgsttVECrw/l8nzLH2VIEmFNKIraEHLAO9I0AbBNUzfjoj0kjUpZS0gPZfV\r\nCmybwjYRCftZluG9vCbS/XQatFsq9HkfTxtQyUeBlh3lY9EcSiSIOiwgaI7S\r\nRpSp4iXUu6fzTy1TyRV0hYZ515tXdgBAgKc=\r\n=DS0+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"dc4590988660016a4419dbc587f3182af207ed15","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-dc4590988660016a4419dbc587f3182af207ed15"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-dc4590988660016a4419dbc587f3182af207ed15_1671042502795_0.8615060373475381","host":"s3://npm-registry-packages"}},"0.0.0-next-384d29b0a9580a15a106637331eb1fe9f304acba":{"name":"app-migrations","version":"0.0.0-next-384d29b0a9580a15a106637331eb1fe9f304acba","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-384d29b0a9580a15a106637331eb1fe9f304acba","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d72f54817c1cad6cf826336e41d53e24c01db4f1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-384d29b0a9580a15a106637331eb1fe9f304acba.tgz","fileCount":6,"integrity":"sha512-fY9M447xyx8uxl6/yjCdPqo5Zlk5BbsAI7ldE2hzHUSXnqI9drrYVFmeow6xGZWUOChp5yo7FSC3UWSqeztPsQ==","signatures":[{"sig":"MEUCIHmuff8CzWgrLkS7wKNBml+8nHKnaRshkxi9NNsBRSCwAiEA+4wrvn8PnI7SOENqrnIuLw5G1dbk9Rpmf/W0GL8z1ZQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvtjRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpgjw//RTYs1LIL+N0yBkUcavrSsWZ7vqFJdW6pWfXXI1d0SULN15jT\r\nnxgev/8ie9r89I8bs6BpgOGuLK4vhN9xxA2iMzDuTznjOGQhAxBuk4jtNPkQ\r\ndGwljcBvNGZFB3uEYBjU9nj1j0XXL9j3BNiitTECjhtolArlPnRu5mjHjsIL\r\nH0IxTtPmK5rqP5ODjnNfL6eWPpoxpVadwt8/YARwwqy8tfoY8SwAeikOT1c7\r\nv9abUBvV808MALHXOJNELDhRPh9uODN5XIUI9lwkNu3SuzFojkqkPaZhbzC1\r\n2lUMvbygOxmTnmff98Tsl69VaU3eaZU884IMH6X/ANCHroBeDffr+4mljdJg\r\nDRcGkT9O3bK5JiecgNFbMHcDoa0tqUQPzGI5NDN919nUSuhzkJVPEj5jry+N\r\n7usDfjsGDKXuITXlReP67zhLfnkBqwfS1ZwxRZVp1FpG5XtImVmg6JIkc5u5\r\nJoPeFQgQnO2yTNovzhYt6DPLBQISAxGedSTBGzMbvqdrkL4708SXqMpAZyLn\r\nrvawfyXkW3JZke9LJJDCEmnnWh6qyQQ0x5hdW2CeItLT6kjcFaDytGKcuz2T\r\n+yFZD8GT0umym9x3U8tbgfUFaKGLK/BmCPPVlB8XJ99rhyTl+VuCkTmHve3+\r\n9dG2FtJAZtF8SlJJRtk2vg8wcQnir4is4/w=\r\n=eJ2A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"384d29b0a9580a15a106637331eb1fe9f304acba","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-384d29b0a9580a15a106637331eb1fe9f304acba"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-384d29b0a9580a15a106637331eb1fe9f304acba_1673451729212_0.6447171994209862","host":"s3://npm-registry-packages"}},"0.0.0-next-cbaa086f387b9c9b62aef9381297773a9794a200":{"name":"app-migrations","version":"0.0.0-next-cbaa086f387b9c9b62aef9381297773a9794a200","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-cbaa086f387b9c9b62aef9381297773a9794a200","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"04d335be6a238082f7fc25e0b85b67fe93846320","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-cbaa086f387b9c9b62aef9381297773a9794a200.tgz","fileCount":6,"integrity":"sha512-X6HNovUz5uaEJ/ylgmlb72NZleUrw+ivaysg/RRr8kMw4c/QE4+OBRM3YqKJs09KsI4eMIKXpe0vmPTclJ/NGQ==","signatures":[{"sig":"MEUCIQCpre5BYMa2IKfN03rfRgigY9Qt2o0CytPwY1RT9F4kXwIgNJQc+vn3QLJqTpPvnjGSdctYYbnqYUqsWp/dAwyTNFs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwXR5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmra9RAAknrhk36xkda9R1BuNgsUOwWKSOmb/2wC3T8EXHCW2t4LfdWb\r\n9gbcXt6B+Gw5mAC0F2VWaSxeKuOYhAPmUx8yp3cjmRWsBN5/z9kTWx/mdrCF\r\nAP+PeTQn4Aqjx4VbHJvXfpYCejdGcaC2FY3gLKuc4pJNyzHKvmD5VZhaPeR0\r\nn8b3hFwH62EzExp4echC28Gnfc80XKWwZ/fQ469/6q+BiHxiCvoFWj7Y+5Gc\r\ne0SLBv/+4PvxoR1jDb+J/q0okITRS3LnR+p2HGv2dHQV7B8x+LY7Rr9fh3td\r\nz6Fyd0025S77A7b+O55ZrTGYfeF8JIsxuax9T4mf5G2EuR5U9SBnBDlhYChj\r\nEk18uXgfZCRpdfMpxhNt64MqKv1nDF1q5YnDvDhgTA8GLu6Xw+aNIkAn7iiH\r\nX+yOrvfqwjZ2I8eIun8m29gyPSGeFOTt0sHj4tbKmYZQe3+/pmrka9OGPis2\r\nXyiGTzc/DEoaUL0ANLDze1xraEAurKnRqg5ZjZLou421RqEf/RQa5pgOq4V9\r\nPWqxZl64axGnTGvODOq3fnlmYgMEVi2eWIIHjT1HvujvcJz9xf8sG8kCm9wH\r\nApRuSQke5RKRs8KlX/0SOxU3r0dPvMoMJ2PFp0pDrZguBetGcKD5OfGQ0Qp8\r\niNGgE3Gj8r0vVNmnVZ2hDiKP1F628ohlBC0=\r\n=NGCI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"cbaa086f387b9c9b62aef9381297773a9794a200","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-cbaa086f387b9c9b62aef9381297773a9794a200"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-cbaa086f387b9c9b62aef9381297773a9794a200_1673622648980_0.017466401031736245","host":"s3://npm-registry-packages"}},"0.0.0-next-cb3371cdb3289f37402f09c6388269e88c943a81":{"name":"app-migrations","version":"0.0.0-next-cb3371cdb3289f37402f09c6388269e88c943a81","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-cb3371cdb3289f37402f09c6388269e88c943a81","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"8c35fb005cb919c24d4e137db8c6b9beca3b0e24","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-cb3371cdb3289f37402f09c6388269e88c943a81.tgz","fileCount":6,"integrity":"sha512-heqC1t9UhbFrBQ6r8wQwwCSoZkMVyKca3MNp56sbW71JuWTeDfGvO9PjGX4NwvsdyyM6RCo2OdTWYf6jnOWDng==","signatures":[{"sig":"MEUCIB4tVxJcrjDC+ZFQN9z2BcPW2ws9ee8cuHUZR1BdOdSjAiEArDQDzC/jiURYbfXYMeXQtwysTPl0txwd9rCQ+/73U9g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwZcdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmru2RAAmPvaI0EmCUvMPkHHfTLLGqz270ZwphJzT7pFtittuZZsB8br\r\nRXp0embztgvB1kLRChwLmY8qgG6ItTrNIK2fjA47Ham9PboLviZ2G/XDVwTP\r\n9XkrmMj6z5vm8wQBYsNgKkFxyKIqUax2PoayrcdzR/Akpzy5zSvfot+JB27e\r\nOdQQfBPFQueuiN0QVaUU6rQTsc8ToMCZnoQbNI2RqFctzkN38n4KaEilb4oj\r\nxY2Mq+WJ4jqaIlaKS6u62KfCC6MHiCY5T8RXluZw0kpAc0lBZ8o7LeUlONtQ\r\nUGn9op8LvLbzK2EInW/HB0Z4QSvsq5RHVJnsSEcF659FG/EX0zY6XM05PHPo\r\nJrO8Z1S4600Kw9r9rAIgAa/rpzE0O4GPUzF82XRF8/ECJ7OMrrmO5ODR3QCy\r\nINguYnIb9LPnz54/YhQK5dvahV/trFfueSDDqH+FIY6Pqgne3mZTrcksi5f0\r\n23UCyPhyu5+m9nVcvEYArbA4j4ffMTwd25zpwdXDyEoH0t+C0+CK4DuNLiz1\r\nMhj5sXSYKnuHWIKKu6jl/prAQYqE0cDFDfmuZJuyxrbc6ubVMHqKI+fglTRk\r\ncyJmSLZsxhIg1fASGZ78Yo8UIyqPYwnKcT+xey+s5OAO2Xq5OpWuHKX4HQu6\r\n2cjmLd35FGvO4iWh2PQNltNVdDc4OD0Yd7U=\r\n=VTg+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"cb3371cdb3289f37402f09c6388269e88c943a81","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-cb3371cdb3289f37402f09c6388269e88c943a81"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-cb3371cdb3289f37402f09c6388269e88c943a81_1673631517397_0.6220239402014631","host":"s3://npm-registry-packages"}},"0.0.0-next-f6dcd616f47e1d3843402c3e0f47d541edec53f3":{"name":"app-migrations","version":"0.0.0-next-f6dcd616f47e1d3843402c3e0f47d541edec53f3","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-f6dcd616f47e1d3843402c3e0f47d541edec53f3","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"f38d5df799ca37df479b157bd3016620682d857b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-f6dcd616f47e1d3843402c3e0f47d541edec53f3.tgz","fileCount":6,"integrity":"sha512-QRJ5OsUDYJr9OoL9Qx492+kucy/JGclDiG5T72P6VQzULQKYGlJghd7DBf+RaNkGY1VG5a17dHPy/Iv8PNqYKg==","signatures":[{"sig":"MEUCIEzJ9CRVWv7H5ievbKOC1y/ccXhhbtkjiyCcXC93dP+QAiEAoEuh8AwZuG8YHeOPpMUv8eZcqoinx1cPN5poZ1TpnVU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwwcdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkWg/+OFEhabDW8ljIxJnT74DyB7cvgKTxr33oXr3+sarQjVaWrzr3\r\nbcVdVlHrUYrPp8/S5EZBhR7nbzpwqA2qyvEt49LqmX8VeCttmtE9pXYsfdOi\r\noNWK/4l77bqOX/NHYSI5AwAJ6zdxCrphD7cvcIz5Bguz74eVwjypzdHP8h9h\r\nmbBz+uAuVlCVKmLMfYw9+RJSvLdzwWyMU4eGZflQd8oMpdxfqa7gg5WoPi2g\r\nKWh9wyAToLnTSaQXQ5SytkatPmffHafsQJyI+HhvNOylqlyfLtmMygJiQjME\r\njWVNvr3epwjRvST0wEIjxeB8zYxrHkf8ED3zsLqbQe5TI+/YdIY93KAx7WiX\r\nc4d66bAiQ4olcuWIojBF0QyMNvVMkf3odDS2XKJEta08XpptO9PkFK0NKSRV\r\n5lNJl1pODMMROPhQ0/IFNBMZzIczJn7nG2X78BWEeNyT/UsN0IarCYT7zFtU\r\nQWl1s+WEtEkNsWQr1v3WGC9d9JAW4fVWPKjUBzgnFZH9NY1754bTj2VZYrHL\r\nHXwQjGYx0qppCOcqbDVUTBAJ3QvSBPS0lx5bcWfwb8r8TOIE5uYUq6BNiPQ9\r\nOQsg3heCz4N2OngWO+7qJddQ1MEDHjMHBpWS8qNYUVJzMYv/FCRELFh4XZNz\r\nNAVUeAZhAP5tSHiG2ixmi3rubk7ePQRxvHo=\r\n=rqAe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"f6dcd616f47e1d3843402c3e0f47d541edec53f3","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-f6dcd616f47e1d3843402c3e0f47d541edec53f3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-f6dcd616f47e1d3843402c3e0f47d541edec53f3_1673725724950_0.09579524567945774","host":"s3://npm-registry-packages"}},"0.0.0-next-6900ac52ffc5e2e7ef959752bc33235dc12946e4":{"name":"app-migrations","version":"0.0.0-next-6900ac52ffc5e2e7ef959752bc33235dc12946e4","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-6900ac52ffc5e2e7ef959752bc33235dc12946e4","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"0ed85c2efd89520a1eb751e0786fea50fe66b3ca","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-6900ac52ffc5e2e7ef959752bc33235dc12946e4.tgz","fileCount":6,"integrity":"sha512-LJkH+NIdQW76qjdToAVuTvyO4PKGJ3Q12z5j/NnhCFJ6rqj8xXcmY/GF8v6UiUQRNAolp7jkdfY2t4SMZaVDog==","signatures":[{"sig":"MEYCIQCU09D+ZsnXij6CTiULageb6YJsMCyqPjSIQ6Dphm8KFQIhAJdGuLiNx79YgA75+pDodL17nFXGSNo6qce5g9EVkYBm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxWJtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBzg//Q/C8Uajap6qZyfZcqIRnbGcgZsk8k7xbKQp3fd/oOX1euPpz\r\n+Zdn9hofzT0Zy3bpibmYdBrxbIDiM+pnIGKQt/FQ8dRAvpuG3SyDPkeI+nLo\r\nUct2fGcURAOjGBYEh2QZzUVxuOwX1zaZDj95dKBN6VXySXxFK/1myJq6+HBz\r\n51G2rr7qc/jtELzLxbXBNIDxopC+sfvugs8ZVBVIWz4w4jChf9QIwAsxXl2C\r\n+j78tj2kTdmpBgVAdVeVscXnl00i4RZTGPO9Ya5p96DdMR5mcp7rBt+olqnz\r\nzxKUFEpF8zMRVwjHQTINoJ64LTiT0ZHMpi4/08hFNmRF3QlaVQGm2+XLwxoa\r\naUKgieHSfkN7nsJHEGH3/oE1cQypYFeIdhlEmBQhLHZp9NAZGwSIy6tOCFCV\r\nfe9m7l+dyXF20BNwbQyG3hq4ZC9gABT0++9/WGGJzmDOGgMUO5SBcpZbv1km\r\nl9QQ+xsJfkpo6pTFU4E0+NQL3X+RLCOclrrodLnIZ3XKzKDybY5CwWgULY0N\r\nk3CrCq9pRTypKDCFKosr+iiMOoNexLQAwIFhoTO4NWV6/WcYFFV8sgAuAP7n\r\nK3s2HrfDe9qPgo2RSLM/fNUqlBmNBDLDaebPkryQqQ0OC+OdzRTMdiVCVvFh\r\nv0e0H58+K1iCTsDnEw59R0kYrHoJr1AXbIY=\r\n=Cmiz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"6900ac52ffc5e2e7ef959752bc33235dc12946e4","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-6900ac52ffc5e2e7ef959752bc33235dc12946e4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-6900ac52ffc5e2e7ef959752bc33235dc12946e4_1673880173059_0.44163851786854313","host":"s3://npm-registry-packages"}},"0.0.0-next-d09be9dbbff785d6692110b819e06b0186bd3ac7":{"name":"app-migrations","version":"0.0.0-next-d09be9dbbff785d6692110b819e06b0186bd3ac7","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-d09be9dbbff785d6692110b819e06b0186bd3ac7","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b5c4459d94c84bc2b80ee2d4cc19d7cb1a005923","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-d09be9dbbff785d6692110b819e06b0186bd3ac7.tgz","fileCount":6,"integrity":"sha512-qEIx8yY4CIYl9kOwpuNjRrkwMczDwauK3ND+L0Bns5lSPyf7hWTPnHOilMMSVyOb1DEz9oS54FnP8+BO60BMmA==","signatures":[{"sig":"MEQCIEuKCuMWzj+GWSywLYx/L+BSJqUujuEPAz16qiYyD32NAiBuZNuVky70438qtEbZ/tBJbc8S9jlkiLjQE49KY39mvQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxcjCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnLg/9EGJEJcqSaOcXP/WbF4bc8nJ5+wIoEHWt+k5xtVXlaYBWL/LJ\r\n/GBqUbDo/sq1HdL1SYMEWT5I3UzPthzKSP/KDxRO70vrCOrJsG4gOAC7qXwV\r\nKuO+eOcy2W8X7NuAcyOtlv36lSDup1BOP0QZxdMEwpIg4bpsY716Z2+PsBp7\r\nYaMGxtoSyTptOl2uKm6MCTZkzwwa4RBEswG0EQ7Tacmx4yWhYJQTCqjmhp5n\r\n6TRO/OBj4QPXKSnvvG7yAiIsXJZc2bEBjogCkMfV5Cyft5JD7Aif8bSLKVWO\r\n3Z7tfsqpKCx7sdRXFWd7m71iX/TaKdOdmuga79F0xdIJOZWJ8DnNeVldWSc8\r\n9YKqeIFaLB0O3xO4s7XtCmCjhidoXBUR/zUhAkqVawg8afujH9VGX0IOVPM2\r\nOmE1lw6FI9Mc2IQqpLdAiFzS9cRkdL8ROTvCwDRGV8LCpsulb+gf51w5Pugy\r\npJ+yJcZCelhRI5MokS9lbIKVSHdLTil2BWPBGx+9sNxBg8zikQUvf9IVCr6L\r\nODt4ksIBFFLNeDX9cbxy+cf+tWFwF8XewBgoXXFtPq7a+FZ8XMqdMKz3Uxfs\r\nExr0MS8YS0jmJ4tUNNuPViO0vYBnpXSRMReXBDYyJ1nUMV+63b712UkUPuew\r\ndE1BeZkuWBF1Y1TGH3zKwAlW9fz+6AQdk1g=\r\n=gnMm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"d09be9dbbff785d6692110b819e06b0186bd3ac7","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-d09be9dbbff785d6692110b819e06b0186bd3ac7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-d09be9dbbff785d6692110b819e06b0186bd3ac7_1673906370126_0.8365352463028826","host":"s3://npm-registry-packages"}},"0.0.0-next-b72d7d0f94c6cd6b83966a08494549408ed56560":{"name":"app-migrations","version":"0.0.0-next-b72d7d0f94c6cd6b83966a08494549408ed56560","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-b72d7d0f94c6cd6b83966a08494549408ed56560","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"9816b17d7ed7cbfa52c8a095eec5c7084c462c61","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-b72d7d0f94c6cd6b83966a08494549408ed56560.tgz","fileCount":6,"integrity":"sha512-sBQqcFgensnXx2OWkyKPjN2hczthH+fchEnbNr1Ac7RCW+fw8VAn8z8kueDIb55lKnHiv5MEXrvDmLEV5Lw4Ag==","signatures":[{"sig":"MEQCICbkC6DdQ8kVVNq6yRgIP3m/G+3w+7hdMi9J7AmlZb9dAiABq64HXDIhg3o/EG6RLoRNur7+YUler5jN98Jit10Cvw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyq/4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpboA/+MNF2xbYOCzOxDnxpv+Nk/toM9gGBSaXnKU71ScK2k87RI0aL\r\nfM7pZOCBIpukRmhWNN6JMF8bR/mClVzSUqQvVUcgyDWRKRoVs/ByN+4qzcIS\r\nHGBO60ZPYryA2DNGPBYR8NbxHBPNohDJA3Jg0m2ozRXOav4pU7xoUat7ql6+\r\nsfbyWZB/ygeg5B+bvLXd01FW88RhENxrnB3tQdCGT/oojgxbbZ/AWroHuPyX\r\nB8SDMsAC+8cnPl1cYlja2q10gVWLb7aaCxtK2N4uVYTC0oiqa2cO9YptuO+D\r\nEW2HjOFp5uZqw/3sdDJbNUu4Q/n9RdszyESVYlRFYt/+gcxj0SrmnJ4/o+ws\r\n7dIrLoBV+sakuhnaQ71e3nmwmss9kd9gif+Se0xnG5xDaVYgkr3d/O7oMOwo\r\nsyTWmXVLnbp+oWR0y5kMqYRQfTAbrJ1SFf1h89wiOofUhRGyI0Czel9up/l2\r\nyI6vcUAOxzpy/EoC7TVqlS8uNTFydOH6OzdD1U5glEcBhLLLRlDR1h2j4iav\r\nW52qwp4Lfo+Oi/04zhkH+/O80VycescFNutx0Ry/fIdtpvJI7y0ovvfVZ8hG\r\noMks2BDnAcwaOVmWJ+S1RgLDHnwjC87rkPr3ma1VpLxEDQe6N6q5XzUOsOcz\r\nVqC80J5g7iqcr611EN04v023ABh/uxjcvZM=\r\n=bWlh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"b72d7d0f94c6cd6b83966a08494549408ed56560","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-b72d7d0f94c6cd6b83966a08494549408ed56560"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-b72d7d0f94c6cd6b83966a08494549408ed56560_1674227704391_0.24729737777603278","host":"s3://npm-registry-packages"}},"0.0.0-next-288585a9b69e86c5bb1bfcf4b6df1f5db45ad7bf":{"name":"app-migrations","version":"0.0.0-next-288585a9b69e86c5bb1bfcf4b6df1f5db45ad7bf","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-288585a9b69e86c5bb1bfcf4b6df1f5db45ad7bf","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"f0890951ab916078bcb1fbe5225cc1a0e7d9845b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-288585a9b69e86c5bb1bfcf4b6df1f5db45ad7bf.tgz","fileCount":6,"integrity":"sha512-hfUsZTBmADdAoeBokbkR12I9ctEKcxPlkctFDP6uFbmKWyg77fjYWSATUUkp9+iOKeziDvHqzZJ9ONL3Vyo9NQ==","signatures":[{"sig":"MEUCIEIkhlSunLNjnDz/bKFnq+xPKox6FRw9zSkHQWfe0Ua5AiEA8tPuht69Q4aDtFXru63FcY88mAwdHU69KoEF8ArkDOo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0eRbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopAhAAgNBQShr+26rgnLxe0+CQwKAB2xpUQXXksjPLx4mZhYUwGB41\r\nUuHqHO5BMoO2Fo8dxbDG4mQsJvjOa/fviJpIdqIQetwe8XZ+daOy7f1J2tql\r\nqf/11nUwmyKJ5ZxO7fGhRJAWZFzilD8ldY34pVbZaqGNCFdpyPxf9a9BqjLy\r\nnyoOIYHsQwUa7C3tvtfp8KpJWr3O4QpqeUkC8VK9xjfF3LYP8/inXwq502wq\r\n5gtx+g93HscoB/X6ZO2tfCnH2UHKTydebLNUTv0XZvtsAB8ttqJHmrB+73E1\r\nB5/iOeFLO5SLZ2onTs0czL+YaRRKxkdDgjfBENqCd4f0RzcZl+sDIi8DNFMu\r\n7KDQGMDZxbqLP22A783dj6ot9mD2XagjZ7Eyqvv2OHPVf4xLwpmEO3NKAnOZ\r\nK89/DRzHjM8WvXhTPZzlrdEbKKzPN5aoYSZYd/0r4pfe3N1+xYkUTP87vjD5\r\nD4FL2ykFwAIvbBPXSpCe9dY2DGc5dN0BdK/YrMg6OwD6MNTvSBdgOn+0vll8\r\n4UFp1XPAWwG7jMPlDGzI6P8+CdPJVpEcUdeEYEiZ9W+Rgs1i/CuB2TYLPz/n\r\nFhb8Bns2glzlVvaLcx0o2tnqNkZ6QMdaXG8AhBxL+r7t7xOiR5/2C0Y6+LJH\r\nmUeMfYVlz5HzB+xw+m/s4BqPXhET2Nlu5VY=\r\n=jKkj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"288585a9b69e86c5bb1bfcf4b6df1f5db45ad7bf","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-288585a9b69e86c5bb1bfcf4b6df1f5db45ad7bf"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-288585a9b69e86c5bb1bfcf4b6df1f5db45ad7bf_1674699867472_0.41202994967695084","host":"s3://npm-registry-packages"}},"0.0.0-next-9c2b4b0b01c61fc3051beeb16fa883130e745d9b":{"name":"app-migrations","version":"0.0.0-next-9c2b4b0b01c61fc3051beeb16fa883130e745d9b","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9c2b4b0b01c61fc3051beeb16fa883130e745d9b","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b2370c77c5b2b536c6ca0da1cceafd1a53807603","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9c2b4b0b01c61fc3051beeb16fa883130e745d9b.tgz","fileCount":6,"integrity":"sha512-yCBWHon0qJgS1/5fxisqd7spNnxh+LtBeEn2WStM46JfmsLaLrNZtb6seBIsTizIKaHq2ul+vPmNpd5+1mAwpw==","signatures":[{"sig":"MEUCIQCK8zYK/BYaT5mamRR4035ThcHs/Yu7fJPCb14z5CKiGQIgaaLgLXmkVMOonILAL/FLJt7eK9zrFFWayfDs5PjIWX0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2zffACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUJQ/+PrMvpy39HHXrTZY38dJXmQ2bmXwZa40688ni2RAvMkZSTwIh\r\nmFZciG0HL2cyn4Cf4uK7P/1/Hqw1kTYgNypJ9wC+rEEP/01L49ZmFk03GmKF\r\nxcicSM29U2sAy/3FqEQemgL0otx8WkAuiqCc43fbJMh8fBJYHOS2E/Lb3UDs\r\n3OnKvGI6EtrWXVpo5KlhOORqCErcxSE5o2KTworM+YAQftqrjKyIOzzqD/4M\r\nBSq7JvMJwaSlMErmc+vXuBbJDBVbz9TVd3kM32S9uX8Hkm44PnWg/hy3KT1s\r\nxNdIaKa53LMuComKhrodIlSkzaUFbBzRsqu7G0sB/RmPtF78vPzu6O7OMjkE\r\nbEJymj53Z676dhYKBxzEgfmjlm3OqsLJ/gfzwRPt0gpECVm5l/KB4qRUhhnO\r\nF68TisKk99em+FqrKDWKDflxO+ORtA4VbMjdDaMpuOTqysmYKjRk122vceqd\r\n9ymorKJMu0mC5TWxIFw2+E7GqQ+CMy/kZ4h5Bq3DxG59f6aQif/lhxdtDFXk\r\nGEPrrTi+OliUrUcBLvSjnbOxjmsWQ15bGLFSDPImXqURbHI7QuQSW8ddV5AX\r\ncWzIo2DbYqwSy0cugw2lpBNrA0WEMSuhZPJKBwaqFwnT1bVA2EFv55u4cNSN\r\nO0Mc2BMAQfNkS9ZlL7D18RTYO1F9azR8vtA=\r\n=mjUP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9c2b4b0b01c61fc3051beeb16fa883130e745d9b","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-9c2b4b0b01c61fc3051beeb16fa883130e745d9b"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9c2b4b0b01c61fc3051beeb16fa883130e745d9b_1675311070867_0.19408786417056878","host":"s3://npm-registry-packages"}},"3.1.2":{"name":"app-migrations","version":"3.1.2","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.2","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ecbf55d3b22666b08fb5c8c757cb701ab03bb0ab","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.2.tgz","fileCount":6,"integrity":"sha512-iqGRuxzVhRQmfvNLE1hD+f67yhhFytQ+ipqcR/4Wg5s1MUISzYIcHMDR6kNiFGkzM1JtrlQigpf6n+OHRL32JQ==","signatures":[{"sig":"MEUCIQDdQIkMb24VtzecAIGD0NU1UtnTITXRrplL/TrffM+dbgIgBM+FV4Pv2/yudEZNeWTgB5vWzjyOCbxymJtMNnqchZ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj24Q2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobzA/7Bn5c71UE87Ayd+SYNkIXg3NsmioyeutBlTPuxryTTgOt7haF\r\niCzk/o4nDS0lXIj+qpjfhfuVbwLAv1jFD2E2A58uBIWONi2wtFnYCdXqishU\r\nPJTLGzUURV+H23TIG7S/VhajCnOb/pl19qShU7B5ai7TN/y9qBjrqcU6Rb8p\r\nMxzzZOu9iLkW/QLtCkNR5KX5pWGMohoflRLbrO4RSOsddfsdZy9B0edd9zpP\r\nWwlg9Nbd0f+zX2ufmX0OYsZvvaCmfSOXCThX3jTQUhuJr5OiwWTzYTMx5ty3\r\n9brH5yZNowB9x20r9tD8x9D5hsQiyurUk/9FkLcFrL94bAxXJ1DIlU1tzguG\r\nWzl+wI0vvmv1BpQqNqCYd0BzJ/KezTASdDqxkyvMd2bLsptqQ8fwENwFuJHA\r\nuPXJEyt2XbvvCfCblY95h+/l8lD8ts4JAphc6D8UEJ54pWlQIxJ+Cc6dA+Qs\r\niVYJooEV9vwLj2ft+6DwSXaj8hCl3AIa9ZAA2sBtsYrVEYF9gxSwHXiFXMVc\r\njvYsNSKF9PDcNEp7ck7B+ANLzrp8uNeGwKx6O1F26l1W6899p7gkqXz0uVmJ\r\naZDCxtyBfzBru+35e+JJpYY4Xozmg36WHZVGosU45JjBm9I4pUDR0aNTRmuu\r\nfsqF8oTzZVfRTGqjhV2gC4IvcijbbsnESV8=\r\n=lhLm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"cfe9a829fd77fc84e090f2c7b38663167071ebc5","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.19.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.2_1675330614655_0.8228355178896964","host":"s3://npm-registry-packages"}},"0.0.0-next-cfe9a829fd77fc84e090f2c7b38663167071ebc5":{"name":"app-migrations","version":"0.0.0-next-cfe9a829fd77fc84e090f2c7b38663167071ebc5","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-cfe9a829fd77fc84e090f2c7b38663167071ebc5","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"89830ed1ddc9686a49621b6a92490feaa3277583","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-cfe9a829fd77fc84e090f2c7b38663167071ebc5.tgz","fileCount":6,"integrity":"sha512-SUXPq2SmrwXOB5D2yi/+NwltTv1Y7NPxwtiNMxzpnWeZP1m9BtAx5zaLtX8vJRvpwPel17SJ9r6+2JWWD0Ky7A==","signatures":[{"sig":"MEYCIQCF8HJ+zQzAoWYWMuoxKU/d6mIp+89NawItEAdfmGNoaAIhAJGEzMWOMRLwQOu5dccurKF0428tnVGvFr9gItOWvvBo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3DwhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfEA/8CGTDKu9A8Gz0fpi49p3wRDV1lTiL2XWaaOwmr8hql3bIOtRd\r\nepjnn3UzSL2Crtv+hHG7TK8/GafpTpyjJwyGd97B7NPuoKZApezNG/nuGAvf\r\nH5x9aQVIm2cDk+MDLvC7dkz4tp/3zDdUJ7z7qjVKvIh3j1ihdqRA/MDcOd76\r\nRIaiqcvUlmhOqcgGfPsK0fge+zZz8P30UZ/dk27+zwaJknsJpGB2bfv2axaQ\r\nO1V3d4jw69qbW0XaAaLDW8Xm5qJNLO8wDybeEiBQAdikeZVJKuigNYchpK6M\r\nDCM3XEed9BMefiLK+/P7if00yc2tmfh5QzxT0N75k3qT94YD9JRhSTDIfCbj\r\n+5dxAjp7d75haJlNUNnycK4fvMMcnQJURMWWF5KDoIDhqSN2uanneClT03Bp\r\nghGbXKXI0CxlOJf9nCtZqSieCnVAUUyLDLAibQgVcP+l7tIRInROBVkyMFCQ\r\nQMO7DpjOBiUJb7Nv6FHdMrDmPpwUK4S4J3AvCqzZ6o9XH4HdtxlwkR8I0nLT\r\nGsdGz1LKtarLXiiJ5RT0m5rrqzQiAEhXz7A44bOvylKCW2advOTXpt/NV2qK\r\nsn12rkUACBNRoQoVcpq0EjZQkB6m4SPTyBFbpkaoKNV7h7IKiTCejnP/gI6E\r\nwxc6jUr21n/arKJ8OTDTkV4Onmr1YsTd6e8=\r\n=iVmK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"cfe9a829fd77fc84e090f2c7b38663167071ebc5","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-cfe9a829fd77fc84e090f2c7b38663167071ebc5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-cfe9a829fd77fc84e090f2c7b38663167071ebc5_1675377697619_0.9351102064546497","host":"s3://npm-registry-packages"}},"0.0.0-next-6e4c984eb458cbfc675ec138ae979303ef32bcb5":{"name":"app-migrations","version":"0.0.0-next-6e4c984eb458cbfc675ec138ae979303ef32bcb5","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-6e4c984eb458cbfc675ec138ae979303ef32bcb5","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"c201c25fbf4e19f27535478057fb5d429836a453","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-6e4c984eb458cbfc675ec138ae979303ef32bcb5.tgz","fileCount":6,"integrity":"sha512-CfUxn1zzj9d+lDiI1tpG81KZsNixXZ4l9gabZo/EVlz7y7+0FlhOGf/9m9g9JhNrMFV9Eg5GO6RtwtRnLShzeQ==","signatures":[{"sig":"MEUCIQDVIeuWhl+Bpjz38rtSjWERZVJX+YyAFaP19YxzHc5TKQIgRHwjbYZqJ0Ts225RugzJPINqIt3B7px9tJipapkKeBU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3EZLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeXQ//aD6p2FykQQ0QX060D1jvm1xx+5kbMgwzNp2jOeM/BDhw+f7G\r\nee60eHQZHKCCeQtv/0z2hIxJ+CfaJsYDtXxUTKhZPvQ19AfmNWclihtpg4Q6\r\nZJomEzguLr7BVyqZMkHULGbg3jNZHOB1QYic1y2gcSK1k5pmtDEgKUkC4xpT\r\n2f7jxuVHbYsevS4GZ+NchApv7cL3xQJU90X82XyckkzdpgFtLXm8jQXemQ4v\r\nwi0vM1fr4nma3q6XuwNgekAQ1buRSDIWKGdXjMx9+wygQ+m/zbLkipXFtGZw\r\nSHaVmAk2UH4hrUjOy/2QJG6HiqnDXXKFW79k5y5ffQHU0hNiaVgcXZuoGYnJ\r\nG5c9XdrDGDy2YtD8agutKHxA2jOCCJmoosFRP9Fs72E29vx3Pw96gfTiebLO\r\nLsITNxLRcPugUG7NHJSx3aBvFmbCF3kHJ3cLt1J9d47Kh3+yg87KkSXR+p2T\r\nPzG9cLHTrDA7z07eKWXSkPHtgdQM7MnyRYnlw6Du+liUosf90LJcxTzL466j\r\npPNw1UVWl4jNTOVVr3gCDU/dAHMO+SGWhyqCjiBflfVoa5079R6QZeNjjot2\r\nWzx5aboUK++wBszublaqQHbSK6m5SrsvJrJTkghq1aIWlbJceZyabB7Duh8e\r\nsh8u4aaKQbChJzupirNKiVX3ZlC/HXQf8qY=\r\n=Dv9H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"6e4c984eb458cbfc675ec138ae979303ef32bcb5","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-6e4c984eb458cbfc675ec138ae979303ef32bcb5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-6e4c984eb458cbfc675ec138ae979303ef32bcb5_1675380299547_0.8339764633016244","host":"s3://npm-registry-packages"}},"0.0.0-next-1638fa3a4f457428151ba0ef06b33cfc4a77c896":{"name":"app-migrations","version":"0.0.0-next-1638fa3a4f457428151ba0ef06b33cfc4a77c896","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1638fa3a4f457428151ba0ef06b33cfc4a77c896","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"44bef4f401ef27d97054ed6f5f47f98a743267fa","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1638fa3a4f457428151ba0ef06b33cfc4a77c896.tgz","fileCount":6,"integrity":"sha512-4TXI7jJgZih8niBQ4HQozlHGhrO0y9VbpQ67L8bwYPfQH1A2ZIUx7JZ83HyF4myE8qydPpAb+hxuDR7v63CGAg==","signatures":[{"sig":"MEUCIGI+34BiWULe22H8et4L2q6h7Rn4ItfXNuZvJMW3w/9lAiEA7HPvmFPwcs/0P1DriaFou1GsLfnffePPNeXs6Ou+AfA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3obPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpX3A/+Igp6b6blRPXHiWHHh/XyWPqZWpuMl4tBmaJJLwt6zPRtw3xN\r\nyaNcEQUfhbP714VGXf7P7grLrYVjBC43WT/qkuHi1xLPQiV8tKkgG2ANRl2/\r\n+68pbzhHgAtAPetrLHkNjyTaohFoVhXDhmW2MFgR1Dm4qIdZzD++1tGqDfsZ\r\n4XWvaw8LzgDcKHlKVLYbvsewCFzk0I1VGuqP5SWMT/uqosFKAdR/JYKIai4Z\r\nd1gwtmhv96dcHpxJY6jiL5JRU1pGrtnbfodEvbuyqWbK+xV6SXJ1ZbZ3sHdB\r\nxnfmivPLYyHh94cG7XIuO89ce1ld+jWYSSROShrXjk28HM2EkTnfhP7iBuKM\r\n11vDC6l7FuIHUGHvL9jRaKGq6V2jaJ4vZqeVZC5x0BVZf7mAr5ilmvYSlRyP\r\n2ueAwF50QxpFNGKrPrHNwmBAn8HR5HAqjkdhCboTj3XPhihjZ/+0SMdUn64b\r\nqNyPSiKf66CerYmIXApDLMIKfvdipMtx2AEeYAD8FSWvVwCSO+TbM++SvD+7\r\nAvzaH2OK65jiGznhY2+DOdOvaZr23tlQQaPTyH1P3JNYCgKr7XS1I7IzIJzn\r\nShWeOk3qvmQufE6qUEDunIvTC09HZpZCXF6evQblnUMKm01tdrSzoNdH7InB\r\nwyFF201FmvbXlYGPL9JocsyruwMA/PQGVsM=\r\n=uJ9F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1638fa3a4f457428151ba0ef06b33cfc4a77c896","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-1638fa3a4f457428151ba0ef06b33cfc4a77c896"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1638fa3a4f457428151ba0ef06b33cfc4a77c896_1675527887565_0.7476049522389274","host":"s3://npm-registry-packages"}},"0.0.0-next-3e67b8063fbcd84b0bfd6451e2568968fbdba25a":{"name":"app-migrations","version":"0.0.0-next-3e67b8063fbcd84b0bfd6451e2568968fbdba25a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-3e67b8063fbcd84b0bfd6451e2568968fbdba25a","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"9b6fb972fcffaffe33a10fa9f7f2eb99832da8a4","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-3e67b8063fbcd84b0bfd6451e2568968fbdba25a.tgz","fileCount":6,"integrity":"sha512-UN81GZVwlnRT/C5j6yhwfsNXvizNSFmjWgweuz/ysWJlOG8rsOYvxcNbdAruIvkr8w2ObVYjcC3VepBc6wRBPA==","signatures":[{"sig":"MEYCIQDoXdRWSn5DoZH8ooAXkjxwNlrga+TKKj5R3H6VIniXvQIhAIZ3/XVQaJBqPURK1THncmcnIh1JueTwiSXW5eUPv9HB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4WRbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrxcg/+JSUlIAFAF+oM+gyzWVmqNyMBLtGHXVwrePMgXfSFPZivkFNY\r\nIpWOxzf+Z97K/dFI7WdZupIb0WvMlUt6IERGiF4SuCNxc32ebkM07J1BZc7m\r\nhTdlbw5Gc5ujr1MvCHw5IItGohZ4kLf0XhXzxGcyPnToH8/pPyjj5OqH1ItX\r\ntGJe7EAwIPTrVhJtVK6l/5X/AgQEHJbEzMAz498Qr3E9mBs1RW3mvRiDP/C/\r\npzIq3GRJ0rYm8mxGgHiiq0OQ43RZDNIxesKUMt3bHIj5Jmp05NpnXT6b+a7r\r\n0cgYSYZ0Mf91szKzXXMsMitfvpDxH5V+4I9lli+7rTKSzk+8sBJO0B8ghdqE\r\nsT9h9O5lC85zI2t4CfE6WXoS9MSZ71tTdPigpwpBpq6CkhmudP4PXybC6ng8\r\n8pG6U92oeVZwrUAPmaLsFCv+sbTiC5J9hZJ0cTCg9YsgpJRD44KnuPEjpSk1\r\n/UmCWYNDodIM/0o3NQQVEVzvQqcqdjxHjhCIeTyt4wJ74AJtF3/h9kkRcoTK\r\nr637bS6FkcGj2JDi2Cr1gCmgroIxq/mv79XgdmXRSOXokeTnoS2ukFTfyXsK\r\nBcYjqiz1dx+jsUDwgq7yFczQTp7h9iRrX5WzR3+1QQbVuAU6OiDSWI/+15WB\r\nWQxUdzFE7SH4cuOZBEPjgIwMOjxiJlvRMB8=\r\n=77zb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"3e67b8063fbcd84b0bfd6451e2568968fbdba25a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-3e67b8063fbcd84b0bfd6451e2568968fbdba25a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-3e67b8063fbcd84b0bfd6451e2568968fbdba25a_1675715675683_0.10561442329893245","host":"s3://npm-registry-packages"}},"0.0.0-next-920407d9fa8e9bc60bfc2577492e5be59254432e":{"name":"app-migrations","version":"0.0.0-next-920407d9fa8e9bc60bfc2577492e5be59254432e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-920407d9fa8e9bc60bfc2577492e5be59254432e","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"60684f724191e23d0c6c2a5fe4e50cfb3d4d24c0","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-920407d9fa8e9bc60bfc2577492e5be59254432e.tgz","fileCount":6,"integrity":"sha512-JqYlXrHt5K6SA7+So+OKah11XOMLe7O4WXtm8/A7BtfFlAhDBi4ijFi7LKOMn595nYQRMps0UdyZUAJCoOCEcg==","signatures":[{"sig":"MEUCIG/Cv+6zEGjIjMSNPmRKYJW1MzQ8dJ6LTH0X4nKvEHxzAiEA8LJVHJe24fOORnGXO9+KGiAfX7DdqOsfH4jjSBaSxh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4WSGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3hQ/+LLfU4zbS+GoAigsRej48Lwhcqmf+Bb2/ONkdicBQRRB8uRGt\r\nQ5Eb6huIDbWTpc+NRuH1YW6MUStvPOQE93N9ehjZb1HDWNtvi6tLDiXm4BJ4\r\ncwYS1YWnv+MFo33/KtoBrmVbObjH8OA7Zg+iH7co/CEriPDHJpUK9WWdMNBH\r\nt2isdOaZeyxJh51u0EbtxIkp3dYQs7kC9GWuNI5eoFFt4pX0FGHq8LxZCcfz\r\nrxOMVZQCaJo/kt+OiCl1r1ekVqYJ8XwuDe9j+oeTdoE5v87UzxcG8FrVwbcH\r\nGvZ7kAqsdgeeVFjbhJXBEz5cP0sdBskGSh+8AVZOWkFEliXtMvSqAo4Tn4+h\r\nMKDhblEvAWQN4KiYiUlWirfhgSr6855WGytyWAlSE21YP/7bruZmKZG2DZIr\r\nwvsih3EEJYo9J/1Kiij8u0/6kuGCe2D0mtHuwdcSpTw3Je9/dLCxlvgddtUM\r\nN+WWXRzvJSSY4UU6NK6RNWn3NFqkApwCgaHQnZKjGeIJHHJaLzDwjbkxNgij\r\nlmgRaY0v2IMjiCOSNUMHnf1HOj8qWvrV+zIn6IeEAgpEJwEgQoJPL5EYtY5j\r\nxSuD2yCMaQKQvaIlwWpeSdhmomSJWNzTxGAzbP29WMIrPiUz3VgEt4TIvkvT\r\nkK/IPd62wAdBJWphRfxx6eMKiFRmbYAuYdA=\r\n=4xAT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"920407d9fa8e9bc60bfc2577492e5be59254432e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-920407d9fa8e9bc60bfc2577492e5be59254432e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-920407d9fa8e9bc60bfc2577492e5be59254432e_1675715718580_0.40293550821886037","host":"s3://npm-registry-packages"}},"0.0.0-next-7bfb57937adf16eda85ca92547ea5711d120b4c1":{"name":"app-migrations","version":"0.0.0-next-7bfb57937adf16eda85ca92547ea5711d120b4c1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-7bfb57937adf16eda85ca92547ea5711d120b4c1","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"531743ce8484856bb61c2e9506dee6d1adc6a0d9","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-7bfb57937adf16eda85ca92547ea5711d120b4c1.tgz","fileCount":6,"integrity":"sha512-r3rrL81CCmMymNqlkf9Zp/WEbr6g+7uyjk0i3LOzdYrlWVKkXiHABZeCnA1+SkNOxDm36hqPD0BQd7E9yaUSiw==","signatures":[{"sig":"MEUCIAhZ0q5tZux2Lbjpb2GJM5aFZVXgSrv36JokGvhg3cY6AiEArWud5JINspz1mjxQin7gArU3sIsHkV+G4bBOCcucp58=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4WVQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5UBAAkKeWGLtZPQXoa7AX3zEPCmDGlYO4Cte4Iua9iieEsJ02Jkph\r\nwNvKKwBGuPiqFIXIBBIDxXgV+lbOugwVcMRoT46d8y7ra3wdzEQK25Dj0wSy\r\nXZ40jDro7u3MaJLFWOq6gOouHOgPHzCmKsutRtUXCYXTBhWdYRb4sH9kH7N/\r\nOuvnmKmCZuBADEvs5ZsNRp0WRZC0lZQ+ujlLUb08CfZKmDw9CtCF/NOD1U2s\r\n0iKzHLIFiz9I0X+XbYfTavXusIlYu8wKWOvDFGr7sT/kbMrCQeiIOz1+q/Qf\r\n7rKBvhC84AY32GMOOKupkKrYefPCMVU1WIm/TWqCvwC98nq6dbvyhq/EBYU8\r\n/1PweF90zJSLIjCOLlXDGLn9rpn6MbnzpTinGVvfX81M8sBNKkrKM0gl+tY6\r\n+BAXKo/21BbJFKKjShzg5QQQMGtMYZm1lwvvV5sGzkWbvdeLlGCtOvYLptMc\r\nEhotZXGn85jPtvUoy36LkdKpi+xAovQ6ViV6sA0JkLJKMZZ7rx4xavUlDggT\r\nsHlvHYGFt6NLdDkPT9XTBQT34FBwD5nAM4OOdSnlIS6WwLV+THerKASt3NE2\r\neqyM3P8TuwovyRS+hY7ATor3AOMXie/MTofZmGURRG5wzTC09spzvcgFSXVf\r\nQqWP5bZYtrUxLylqVv5f+zMTsMOBxsJvn/4=\r\n=KxXf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"7bfb57937adf16eda85ca92547ea5711d120b4c1","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-7bfb57937adf16eda85ca92547ea5711d120b4c1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-7bfb57937adf16eda85ca92547ea5711d120b4c1_1675715920457_0.8037703272801868","host":"s3://npm-registry-packages"}},"0.0.0-next-3b389244f7eb06219ec1e923cac29b45a6ec3e84":{"name":"app-migrations","version":"0.0.0-next-3b389244f7eb06219ec1e923cac29b45a6ec3e84","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-3b389244f7eb06219ec1e923cac29b45a6ec3e84","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"117e870ce0a0cf1c7f875e4e7f564d83e1598997","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-3b389244f7eb06219ec1e923cac29b45a6ec3e84.tgz","fileCount":6,"integrity":"sha512-l7qkblt6NsvwWDum8LEt/Ey5h9zPnY10BIkPin0zx2VdeLCnMHbqh3r2xrXeXGcRXlEJrWMHQt7wpJ+00KOzeg==","signatures":[{"sig":"MEUCIFmErGK5eTaqNInj+IuktaUUtDC53hbOkPRIztqrrCJpAiEA5ipTzKEDEBy9mcVTolZDlN67H+9I6AWiTEs0BbKUhnM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4WWgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSOg//a+tqK3x8BW9L/qTV2Hybe+ijWa0SnraOgrC9AUUTVkmSMfK3\r\nxetJpcYe7sgju40161kHssTiNPoYIf6tmJD/rHklPHD635sNhRPzC2DyoN/O\r\nhz10MSOaqhbizpuqxt4eEmRgozshs7sDOFxD4Hp4crj2FNG8+JFvsMqDR5SU\r\nRA+L/3mAyTfcghKaLGUpruDXiTXi6MoMpeBCPbTKM+tDBdlI31t8uihnjbNg\r\nm0/+VHQviRc+rRJKgimnI76YOjNVtImbGVhaCA/nLuZfza6ywFk4HJDYUtJG\r\nTtCLUbL+dG1nlCzfbntlbZxPSo7CrKhHNKllefrE5Yfz7rkjbkl1vYFQJ01K\r\nkb1QzLDNs/XSySk3O7/9gaqBHhGM5DseNlcE9TnHZQRYxUeNf1JQMLmCyQfM\r\neweYg6eSHPIxkrboeE5PMBGBpZoAff1brDP9/BuuBDMLBOu4D8MeZFZO4+Ke\r\nmKhPAyZl8TBharou5b4PRnOuM0ugjXTP8LUGUzmUJQHNTtaHw+/EHksnmC8Z\r\nds9032M2DNa2fYmpgG7hCGKTiNi3aIXYS3HL2J57dd5va8fHyyt2JIyqfI0v\r\n9vutOu38AgMk1A8wA+8BRaUMkmekssMsxnd1NlinmgxvMy424eH7AibOQzoj\r\nkXZxgdba5dgbQPQgiRdsug0iSni96AaUSaU=\r\n=r4rN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"3b389244f7eb06219ec1e923cac29b45a6ec3e84","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-3b389244f7eb06219ec1e923cac29b45a6ec3e84"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-3b389244f7eb06219ec1e923cac29b45a6ec3e84_1675716000071_0.45981248385070894","host":"s3://npm-registry-packages"}},"0.0.0-next-014cd3f52319f9c3e62d458f4c10e0af7ae98052":{"name":"app-migrations","version":"0.0.0-next-014cd3f52319f9c3e62d458f4c10e0af7ae98052","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-014cd3f52319f9c3e62d458f4c10e0af7ae98052","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"9a29970a1e4bb1c6fbe7c50cf5da839f7ca77251","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-014cd3f52319f9c3e62d458f4c10e0af7ae98052.tgz","fileCount":6,"integrity":"sha512-WXi+9MzzL5VAvpCLedVRU8tBmgeTiFnuKZGLZif7UabWQyhLccaJ5tjcgT7+hoxUmyyZrXqshjxVIXx6XCw3Dg==","signatures":[{"sig":"MEYCIQChy47LhuxOdYus7EC0EuknEHofEbmXWaResvm3JzEfbAIhALrOT/KuNpfTarZSB/e1ph8pFP092DTxGd/2nwWYo19j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6siVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuQA//dWTBjwOKRnWqcr7Wud4WA4xFreJew+AoMUrdcYksXSB0fxyB\r\nnMe2hvhvarQ0oqAKiJALo+7YgEXJ0+CuFRSDtT/URnsn78T2c7PDvfIriEU7\r\n5Wyyw/wnhcj9HxAV6F7JBm4jz+XwuOyN1DS0juOR63Na+G29Eam43Yp2DVWc\r\nYHf5+8kpsZH/QF6uEURTT6gWDDCM3HhJXK6gqXpV8Q3sBMtk43bruUhJ9/3/\r\nHJs14kpaZ9KZzdNifRBx+5+AsXTlEGPNtl/Fo04D5q3EWYCvxpdE0UzDnfvg\r\nQo+Ww0R0BaZYpV/jSoIa8WzAmSAMPzscF/BAPHlXT8CjewTjATT88iDHY6NA\r\nURJeMhP5R3oSHEn1z+8M99gcQKLfc3K/d+wSGCA3tw7Um5l9Gq0dBG9kfXCZ\r\nRi+bQYinCOlrG1DQJYsrUGoO1zqkM5KcMWq4Yng/G6Tbxb4V6gNitdIFDHCG\r\nXcll/Okb+IL15ddbO6Lm0/B+y8CWKjSqVjcKed3AlzbrGP8+CAyrioMDY9em\r\nl1+7W9pcm+G3/yvctOT0xNgAe8nlpeMQtBSQzCjttq75vPK5RwSj4yLYxE7r\r\ngG//vIfoWRDqDpYbfIEUGB8bzeZtQrndNPmlAjVYl0j7eqZTkP+7x31SUtoE\r\n86Xo7fCwITwgG9yvMvAW1/lTio9D06Men8s=\r\n=gkrB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"014cd3f52319f9c3e62d458f4c10e0af7ae98052","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-014cd3f52319f9c3e62d458f4c10e0af7ae98052"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-014cd3f52319f9c3e62d458f4c10e0af7ae98052_1676331157355_0.6907129307131092","host":"s3://npm-registry-packages"}},"0.0.0-next-887a3dabb2b894331aec6aa894bc425e2dc591b5":{"name":"app-migrations","version":"0.0.0-next-887a3dabb2b894331aec6aa894bc425e2dc591b5","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-887a3dabb2b894331aec6aa894bc425e2dc591b5","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"a9ffebe97a6073c8512798f871623f9749279656","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-887a3dabb2b894331aec6aa894bc425e2dc591b5.tgz","fileCount":6,"integrity":"sha512-rVvTV8Zc8qUsu+U00ROR+1XuPZMc6ojmCSiti2Rf0ST1wDy5arGYGhL3NfMj5zcltPYpPQgmTLHAPMQe5R5HpQ==","signatures":[{"sig":"MEQCIFCh5unul7VBwyDEOVAS7bgt3XK0EU/sk9z977CuAkRlAiAP4r4EuD5rYBJRWYU6NpUypi+zEyVFpp7+ASt5LTEGyQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7CG3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeuA//ZPu93WXLkKDrfHe2dCm5qQHY3SSvi1MfJ7n1IOoX2eriA0mC\r\nwgZkduAWqoiy9YSaV5gtskcI6QQ8K9um6ICyBVjbXXFKA6O/zK5WsyPptlls\r\nHEYi4m7zTkFDxlSI80JTMJSATyQvjdpMf2IGabRsqDjaP9FAdxOv2vgnQccp\r\n9uu2m/jjZaDRBlC1wp2HiKI0RUntYvL3fB0gBFCskmzK9KQMno3ckYB8706i\r\ngEcD3H3gLOXg4mj3Q8jW38r/JiF7xoWw1/vJdVBaKo2/JQQ3Jmmo7xJGzb7k\r\ntoe4a9F1Jjz5mLLYPZC7DtM8oXwHSSKdB489yGRUDPSa0hIzHQEUmgzeks6B\r\nioblKEBJIErzgpVBVg7odPUFDllNqE9vh7X7M7wNxGukgnHCeGzwRo8qJjDK\r\nQfGW6cq4XpHdKWtVS5DnSMJcSdiujcAx7z2sxJcgHioChZSNRLnBLLpWv+g0\r\nQlgdpaHUKVQqSS9fJE9VyN2b5lpOaSELPIXezR1E2EuSlAvA7qNuiqwiNfGK\r\nbTL5VqLEWlZmro8vutce14pLxR14OM+o5WgpsN6r2KcXHigl1cSanl2679H8\r\n6dI7HoJWXo6zlyPYUYS3dVIF0MH1QEQNgRUJoUYuc98ew+rgGBKxf+4boDex\r\n+z2w5vojteEk8VzUY6tkkJi04dNZQhtkSZY=\r\n=PteS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"887a3dabb2b894331aec6aa894bc425e2dc591b5","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-887a3dabb2b894331aec6aa894bc425e2dc591b5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-887a3dabb2b894331aec6aa894bc425e2dc591b5_1676419511649_0.5647070073401084","host":"s3://npm-registry-packages"}},"0.0.0-next-c5eba7335c2da0b9754b4e52495c98f48ec15463":{"name":"app-migrations","version":"0.0.0-next-c5eba7335c2da0b9754b4e52495c98f48ec15463","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c5eba7335c2da0b9754b4e52495c98f48ec15463","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"de47b4d8b310974031a22a1a327879a5b5603743","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c5eba7335c2da0b9754b4e52495c98f48ec15463.tgz","fileCount":6,"integrity":"sha512-tkKkEORl8k+NZjPbp9br/Gy1sLEkpGyzj9PidOojwetMJ84k1QkXPR/RhLKwVnbvVNY2wvI5GGocxLZtfXKg7w==","signatures":[{"sig":"MEQCIEXcSyRnMt2gSkl3iZxHReglJY8/A2kYQkwFbE7Z11YRAiBIHBpW+6iEic5a1hrKnE5bVyuLZb29tw2F0PcZbK5Naw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7LiwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRFg//UDEhCGItdG6ZnEd5RA5z79B5l7rrHJG13rBxcZDHye8Zkx71\r\nV3GHlhP1Chl6SKdhT1YPRQgE4jp2p0NMgPtGvrJlrCQaEyTJOtLi29ooFIfE\r\n3PoK8J7vCWa/54y9EXDJIBwiQYsMaAgK/n8YjQfKoGcJ46WbMAZ3AMRyFZ8n\r\nTkBT+5oKV1C23qQelu9LfWrmwB6yD5j/TtcXU3/6x9z0rq/bZjw2PE7mS35r\r\nj+2TMnxgyY+BWa6U+f1+iG7HHtquKIZGQ33GUU9GkwUMBOODc0Hnr2ndO4Pn\r\nPAxhIPfSJHcXqicM2BACw8pTxaX0YZ37k9AN212LpMr/7tUUXrZe6joVlD/B\r\nQfE7a4mqFE2nF3R7zByNgtxQa6/qEzG6bKqvlBwEvsraCK1T12iNVOsl1K7r\r\n1witPuzCTF78LFp1wo2wNmYccXGZm2+SWzegoQr2MGbmIpX8vFg0detU/90n\r\nnATdXMTdjUyrs9DpOsCG6aRyeXqK1tDGhg0JsUV79705q4CL4QqxQkDKopwN\r\nYeDfuAh6fOmi5NxSu/srTe1UzjZDeb4Av5Y+GH1doGZ9DcyFUT+dgLnziAsZ\r\nyBZ10CaDVo0HU7oJSNrxJA06S7JOrWn/b59+D6myLo9R1/zHCJmQNBm0cRGX\r\nTJDZtNWcIvVkK6zu6ppNtX5nZ3cPdyA4J0s=\r\n=9s3S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c5eba7335c2da0b9754b4e52495c98f48ec15463","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-c5eba7335c2da0b9754b4e52495c98f48ec15463"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c5eba7335c2da0b9754b4e52495c98f48ec15463_1676458160607_0.743498930589328","host":"s3://npm-registry-packages"}},"0.0.0-next-9acb1d074fcbf6aa34b275f617178f0f155ff495":{"name":"app-migrations","version":"0.0.0-next-9acb1d074fcbf6aa34b275f617178f0f155ff495","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9acb1d074fcbf6aa34b275f617178f0f155ff495","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"f5823d95087d743da111229033d51a20a8cacd81","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9acb1d074fcbf6aa34b275f617178f0f155ff495.tgz","fileCount":6,"integrity":"sha512-ubh4XjavPxv+oWifll37LNnlm/WS9lKDkF2q/fqO+FXdl8LRf8yvEcyn/yLlDKkolDhR+VR5wXJ9RnmdWlGLpg==","signatures":[{"sig":"MEYCIQCje6KI9Atrlpw8I2RNlACt4TG9AJFpVy066b0ojwOr9gIhAIgEaEbbLyWdXl7hyIqDpth7+iMwxzxW1/DsNomSw0Og","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8+dLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUkBAAkXTRm4ZIpnTw+/AlJ2fYa3to0O/jhJ8XjG1Bs1Ob7Gz5fdGu\r\nVa7xdzgg3dHmZKDEJq/gpsj/IkP4Njfk51qm5vmT9FBRAB4kivs4PUo1yJP9\r\ne2c3uE2Ixn51zRiFSvvAajm7Mzs9n7tEJO956xu7acogTUoquvC+Vt4S7Zcq\r\n5qLesd2il/7anQWujfnKqA6qXesyBytoN2Z555ZUZTdwdlU0xgVeJT7bytok\r\nvxuY/yat+jVTntkzcpMCJzyF3e0FB6YJAD/tBV/+33PgDICkgiauW6cQgqW4\r\naQuTk3wCTQugRDR2o/HMsolO1HRB+DvPR5y3I0tKMhm4SLZhaybVNQpdCVjI\r\n8d9xbXUZUodGiP64XnDepeOw/mR3aO8TnlSDVNSsxI2e6vAeCk9SzhOWlvDM\r\nyumj0VcOZMc6GhLVWSDsYvBReVi+6WE3zWVJyxM3AnG8GQBE3wV+T4uqWnvy\r\nMsM7fxN0RIRx16wa+TQYdtw1AcIECXKk47r6rfx5CcCXpVKB2T9xGeUW1lrC\r\nlox+eVgdAzaXgdyKzwBXV0Kp8ag74FJxHfjm4aneWcmr9r5H0x99unygo3Tv\r\nWeIHU66EPnFFDIUw86XiUL26zH5z6hQxEWpbzmxP1rZ9SVEj8yqYooUe6pmi\r\nXc22KM7Pa25YPPz2HMlzHTPvJ9d0e4Olx4k=\r\n=Djbh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9acb1d074fcbf6aa34b275f617178f0f155ff495","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-9acb1d074fcbf6aa34b275f617178f0f155ff495"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9acb1d074fcbf6aa34b275f617178f0f155ff495_1676928842895_0.08404470531037078","host":"s3://npm-registry-packages"}},"3.1.3":{"name":"app-migrations","version":"3.1.3","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.3","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"bd7d940aa3d9b58a66feecf9be4e669c68edc671","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.3.tgz","fileCount":6,"integrity":"sha512-Lee+dXY5ucqckjqjYYpkMmBZpkNAefzoLhJOsjwHQC3uJ6dC4fTy3SjQejDOSqEUpq9Bg8kLZk6gfJgMl2ZTIA==","signatures":[{"sig":"MEUCIAsmXR3xuwRyuhbZP/B1San0qYbj5pKi82WNx6q/WL4eAiEArmKUzL5IoMZcRCVJJUqMleQi6S2XPWqBdpnTmj6pRZA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+SIvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVvg/+L8piVBZ7qnKsNmEiSh+bcQUf5VqlQir/mN5qDqx2U+Iugy/7\r\n6+Oice27XLn3bEU4NfneOYiHhCsXDBSkYcogeVpgKhU5dJg5RcrYYDrZVWUc\r\nHQx1QH5T9JF8LlkXLJu4kYaAniYcPDaOnvOLI3MSQjhCTVIScmRHm630Fzii\r\nO2pF8GOQdnU/l1RAMChSjEQPJarONo9YV4E2gaxWkh1IP/5M/1iAfLffna2h\r\na3qLPAT0t7iqTzUqS0gWVvCEEebCvwrbfoMeQ78TQG+/Ag0SM3E/Yz+6p5VO\r\nor3T1XyQ/aEoSQq/EGz9e7pBvsJ6nj124sHsz8E7egUFvw4GYWqTRZNA2dg8\r\nru4hBB+eSFFIA8EFNr9J20KNDWKIFOAcZddczb9vk8L4baffVg28QSjIRH+0\r\nkaaO7o4lOlIJxDOvBYLQEfh950ugUTYTqGdAvAbLheFj1N3XIwMH0si2oRaG\r\nfPceDxU64BOh9LVulovX9s4+3yaZNZhTJFx5s2D7qGCtgiW2oiirgRpM1VL9\r\nd8gmZawjMrv9J/J1GVhQCqexXL5vllXOB4A5kbbiD3Zah1YcgqwXDN8g+8JS\r\nu3iU4DaIAZupaLnsOYEQXI3NY3Uv4XnVs4IpLnrFYVECiWQm2MH2/6pUh1k+\r\ntx/uispnXBYsUQUUdtrV9cJ+dixjLZ8goWw=\r\n=BgsP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"96ec6b32140254def920e2b4a8dba9be56633f75","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.19.1","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^1.1.3"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.3_1677271599735_0.5414585636868092","host":"s3://npm-registry-packages"}},"0.0.0-next-7675c98b3881009dcc19690b66a6e63e65e1a13c":{"name":"app-migrations","version":"0.0.0-next-7675c98b3881009dcc19690b66a6e63e65e1a13c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-7675c98b3881009dcc19690b66a6e63e65e1a13c","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d332f525939c2ab9dfd896097fe86fe15c88f6ab","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-7675c98b3881009dcc19690b66a6e63e65e1a13c.tgz","fileCount":6,"integrity":"sha512-erE3riX+iAoGRXjpHfNShKpS6jIeV3G98Za4ndf4HThNPXUdY7mC+5tozm0RfG1r2FdWDXWY2eruV+pgu6p6Uw==","signatures":[{"sig":"MEYCIQDKRyQvrVg6lnQC5fozvnXulbtOOw6npXZNRBQu2QLcVQIhAOD/AZ96eHwn5i/QqcoKK44bXIT4KY9l5PljN879Bv5r","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+6oPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5eQ//XceRQgrmpa5+EJFm8TifOb4AHQoz8mTnI+6jzsExeLiZn54x\r\nFAxn4KXN8hzrfkMHBQsLuiqEC5NwVGFlbFKvQB8RtnGjzjPFqPX8Fd2tixe8\r\n8TT2mK3kdVstY82DH554NyYNkerGVbjqE4+3AhHdxnWyLshvQbI2JcVbOg7a\r\ndIrz60YAvbHjSVJ5X0LfF+s0kGmsZTHdOqjRHoBJZ7fzqQhRQn6EaC60GVa9\r\no6yWXGtdVJ5WcUZctrOPsaR7nOUaO6ewAQ1bPO4PMVqxz3Vek3215DRF66Yc\r\njHYB0kTNfX2f3SaGjIfq0UkAek++unK5JMXlxi2ztza/fEsCOfiaN62hL/7q\r\n9M9ADU8twiADh+K11hyOI55MkTqCtENHrxVPweATKnh8uW3GQ50JjfhymAKr\r\nZewZffY72wphUPa+0zU3ZvVGLtAJX63epckfKK8aHVNYxgK53Wzz4Gvyc8ro\r\n5xl88gxOO9o2c+dE5LkYEqJ7TfEdBAabQKND7xUG/xCZjtUrZVEstI8q6L+5\r\nFe2G/24AvoWYytwraNtb2jn5DLzURCvK1ATOubfalxlNXbPRk3K/wKB1Bd6f\r\np11cU4fFTlVK2DfL2a8AhQtkAyVRB3KzDXz0Z3iWK2ViPv1EYf9tddoKgJyj\r\nCgj8Koe9Z3KzOTLscNjmRaeqnzHVG7O6Wlw=\r\n=j/Fj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"7675c98b3881009dcc19690b66a6e63e65e1a13c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-7675c98b3881009dcc19690b66a6e63e65e1a13c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-7675c98b3881009dcc19690b66a6e63e65e1a13c_1677437455701_0.6302657319045832","host":"s3://npm-registry-packages"}},"0.0.0-next-e5f447d1d4e3c5e91efdf6c7e380240ff610dc24":{"name":"app-migrations","version":"0.0.0-next-e5f447d1d4e3c5e91efdf6c7e380240ff610dc24","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e5f447d1d4e3c5e91efdf6c7e380240ff610dc24","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b67cc7d3fc2dbf90be84a25037b87016c5ac57b4","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e5f447d1d4e3c5e91efdf6c7e380240ff610dc24.tgz","fileCount":6,"integrity":"sha512-1F3TLc6VMkJZpmBHUCr9IW1DZGpsP5eElDFPXgxWBKAgwZdFpZd/zwGVOhAg21nO4b/Ejxbw1lh+LEzVE6ETSg==","signatures":[{"sig":"MEUCIBbWFBkmOb+E6Qb3r0ih7JizpFbtilvUi/XjIbe/r01mAiEA1AzdVMOXJC0IOkNdLiamDeher4xU/dvjyF3YJXLNmZc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAGCTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoi5w//Y3M+dSKymZEC0ydcCc4jb1btFaXFdnfxp7kU1+kuv3iRQhEz\r\nsy0Ttp9DsmDA1Gxt6y63LgiaiU2226VFh//nZRXza7gTuhCPekkY81G9qhya\r\nG0sFqYTERzd5mVN0M5CNChgeRoMnMqseRxN9gUZHZgIejSfw5g3gxPE58lEu\r\nyRnumVVSsxmokZhypnDbfwig1p+tDrheI1Yda09cG7PX3H43RYFRJkAIyZae\r\nYC0k5/3j5sul4wflbY/jQrWhd7Ia6Z61p5cN0HovUZEP9v4I3sFMY/09dQNX\r\nm9Ndho5Ux1oMC3xTqMo1KhPgArHzGXjkAKxjnDNkJKKVYKgoK4K/DO9f81vM\r\nibBWw8K4JOwF8iA7YLeWJNnz6vUGVQiOolTGxGzTONlMSqfJ7m5eS5gOXL4N\r\npF6dvP4Tc9RmjfjQAZlt8ZKUmJ6z1iRV5/AHWNR88rxmKBLP3Hc8fiNxdAz6\r\n7tnbpBg+Rkvb9pMMylDrYj4gPCj0YmOC551Ma9cwV8ziGVaqNxMhiiKcyalP\r\ndAfz7ktCagACfTDqockYqhOdnI2Z8Mms5AOrpAa5gbhaXhy5oU2Z0M9ZVO4q\r\nnXNymaY6kB83ahQtZzjQJ4klwpuhuMGy3nZBFeu2R2uMucKC82+xdHhLg52J\r\nA/9nFx8q75Hz9pJEndABTFDoG6qZz59X8UY=\r\n=LMJt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e5f447d1d4e3c5e91efdf6c7e380240ff610dc24","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e5f447d1d4e3c5e91efdf6c7e380240ff610dc24"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e5f447d1d4e3c5e91efdf6c7e380240ff610dc24_1677746323662_0.4624215680882451","host":"s3://npm-registry-packages"}},"3.1.4":{"name":"app-migrations","version":"3.1.4","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.4","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"2e85676f94fb00a81cbe4a0fd1c5ec0e8ddd1b6b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.4.tgz","fileCount":6,"integrity":"sha512-kabQtFYup6hcO944w4vvK44tB/AkB3tjcKBVQnIDpuqnY9bQfVagdn7fC9qurY2RxoksWQa44SlllQrE+NOG7g==","signatures":[{"sig":"MEUCIC5rRA0WK0/S2nAUejlupljwpkxiW/py1X6YaPi5712hAiEAiHWm5V1uk0LEpaf1yfVdmF4r90PAFYX8JJ2ZCqX1SbY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAcDdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQ9xAAlayIzietfe2NmJZMc4S0bFqqSrfnG5lAXf0F51leTDwX6wwt\r\nJCNF6G4dD/4+mR1IxOeCK8R1UkRbchde1w80NouUQmHo8v6uMfncORF0Udky\r\nfhy0toz8lqvWZT6waT19PAoXAg5VUF+jFXty1opZzPkWmZIpgL1X4U5hHgfy\r\nMMBDLZS/iU6MSSa47ISaBy1HriWatEN8Gr5zKWxxIGxqXF7zmjsWd56t+ipF\r\ngH8Mk0tfq5ul2+E46pap0ZZh9Uh5hezqAtydeuw+RkwtkWl70L3ML4QILQC/\r\nFJMqDiYkWaDOfKamiiaM8EbcRunivYTGjIJO7fsYcec6oVMhPaSjnIdqNyI2\r\nqdNnFO0O7++Kw4RfGilz8ULBEmOidlclyoALHjoZhIMgSYLCq3oUiDmok2YZ\r\nkNkZeV7Zstd92FLZFvsb/u7n+iK/433v5cKsVcaM5ChG7uGwQ12DBmcXMH02\r\nclQZZlyYJ3GvWlAqzVInTQKDM6/x55qlFj/nbt8TfKLc4AsfO8W9haLrXd9V\r\nuujU3rzss23gT+zgMPxw6sVKBMYvHK2naI4mw4O+rOsreN70D50BpHXNm6a0\r\n23NPxm+cp4wuKPr6mC/P/EyUj1EBjAuKiub80EXVxI5pcjQD5JPubCGAkE3J\r\nrYwV9VLf4NY4ULLX662ouP87/L7nakpU+gU=\r\n=6kW1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"fe181eedfcb07251b9b9a3dce8254a4941d74e42","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.19.1","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^1.1.4"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.4_1677836509645_0.3401684213145688","host":"s3://npm-registry-packages"}},"0.0.0-next-e0e7275f55471eecce19ff3b75439fb06dce1fad":{"name":"app-migrations","version":"0.0.0-next-e0e7275f55471eecce19ff3b75439fb06dce1fad","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e0e7275f55471eecce19ff3b75439fb06dce1fad","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"476a63a8eec3d09223d71e29be57995f57f17002","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e0e7275f55471eecce19ff3b75439fb06dce1fad.tgz","fileCount":6,"integrity":"sha512-EdCLNZ1pFnF2l65NduYpybC61AVyaPJr2Fo0u2RDUYz59ziVePwRxllTxM8+8g6ZZWtyj9qgmD3fESCvOkui+A==","signatures":[{"sig":"MEUCIDMHGW4t8fzmKeGbQJOOaj58dzb1Wt6AGe3jdymTd0CrAiEAxtftumTfELiwxIQ72xl0IqrLv85iZwdpRm9P6lj+MVs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAegcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq71w//YYFEqPqzT0ZDZNiFetzX7Y9UHqt6jakA7uj5+/5w2bfYzn0c\r\n53q9xRvUuhj0DfcW6OpALg321a1m6c6w0K5ZCG4Hg0LCpUVoRVuzN2s6qz76\r\nFcexTR8FIlw8g/U+RV7dPvvNTsG22ubo4WX+Wf6E5ObdX4F9eC7oa5djel5X\r\ngee7GWZIx12A0DEbGN/85PVqXVDkGf+U0QU+F7tXxVUFKgRqCGm+cN4CdUP0\r\n1HyAWFkrljN9+Arckf9nnic/izxxSy/PJSUSeqjWf6VamB9VATyQGuGBvd7n\r\n1430ptfR+CdR0fjMQOgTqLTPKnQ6bGq/YrFZ6k+PltQhzO5L6i6QuB6GcYLp\r\n0MRhwtJrcK7B8rqMqMMKtmw7tJGdo68yjRMit1q3McRlb6EoKDwl4Y31Pojh\r\nk9v/baYA67HzIfJsNzqpmS6ZdqC4GYNkFdxMLAdx01KtPbAzL+s5d9WMI6vG\r\n+r9ypQE90TQjG8xSlWqlpCwfmEc/Z01WSkxLWKK2U1z+2k7xGxOkkBsmws61\r\nwa779y28vfRXJfSoYPSPJvCBktkh/O/Bctd6p00HL4yXHoSTZRX9EcAH215J\r\ndpgf4WTKr+fWsMf11uMZGulC/n5v6UrXhvN8GF8dyu9wCcYivTFSYDNarnM2\r\n+wPUNX1B6uyNR1eXFHLFisUsrb0ZGgAOw8I=\r\n=Y8io\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e0e7275f55471eecce19ff3b75439fb06dce1fad","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e0e7275f55471eecce19ff3b75439fb06dce1fad"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e0e7275f55471eecce19ff3b75439fb06dce1fad_1677846556281_0.45923513194479115","host":"s3://npm-registry-packages"}},"0.0.0-next-a8732fdbdeb3ad56ef759d7970565ccd371888eb":{"name":"app-migrations","version":"0.0.0-next-a8732fdbdeb3ad56ef759d7970565ccd371888eb","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a8732fdbdeb3ad56ef759d7970565ccd371888eb","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1213e986e41b158115200c0101d48b06db9a8977","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a8732fdbdeb3ad56ef759d7970565ccd371888eb.tgz","fileCount":6,"integrity":"sha512-ui+5kCL9/G4wXBIbfQjXQ5O6BC4AGA8BV4/h/g4eQyyrpl9twk6jdLlBXHtNYZwta3MEcP0OYmwg+HOo0xA1cA==","signatures":[{"sig":"MEYCIQD5TcOG9xoOlFN4eYDhsRHUnId4G6XEtmkdoDiPOO8kOgIhANE4a3ED2TQwMTWlHjsrtCso2KHUeMloVlEhc19Kn7FG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAf9xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5LQ//Sl8km/Q4cT6J8O/EUQ0Fs2BUtEpO5BdU9JpNOelD5bYt4Fjz\r\nzwgaVyvHBn2kCu3vtccbQC1QB3AgoWdw8hDDervBHyMFnQMnvXVuLSNriVc0\r\ngmyzeT1M0EuPqTJVDKWRyxdZvtXfcEA8iRWmkq/dGJ2Sbdef35ub1jUp9wWO\r\n5pjbUuQrqpVhpNz4hF3omjMzG843RPbQUeX64NGFIsVSIrAGJqS9/E/q7y3i\r\nHla18cSbn17uWb8EgI9YXlcYzn2rLiDwLov/ymnmztldiJq4uNKGehUfmEyg\r\ncNeaqGjTuy1duPJPW/cFAC74MOsjDDzbrb4G2H8PfB1cledKpcHndVw7VbwE\r\nPUENMdOx8s7p9Kn4jXV14k2evzD912C9CAhMp0nit2NCuzqwhd6T/bfjxBaJ\r\nNAi4RRHVPBPz22SWyGdWQId62f8hRLQ/ajY0P+/nwJNVO+x4PU3F3nJVTvyi\r\nUq0+HlZELYWY00pMER8FpLarbOVPTsv0l8zAMQEREC7HA7ybzvBvr9e9qlet\r\nyhMEAPqfbFJR1NBh612fMbfbu7zB0akc43Zs2YTL/aAUgXjiuOFor36d/iLH\r\n00hsyByMNXvrQ0fCMRHaoqDculLx/NN/9ZT1+A3Q+EK55RzYzmWt5VGmPtNS\r\nIH75PzVbKf0ftMRulrZEFvZk2fZCDf2FcU8=\r\n=J8fK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a8732fdbdeb3ad56ef759d7970565ccd371888eb","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-a8732fdbdeb3ad56ef759d7970565ccd371888eb"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.0.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a8732fdbdeb3ad56ef759d7970565ccd371888eb_1677852529023_0.42210135092699463","host":"s3://npm-registry-packages"}},"0.0.0-next-04ba59a8ace9d68fd90d540d8a8936985115e22e":{"name":"app-migrations","version":"0.0.0-next-04ba59a8ace9d68fd90d540d8a8936985115e22e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-04ba59a8ace9d68fd90d540d8a8936985115e22e","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"473c53e5536c9dfffa4ddd459a3929736c43b8f8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-04ba59a8ace9d68fd90d540d8a8936985115e22e.tgz","fileCount":6,"integrity":"sha512-5TqmeLp+gXshoPshhsNjL+/EF3+D+dKJsL1Wevlluwac65q96aAkcKD1Fs+K/8GyeLAC57U/gjMG5SGc4qf1YA==","signatures":[{"sig":"MEQCIAgpFYFoBzlRNXWMFJ+u0ffV1qL/WHb8ZIwWZOutEDsyAiBA4A431dWS4XQFLdc91w1gvJv+XtK8Ktl6pxa3wIgQ6A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFa+fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpyhw//VQL9vKLev3v+X6QIFFoLvt4M6Sr2uzhpujSu0SqNXLQsDwMv\r\n/P9yxBpbynNOrL6LnKFrawEkj1areC15CtX5lzSWvARY4J4U/+CmVpELRNrk\r\nkbl/pTcHeuLI3d4mRsk6SdKQuI++7pD85zaV+DmzoyWNDybSRBlAi4NBRgdZ\r\nmCkez39U1/7canhvvo0Xx5cFZzPlbVusFUclWEJQSHQceoP7HPvP9B5/CBDS\r\n7bw77N5i02ckcgGkjZyR6VQYQJc/l4gZyIJ5eHM4crZyznBhYyM1pYf4ZPlU\r\nP8uR17lFOJZxInPSCQN+jXHbSwhTpoAxf2Qh/V2mdJAZPJMIl3SZZ/Iq8JJ1\r\n+/qyXw553XB46avWiopMStl/fwPqRUM4oae8K3Sc2RBZwbFqDKFeQQ8HTpcD\r\no1Wkl4Fk4bI0rpIPsXwAtV70towK3qUlLNg5yEQ7Fq8+Lx+0SugF9ZPWUa3s\r\nZ0BaYsKgcDxfmhpJtuHNj5BKrlG5bLB06gHth1G+1ixRGpId3TdzxhccMM8V\r\n4DKa6YA5IYf6FalRPyta1nXmYvgaxndLJEhXnvLv5o1PU/gO/jtXKLMa68T3\r\nwu5Gvk/0Rc5qT2mQplrIAmX2IcvKR+1XJ+4oM4mEAvv39pAQ7Zqq4NNvuZcc\r\n3ceUlHE+3xTza0xse1RS8bp7ZpumL+tg64Y=\r\n=d7m7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"04ba59a8ace9d68fd90d540d8a8936985115e22e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-04ba59a8ace9d68fd90d540d8a8936985115e22e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-04ba59a8ace9d68fd90d540d8a8936985115e22e_1679142814877_0.6506063322511089","host":"s3://npm-registry-packages"}},"0.0.0-next-ed8f90bd71f084cb541f99b15caf3833ec6a953c":{"name":"app-migrations","version":"0.0.0-next-ed8f90bd71f084cb541f99b15caf3833ec6a953c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-ed8f90bd71f084cb541f99b15caf3833ec6a953c","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"7ecc91c590ec09113e091aa04b6b5119b0855314","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-ed8f90bd71f084cb541f99b15caf3833ec6a953c.tgz","fileCount":6,"integrity":"sha512-WFFP9BbA/GujWPySg2dYxPVLTGTDAqwlrWi6Zag6triAk6zIX65JLfnNRs4WOEJ44FMJWCo6hr9w3ONEoSozLA==","signatures":[{"sig":"MEUCIDZdITD0OimCdmFZOSOW7yGhwL2+tCFdx1asKNETXyB7AiEAnr4dMKrz/7jZ6CSVejuWcr1w+YviS5IwCUokejC407s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGMiXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmowFA/+JZ/qOtD3rt7fPYTqGxEG8uZCFApGL3ryuvQEbG40Yuu092zr\r\nahDSA92rWYv75BuDp3BZMUWZffQ6+R75Bf8Pf8tZdUetMLYysuOyRWyXMLhL\r\nhib48b8oAI7wnvGjgi2Tn6E1INPRZbwMR1e/x+Xu5ZtxbFsilLqgE/c3jdhi\r\nehO6RkYs8iHSn4EdhCe9Nax5Dy0TlCYrvWg9ptFboJ92Bo5BHJtRNI24bshq\r\nimNVcJ8BxblFZrebVbgqZjjShFHJ5Ge+gm/P4Xo/rqG/VvKhQZNurplMlIeT\r\n800N5gi4pke3l0x5yXrcmmLg+Jk62kh9HbIZOC3ooYymLRvhf98Lm+cFyiLn\r\nVsISQMrf09SPN3r5DvvqJ/sL4i2A1kpb0RvWtm+X3Co2Wjld48vtErJI3gFK\r\n7+8z/ot8PgNbypoNxLBZi8sYF6+5L0yylcM0frkbzXHqaa254l0cWkcXD2GM\r\nyUAhpNqrUHvB0pVrBs8VEUexWxV2VgWVjKHHAGhW39zaD4olu3gXndwwGRJV\r\nhTHFkMUuBYorG7sdqU3/sGzGlccXwOs/vny2Nx4ysMyI+Ef+Xsleaz3tiEB8\r\n6PmGZNxgAln8XDSXXJ5gsEYQ3ap2GEkR4kr5LIEDbnE5nmyqSzTaQP0kkWrY\r\nFiuiQkNVWRyXn+WsYqF7fVNTtl9R0Jge/Q0=\r\n=6kER\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"ed8f90bd71f084cb541f99b15caf3833ec6a953c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-ed8f90bd71f084cb541f99b15caf3833ec6a953c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-ed8f90bd71f084cb541f99b15caf3833ec6a953c_1679345815186_0.25612048249762087","host":"s3://npm-registry-packages"}},"0.0.0-next-97c3945c3938ec09f9aa141b791f53d15bd47600":{"name":"app-migrations","version":"0.0.0-next-97c3945c3938ec09f9aa141b791f53d15bd47600","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-97c3945c3938ec09f9aa141b791f53d15bd47600","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ed59463d8e17401315e12ffc99d3a568b266b153","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-97c3945c3938ec09f9aa141b791f53d15bd47600.tgz","fileCount":6,"integrity":"sha512-TIxQ69kDGRhK2VXY2VPMmGubCZcsrNTPIO+BaRqci5sbjXFCN/AkEQnKbb5LuVk+l0aW/9GElQYSCsyvJrp4bg==","signatures":[{"sig":"MEYCIQCRfV6TTFbJRNbLHPbXgozzpv/6Rtrqq5Rb+Mi8RGtSPQIhAOy0QDIEKoNU/wfY1L0GoWTP73T0QyGS/nLuJdpD8iy2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGMjDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmojzw//VQ5vOHW0X5UbOKYSVZtJ/d8dhfFwDHYbW6j9dpK1KcKd9tvJ\r\n2WrjaUtebWhwC0nT3lIk5iumgKdA7i6Wpfi0oSTVkG9nXQYcATS9Wli++ykR\r\nl3eaiyPR0Oz0pSb5QEorR4vMkUcHj7bRkpOgG7RAoaG3Gq+xGoqe96vp8uvB\r\ngJYI5Hl8u8ErC/5T6leYjx3k3X7ImV2etniFZQnxSaUq+FzlynPTKpf4pfdV\r\no0u2ZoxuMgnTIZOs9pvTurVPD8ODana+pt9EsjOgwmRa1jFlOzhY7cIvm+Ej\r\nl6nxb6VQbLVowSI1rDFnjup35fN0NUwyO2ob7SF9jgoQXM5WbbzIniqLRhq4\r\nJgDtJPtVILdXn6Xpc7gZRzwXnEV6zGx6dKRn9mDrAnKCEiZp/OXV8/io7pJM\r\nSVH+nOnY/rovzr2WXVmqMiXlaFng08reHjP3UNDrB0cQrxlryu+h/tAFIkUm\r\ngFLZn2l1nePoVhrj2Sww5E3uYItIEVcw32qv7IcsWIXkr7o2c1wR7CAFkUcr\r\nDO7lKC4tXRu1/KX/TXrrWXqSXtZn/I9mbFiEWyACKdo+789QfqdwC4av8eKv\r\nRzdJlM75F/aXIFEz7KACQ60zKY2rTVkEJhuFGfAJNZpknu330NC4rCvrSjdT\r\noUzpdAdw5w0ptyg+AKOwgV5okR6zRg/aenk=\r\n=1S0o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"97c3945c3938ec09f9aa141b791f53d15bd47600","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-97c3945c3938ec09f9aa141b791f53d15bd47600"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-97c3945c3938ec09f9aa141b791f53d15bd47600_1679345859327_0.2040505004655122","host":"s3://npm-registry-packages"}},"0.0.0-next-d4e65fe0ae295543658a34afcb1bd79b9b5ecd75":{"name":"app-migrations","version":"0.0.0-next-d4e65fe0ae295543658a34afcb1bd79b9b5ecd75","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-d4e65fe0ae295543658a34afcb1bd79b9b5ecd75","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"18e74eae64b44597be07e07763281f5442e09bbc","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-d4e65fe0ae295543658a34afcb1bd79b9b5ecd75.tgz","fileCount":6,"integrity":"sha512-VJ94L/Mwyu6Mj7TSt2TnSTjIfZne9zY4lSg2585haSkh9Ei+nQMkwpRQvbZiiuBdM9JvYDyTKRSYSeAC9uBqzw==","signatures":[{"sig":"MEQCIAfR7gnMzSeiIU/GqoX1IQKI/DQB9+tZOUlG1sO4r11oAiBSfvrhhVLBpaFwZ1AGwzr7aFtAjUkv1be5LTpgFk1gBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIwfvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmorYxAApDx7EAHsFTpF3nxJ6KPEyTVFXRYu+9lMbO9nRm+o3hZMqxZo\r\nblZroKmjPSIPOMeDMSXYe4gO6run8kPP3/HHz7UT9XZkdF9hzp31kUA/jsoN\r\nO2A3lLkHigoHHCwUZxXvytj1YjF0v5GL+yup6rIrtY/w8W+LKrEV3soIqay+\r\nDM1jb8c5VXhqJsjqv/g8GYibFUHPMdtfdHpy+w1nYDqOrgh2lp9/I3EkBWBQ\r\nsIWdyHN+N+HRXNmmnAWVjCMbKtqSj7bzn/qDMBzhEJQmQjxnEouV5Er9l/mP\r\nAGRi1QAfbV1O8t6nIBUtdAOTyRWA6X9rb/QPNoou2NPGsC9uvw5A4z8bbQQa\r\nBfUD9H3m9sekj4nvRuQOiykqmZvm2V2VwsNMlEXa7nVPX2evwlHd6prGbyGh\r\nVs+aU50EeIACaLXdmMRRhO2QjCPApeg43Xiq7eechoygPeek0NZEtC1izwQJ\r\nRlvr/is58SNH/QHkRlnzhgNUzoggATZjfKFdM2oHyWzxA0pGHgNembHi9Mwl\r\n5oO87tdqCV5vdw5JApVeGkC3ZMBiMH9XusComaGc/O1o2Je0Wi+L7j8KEN9U\r\nHIFS4qywPy6I4C9zv1msmVUBFDmV50A5qyaTTyGGhx8KuUr8wRCsXSGCzhNu\r\nkXKsGTCFXHhJDAKuesRerwlysYSo1n9hhyI=\r\n=LUsn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"d4e65fe0ae295543658a34afcb1bd79b9b5ecd75","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-d4e65fe0ae295543658a34afcb1bd79b9b5ecd75"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-d4e65fe0ae295543658a34afcb1bd79b9b5ecd75_1680017391533_0.8062009578158003","host":"s3://npm-registry-packages"}},"0.0.0-next-3904cf8445c3449f8f87362208a2b0448f57aded":{"name":"app-migrations","version":"0.0.0-next-3904cf8445c3449f8f87362208a2b0448f57aded","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-3904cf8445c3449f8f87362208a2b0448f57aded","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"8dbf84023e7c710ec74fdca5a0f054e93ca5ce54","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-3904cf8445c3449f8f87362208a2b0448f57aded.tgz","fileCount":6,"integrity":"sha512-cpfxY5KEjsVIrY/QPQqVaDADTHTO9DlLruv9KrGaRKKFT3pB3fp2omik/jBRXAgqkSRtLIsoGhjwyEt2EME6kQ==","signatures":[{"sig":"MEUCIQDgmYOAFKmyJyUOwj82vk8P5yrQTVll0LAX/Wp6V8U3qQIgRafax/h0XnW8GdL2/0kP+EfuQUkd41lqsSErBXMutx0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI0GPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTtQ//d0tMWJX6q2+LtkdNLDc5mMx+tBPcVSG/bPLHAx99IYEyWZ7L\r\nZCQNaJgoq+e0Ee/Aw07QtN/D4FP1dw1rdLEaA1QCh5zIXoc+K1XS5Opw8qj8\r\neAUZ2AtU25mDSzqNVelBP09ax+hiITT79sO7+WXHwKWJaBG+0ZApp6brpsd4\r\nvWReBT2lZjk4briI1SDJWCreJnprwvNnLtd03jY23Obg2E9U/y0Pltz5AOxY\r\nzsQTh+5km+QMVhxnb/rc+3CtD7oETe8HcH8BRgbxDjOFPm99Dm+uWwp3E6FT\r\nuybWK6EsBAB/spUIyj73I+FaKvc3Yk8ggzkwIEgEGMx5307JFU9KdNIzb6ol\r\nOL6cdNUsCFyQu6a94k20Ik1N+q84LDExaep0ej/ZQcDgREHwAdjr5sigghQq\r\nq9yCUg8UIrt/r+VySmByBxb6oJ0DzX0GZ/cgGO1VgUUEl0PljhiYli/KI1ng\r\nj17+l4TKG0dxIYjOqrEVq7XmIG0dAcpPI9V0+F2b0HYopK0PRTpSaL+bcbEM\r\nlppgd/Bz9iNMV7CulY3H79WD7e2urvOyGV5MqdRb+itd2YjeUTbMfhgxk31Z\r\nqE4zgJo6oyVE6dKrXCMz7BQl10vvbh2Wq7se4bTqdBcnR0uaygkhxkU9TaOB\r\nHVRSQoRfC1NCI7/xKaMmX5DJw1cbgWG/msI=\r\n=Zces\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"3904cf8445c3449f8f87362208a2b0448f57aded","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-3904cf8445c3449f8f87362208a2b0448f57aded"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-3904cf8445c3449f8f87362208a2b0448f57aded_1680032143595_0.43316317251397995","host":"s3://npm-registry-packages"}},"0.0.0-next-a863ce6adfb98ced08f9644a294f5b63b110c7d8":{"name":"app-migrations","version":"0.0.0-next-a863ce6adfb98ced08f9644a294f5b63b110c7d8","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a863ce6adfb98ced08f9644a294f5b63b110c7d8","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"280222fa0296ed3d965629476306a6a426998acb","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a863ce6adfb98ced08f9644a294f5b63b110c7d8.tgz","fileCount":6,"integrity":"sha512-BcI2IX1l0x5Egl7npSHOg1yEwBtXGpOsqTFa6c+6P/cL6j1wXPefj/X2HE+TvXetKhugwQtYaV+dr4+zfTDxKw==","signatures":[{"sig":"MEUCIQCXSAWw3AnAp1KExpA49/dH/C1tO8Up8eNNYtCuySJvWAIgfZl+5yO77aL2z14fvJRN7WW0iiVIdkFOr7UnpfBCzhM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI0LSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrB8g/7Bxtp2DqDf9pJaad9ttYZAZOuKyr3kxUGZmnfNiB2Q+XyrwqO\r\nZqKJGdAqW6OeLY0UZsx5nr9/ZXJVaHQTGEUWonevZjy1u9VtPVQBmqKTU3cH\r\nV6jvorSo/PWV/+LxIT7XuA9kqQjcfHWuiyum/RL3ctVXqHsBqdVKZ9BrSpCj\r\n5QXk0yeI48GvEgjCYLmdM6m8dbnw36cx8lcmO0bboxXzSRK3zOX8JgFvtMYy\r\n+y9EuSs/3MgElcYtQ9EwPQBjctPJoO+GdJ1VemTqvyExgBW1I1cXe7k9gHij\r\nNpuztw2u6sWWgOT5UKawaPk8WynjzFw57D8Ar6HUS2l1MkNyY7X71NpbKOad\r\npw7MI0OszLpio4Jt7jEwPWu/7mn7bUqtTUC/GMOf+tKEv9e9U3Yy8lSMBg09\r\nszPGMlpwr+p9c081hfBlP+dKVuq/6P01p3Pcc9WL5TwV8m0G5Fpbyi5o3wxi\r\n63x6bP9acvwkPS6KOzNuKddQmHgk4csSFsBtt6DYHdiCOIa7nMbf+cCuCZZG\r\nE1RYCq9QzobqNJMPTA5C9MbVvLUOqIzfGdyyIE5YPj72ZTvLPL70nO+TpDyB\r\nSuSYFV6Awk/V0wSa+HMXfNN1kkCPEe+yRdoWzAJLvS/h3Wr5GH4wO7iZCcoc\r\nqD5uj60hDRlI5UAdQcVO9KOPjufq0sIY3Yc=\r\n=MS10\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a863ce6adfb98ced08f9644a294f5b63b110c7d8","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-a863ce6adfb98ced08f9644a294f5b63b110c7d8"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a863ce6adfb98ced08f9644a294f5b63b110c7d8_1680032466812_0.12446396323263809","host":"s3://npm-registry-packages"}},"0.0.0-next-c3291a871fc2c07d3e2038cc1ad275c102e1d321":{"name":"app-migrations","version":"0.0.0-next-c3291a871fc2c07d3e2038cc1ad275c102e1d321","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c3291a871fc2c07d3e2038cc1ad275c102e1d321","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"19abc2ad1cf2b5668c1a341ac50544608e66595c","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c3291a871fc2c07d3e2038cc1ad275c102e1d321.tgz","fileCount":6,"integrity":"sha512-DbT2q4Pb1JKrgTFFKyZNuy+xo4pAXOO2ZRRlgwV4VSDMoq7j3TsLf4swJH97XwE47c8gB7cR7xL/D+LX2lAa0w==","signatures":[{"sig":"MEQCICeLUDLngDsUi0cGLfFWcf6/WRr0nOVSd0bfYG1kBRpvAiBOAA/Y1rH9350Pt57MewStU39xp6W/oMksM3BMeT2MPw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJVfbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphSw/+Ntx+0Z9UV6SfMJGFR4tYpubFIi8Ght27Z1vD5ZbR4eavdv5/\r\nqicmnZ5WNbqG9wrijU38uncbV3PE2+7vn5Xxf9N/5/NERccA/mYXgHPuFEC1\r\nTdVwvi+5wMWhV/uP+PfYWZU/TZ89t+uRVhD/Qy3r4qwB7C29bTcGuGxbU2FT\r\nZfZtMTn1CO+w6oQr/Ql4XM9F9DlBqZ+323u/BGYRSLVa6X+pJ+xVRLht8str\r\nnsBFIaoTpam11GxhDeAD/0MTn8HAoJg+7sElnFYiuXEnwaLO/WGKeKXcVHoR\r\nc3PuRo5IPRzcaaHh38T0eWptOexpO9X4UMhg0GvnFYwQNrm0l3hBTB2WPNCQ\r\nnMV/eSW1UmNWYMDGJJgDjT7zF/nJ5FdGnaw0vrYGrXsHjPPdxcDBZ+PBmFrB\r\ncs4unrU+FyrN5nMv0WvcMByoV7NP5v0aKcB+u95r/F6GOnafcITacXyUWuYv\r\nrzFsZ1guTx3QD//Wf3ghcSBnZayUNKIeG/k8JEfZU9oNpEka2KKCsimoQp1X\r\nID77SFhMSGeXtC1qfIh/gOHDeofKUQ/A411+ET5ycenDoHg98bDHYO8XYuc2\r\nFFmvqHwn2NPohRMfE/CqfxRCFBX54D2Ag1vyQkBqePy0b14Ihbft+92OJrfK\r\n+VW8LyMETTv4OrC0Zi6DnoSW+RVLh+C26so=\r\n=oXjg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c3291a871fc2c07d3e2038cc1ad275c102e1d321","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-c3291a871fc2c07d3e2038cc1ad275c102e1d321"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c3291a871fc2c07d3e2038cc1ad275c102e1d321_1680168923164_0.8287710979433185","host":"s3://npm-registry-packages"}},"0.0.0-next-da0d016fdae6992001ca3f3347c293c36815df43":{"name":"app-migrations","version":"0.0.0-next-da0d016fdae6992001ca3f3347c293c36815df43","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-da0d016fdae6992001ca3f3347c293c36815df43","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ca8381d0996c62e08e2172d5bac8957e83f20c80","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-da0d016fdae6992001ca3f3347c293c36815df43.tgz","fileCount":6,"integrity":"sha512-8NqBrR5xWzOt8NS7YqHQa4jOhSQ+2//WenR/twyXQUlQPhfbxFj3i2tzGjTv+ekNEMm83n83uAfvdO67Zqr+eQ==","signatures":[{"sig":"MEUCIQDHKK1Md81UyN6JejkZdlpXPyYF0OgKJa/HSyKm8pwFHAIgTZAzbYj7nPjl2SF+aVXyCYJQgIyiRoJfPpV3Sr+VX2k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ0lAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryHA//cnqcPcLrPJHXVQVKnEtHXcjiHXICLqH0js8Sxcva5I9lVyr1\r\n83RkgsQAM4nnB30R2/aYNoPlqMK4eZ9OK51ghOMF0jhGwJUCl7q0quuTnI5H\r\nNbpvFHEOssOClfNyrDolQCPAHSTnsp3csOci0D55+8wx50f96FQbcj1nKwYJ\r\nNhB+E0Ea+38tYnSn628lMWcIh7rCxb+GmQf+e7j/y7A8LShKLbkxVzrUyvnO\r\nWbnLFhyKUskPpRq+Wz95GIXMOBoJ17YTe3yD8rR6QTGBP7hC3erCcrMX+EQr\r\ngKkcL1yZ2HjQC0+KcRLP3jVQ1d5dZiBebw02dSTra5ykDwsUQY1EOO7wCfDW\r\nlusyKKvICxJQcNkmJGp9T5ZWnL6qB7lLo49dl5/u4ZLjFAqeMnpHGrUJ7gfw\r\nx6Vb87zoH9EdyDkVIFuOwUBAUv4kW31lLwVlnHDFrUJfZwixCreyCHNHLDm/\r\nf952gVSpAL5OTvx0RMV61uyk+TPC4hz8yFaXfdb7S92i644Cdcynf+e+UCDQ\r\nvYLkVE5vN1FwQI0P6PwCkrgn03RjzygZxH1tb0s+cX433BBQ7KntCYzH7aCT\r\nQ/hLCqJBf5oUDZS1gV1soYR2nxHNFb/gxrwu09c9QsOFSQyfvNILeKfSG2aa\r\nYeEldC+/QZNLYBAyQ8oXK4DiVp9F9xyY11A=\r\n=G4ba\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"da0d016fdae6992001ca3f3347c293c36815df43","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-da0d016fdae6992001ca3f3347c293c36815df43"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-da0d016fdae6992001ca3f3347c293c36815df43_1680296256228_0.5258266394407962","host":"s3://npm-registry-packages"}},"0.0.0-next-76532b01c39fab29385234ef65aac28c9e7d3e9f":{"name":"app-migrations","version":"0.0.0-next-76532b01c39fab29385234ef65aac28c9e7d3e9f","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-76532b01c39fab29385234ef65aac28c9e7d3e9f","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"3e50b2edf700b26e9ba6bf90f97499bef4e27790","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-76532b01c39fab29385234ef65aac28c9e7d3e9f.tgz","fileCount":6,"integrity":"sha512-VVapOX3LuHi92NMpcqHDNyhM80000QvFoB4BRA5ZyPVSeOoRK8mLcj71GSxrLlKgbNrE+4szE8+8nsBilVHMHA==","signatures":[{"sig":"MEUCIHEk+j6qieL+bm7ojG+F2koUleAm6LxpDNF66XSxX2bYAiEAoggZ7C83/CF+QSlM78WWfCezwYa5fhVFqFGNiwZThRs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ0m4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozSw/9FSiZ0o4J84iju3MFRfskksMOv/QwJ6QMPZiCblNah4ZODNJR\r\ndaNWWdEQVFPIu+updjN7wIR1YoJ/qcXMAueh1C56pCYlAgkD8afE6OY8vf4s\r\n+7aN/8kLs17gdzgk7yY8eZwCXmTncZwwWfzbb3yP19xAI9u1DtULP7F7VG79\r\n+lVlBf5flF5y8yAsgppokf6ib++bd2vKFaBqT8pWfWgxkJ1AQu2f3qs+j7iL\r\ncM1LNueO2LRc9DAPtzg4e2H6M6UVQOxRR011cb+74t8myaplgGlRyOYyRNkB\r\n7nIIq/5hGd7Mr+0/MImrsrmOabPOr6SELSiN2hMoPFJbZIjCBkaxOJ5hFhFB\r\nD0IK9+rrXRnZPt+qNxz6FuX/fBFt+cvY9ycP2X9T5bnEwtCpBVneXTaHiazO\r\n5hGrjSXldwanWJw8bNR8tvKWTqGYKvGjDCPFkUN9e5Z2eZtRBaCvsgntT+hI\r\nEPBOUaDyeV2T975WwtC6FubwSKGWKfnLlIcpnmp4s5zm69I5Bujv9HboxB2y\r\nKYTM/2yZeKT9yzytn8ox9ttmDi/fEpc3vBmw62e0HV8IxU2I1yvnm8z22Kht\r\nUMxIRKimKjn3jENUe68l52MMftcipEnYFHXJitbcKkxyTVpUdRYyt/7V8fOP\r\nc7AKlqzkzO2VfjcE1QB2ThQONuqLWXxTR+g=\r\n=bR//\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"76532b01c39fab29385234ef65aac28c9e7d3e9f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-76532b01c39fab29385234ef65aac28c9e7d3e9f"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-76532b01c39fab29385234ef65aac28c9e7d3e9f_1680296375966_0.2698038476211586","host":"s3://npm-registry-packages"}},"0.0.0-next-30478c108fea9fe7d84759fb032faee28e0bbfbb":{"name":"app-migrations","version":"0.0.0-next-30478c108fea9fe7d84759fb032faee28e0bbfbb","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-30478c108fea9fe7d84759fb032faee28e0bbfbb","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1bc5901dae5f2c75af8ba28ca60d80fa4aae50c4","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-30478c108fea9fe7d84759fb032faee28e0bbfbb.tgz","fileCount":6,"integrity":"sha512-fWmLYS7YcrX8gajUtyXUL7L2o7CyfI41B4FU9ZtXwFW53SLjiKoFTetbUkEIfBDj9pkiOEJRnmuXAevTfh+HRw==","signatures":[{"sig":"MEUCIBfct/XiuFiym/72Dj+MuEzlglUToN7A0iLI31ADAlQCAiEA3AaUWLKo0W+ByDV3uV0kHCkbtfpEgsFZXwfwLKnOCQk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkP975ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp84w//TqWLwg38M2A4nJu+zjARnMZG6S6LLg6RJSNtnT3rB0lAcozj\r\nRl/zhOLRuKk3DQtdsLYcqjPOZume0fv6UyLAnmNigSKxbETzJFEGFXc7jkgx\r\nidaDE/LPosj15QGz+okoVGcC09xoAgHeKb8JmVCbTavTXm4eFm86xZ8wVzHF\r\nJgrXUhghtt+WS4OhbPYXDNCUSMqzBC/javN8YxF1VpLY9pQu2C1jH/V0mYDw\r\noNlJvGPRkPyOf233c5AhRoQFAJlhaoJnSIAQJejCkVmUjJSSNyBtY7C1MOxk\r\nOwpHErYh5tx6k3nQ3JDBhcMAjTt5FhlqC6V7lDYzvpRoGCVJZ0U5DF8zAjGb\r\nr/P9su4GXwqAwQxV5Yx3OGY/aYRbKDxyvRhf03RcJ5ERwtGiGZvdxHx00S8Y\r\n86s8L37MwKUM2o4iB+0ihuKbnLst8duZzUQ2q9ASvd4G3CzAlRyrIVAtpHc6\r\nvS+e82/A5AWK51pOYGaI3YwytPLAkf+c4Bm2UcMIJH5QJJZC1oXshzwCgdYZ\r\njW8Hkf/uyCs4NSanF0qlKzB55WC/Z2L3cUYBIl6gnW/KSMrk4bJ4K6sP/OUy\r\nXKOILuclRmB2BlPWHTH7KdeU77cSWs3uTOkB5wN6Viw3DFMnk7LRb+SCNYjU\r\n3Mt0npLT98hsusd8VX0eBavUgvlMeVnCi7M=\r\n=yEfw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"30478c108fea9fe7d84759fb032faee28e0bbfbb","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-30478c108fea9fe7d84759fb032faee28e0bbfbb"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-30478c108fea9fe7d84759fb032faee28e0bbfbb_1681907449327_0.795391964782574","host":"s3://npm-registry-packages"}},"0.0.0-next-1f064ba7669c838cc646f440aedd0cf45c4df973":{"name":"app-migrations","version":"0.0.0-next-1f064ba7669c838cc646f440aedd0cf45c4df973","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1f064ba7669c838cc646f440aedd0cf45c4df973","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"378945a5e40ad99b4378a902a0e53650038c4fad","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1f064ba7669c838cc646f440aedd0cf45c4df973.tgz","fileCount":6,"integrity":"sha512-EywxHzmcROWXXtPRozqlYKLrpUdkJfHrna5vL4P/ewAKqYArnUGQsLZt6T2tJqflAqK5h1ruTpVZC+NYUqmBfw==","signatures":[{"sig":"MEYCIQD9e8ISluErAk3rTH+Vm/c3aCy88loTDD87GCM4AB6DnAIhAOiuyO5+oVT749gXnWUCf1/HBt/J3Wq8wSHQewnJy+SV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQFSPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqs/g/+J0AQqBYUt20vHZV5V2Ua9BVsNiZTRoeSARp73AKlxu5+avGF\r\nVDOPfH4rpWfBvMsT0ssDFD++va8rp7w03jqZMmwV2fiRfJQMZc66K0dvDSiP\r\nD23X2CmC+30tV8jkqZVyP4HQDKE7X5Mt9FUzXnSlndGF8VkEuhnjy97a6Ez8\r\nRRNJCkifygMV6XUTA9WaZl4R7Fjts/qD+HWQUncTA80r3tN1FLBFXG+ubOTI\r\nfZSfpoff+8JJY9spKIQdf2sreQVC/7WWTTHbd4j3wnTxrJjP6CUMZZum54Ha\r\nL6ToVBEo+FjqDlf98fjikWGqJWc7XJ7kKHtcIAYM89L9tgbgaQWyBchRCCz4\r\nNcLHForyDg0uLtlcYcreslKoY3rpyEtvnzDhLq8CtXmapFsQH9GLYiNAz8tx\r\nHVu0n03GK9xlarZyzsVBAnQxNIFZcHfIx2g6wjeYL+BB/2w2EHLDz295bIKV\r\ndFuM4mUVuopj4J2NWVTWpIogN0mKAoWk+eTrPqgu1UzXVMXsC76gH2yImDPj\r\nt4/ONLNprJSNIzXCSVbPponQb1Da/6ylTiAoazHkuvFPMyOAqCDKcnCmMg0z\r\n2DV9Qh8NPJGwbuu+di6CLZZuvqs8ctL4OOwGIseemIrBWT95jiGGQidUBPUJ\r\nKjfUcjSNwQof3PCeSe2b2m4o7FRH4/pgvas=\r\n=sgbY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1f064ba7669c838cc646f440aedd0cf45c4df973","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-1f064ba7669c838cc646f440aedd0cf45c4df973"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1f064ba7669c838cc646f440aedd0cf45c4df973_1681937551258_0.9606613188640658","host":"s3://npm-registry-packages"}},"0.0.0-next-259fb95ccf1d41c3210676266488d0705f9b544e":{"name":"app-migrations","version":"0.0.0-next-259fb95ccf1d41c3210676266488d0705f9b544e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-259fb95ccf1d41c3210676266488d0705f9b544e","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"000726103097e167b829042e19b8cacda63ffa39","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-259fb95ccf1d41c3210676266488d0705f9b544e.tgz","fileCount":6,"integrity":"sha512-53r/wiVKwnA9FCq5HVzPyZCIPq/lDsC3VlTgHjlqKkxjM8YW1iMulFmq/cLkWt5MPVUDYDXNXqVgIpc4S6CF1w==","signatures":[{"sig":"MEQCIAPyx/xqoFgwCOoj+2ZpltQsXLyF72wY/S0ltJgt7ie2AiBJx7537NQlO+/4j9/1N2MF7bbaJQktg2ZOJKlIa5aluQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQJniACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFSg/+OTeinIenMlXyne5A31jdkC2rpdeDwiE3iX5puEQI9KAqpuB5\r\nLQ5tWuF1hSPb8Y+A/yPY/YCapethjkaBSANrik3R8GrOkhWVNbhuonCaPPR7\r\nycwaeN4aavO3Sjnvx6w6UCXGg4HoKPgQbLDY298K3PY8UuDwTWJYefO9Jw1/\r\nha+VWCrNY5JVciYJuq3DLv2YUaQ3gh/EtTLbjKrchsk1tQMRrXUJKTxHEaHD\r\nXL2vX4y7kQiZwT8tti2ZfLM5H1te8V/JaSi1Q4V2XHYLJmsPQX8Gtj1rdAa1\r\nhpRn8SToEz4fx8EJWYfkW51PN1WdKMChJnafcJSaAMhKnkCkz203kdMhR93D\r\niSoAotyQhjUNmVl8YzX6PU5IvWDc058WY5rHPrwa5pGx0FMk9//IBZ6HWUQv\r\nliKz6GFWOmhvX+VlnkQH4+42TiRx0EvIvKUzhG9wor1Y2fzHYPLp3uwWDgn3\r\najk9hZ6ru28NykIl+PGVcxX7p+qKLyl/E3hQ7Y1OBVkguI16BA4J1HxHDqOS\r\nfZya4ZNiTs9U+N1zUK9pS2I0ivrkI1+Bua1vw4PTUSidMxEabh1e134PQ1Q/\r\nWuywjntmmDwgTwG8/RgAzYs9uyd+XzV4TF+TvbUT04WdAvO12ucuAGTjtCGs\r\nY8Xy6h9SvyopyzRQtjS332Nf6vmVZG63dmY=\r\n=7fTm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"259fb95ccf1d41c3210676266488d0705f9b544e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-259fb95ccf1d41c3210676266488d0705f9b544e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-259fb95ccf1d41c3210676266488d0705f9b544e_1681955298610_0.2122861958570066","host":"s3://npm-registry-packages"}},"0.0.0-next-5e29b9ff5907de09aef425352f5bb129b192e22c":{"name":"app-migrations","version":"0.0.0-next-5e29b9ff5907de09aef425352f5bb129b192e22c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5e29b9ff5907de09aef425352f5bb129b192e22c","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d6aa22d79a7debfd9bc925d5ec350515d454231c","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5e29b9ff5907de09aef425352f5bb129b192e22c.tgz","fileCount":6,"integrity":"sha512-xTdFmfXD41MYSiD3pR8n8WcbUAN9QVF26e5sFByo3tES+OsHcYTq3CvzIhx+dmKLkRpWHEVTur1UjrI9UCqUkQ==","signatures":[{"sig":"MEQCICrix53p6VYFmDCZ+Eg/SJGH7LqdG24BIy03i+XFGeffAiB1r2aM+KlBbHbXiBHMwaj4o5SEPqSiZXxk123tC4spAQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQYOdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWtg/7Bez7QaQ/MFc5zeZutvuozY62QucnotZFBRPnAhdnLqEAxzZy\r\nIMNKsN71i/JbGjjK5AZLbM/J8afeTbxaDCe1lLhN5YfADE9u/3R2wk0uDh7s\r\n0Yk/yMdZ8SR0Yiq6BQLXUrgd5yfqjaqD2q26YKTctwwOwx1xSHkhA9PWwoZF\r\nejcy749aJdXsgAVNXnpNuzp0SZy0oCZSWdW1y+TlU6JFyAtAXa7QA9kOO/9i\r\nWVzfU9vXB6idj89Zqmk9Up15Mi6jDMPbDBWznLstdQWReDxu+7BGjDg7B66E\r\nFApLYZF9pzX3McIJoPeUWo0gA7xf5HjsEObdUm8WqlE/0sOgWD0KlIRRstOL\r\n+JxEIP/FW5WXBw+ibRpLDv6HkUADjCBqfw6ocum+p9prV/aHWM7Hbj6ynHph\r\nVKkob63hDQyby8zq6t6TkEyU183WxGjdO2iwr1cMSRXR+fFS+ozryBtLGIMG\r\nJ3Keseh9ERI23nr5iO0J6jCJcBHeUeJscSYAkDVH1yiglTMGjQ3jQka6wHY7\r\nFAgpCGEafrNUjNnRDd3H6GANXCvB+/rz7saVhMxRSxyyV+1kKbrt4DDHa4Z9\r\n4Bz/KOPcNBoS37W1aO/A0DoDCj0y2PfT8Xw8RXoWj1dnxB4Pi6DBFVX3UNPI\r\n4OCuhxbj/cKTbPC8msa9v62qib4yNUecKsI=\r\n=tAmF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5e29b9ff5907de09aef425352f5bb129b192e22c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-5e29b9ff5907de09aef425352f5bb129b192e22c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5e29b9ff5907de09aef425352f5bb129b192e22c_1682015133260_0.33914201098211905","host":"s3://npm-registry-packages"}},"3.1.5":{"name":"app-migrations","version":"3.1.5","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.5","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1c01dd50ee52da3f4c255775cdedefc50b44565e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.5.tgz","fileCount":6,"integrity":"sha512-25qhpf+SLi10FOYuVDuy0xxjreGr4Kom7eyw9jy738+j5wFSP/B6fDqAoMJX9kwETov+bm/FoIjhxU66wqN27w==","signatures":[{"sig":"MEUCIQDIGtgqGcYqErt6zdtzQnfq8ljtdUqjsbxYZE6YYcpTEAIgT1/+AiJMzRqkZmbIjaV25AhP8jgQ31Yg2Ox85BA//C0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQmMXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGkQ//cB9TDHIkZDzjcoQA59WI+SIqBlcdayLzxkQAt1PIuOG6JipW\r\nHyR2cPhnyy6f6amXk/zjgYDV/bsIPFRQUmRbp41JJ56fHcaca43kiJAEcioD\r\nHUe4+3LPe/E8C3N9VNoS5MBG0Zfeef6fPUugNrPrl3DtE5pkI8X9fg2Z9qNU\r\nYRmgFVL7AXAgIPDbqhDKYWTiUbF8IbwfMPbJZa7BF7u4M+IgVOj36y75cpEz\r\nEIkFCKTD8lX6R5yGX0zodrJUAno8RtQugGKevwxwEekJ/26UrO+Xwx7SLERi\r\nnuY8ASlGn7hPQEHqJQp/yUAwNYjUKsp1RP4VvTPXSEDtPvYnlBnfcBVx2GlK\r\nB6f3P6tccc2k5dD9fcO3PF7RppECLj+mXuL8XSGlTrnrAO6OMRzrmhsjlmUe\r\ndi0Y9bGGPKcqWE5cyGNh8p2nZ2m4GPXgg1Nzzy4+h3rpQp/tc0qO93i7ux5d\r\n/A7w/lhe389QjoMGJQ09B+Z/Ecutp8+zbKe/+xdBmWXmlTZRgKE2naslLpoL\r\n+7zRea/H6N6boDDc3ZL+HTGfYgumW9xrnJEEaFY4RUwOqr2dPz+GX0whh1rq\r\n4Y3JM3vLg7JTR9XJV83SBRgFbe1cJj32C3azVoG4RmEct9U/A5Ct0oIzwFV3\r\n3EPzBqgsB8Xq65NFt2stWebTpgslHP4rxsA=\r\n=YOAb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"e4f2643a437ce2407657a63246e303d13ce8297b","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.20.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"^1.1.5"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.5_1682072342850_0.04898210892255439","host":"s3://npm-registry-packages"}},"0.0.0-next-604fdbd72ed8b3cb7869997416b51ea07fd77400":{"name":"app-migrations","version":"0.0.0-next-604fdbd72ed8b3cb7869997416b51ea07fd77400","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-604fdbd72ed8b3cb7869997416b51ea07fd77400","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"29bad929c62f0837466b5c7117d4d3e77008debe","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-604fdbd72ed8b3cb7869997416b51ea07fd77400.tgz","fileCount":6,"integrity":"sha512-d6aZ2UJRBQDnX5NYTqTC9E7oLt132I7vNzv0jVuhdlYc9Hxr+ygS5lADtXmjTF/70ph4VR/jm+cvNre0CpmCNA==","signatures":[{"sig":"MEQCIHIodpI1vwjfOEdgF+tSZyqiyfyTZu1rU6yxChweLgDTAiA8Vn6XtskW2rsUzBff0IqT02o+DjE9b9sweu2aRChG4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSO2EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGcA/9G+TMqWfUqb4NbjSC0Mjaq2lxZmCZ2z0AWPMvIKKOGj9BNtTk\r\nOV2m6MtYY9mSZIrF9ivkRrgaKFGo5m2kAVGN04XEa8X6W2yH0X3I0R/eaX+y\r\ni9L74TRURyfyd39zkc123MZTE+A6pxOOVwwrcSMUn00RzCXmfazJdwi/o38V\r\nczhnXGRdOu8nEVcB3ZF6tG8rfpZKZHJd3N9DHqyveuIRzAPm7aF7Rmmdt6G8\r\nu01AtrF+2H6YL3cbjmpstcKwBG2jP0dSopcMllaWt23DkPjc3JLdjv5kzGFP\r\n0hs7bQSw9+/WYS5vW0vNO2xMCa+6sU/OQkuxGQQLbubVoqvt5ObqQ0pqT99M\r\nSphE5gc2Z5xeD3ojKbGHvL024Dswp7F0Kjqt8VmcA5L18n+yAi0pyTU7hOC3\r\nCBlOAfKHnzGPYHCojVX/IoHwGfbgQOimIshVcJg+ILsn7wM/NUsJ016ARWTL\r\noszPcJfE69zM350+LB6v0y71e7nwUliU11vIWWuoXfB6CBUUukXXoB4/enGt\r\nXXNSQuL1tbB25BfgUYoT6tzZJ5rlPlFk//acNOPWzg3V7U7w44XuBnlk/vRu\r\n1XOsPDHI0bLnoXMEttevYoK5DSn59BR69YjPNVRCcDzk+stztqFtA0+0yxJU\r\ni5SEug3BHBDGfErGiDuoNn688OP150uDelU=\r\n=vp0C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"604fdbd72ed8b3cb7869997416b51ea07fd77400","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-604fdbd72ed8b3cb7869997416b51ea07fd77400"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-604fdbd72ed8b3cb7869997416b51ea07fd77400_1682500996639_0.8126686651230295","host":"s3://npm-registry-packages"}},"0.0.0-next-35420eb38f659fbfc4bff9e72644deebafef275e":{"name":"app-migrations","version":"0.0.0-next-35420eb38f659fbfc4bff9e72644deebafef275e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-35420eb38f659fbfc4bff9e72644deebafef275e","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"357a1139a4cde26a70f5b943d14c567eea6b8ffc","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-35420eb38f659fbfc4bff9e72644deebafef275e.tgz","fileCount":6,"integrity":"sha512-4PMLEzFhsHuJNk9gevUBvA0KyJvfLmLD2e5pzYFg1dhXySTGgbFAoM1mMVlhBSW0ElQ+7r5vX3NzkwIol8bk3A==","signatures":[{"sig":"MEQCIG7bVPTWdg1hdCEN7Agctvmubf6WKb9Jlp1Bdz7Gr6xuAiBgHqOeRinphxBUqQqRfjeNgsIaILZf0FWMhi6cysoTNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSdZkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRug/9HgLsj5ZZDVRPH7hYrdg2Kx6nkIkGDTIPm9BwJgwuoq494ajH\r\nMT6/v/y540xTSXr8XQ+r+PoWfI0PeabWZ/c5zAzQ/kPRNF5O8I7ayY+dDGX6\r\n59SMZj3sVaZXML0p3kve5P6f3opJK09D7E4SDHFdHnhgBfMSAx1eFibNRXFa\r\nBT+XJdpu7QqKqNfMVnGDiwmBN337WtJf/2DbDjs7OkX3PHZ5MaoCS8ERJRGE\r\n+YL94rrw735U4oh5wGGEWaJkS5/hMF/YBc9l/ZvKLDHpcp+ef3VRm/8veOvr\r\n86gX3G68OwtaiynjxjGwS9bo2BmIPrHU92lJEhLfuwRinmKV6E6SJxBk3W/S\r\nQ80o7dQwe07AqAaf9JjoDflIo/EYwle6z96snlWuajv9O42pBrnwnGDogFVb\r\nBIZlkQDvxjS+UaqQo3jJ1znHv6D9TRi+I0ldq8THLzV8wsnBzLnWs6BRAUvn\r\nadecLxR/gNiEP/aOOcwi80iSRw1H/RiTnrY0UcP53z9S6bw7UJhWn8f8I73L\r\njL6DS2aO1bUvc0w8ag1yUR9XWLcaXYypaOBKeKlQaU2m74qSXRHSWYHuXcjE\r\nbe0qPeFtEZoI52zW30EQPSVupnoE2wQpf88xlesmyWBj6FnGlHgDw+kFi3hV\r\nidAenc4sMP0cn+z+BSc5RoGbz1TJv38lcyo=\r\n=wyzq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"35420eb38f659fbfc4bff9e72644deebafef275e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-35420eb38f659fbfc4bff9e72644deebafef275e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-35420eb38f659fbfc4bff9e72644deebafef275e_1682560612542_0.2810168181182271","host":"s3://npm-registry-packages"}},"0.0.0-next-f8695ae3010acc2686c0a530f153ebb01ddb040a":{"name":"app-migrations","version":"0.0.0-next-f8695ae3010acc2686c0a530f153ebb01ddb040a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-f8695ae3010acc2686c0a530f153ebb01ddb040a","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"7e04aa59f2ae423c8565ed856fa78bd04b5839a4","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-f8695ae3010acc2686c0a530f153ebb01ddb040a.tgz","fileCount":6,"integrity":"sha512-jjGG4eB+mgE/2Enjrrx12YLKr3m5udYbY1h/NLHmrFGrIzIsokuL3860eYahQZlgWPHKNbHN8qlLwsGdvv8aBg==","signatures":[{"sig":"MEUCIQCuXkQaZunC1LvEHkbQgjFpox/2ExEo0LV50PRGjpKD+QIgMGbGUUzKxI/8NdnPC9bVEAYUPhe6uDJro75PGYj/YEA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSj4QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6ww/5ADHZRSZisx1HaIkX631lo7SgmpyQOGELA/0+bBGIKFGpUJGR\r\nceLhKcV01wTvT6srkFE79+0EML44/ai/y64qDxtKwRwMCDDaRlhkAoTNkxmv\r\npMQH/QJvCaTgqbmc+pOxPDilr4cYRWMA4wKviWLZ+3+Pe60yfzfJwDB6pv0s\r\nzTZqq+D1cp6BAIge1OnnPrOdSz2j6FIF+WUiPL9Qfnm+7elmjj/ZncLq2xEv\r\n0eBfYvYHZki+lzmmnXXID2w+YUOKppj13O++fwJibR7QqTZ8tAMq0rg3gfhq\r\n2L+B73FvmTt/ARjMJ8vKalbd0V4B3591kiWK2MmqsNDf62u8v+zVvzs0+jQZ\r\nY5BV3uFQmCR1UpvYj8fHq3K2L8i9n/vYj4JnnxWFTz0YMciLb3xjC96WS5Jx\r\n2R+J44wOH4mN6L1CgYNpMqKMZdOHQDEOfAwtZIjtiBbOtxDsCd3Rxav/FKZF\r\nIqeOhbNrdFVze0mtNXyUkeuynFxkW6lhAAhtwXnkyqVYxm03l4RHY5NE7E0e\r\nmVOlVD5ec1NKF9VjDz5/f/OF7A2s1JZVjlOogdUzvtckHf03NIo62vTsjAZB\r\nIWNZ0pqxPpaYSm57Hss2FBHspXgxX23sjCHV4Pin4xqdeQyBBnOJjjMC4EpS\r\nbtbGeXzhtc5QDGlrY4rNAfK53DCR6agluKA=\r\n=wTXK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"f8695ae3010acc2686c0a530f153ebb01ddb040a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-f8695ae3010acc2686c0a530f153ebb01ddb040a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-f8695ae3010acc2686c0a530f153ebb01ddb040a_1682587152636_0.3245393888722923","host":"s3://npm-registry-packages"}},"0.0.0-next-5965a9bfaeadf7fcf283dfd3fe19aa58f68c5c1c":{"name":"app-migrations","version":"0.0.0-next-5965a9bfaeadf7fcf283dfd3fe19aa58f68c5c1c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5965a9bfaeadf7fcf283dfd3fe19aa58f68c5c1c","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"53332a04f995736bf07e38506d937b1cc24e961a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5965a9bfaeadf7fcf283dfd3fe19aa58f68c5c1c.tgz","fileCount":6,"integrity":"sha512-u1gO8THTbSm8+cypQlVjG1KEOZa6VBPCA8+Q1yXGCsccR0GY2Rk40Qzn/9CAP6rtsUp7hwEHKBKAC3XvyqX6nA==","signatures":[{"sig":"MEQCICYtyLZvZbuk/7sRI9XO0NfFAvoM4BSsUyxCqJtQ9VirAiBKAg07SOuy2lFYcsu0Y5BxU5SXy6igGdjAccK9w31BpQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSuzuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopYw/+KVG/KskDORJBB6DZwWDOc6COELWAp9dvQiNuqeetvoriF2bq\r\nOvhVcOrX4nVcKuXl2g5uXjCddAQog91SOxgIoPjVy08smdtSgKF/UrNLeWfp\r\nK7GOYUmXGQsPOdwJigA59B1x9pwRxT5iWb85gTCy2lcGBN+FZWLxDWmTZCwi\r\nB7kp7eSbQXJj6HX6UlY66cFm/2OpCEsx07sbPFbeABLeCI0HbRSu+/K/gYbv\r\nNHr+avzaHshpUuI3S9WEGxYgyYrApZlfGc+hCtKV3MayyIhpzpgHiKTt9VuZ\r\nHsiybeCRsFdH4YHWOaGjq5uOpzdzY5P4CkkknlNByW1d5bxYRLamjdfJhqIk\r\n8MKArZhPnX+APJeH4N9HLpwe9Df4yLYbE8KeXH7geKjIo1aJo/9WuD4qCBDE\r\n7YWYOwCVNzLsdsynr+0rTzBBBvtHVMsEAWS0o+afmGYw5bEYzCuZoxVhA3+4\r\nS7UM6itOQO/JyNGYx8Da8+lOt97EJwERErArxGhaxXu+DTq7kWxSMowXf6k1\r\nLHnwKs3G4wDCs6XTmrliJmVblLoiAnMWmS9aFsaSeoRKsdLcXzNA1YQr4A7W\r\n7E1bm1TtbiHG3vhBOtMl1dDjszPBRGS8StOnChXFRYJLFTA82qPgmHiwiP7H\r\nkADNNkbLYrHu0rnd4uIdc5unZvPoojZ5/4U=\r\n=7QbI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5965a9bfaeadf7fcf283dfd3fe19aa58f68c5c1c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-5965a9bfaeadf7fcf283dfd3fe19aa58f68c5c1c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5965a9bfaeadf7fcf283dfd3fe19aa58f68c5c1c_1682631917854_0.37486845888081377","host":"s3://npm-registry-packages"}},"0.0.0-next-c7e6e3b221454842020aa1a9adedb2461878d995":{"name":"app-migrations","version":"0.0.0-next-c7e6e3b221454842020aa1a9adedb2461878d995","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c7e6e3b221454842020aa1a9adedb2461878d995","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"826f56676f403d88b26ec580f8fe4fbac2f5cd8d","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c7e6e3b221454842020aa1a9adedb2461878d995.tgz","fileCount":6,"integrity":"sha512-DnSJzvnsWEKuJpBpxrDNCq7lCTA7F5mtipYnt1foyI+yUUtKwSv+0SVNT3GfiDnvhDivuniiLpkio1t7WCPaBg==","signatures":[{"sig":"MEYCIQD3ljpk1hPFlQfEE8SgDUJWxl+8//D2ekol4jbygBaaywIhAMnGtexSpK0baNuuxF70R42Bwaza2xv4KvWlLcIfMAWi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSvNNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiRw/+KRTyM8TP85f3Q/QZj2v1KtkkaDjFiggg5CCoYfS9EjB+tBMC\r\njKkkWy+JKp4epVdzLJycipio54ghAWncDc7vqz9782WB+xpnxI10iVc17x0S\r\nzGwGFcDfI/yVkFh9cGz+5mfOvdc+fzuoulMfgWgblyts7Gvy2fQO8CbJ0wcu\r\nVL13qgDJryYAmymcut7oERI+lx4sLlpj0xzCaY6Q5/A7Y1nxFH0XwUlHEv/R\r\nvfkNEfL7OsyRvQhBPLsk4cRR7U52m5GiixJALQheJ0TQzU0fQxPkq5DxCs/L\r\nRclIiHwWHJYFYqDGHV7bPelVtSYpb6fSx6OKOi3a/sSSw6oMz7xuCufNrWnn\r\nhV0rVcEPHNgko7/rLG3BJtUWMViowQftUw/cxp8F8ndfUsqKt8O7S8FsVjC+\r\nDD/u5SJBXhPHERHe8w3/xEpZQUJ/aSa+zjzt1SgkLX4AugxSjHpsxeMD7Fjs\r\nCFPPA3b5HBdyhRjjH4QACRsQ/3SssPmuOk4C7kEKErMufZ3i/TjwcVkYim+A\r\nQp0FjV4a5PLwr7OhFTCFjJEIZG5EcQjg5UHgoBB6DhFjWjaZP2Zdh0zriqLY\r\nlaxBuW53vx77ASAwBBmvOu0UYdC7VwD4BU5L60Vtl/auPb0DsGb1uTh6A8CJ\r\nvVpizXryMPOIuGw0f588pT0oIGXqG18k9BU=\r\n=oNbr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c7e6e3b221454842020aa1a9adedb2461878d995","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-c7e6e3b221454842020aa1a9adedb2461878d995"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c7e6e3b221454842020aa1a9adedb2461878d995_1682633548850_0.6074562107011359","host":"s3://npm-registry-packages"}},"0.0.0-next-07a892207f0c33a49a10f047b8e98d59fb1df676":{"name":"app-migrations","version":"0.0.0-next-07a892207f0c33a49a10f047b8e98d59fb1df676","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-07a892207f0c33a49a10f047b8e98d59fb1df676","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"6ab9faf8731f2b1a982cc9ccc6e12a6c5266c160","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-07a892207f0c33a49a10f047b8e98d59fb1df676.tgz","fileCount":6,"integrity":"sha512-IF4hZ0+u8PnULLP12XBQ1N3ecmt5yzDwUwnwwR+hjXvdfdLuYEuokzT02H2x8NT08ulNSoXRa3eI+C3mdHbJ4Q==","signatures":[{"sig":"MEQCIBSmY0AI2ga3o32I4sBUGecx1CC/dBsQ6lFOGE4+1ExQAiBq6Vum5y2oUQqoxwrKUzLn4OT39xgY1ZK+uVD8gT3lIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUflVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogmA/8CCXI19+zBDc+MF0hacDFpFSP4TGHWHvg0T9erVsn+CX/iPvN\r\n67kEV04qXcik4/gR9bvn8AcbkDy+FvBhbR7/iotpUhp2DSQ5h5QA3fsYSce3\r\nTSItkMneJNXvUXFxUQqd3vnlEdY5gqmFPudb2Sc+TJUkZ3/QDVVfHiN5IOfE\r\nDRc88aGyZQMNCZ15DidLZ6DsEbhZINrqinrhzmwv22DdnNkbz+2+CZYqpbsm\r\nEDCY1jW9ql/WnnJzuuvG0s175dnGJMyQIqLCbvtsZgipp2959KhZH9GMJTyt\r\ndtOel6dZDZvtwVSM4YjBRlJZrk6UZ/Pbq7aUzKcgi7OubHpDRrd30A318sOc\r\neOXRttHWzOBQqMjYwNtc6rGValvkpZ2blV/szjCGvqPRHnjRl+DYeBhn7K8N\r\nnZiMVwjqMRMermc+8WaT/PDT+/rC4IgXB6BNyQRmomHltIRGrIDJga2uavpK\r\nVNXlth4pPQsxRMgLpL1r4WOdd80rfE3gc3gzKDTyIOygB1ccU/IAo/j5UIOy\r\nCTm1sk8JLCo+ugcxD+YrunoPwNxEEo8penkwRxksldbKPtA//q/XQaUZ4rPF\r\nVF38rzct0d8aS8UvTXAB1X/jeGRaZ0DURLvAsyCnlU8e5kOQflF1TlcjRVD7\r\nWPBN0HaG4Ebxh4lBXWptpXNhYPHZcQWgz8M=\r\n=0zKf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"07a892207f0c33a49a10f047b8e98d59fb1df676","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-07a892207f0c33a49a10f047b8e98d59fb1df676"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-07a892207f0c33a49a10f047b8e98d59fb1df676_1683093845342_0.4050180130020484","host":"s3://npm-registry-packages"}},"0.0.0-next-3871489afff599d3c0e5827b05c6cd97787625bb":{"name":"app-migrations","version":"0.0.0-next-3871489afff599d3c0e5827b05c6cd97787625bb","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-3871489afff599d3c0e5827b05c6cd97787625bb","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"eb409a6b0ce8dc4cf8a6942b5a4c79d49e19a95a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-3871489afff599d3c0e5827b05c6cd97787625bb.tgz","fileCount":6,"integrity":"sha512-knsBdTNUR56Qm0ZaLCsgsBOf6yuFbAtOT1xLuM63OZlCW32malhqrXnIRNtyX9MmqkUSzMoLMP2W3oeI0qBSYQ==","signatures":[{"sig":"MEQCIHytCzfK/0c5LGYUOYtu3hfXc4n/m8dbtmm+8i5faUbrAiBSiBiUQFterLgH6ERb31r8p6qc4B90m8CngieVEUqqig==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUp71ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/Gg//eObI/8Cp+EIk0MQxC30RP3kuXGKMoFW2h4Fy7g0RQId6wFtX\r\nzfLpLmw6LpIbP7+lHDhLRvtP5ucdRRs7FCojbFQwp3h7CTjfs0mQXBUO+DZf\r\n3EPeLXn8SO9v6CM1PKh3FYljxYtUjpNF4Rb+L0Vkye9FBRb71vlqDN/ky8b+\r\nXxyLjZqF9eM1pgziEeoBDbKIDv55JZr2qbTMweNxMESFy6YbSrC9KLEDCaUe\r\n0AOXV7DwU6TgofpCiNwHgdXME74TrQ36bqWxx10PW9oyJMxz7hTXWKVwgvV/\r\nqj5O3BJhOefpM4JX6AhXiZ55EqE3F0en6PB38FVgsp6amB8ukuIIL1bV/Jhj\r\nFZsczEDM7F3MfDdusHEjz1eQ17wJ8oiuiB3REFAMMP81hhJ+tkmyLM6hpj5t\r\n1cjI8Y/riCFWjicAZ/lHQo0MPOIn/vARWZIdzkixQ5LFycLPzH8zwyHC+4mt\r\n73XQObiBhGIm4kPuKEouLGQHgHw36xEf/Us415pWYCih4EtkgAf36r44x6lO\r\n/J+f9oRHrzDP2SmqxOchkjmkZ+Sj4yfX0TIWgOupkPJalIbe1fnfiCDjjRmx\r\nt6987dIVANpn6XpES9H72u5M3oof6Shc6pieNy5ff2nzER0hc3FuXX30BYQM\r\n5a75BdBn99MZDNp5imdTe97tjNytz7TJ51U=\r\n=C9Gv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"3871489afff599d3c0e5827b05c6cd97787625bb","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-3871489afff599d3c0e5827b05c6cd97787625bb"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-3871489afff599d3c0e5827b05c6cd97787625bb_1683136245179_0.9122697250740033","host":"s3://npm-registry-packages"}},"0.0.0-next-27b7937b9a9b4fc9415bbd7962fe0f6b00d4be5d":{"name":"app-migrations","version":"0.0.0-next-27b7937b9a9b4fc9415bbd7962fe0f6b00d4be5d","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-27b7937b9a9b4fc9415bbd7962fe0f6b00d4be5d","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"89157fadb1560e0b5289e11be5b6d1f36cd9d68a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-27b7937b9a9b4fc9415bbd7962fe0f6b00d4be5d.tgz","fileCount":6,"integrity":"sha512-69GdHXuqSG+R3ezo7v29/z9evQuLif0kKhJQ6TwyMicsvKwRIBuSrOs85I8dZu3XYU8oOHerGzEbVp7cMVe3Rg==","signatures":[{"sig":"MEUCIQCkDu2j5ckIBGu4a9b726BMr3fC/cuOzgQraDHnv/F/ngIgJe06IkxImL62bVkCND5NVhr4AT3hjfANOP+bjm1m3yw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUp8MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoakhAAjq/OWdKV19sNm2/5VKjfncp+J/ovQ/SaINWwkuY4N3mfjcZl\r\nHSSEl3Lt+zhQVxo7jdZnEUNQCBULEcVqiQS7UIFx2FAMe2uy6l2OhM03mOM/\r\n7m4XVPBdp8y+LzzJ0IVcuRSMc0A+G1U3xhNSA/n9NnXj90iMTvmtIsAenw5g\r\ni6J7wadyL1bSiGwUeXdcgEItZeWgBeRQAuuKvssBIo3yd1T60KFfPF/adcLr\r\nzk5chx6s6v6Hlcf+26p7ovVxfeX7lRX97CxhOxa61GAXg2tctcBZTr1luROE\r\nLqJQi8BxLt7U+zpZ0ZYn0qzdkJqAcheASz3+ekiElw+Nb6FigliEsjmxlszZ\r\nAK0XpxNebMJMVI1IXqX618YE8WGFmvvgdW7QaqrAD6+otcUnxNym4bmyN1/m\r\nU/1YCxhb2fdc2y2ouk15a84H6Tj7xGe9IDCzz+EnEH7zOUJGSuTxu0FzcTOj\r\nfc7IJAhsHvlD7UfUsLcW/yASF59i+to6LKmjBQ35ReIlwnXuZaB8yeyBL/W3\r\nnoeSzAbOFpqp+dF3OWZQibwd9Z3s+GFQz7ScEKxzVf2nzzy6fGMRmFb0HhHG\r\nmXTjfWKhZ/Yt3cIOdCHt9u8Qja0poj6rL7KyS7i6CH3TAARpjgCG3hpRJv0i\r\nhF+En9PGkaiSrLrF4zNp4mQ+LeyOCgAtL9Y=\r\n=Amvi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"27b7937b9a9b4fc9415bbd7962fe0f6b00d4be5d","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-27b7937b9a9b4fc9415bbd7962fe0f6b00d4be5d"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-27b7937b9a9b4fc9415bbd7962fe0f6b00d4be5d_1683136268475_0.3322217749605483","host":"s3://npm-registry-packages"}},"0.0.0-next-23c47176cb8ae215c36676e7e063cfda61b887ea":{"name":"app-migrations","version":"0.0.0-next-23c47176cb8ae215c36676e7e063cfda61b887ea","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-23c47176cb8ae215c36676e7e063cfda61b887ea","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e916ddb3275e4466ff1647b6e69ba2c848cdb4d9","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-23c47176cb8ae215c36676e7e063cfda61b887ea.tgz","fileCount":6,"integrity":"sha512-Uq3IX/CNaJdOwiYJc1CzGzCXmbw1LD/2Lay2Z33rk5DAhvKzjV+7jZZGVD+STp39abio1RuLDiqHZTh34+Nmbg==","signatures":[{"sig":"MEYCIQC6csHXagohRRVkUOuysT0VcwHbvtb6FnL0gTSy5pGdIQIhAKuNZJUMs9extj5tTx+PvIf+HD1kg0gk2EMWUwhQ8nPx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUqcCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvUQ//QLkw4q2FQwPdTEWHUZpZQNrSePKKXxaH18O+mq5p1nXiuFOP\r\nhTX38HrMIMn2k5NCnzq6ZFAH9RAAUDsrGInARbcniJ3jEPJYKsYw68qk8pUF\r\nnNgdIX+f5m+SzrLY0oJ07PUryXobZNPtyeUz2UWiC1fB92oN3eNbyyoeYSv5\r\n39/KvvbUTzLX890X2/kQqe/JRyCpJKyeRmUqsWXrfLxRq90dBeot6STKMSPa\r\n4vRal04/O1I3Pwc7SKU7smJ96pQ/zRr56LMrFF1Z9TMKpxEUdGWk1F7jUEe8\r\nQbw4L9hNsbRYvgHUp5S34N3xeNKk+eo2gbn7uOgY5K+HMwkUxgsxFBA6Vvgj\r\nBY+WpUgFYS+ymunQltBPesgNnAnPiXyED7+ZfAHjT2AMGW5Em3EZjDf8uXt/\r\nu7h8wU+G7wrsrRkGsnFODvQXhZCBVJDjOZ1H4Sb3GnUjt+Y0QnJCTc5G5Nnw\r\nJTgOFON4vwk7oP6/4omhMWzxMpqZsSqhwBuBJaBBb5/PpIesXjQa6qb7/n2o\r\naq2WdKRh180MvwKTsQkkduQyCNOga/E39vJ2KKl+nh8u8a8GhhRab9rodsD1\r\nx0yeM4Twczk9F9cY7chBGnY9BvFP4cx2x1YMNLbQiMZcu7GISKJ/GU0OGTBn\r\neqTQ3k1pvNLQ3W9WvxpjtupKZ+wqyJ1yF9o=\r\n=J474\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"23c47176cb8ae215c36676e7e063cfda61b887ea","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-23c47176cb8ae215c36676e7e063cfda61b887ea"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-23c47176cb8ae215c36676e7e063cfda61b887ea_1683138306424_0.41642087361375646","host":"s3://npm-registry-packages"}},"0.0.0-next-28d3c6ea9e684b19e4fcfd38c8b4e94fba06844f":{"name":"app-migrations","version":"0.0.0-next-28d3c6ea9e684b19e4fcfd38c8b4e94fba06844f","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-28d3c6ea9e684b19e4fcfd38c8b4e94fba06844f","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"535a533e39ad7133e8ee498364ac3e730d27fde7","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-28d3c6ea9e684b19e4fcfd38c8b4e94fba06844f.tgz","fileCount":6,"integrity":"sha512-SYibOtnCgC2kV71JR3BDDdqXR7KnIGNT+EnaVMvxbyMIKSg8t2DfwkswaI4IIUAYFnPj+cbXL/RmSiS33R2fDg==","signatures":[{"sig":"MEYCIQDmNl+gwb7YPA3iy0mg//6VQnhyuezjMRWAa+2UWd7gDwIhAPijCjJPvqSpcygdZO+guH7o+z3E9OMN08/PJHPBW0p9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkU16SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQhBAAoheiE1G77BB6yakHRalJyM02Y1Tqbb7ftIXQGHeoolPe61BC\r\nB2pdsqZy9aNkHnLwIcqouC2umV3QUxMMAJsoiDkR+D57ei39GpHemMuqMgT2\r\nTDXwolqO8VVyHoZb59xhT2iPhsUheQswT7HMvWpWguGyi67YvhvB1MVYXXJp\r\n204Yb1AwsCgY9xvwGbX0xO2EkeoNYEhQaLLrWRvOUFiD30M3rVI194CsrUyS\r\nZ90zG+zLxpYSNoQn6eh720CNrnO1MZF3X0/biGJ+F6zAa+hAuX+xGg+qIowI\r\nfh1OiBIhFZb1bcU99x8qqZdAJ0oNSQngppvWzIk8sjDjehIEEL7vppphj9no\r\ntc89s//Y4UeEFrTG3kVfq2Gy3QH7fAFPCxNiVhcykiBje/YCOuralBVPnRBi\r\naXqNr9b4D8TaRZhn4uEnPog6OIaU7c9M3caQ8wz7KILS3as6TVBsNQD80B79\r\nnrcQXmIwskoIgxsaNy4Ze2A5qx2kBpIS8xWTpGrkCfujL4Yn2tgfpZ4aPKux\r\nXOy2EKbIxIYXhY01p8quG4h7rdSWNgvsOFrf0u7RlCUAn4MqRLtwZdcfeKGq\r\nISBWJLmtgpPQc3Z7NmRtu3BZyVcYdHgjIQcwuEbzhfxqfcFTXMMOMHO0oqB4\r\nfGVud+QA1Q+uNttMsaCJWLW/MUL7yZZE73w=\r\n=bqJ7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"28d3c6ea9e684b19e4fcfd38c8b4e94fba06844f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.0","debug":"^4.2.0","lodash":"4.17.15","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-28d3c6ea9e684b19e4fcfd38c8b4e94fba06844f"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-28d3c6ea9e684b19e4fcfd38c8b4e94fba06844f_1683185298225_0.4202752098172704","host":"s3://npm-registry-packages"}},"0.0.0-next-6c80d388bff8033f8ad0136897982d9caae9b2d0":{"name":"app-migrations","version":"0.0.0-next-6c80d388bff8033f8ad0136897982d9caae9b2d0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-6c80d388bff8033f8ad0136897982d9caae9b2d0","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d0acc4780d225d7b2dfc3182ab7ba361fdbfb0bc","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-6c80d388bff8033f8ad0136897982d9caae9b2d0.tgz","fileCount":6,"integrity":"sha512-gQTcfJisutudUqmTyAYxLrJKb562wAtELgsPjJ9te1PAA4w+6Cs+7D0mCpeTslOmS5Fmt5bgKo218ZiUvPxh/g==","signatures":[{"sig":"MEQCIHXwz9ajHrxBSrAH7fHU5WebJNzc/QJNJOgmcIaH/Gr5AiBDaVfE23AJ4P1xGrkM3fJhExO9+9X8MdLo//XAcpZ/rA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"6c80d388bff8033f8ad0136897982d9caae9b2d0","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-6c80d388bff8033f8ad0136897982d9caae9b2d0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-6c80d388bff8033f8ad0136897982d9caae9b2d0_1685571867890_0.2590061518092013","host":"s3://npm-registry-packages"}},"0.0.0-next-225e955061dcfc0119514b8299a0dc1faed48637":{"name":"app-migrations","version":"0.0.0-next-225e955061dcfc0119514b8299a0dc1faed48637","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-225e955061dcfc0119514b8299a0dc1faed48637","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"17abc7a6206cb791da70bf369c8bd86d005bc596","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-225e955061dcfc0119514b8299a0dc1faed48637.tgz","fileCount":6,"integrity":"sha512-EBxj2+jUCd4fvbOI01vBFe+2ciYW9fnu016i7gmFSBxaOJKaiS1QSNiqhyaLPpRlid2flfdFH8c4dl2mucSkKQ==","signatures":[{"sig":"MEUCIDRR/bk8Lg6UW11MiXxaA5JyPRLWNxE+Y0cAgbSqOvimAiEAyYOynnJPVhPUvyiWBsPp0JYJ0U4STc8dfat+M8YNAnQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"225e955061dcfc0119514b8299a0dc1faed48637","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-225e955061dcfc0119514b8299a0dc1faed48637"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-225e955061dcfc0119514b8299a0dc1faed48637_1685571907356_0.1857786573697635","host":"s3://npm-registry-packages"}},"0.0.0-next-0189b6f6005b078db9424856c7565117e3b45ef3":{"name":"app-migrations","version":"0.0.0-next-0189b6f6005b078db9424856c7565117e3b45ef3","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-0189b6f6005b078db9424856c7565117e3b45ef3","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"5c34294b4ed961429d7e42556d75114a61cc4ca1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-0189b6f6005b078db9424856c7565117e3b45ef3.tgz","fileCount":6,"integrity":"sha512-rSsBWeL1FOaHRr82qKhoeUUXNfO0O1TIqu0OC4PDuKq4Lsk7PPQjnaPqcsQ09v9sUBB6457zpTbqR1D+bbCMGg==","signatures":[{"sig":"MEUCIFAIsl/OCLZJsop56WL6BEcut0P5+8+BUJZHbWRTmHS7AiEApiSopJL7myb/4OltdAoyUOA+8IS0p0OI3qLvA/5gVKQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"0189b6f6005b078db9424856c7565117e3b45ef3","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-0189b6f6005b078db9424856c7565117e3b45ef3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-0189b6f6005b078db9424856c7565117e3b45ef3_1685749287424_0.7576203068999836","host":"s3://npm-registry-packages"}},"0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054":{"name":"app-migrations","version":"0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"0501e9a1acbcbdde8f1149b1e34d6319276b1da3","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054.tgz","fileCount":6,"integrity":"sha512-KbqjGcnK/flRnfNQO4NczoERv6h59w7ckPuHbDfWr+ufIdieiA+ic6fOMNGcCDzhyAd4/m5jltRmtJUvL+ofaw==","signatures":[{"sig":"MEUCICPSWnPXZsh+oPYxRlZpFGXniXPrYo5LYgtCwAPs+j6cAiEAzT0BF0878di+Tcmj9vjof6h4Ihqz5+xjNt/kxiqwj5s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"2bd69249c64bee9c103212c46e5c582418f87054","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054_1685749383762_0.6762037470151809","host":"s3://npm-registry-packages"}},"0.0.0-next-e182f845553cf87006baf04d22367061288c5226":{"name":"app-migrations","version":"0.0.0-next-e182f845553cf87006baf04d22367061288c5226","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e182f845553cf87006baf04d22367061288c5226","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e2d4c975ee00797b42843de2339a0ef35398c2b0","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e182f845553cf87006baf04d22367061288c5226.tgz","fileCount":6,"integrity":"sha512-ekgXOdP8QM419CM2AeStGpkMsBmBjqJCunAIRn0rTPeYPEoWSg7KAFhcUqmhWFgeJCm8KjrZJi62itf9RWUwow==","signatures":[{"sig":"MEYCIQCeG707Hj6gK9IBM7EyDUSfZZuCvEMaCI1RpbYlxT7OSgIhAPWPywFFDOht6kQFgvcCD3SR41Osx9EqDrYVqIE4/Zi3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e182f845553cf87006baf04d22367061288c5226","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e182f845553cf87006baf04d22367061288c5226"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e182f845553cf87006baf04d22367061288c5226_1685752345945_0.8505801213912711","host":"s3://npm-registry-packages"}},"0.0.0-next-2d8cfc600e1d4de8c32643b601d0c021734b31ed":{"name":"app-migrations","version":"0.0.0-next-2d8cfc600e1d4de8c32643b601d0c021734b31ed","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-2d8cfc600e1d4de8c32643b601d0c021734b31ed","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"42e5a634e399835ba72e56e931823eb8e0250638","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-2d8cfc600e1d4de8c32643b601d0c021734b31ed.tgz","fileCount":6,"integrity":"sha512-5cvcRNz9IlQ+xZktW6CBjKpKMd8uIK/oJa0CxiniyItRIh6L8O68yfctETrvvW+XRkjilFMCTr1/UwlJZt23cw==","signatures":[{"sig":"MEYCIQCclgvzRnTMLBMrY+/FoCOPsPYikpv/eGnBJJfBQ/JuLAIhAM7uOsBDsTRFWm+TqhdroDQN8Zxn8cstuDU4wNmr0Fak","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"2d8cfc600e1d4de8c32643b601d0c021734b31ed","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-2d8cfc600e1d4de8c32643b601d0c021734b31ed"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-2d8cfc600e1d4de8c32643b601d0c021734b31ed_1685753622415_0.44665089265838565","host":"s3://npm-registry-packages"}},"0.0.0-next-c2ee6dc98a012b4f4494e197ec69ca57d395b8fa":{"name":"app-migrations","version":"0.0.0-next-c2ee6dc98a012b4f4494e197ec69ca57d395b8fa","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c2ee6dc98a012b4f4494e197ec69ca57d395b8fa","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ee349698d91240ef96d7e440f0cd5e95d824267b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c2ee6dc98a012b4f4494e197ec69ca57d395b8fa.tgz","fileCount":6,"integrity":"sha512-rtWCjbDP9tWn88NWKUTH1S2F3Y2m526yZTiFLJh4Ss+bVgTa2zZY8EaCOSY8G0X3DkjzdA6/Xron40zm8s0IVQ==","signatures":[{"sig":"MEUCIQCJPFPtdU4GZLlymzjXDhxkfwpluqXCf+7DA83n5W4OzAIgWiCwdcrDM1MaSJyXCT6Yj0a/2SpXPSR9wAaDWYW1kFU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c2ee6dc98a012b4f4494e197ec69ca57d395b8fa","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-c2ee6dc98a012b4f4494e197ec69ca57d395b8fa"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c2ee6dc98a012b4f4494e197ec69ca57d395b8fa_1685754237841_0.12720645413949394","host":"s3://npm-registry-packages"}},"0.0.0-next-5d4d8579be24c292424443140492919b337a3b28":{"name":"app-migrations","version":"0.0.0-next-5d4d8579be24c292424443140492919b337a3b28","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5d4d8579be24c292424443140492919b337a3b28","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"4b8d3dc3afc9b06af79488cff60b7cfc6d0b4520","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5d4d8579be24c292424443140492919b337a3b28.tgz","fileCount":6,"integrity":"sha512-JCz0y9rDNy3d1TtXQFh0ngLwnf4dezK4PIaTVX9zEXOyXpesvLjdlXA5tyOWpDg27sgDlyrnonPmH0WOik3x9w==","signatures":[{"sig":"MEUCIBS/Ew2yjvDXGGAWTWI249rEeCSe3lG9zOyIvgNGNp8cAiEAwli69yWXK3O/LS2CV+ysUNoF/CIKZp/ZnMuhABIb0NI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5d4d8579be24c292424443140492919b337a3b28","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-5d4d8579be24c292424443140492919b337a3b28"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5d4d8579be24c292424443140492919b337a3b28_1685781335183_0.7334871264690761","host":"s3://npm-registry-packages"}},"3.1.6":{"name":"app-migrations","version":"3.1.6","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.6","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"4ab7f52ed545f8d53e091530a3e54f88ccd40121","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.6.tgz","fileCount":6,"integrity":"sha512-Lv/pDk4JjkbvFKtY+Ta5QYAHOS1BmgCa26RIufMAthAynI0vSzeh+10NNl8deWszyipbnvJOejwiIQJdNqj/Pw==","signatures":[{"sig":"MEUCIQCozXWf7+guqv85R7lS11tfEV4BzVHW9H1m8lzIREwQ6wIgIimURY8foJOHNTvtWc6QV6F7dX/jJEi8NFNWuI9q4pY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465},"main":"index.js","gitHead":"129d5d5375a2815408e12ee15e1b6bd566f52600","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.20.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"^1.1.6"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.6_1685961261247_0.0036151200740472955","host":"s3://npm-registry-packages"}},"0.0.0-next-e3e38f7d039860a6114dcb42a77f550e236b18ba":{"name":"app-migrations","version":"0.0.0-next-e3e38f7d039860a6114dcb42a77f550e236b18ba","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e3e38f7d039860a6114dcb42a77f550e236b18ba","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"7ecbf85268abad1f9649b1aa4bd0bbed261fd428","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e3e38f7d039860a6114dcb42a77f550e236b18ba.tgz","fileCount":6,"integrity":"sha512-BqanqNZpViX2xPu/MIo3CAdVOK1pX9mv008lW2bZwd7h5c3jkbOdYBdYOEGykZiyp6pq/54CXl0SDZLRw7ueoA==","signatures":[{"sig":"MEUCIEmJWlAiM62JYOodfuSCivL3SQdE7bDdEGMr8DoyrstGAiEA1qzREBIYslEHKvGZKDzIZrDvOKtuA+n72tyXZmifwEk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e3e38f7d039860a6114dcb42a77f550e236b18ba","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e3e38f7d039860a6114dcb42a77f550e236b18ba"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e3e38f7d039860a6114dcb42a77f550e236b18ba_1686040625788_0.42898272958578176","host":"s3://npm-registry-packages"}},"0.0.0-next-5e0eb3ba4d40569bc6acb4383f7c85221ebc81fa":{"name":"app-migrations","version":"0.0.0-next-5e0eb3ba4d40569bc6acb4383f7c85221ebc81fa","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5e0eb3ba4d40569bc6acb4383f7c85221ebc81fa","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"508d6976baee48f71178665f13f8079e9ae2ed5e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5e0eb3ba4d40569bc6acb4383f7c85221ebc81fa.tgz","fileCount":6,"integrity":"sha512-yC+K0ozYM442pX658exAX13jQNZRO1SbH0GuaMFt+MakjcJKTiRpyliISABVoWhdaMy4j2k40rxzHf96c8paqA==","signatures":[{"sig":"MEUCIQD5xMRQ91iHnEK3TiCxpMJ3FmIn0+tVcnONd45TXpvHVwIgUZLwLRbhrvB/lZmgsjpvSsAoRkJg0TQXhe+NrOzhwKE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5e0eb3ba4d40569bc6acb4383f7c85221ebc81fa","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-5e0eb3ba4d40569bc6acb4383f7c85221ebc81fa"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5e0eb3ba4d40569bc6acb4383f7c85221ebc81fa_1686050771338_0.18552918344372116","host":"s3://npm-registry-packages"}},"0.0.0-next-52e439f268b74410212a0d91a5ee39021eb44499":{"name":"app-migrations","version":"0.0.0-next-52e439f268b74410212a0d91a5ee39021eb44499","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-52e439f268b74410212a0d91a5ee39021eb44499","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"95f60c18668d7108b50dabab04c2880c0493dd81","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-52e439f268b74410212a0d91a5ee39021eb44499.tgz","fileCount":6,"integrity":"sha512-YRAMz95Rb1rwEXjEi7v0Mmx724I7JAgRY8jEtjoSWP02JSol6VkWcexo9LlVX9Dx+SJjVlcDpnGxya80fWGE2Q==","signatures":[{"sig":"MEUCIQCji3ufNc+Qa92u3wjXjaqKA8T0Op+UF52ETwRNj+uW5gIgMn+96kDnVunCIlmZ2UJy3+c/nuGrBByaZSyAiHWZ+sM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"52e439f268b74410212a0d91a5ee39021eb44499","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-52e439f268b74410212a0d91a5ee39021eb44499"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-52e439f268b74410212a0d91a5ee39021eb44499_1686050848227_0.42653873355449745","host":"s3://npm-registry-packages"}},"0.0.0-next-5dfa7c0dfa9690d09de616d9a4839fde1ab0e467":{"name":"app-migrations","version":"0.0.0-next-5dfa7c0dfa9690d09de616d9a4839fde1ab0e467","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5dfa7c0dfa9690d09de616d9a4839fde1ab0e467","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1a7be7f2dae3567387781926af02b0b70cf32c95","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5dfa7c0dfa9690d09de616d9a4839fde1ab0e467.tgz","fileCount":6,"integrity":"sha512-lw3kZ1angyWs71y58fNxNXJLLbnJro9vfbo9kOCjA0F2OJeu5WDq3kvvUWX2dsp2tP1ucDdP3Vkz6re6qGtXxA==","signatures":[{"sig":"MEYCIQDU1QwDSeyNQQp3frtFeevM/efbTCOoWNGjOtpgT++9YAIhAPtoVOxPUhv2j4a3kTmHnfcRgl4Yx0j2v2us0+xjMYVF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5dfa7c0dfa9690d09de616d9a4839fde1ab0e467","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-5dfa7c0dfa9690d09de616d9a4839fde1ab0e467"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5dfa7c0dfa9690d09de616d9a4839fde1ab0e467_1686207509577_0.29970783415775126","host":"s3://npm-registry-packages"}},"0.0.0-next-1d02bfb24078b4391bee7a83e34cb3d7da39a731":{"name":"app-migrations","version":"0.0.0-next-1d02bfb24078b4391bee7a83e34cb3d7da39a731","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1d02bfb24078b4391bee7a83e34cb3d7da39a731","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"234389596de2fddbb2fd23563f53ced4948c517a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1d02bfb24078b4391bee7a83e34cb3d7da39a731.tgz","fileCount":6,"integrity":"sha512-S9BCs8Pi3W3ctI4dTfeYL2IfMy4YkePwQERDA68lOHkBuqbeCyLtBDdqcVIAWD9Z/dpo9ESbmdLgwsJXb86ONw==","signatures":[{"sig":"MEUCIG0XG0eHwTRXtxFMVhtCW2v7rIvjKhKAcuLOFi8KIILPAiEA8jOuG+eGj3wCpdNLT+aFQJdnpUHW0hFE3AxW84FkEJA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1d02bfb24078b4391bee7a83e34cb3d7da39a731","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-1d02bfb24078b4391bee7a83e34cb3d7da39a731"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1d02bfb24078b4391bee7a83e34cb3d7da39a731_1686207708374_0.9324328270510391","host":"s3://npm-registry-packages"}},"0.0.0-next-b2733835a3b65a4990e1af518669453fad1aba04":{"name":"app-migrations","version":"0.0.0-next-b2733835a3b65a4990e1af518669453fad1aba04","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-b2733835a3b65a4990e1af518669453fad1aba04","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"69e83c36181e12d260387fc35b1af477bc9db97e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-b2733835a3b65a4990e1af518669453fad1aba04.tgz","fileCount":6,"integrity":"sha512-ysv3Qa2FgFNQey8dmWdDTlMwIJewbindQoBMOdwVZjcr+YaZk+VqBQbWsG5uVpoLSBnxUOObxaFq/TG2DkmQVQ==","signatures":[{"sig":"MEUCIQCe7R5jBEeYHzmahxsBZCcXvnGdRIm1ka251xH9k9xfygIgIi6FSOwZUYxPHdp1PKkVTXTuKU0HgLujs+j4uiIrfn4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"b2733835a3b65a4990e1af518669453fad1aba04","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-b2733835a3b65a4990e1af518669453fad1aba04"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-b2733835a3b65a4990e1af518669453fad1aba04_1686207974487_0.43252659780945657","host":"s3://npm-registry-packages"}},"0.0.0-next-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1":{"name":"app-migrations","version":"0.0.0-next-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"7ca0b2dfb11f52dfaf99fda22ca5eeb7b20b8ea1","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1.tgz","fileCount":6,"integrity":"sha512-V6i3yQJzwY0HZbWizunkuNHL6U2OL5/3wNlqFflwfjZZ2XM+MTuyvu7Fjlfc6nGYbtCVsgSb/CcmPBqN3CqKjg==","signatures":[{"sig":"MEQCIB8iqthaIREuW4ItxJR7ND3h0Ew/jo3R+slCB044/DSqAiA1z4fCAzfXjkNEknKy6ExZaIvAkrnA/YUkGsXGx+PPMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1_1686211834497_0.42555517269090126","host":"s3://npm-registry-packages"}},"0.0.0-next-a163d3eea7baaadc9ff00f56212f6befadf68cc1":{"name":"app-migrations","version":"0.0.0-next-a163d3eea7baaadc9ff00f56212f6befadf68cc1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a163d3eea7baaadc9ff00f56212f6befadf68cc1","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"51765bbfdfc78b1257207805d77e42d7bb23c3d3","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a163d3eea7baaadc9ff00f56212f6befadf68cc1.tgz","fileCount":6,"integrity":"sha512-aNnjK5IEtNb+4y6VX3VA3XzqlvifXX/qm/FDNXYd9oCRhBOnk/tmpiwKezAh4vCv3upgmH9LRq5GYsVMeOGjqA==","signatures":[{"sig":"MEYCIQDi3qk1xw6sLQWQxYxWgKm2bTmBHGMJfWR0uuXxR9kTnAIhAOgxR4wo6OYsq/L53CdYk4hUo0zm1fI+QmOZk/Ak8p4k","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a163d3eea7baaadc9ff00f56212f6befadf68cc1","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-a163d3eea7baaadc9ff00f56212f6befadf68cc1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a163d3eea7baaadc9ff00f56212f6befadf68cc1_1686365443984_0.11907565790919294","host":"s3://npm-registry-packages"}},"0.0.0-next-e35a108a54700c3d0f1f8d937fe870db23cb1682":{"name":"app-migrations","version":"0.0.0-next-e35a108a54700c3d0f1f8d937fe870db23cb1682","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e35a108a54700c3d0f1f8d937fe870db23cb1682","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"4b42e85a7607c215f1f1eea1f8d53e4e178b4e8f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e35a108a54700c3d0f1f8d937fe870db23cb1682.tgz","fileCount":6,"integrity":"sha512-EOUKki720bxaa+c2qdxOX+i4uQsl0R5H8aTz+idHZ+154VJ5Fqg18RMU5OcOOThWU/W+fhDf93Nyg4WMi29tkw==","signatures":[{"sig":"MEQCIGUz2oXRR87d3RKpyye6ARR5I4bMpllTUiaUMgTtVxaiAiAmS1hpoPYF6Y8GcN8ob8y8MwByQYrd6bH0nDQDHO84rQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e35a108a54700c3d0f1f8d937fe870db23cb1682","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-e35a108a54700c3d0f1f8d937fe870db23cb1682"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e35a108a54700c3d0f1f8d937fe870db23cb1682_1686369507579_0.20197974661386264","host":"s3://npm-registry-packages"}},"0.0.0-next-80a9e175edd3eabee53daee876d77943872e4205":{"name":"app-migrations","version":"0.0.0-next-80a9e175edd3eabee53daee876d77943872e4205","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-80a9e175edd3eabee53daee876d77943872e4205","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"cce2600fa9536e13ab5a45de3a5e45c34a6b88ed","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-80a9e175edd3eabee53daee876d77943872e4205.tgz","fileCount":6,"integrity":"sha512-Du9WqfYSuic34NWizWmbh2WMd7bNHhFu/V4fjxjEDW+yCxraK4mFgCFLCXxPP9wHQrp5ecbI+g0ep09vNFz91g==","signatures":[{"sig":"MEYCIQCTwZvKzAfCRdazPnytkyvM7Ogz3r8cpDKd23Mjh6eqbwIhAI1z2oLWLF62K+JzcxUek2IYBa2t4D+YV4boZaxbVA7I","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"80a9e175edd3eabee53daee876d77943872e4205","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-80a9e175edd3eabee53daee876d77943872e4205"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-80a9e175edd3eabee53daee876d77943872e4205_1686610386504_0.25661222079026036","host":"s3://npm-registry-packages"}},"0.0.0-next-707fe01258204f4be98f1b7a6cffef62deed0b66":{"name":"app-migrations","version":"0.0.0-next-707fe01258204f4be98f1b7a6cffef62deed0b66","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-707fe01258204f4be98f1b7a6cffef62deed0b66","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"15728c0615757ccc467d03ce2d854e8e95df8348","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-707fe01258204f4be98f1b7a6cffef62deed0b66.tgz","fileCount":6,"integrity":"sha512-jqIhznEwSk9kdxNkfabfYllZZe8bsgaScfwY/lCbb/5pcP+GD9s/FOU1fbGTIbrrLe7pUAgrx8EUZ/8vZEFVdQ==","signatures":[{"sig":"MEYCIQCjGlKKrdwrI7NJTWvhJJtsqth7niKisOHvLcVZLwITjgIhAPNlG8vdujsg9VsnJ4iKGJQOB+InrTNgB5sxr4cymZQ0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"707fe01258204f4be98f1b7a6cffef62deed0b66","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-707fe01258204f4be98f1b7a6cffef62deed0b66"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-707fe01258204f4be98f1b7a6cffef62deed0b66_1686650968096_0.5645274402878024","host":"s3://npm-registry-packages"}},"0.0.0-next-58b07e3b9faef89f8f737552ca57d6db6e0ea503":{"name":"app-migrations","version":"0.0.0-next-58b07e3b9faef89f8f737552ca57d6db6e0ea503","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-58b07e3b9faef89f8f737552ca57d6db6e0ea503","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"58c709b06a10c54a79e3be8997e32e9d91df7b0d","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-58b07e3b9faef89f8f737552ca57d6db6e0ea503.tgz","fileCount":6,"integrity":"sha512-p7TJfgBpcg+hXGPTrqP52M+VI5RAseSzySxiVP79ODrj7/k/K44+3Lrv+bfz1eImc8KznJKC5ypcvetQu1L/8g==","signatures":[{"sig":"MEQCIHOzuv+2u07X6PgESI+yyjIuKlgp+B1rsCUzEotYiV+aAiAi/MCYVAWd2HlLsD5sEF6yfrdlasIeNAXCqxNx6WdWmw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"58b07e3b9faef89f8f737552ca57d6db6e0ea503","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-58b07e3b9faef89f8f737552ca57d6db6e0ea503"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-58b07e3b9faef89f8f737552ca57d6db6e0ea503_1686783968622_0.823130240782322","host":"s3://npm-registry-packages"}},"0.0.0-next-a6a1fbc898ffbe115f44ef184f30cf0d9348f9c2":{"name":"app-migrations","version":"0.0.0-next-a6a1fbc898ffbe115f44ef184f30cf0d9348f9c2","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a6a1fbc898ffbe115f44ef184f30cf0d9348f9c2","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"341da2fba6dbc432c96732ac23219326190d81d5","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a6a1fbc898ffbe115f44ef184f30cf0d9348f9c2.tgz","fileCount":6,"integrity":"sha512-/Hx+4TZDD1vVrNf80ssOcLHopOnx1SuDi3MjLqqSovxZDbeNLXF7jp88A5GwiEC40iR5szJzNXHdIetxDzp2Eg==","signatures":[{"sig":"MEUCICF/OsRuPhbeCU2IjXO7LIOM6VYsmHtNO2PRdJf6DB5gAiEA5J5GHCNStIKTHcSHxySgCk3QeJE962+DNXGbeBlbzCE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a6a1fbc898ffbe115f44ef184f30cf0d9348f9c2","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-a6a1fbc898ffbe115f44ef184f30cf0d9348f9c2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a6a1fbc898ffbe115f44ef184f30cf0d9348f9c2_1686784198316_0.28559689422657364","host":"s3://npm-registry-packages"}},"0.0.0-next-60cc295fd36171b66786a43c0396bcc8db207829":{"name":"app-migrations","version":"0.0.0-next-60cc295fd36171b66786a43c0396bcc8db207829","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-60cc295fd36171b66786a43c0396bcc8db207829","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ad0ad3d34cefa65020806d3f163e003ffbfec162","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-60cc295fd36171b66786a43c0396bcc8db207829.tgz","fileCount":6,"integrity":"sha512-C6Fasf3TPUHZTWBRi+gmJg08p+2pIcEcGgzmIBom6c1Fvo43PhsDtRjr/QUEBlOUV8dr1WzAZlT4dzJ3kcQlBg==","signatures":[{"sig":"MEYCIQCNTsNbzyW2WrzSL7PBmn0sKS9f+L1UFDBNjvsyPM5dWAIhANa16NxxymPyRQcieAAj+t35bPjJ3ZmzIC5PgCr+JJF1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"60cc295fd36171b66786a43c0396bcc8db207829","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-60cc295fd36171b66786a43c0396bcc8db207829"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-60cc295fd36171b66786a43c0396bcc8db207829_1687419634237_0.10659356430030353","host":"s3://npm-registry-packages"}},"0.0.0-next-3ddf2b32a13c98a8713916c7c20185f8ae9a9327":{"name":"app-migrations","version":"0.0.0-next-3ddf2b32a13c98a8713916c7c20185f8ae9a9327","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-3ddf2b32a13c98a8713916c7c20185f8ae9a9327","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"c995a7b9d7551d42bb653159c211e1987de0c02f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-3ddf2b32a13c98a8713916c7c20185f8ae9a9327.tgz","fileCount":6,"integrity":"sha512-P5eqD8UNyvHkqo2ySAweR6aUDwLJivdq1GKxCoaLW/tT70fs8ndtyIc6QnzMEEFv8BcoP7UPupwhTMPpZpvROw==","signatures":[{"sig":"MEYCIQCqs1gxah4XxqYorB4U8KBRmd83hHRvyf5L/Gk+UHUrgQIhAJjzdziLNVS3IwwTqpf94m4lL1d6mSRbYYzq57b36EsC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"3ddf2b32a13c98a8713916c7c20185f8ae9a9327","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-3ddf2b32a13c98a8713916c7c20185f8ae9a9327"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-3ddf2b32a13c98a8713916c7c20185f8ae9a9327_1687577960957_0.2704432073756313","host":"s3://npm-registry-packages"}},"0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5":{"name":"app-migrations","version":"0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1d6bd80f6e56a26b56ab2bee3add6e0216b5ae73","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5.tgz","fileCount":6,"integrity":"sha512-XHnFotgNa//qyIYrhl2khUpE4tpUKw2JItAo5hhWW0Xrs/Tgj6w+1R2lCL+n4D3OU0tQLe/+W7zouHVH1rEXww==","signatures":[{"sig":"MEQCIDY4io7b2ouauoQ4ttR2hTaG+/PKaYJZdRlGR2fbMzZAAiAxxBZ3sgDUToxzXtUCgNLKF+6VBF+C4USbZSaIj9tNkg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5_1687578117547_0.2379610050391716","host":"s3://npm-registry-packages"}},"0.0.0-next-ed2df3c8a8927bde74631eed8827575645a9c2c4":{"name":"app-migrations","version":"0.0.0-next-ed2df3c8a8927bde74631eed8827575645a9c2c4","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-ed2df3c8a8927bde74631eed8827575645a9c2c4","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"dd83e4b760283a77394143221b6139ac84302550","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-ed2df3c8a8927bde74631eed8827575645a9c2c4.tgz","fileCount":6,"integrity":"sha512-a+SE+vAUaXgT+UYBH/NmVhWU1AJnfihWzGBVUgGHIxtQQ3Yk+7Z80P7WCthIk5kcY+IrOQv1O6dl+r3FFnNWHw==","signatures":[{"sig":"MEUCIAyw8a/ml4NEm23FzP/tzJMZ3dwCSjQrVQqOsL1Re7UkAiEAhoaI9JArTWCYPvrMjoWvcHUZlLiSOgHqt15IlaSg1bw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"ed2df3c8a8927bde74631eed8827575645a9c2c4","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-ed2df3c8a8927bde74631eed8827575645a9c2c4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-ed2df3c8a8927bde74631eed8827575645a9c2c4_1687924894052_0.2320709500592708","host":"s3://npm-registry-packages"}},"0.0.0-next-99faf39dcaa3321ec39c2a4a4c7b67e04f3c753e":{"name":"app-migrations","version":"0.0.0-next-99faf39dcaa3321ec39c2a4a4c7b67e04f3c753e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-99faf39dcaa3321ec39c2a4a4c7b67e04f3c753e","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"8578c9e8e00ec8b9395177a4eee2f48b3594b54a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-99faf39dcaa3321ec39c2a4a4c7b67e04f3c753e.tgz","fileCount":6,"integrity":"sha512-FnxaJzDy4KSLWm+Y+raTMtGFpgZMX+LZ8gfcCg5E4sLN6jPSTjFb868ylN6AQ+7LBr40b09fRUBY7OTqm52fqg==","signatures":[{"sig":"MEUCIQDpd3rH2MVYU5TFUMn7SMpKpr57h66pUIh8+rwYeOaTMAIgWf+XgzpPQ4yMHiWS0MuYquKd4sVLlFohzXoBcYy1YuY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"99faf39dcaa3321ec39c2a4a4c7b67e04f3c753e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-99faf39dcaa3321ec39c2a4a4c7b67e04f3c753e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-99faf39dcaa3321ec39c2a4a4c7b67e04f3c753e_1687970063199_0.11160579979893215","host":"s3://npm-registry-packages"}},"0.0.0-next-c584ad92337ea0098e7068e83ed68dd13565b7da":{"name":"app-migrations","version":"0.0.0-next-c584ad92337ea0098e7068e83ed68dd13565b7da","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c584ad92337ea0098e7068e83ed68dd13565b7da","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"48553dc621f2340470ef5c39029aceb66670f2aa","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c584ad92337ea0098e7068e83ed68dd13565b7da.tgz","fileCount":6,"integrity":"sha512-PW41hUZunKzewu93WX+HPfEfN4bn8IG+vtuhFwGUeTkywCzo/OYz+s5gEjmS0ODnmv6J9HaojlA4sEIR1UoYkQ==","signatures":[{"sig":"MEUCIQCqp2hssZVtPwnu4ZL1vq9mIXLEXWAJjk4pzYp79mDJ4gIgM6BxSK+B4kbPhKhJMjemg3vvbFOyP48sll15CAPi4Ms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c584ad92337ea0098e7068e83ed68dd13565b7da","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-c584ad92337ea0098e7068e83ed68dd13565b7da"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c584ad92337ea0098e7068e83ed68dd13565b7da_1688102538361_0.42126394210468643","host":"s3://npm-registry-packages"}},"0.0.0-next-835937ee6a94b541fd12d3d0c54d829fb2d0e492":{"name":"app-migrations","version":"0.0.0-next-835937ee6a94b541fd12d3d0c54d829fb2d0e492","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-835937ee6a94b541fd12d3d0c54d829fb2d0e492","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d591d3dbdbeba3d31b0c393738a701f69dc15e8b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-835937ee6a94b541fd12d3d0c54d829fb2d0e492.tgz","fileCount":6,"integrity":"sha512-aK4aqScwkedFYwbN1ovumv4A3FI10EIaA0YrWXLxbSGyI9yulE8ZL6AZNBzdVprrCZjfkqWddbBZyFoCUVf4ag==","signatures":[{"sig":"MEUCIGeGinzj76CkAC1ORyDrCFUkiGyfGBzrDBDWNvSXeEqfAiEA5gjLHedjKFIR0vudpOR6fWJwV2yHHr/qHJlzpEAtUxY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"835937ee6a94b541fd12d3d0c54d829fb2d0e492","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-835937ee6a94b541fd12d3d0c54d829fb2d0e492"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-835937ee6a94b541fd12d3d0c54d829fb2d0e492_1688150063172_0.9854154792523959","host":"s3://npm-registry-packages"}},"0.0.0-next-a7eb730693b63501028444f9ef6b634620af6e37":{"name":"app-migrations","version":"0.0.0-next-a7eb730693b63501028444f9ef6b634620af6e37","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a7eb730693b63501028444f9ef6b634620af6e37","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"547bc3a66e461048fd20883be8231f5e475c73b8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a7eb730693b63501028444f9ef6b634620af6e37.tgz","fileCount":6,"integrity":"sha512-8MRJT1cD+imAjSz+HWogjQF6FbfiQIEPxiwFQdpY2JQpl9GN3NMjY2n1UdwtiNl3zNqT/MlBSLdgBoA6yPHrEQ==","signatures":[{"sig":"MEUCIDvG4uAwfkswZCyBrKtuDnFrU0J1MOgJrnPGQ5rFoDEsAiEApCGIr9o8cAD4K02Ec9PynpwOd+StxhTbEvVPYH/beXc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a7eb730693b63501028444f9ef6b634620af6e37","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-a7eb730693b63501028444f9ef6b634620af6e37"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a7eb730693b63501028444f9ef6b634620af6e37_1688409920344_0.878159184169022","host":"s3://npm-registry-packages"}},"0.0.0-next-084f1c20551b15b25b3945fae7547f5321bc4128":{"name":"app-migrations","version":"0.0.0-next-084f1c20551b15b25b3945fae7547f5321bc4128","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-084f1c20551b15b25b3945fae7547f5321bc4128","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"87106b5ab01a968a5bfd790461f87a2297d26da7","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-084f1c20551b15b25b3945fae7547f5321bc4128.tgz","fileCount":6,"integrity":"sha512-nnnnL/0y4eGUKyknF0yZnyf5ic7957eZcy7f7Kw9Wyot0/JjwdHE1vhxQBSaSP9yO8eIvqpelssJJcuNxWAP7A==","signatures":[{"sig":"MEYCIQCTlTrM4z1KE1iAwQdIR3gTUp6OKVYnwjrvkbMCmzwJWQIhALMYkIFBPcuFll5CwpdDCWvBN4UAjWbHgyH4w/xzwKJP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"084f1c20551b15b25b3945fae7547f5321bc4128","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-084f1c20551b15b25b3945fae7547f5321bc4128"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-084f1c20551b15b25b3945fae7547f5321bc4128_1688410043525_0.36603751012943153","host":"s3://npm-registry-packages"}},"0.0.0-next-9c1e839a379c1d7525de44084db049cc54c0b292":{"name":"app-migrations","version":"0.0.0-next-9c1e839a379c1d7525de44084db049cc54c0b292","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9c1e839a379c1d7525de44084db049cc54c0b292","maintainers":[{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"64dd90bf301ae31509f0824962af946309fab67e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9c1e839a379c1d7525de44084db049cc54c0b292.tgz","fileCount":6,"integrity":"sha512-93+RSAl/A72xREGl5wZZXa4SDlXKBQHLIoSW/IoyEfhydwbYqYSbkJHEQoUBOQ7Fk2wDIwh0wLW7hX0hYar3AA==","signatures":[{"sig":"MEUCIQCEC72wOH6pr3e+gHQCi20VUz7hIBLn8HnG0O4n/md9jAIgXRsgt5nUrPV/qTBlVugJsUoJXvK07JYUEZsBSA7FEl8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9c1e839a379c1d7525de44084db049cc54c0b292","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.1.1","@mongodb-js/compass-logging":"0.0.0-next-9c1e839a379c1d7525de44084db049cc54c0b292"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9c1e839a379c1d7525de44084db049cc54c0b292_1688587860787_0.8136836420023859","host":"s3://npm-registry-packages"}},"0.0.0-next-247cba5e738b47e2c433fd1bc2e3d0ed48142ca5":{"name":"app-migrations","version":"0.0.0-next-247cba5e738b47e2c433fd1bc2e3d0ed48142ca5","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-247cba5e738b47e2c433fd1bc2e3d0ed48142ca5","maintainers":[{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ce856d7000e42ee6ef0172b6be48fd496a41c36b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-247cba5e738b47e2c433fd1bc2e3d0ed48142ca5.tgz","fileCount":6,"integrity":"sha512-mkLtOlhTSa4wfe768QeSxfexd0hLCt5vE6m+xHdem0nWG+BA2+WNB9OllEpoUrkFEShw9t9MM0r0snYmjq5jwg==","signatures":[{"sig":"MEYCIQD6pNKfMgFpwe8wd/YcqbcyEsKUMm/R7ePl6RltP5decwIhAPDLbmgC0sGSP2jSqQHNG6h+Tj0XSkxIPUWz2uZZf6Kh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"247cba5e738b47e2c433fd1bc2e3d0ed48142ca5","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-247cba5e738b47e2c433fd1bc2e3d0ed48142ca5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-247cba5e738b47e2c433fd1bc2e3d0ed48142ca5_1689216237601_0.19176275430809508","host":"s3://npm-registry-packages"}},"0.0.0-next-8c579fa95e9deb46d73653d702f7f3b0e41efeb8":{"name":"app-migrations","version":"0.0.0-next-8c579fa95e9deb46d73653d702f7f3b0e41efeb8","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-8c579fa95e9deb46d73653d702f7f3b0e41efeb8","maintainers":[{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"108012be65658e002211397a79df4703a19a928f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-8c579fa95e9deb46d73653d702f7f3b0e41efeb8.tgz","fileCount":6,"integrity":"sha512-vx6SV0mWETaS9Dnn7LDA5XCcIefKS+QUFdFFXNbAtNsLQ7Xzjfodsx1relprMLIEANyb/6rgUkBjUo0fu3aPdw==","signatures":[{"sig":"MEUCIQDhY7dmNdxrRX5YIZjiH/1dsTgc2ZLnIwp3ygvvHRd9wQIgd7PAtTnI/crhGS/DuSHPAXGxJSUPN66oj5qEgIWpN0U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"8c579fa95e9deb46d73653d702f7f3b0e41efeb8","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-8c579fa95e9deb46d73653d702f7f3b0e41efeb8"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-8c579fa95e9deb46d73653d702f7f3b0e41efeb8_1689907302487_0.5768088762346792","host":"s3://npm-registry-packages"}},"0.0.0-next-1d0257ec5ae772888fbfb677bbacf8cd7dfb3127":{"name":"app-migrations","version":"0.0.0-next-1d0257ec5ae772888fbfb677bbacf8cd7dfb3127","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1d0257ec5ae772888fbfb677bbacf8cd7dfb3127","maintainers":[{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"78cb397548e44843fdf45ed9138737865df81608","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1d0257ec5ae772888fbfb677bbacf8cd7dfb3127.tgz","fileCount":6,"integrity":"sha512-5kA6oApW6bqVz8AIQRu0h4jBheQ2iIJ+fn6+Qz08AKFgXEZRXVJxIcyuofVrtfsFcdaCyGaX614ZQoBwyQCAPw==","signatures":[{"sig":"MEYCIQCaUBK94NKpoRD5lhV49puo4TN1kscOiPM2xASgvltMvQIhAO6L45IjUfcWnCv838KLr05PtFgk8kw0y555SD+NLpyo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1d0257ec5ae772888fbfb677bbacf8cd7dfb3127","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-1d0257ec5ae772888fbfb677bbacf8cd7dfb3127"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1d0257ec5ae772888fbfb677bbacf8cd7dfb3127_1689909826369_0.44128589693373677","host":"s3://npm-registry-packages"}},"0.0.0-next-5bb899576d8b95cb24b170e4fb80a7a4cc89beac":{"name":"app-migrations","version":"0.0.0-next-5bb899576d8b95cb24b170e4fb80a7a4cc89beac","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5bb899576d8b95cb24b170e4fb80a7a4cc89beac","maintainers":[{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"2eb43c5a7faf8bf6b9e1c257fdb49683a44fccba","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5bb899576d8b95cb24b170e4fb80a7a4cc89beac.tgz","fileCount":6,"integrity":"sha512-OFnuK6bDAGiMDdn7cqB9MTF7fAhyCHENZxQ2kUeUjL6RCSL2csq3fMmpGlGc10UjCJmWet22Uwb+O53t4VRRDg==","signatures":[{"sig":"MEUCIQCEnv85wCt8qEVRIoObW2k3i8yb2ziXP8WamwkaagD4DAIgezwS/yHeL30H3JPIfOoHbZJpxsaz70Vl360SckRRgGY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5bb899576d8b95cb24b170e4fb80a7a4cc89beac","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-5bb899576d8b95cb24b170e4fb80a7a4cc89beac"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5bb899576d8b95cb24b170e4fb80a7a4cc89beac_1690200345283_0.4698765287412303","host":"s3://npm-registry-packages"}},"0.0.0-next-71516462af839d62ee28dd99ff05de7ed4ce8d8d":{"name":"app-migrations","version":"0.0.0-next-71516462af839d62ee28dd99ff05de7ed4ce8d8d","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-71516462af839d62ee28dd99ff05de7ed4ce8d8d","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"839fb11362de17148a55f72f29f32fed3fdb595d","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-71516462af839d62ee28dd99ff05de7ed4ce8d8d.tgz","fileCount":6,"integrity":"sha512-KFFJ1Z0ZvM5u28gFJmysIA7pm9nsrMvXDzFkkc1FDOUCunIQ81U+xFngP5NHUSXZWZWV4xZk7w+K3CaFlRpAkw==","signatures":[{"sig":"MEYCIQDNYoz6n2tCwaVTgBYZQ/hswG8kuqOSi0TCKRLQC2WnkgIhANvOOXF/2qf/s+QHM3RPp87cW/WviRWaHrWx0RUjANUT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"71516462af839d62ee28dd99ff05de7ed4ce8d8d","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-71516462af839d62ee28dd99ff05de7ed4ce8d8d"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-71516462af839d62ee28dd99ff05de7ed4ce8d8d_1690628769520_0.7839917069162747","host":"s3://npm-registry-packages"}},"0.0.0-next-f80a8dc02764b396d508892a0b6c54c9e9249811":{"name":"app-migrations","version":"0.0.0-next-f80a8dc02764b396d508892a0b6c54c9e9249811","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-f80a8dc02764b396d508892a0b6c54c9e9249811","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"f8867678239e59af50896a6df454e754498db468","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-f80a8dc02764b396d508892a0b6c54c9e9249811.tgz","fileCount":6,"integrity":"sha512-x7UchDkrYgnG2e89kkYmNpzLbax5q4RS1TjLsFab6FO30UolyYJ6PGUoJxCXQIprrqGBddqowXaoP0erH+UOzw==","signatures":[{"sig":"MEUCIAPrHftHDN7bgnpFLU4YfYlv4YTCllz+FbFBLtEGTSW4AiEAlGTZLKiRX5rjtwFQos6QZBbUgUVkFMfq5Bon4eiIRdU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"f80a8dc02764b396d508892a0b6c54c9e9249811","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-f80a8dc02764b396d508892a0b6c54c9e9249811"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-f80a8dc02764b396d508892a0b6c54c9e9249811_1690631722897_0.34200443316162565","host":"s3://npm-registry-packages"}},"3.1.7":{"name":"app-migrations","version":"3.1.7","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.7","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b9d3d287df7a7e1123afe0de3073e0658b940717","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.7.tgz","fileCount":6,"integrity":"sha512-roY5TkONAt3UF0yNr5IEA3f2RiXqzB2y0NbTCpqepnj0wWl1Q37OH/BPGzOl1yDwtFfh8Wml1GRINNGkYsuOvg==","signatures":[{"sig":"MEYCIQCGpuFp5LZe8SD6vPaOYBc43315YJyRomgS8eD/gvKvuwIhAJqikQHnZMy+IhITkuOfoOOycPrG1xWr9ZbGqHc4quET","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465},"main":"index.js","gitHead":"ab322a183cd516c117cf575d9b7931073954fe1d","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.20.1+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.1","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"^1.1.7"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.7_1691403576291_0.2136538738170446","host":"s3://npm-registry-packages"}},"3.1.8":{"name":"app-migrations","version":"3.1.8","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.8","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"79e28f17555a097b1bd5e5a3663f8df2dec4b142","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.8.tgz","fileCount":6,"integrity":"sha512-Nx4ewPSuWxgzxWRHKpwaX60+FMhxT+NlUw2LNHEQNf1mezii5rmJTeN/p65OhS/0JtoE/qu6YgcX+V1Axp8BpA==","signatures":[{"sig":"MEYCIQDVREbNW+UrndL47UeJxx08gVJvfylYhdpO3Ppnhod14wIhAN17LKKyraDwBReETs4fq6+dC8uA0aMmPYPZPcJ3xesf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465},"main":"index.js","gitHead":"62acadaa32f014e73080cfaf7c15753e2e1db08f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.8_1693286570960_0.8306389092380706","host":"s3://npm-registry-packages"}},"0.0.0-next-b53158d1a4cfaa42b802a8e10059a81778b5ea8b":{"name":"app-migrations","version":"0.0.0-next-b53158d1a4cfaa42b802a8e10059a81778b5ea8b","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-b53158d1a4cfaa42b802a8e10059a81778b5ea8b","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"61536e0282de36b96eb537560ca86d05ecd634eb","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-b53158d1a4cfaa42b802a8e10059a81778b5ea8b.tgz","fileCount":6,"integrity":"sha512-0HU6L/oJK4fJxWgDwk22hGlfjmSSafm712pycqycNRgtxhH3TnZrf+2HsQQN3ESs0RddKXMR74smzxEsFM+SHA==","signatures":[{"sig":"MEQCIGkQE9MmAAcIqk0/j4XJG0tnPowaMHMWjl8LpEdiW6VHAiBlQal9/hdR5bk7G9Lf9ztkFK+HNxryUmqYu3bA01EZ8A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"b53158d1a4cfaa42b802a8e10059a81778b5ea8b","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-b53158d1a4cfaa42b802a8e10059a81778b5ea8b"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-b53158d1a4cfaa42b802a8e10059a81778b5ea8b_1694088817817_0.017080190007718876","host":"s3://npm-registry-packages"}},"0.0.0-next-0b7bdbac2841bb29f779dc118427209fea404a6b":{"name":"app-migrations","version":"0.0.0-next-0b7bdbac2841bb29f779dc118427209fea404a6b","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-0b7bdbac2841bb29f779dc118427209fea404a6b","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"a4b17c7375e84e8c5f4e0a9318633d513e52fc36","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-0b7bdbac2841bb29f779dc118427209fea404a6b.tgz","fileCount":6,"integrity":"sha512-U8HTvpdKGUZYxArUVg5XLZ7bNwoH4pSKrzH/abPYU33I+LrRUiZ4gGQhc75eU0xzIcNteGc2TzWj4C4TtWi1bQ==","signatures":[{"sig":"MEUCIQDQGg8hLTyuyvPZdRoaZxQac3itjUDNl1fSxZ0DZs5IrAIgEY7XPG+dxtXw2+GYQPh1NhuARDDZj9JUO/4J11xsr44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"0b7bdbac2841bb29f779dc118427209fea404a6b","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-0b7bdbac2841bb29f779dc118427209fea404a6b"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-0b7bdbac2841bb29f779dc118427209fea404a6b_1694128685949_0.9444728225241905","host":"s3://npm-registry-packages"}},"0.0.0-next-c25c1e64414b91293a923472d34a42f70b166044":{"name":"app-migrations","version":"0.0.0-next-c25c1e64414b91293a923472d34a42f70b166044","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c25c1e64414b91293a923472d34a42f70b166044","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"75478bbd545e578506067e84d9e7fc9beefdd0e9","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c25c1e64414b91293a923472d34a42f70b166044.tgz","fileCount":6,"integrity":"sha512-Zh/Y71/jQaoSivlteM8fH0U5HlJh2Gh0xywjFUTI+l8t0d9buLiyIUVfZuyFEunK3s/fYfNjUHgsDIo6c+UsOw==","signatures":[{"sig":"MEUCIA57IwMVTEosdQDfcyZILerG0bH2UYwaNmwHsB1l7UmPAiEA0EYStbUL7WvrvaTwUMbxOBMZZV1lIaQTQq8llSR54d8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c25c1e64414b91293a923472d34a42f70b166044","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-c25c1e64414b91293a923472d34a42f70b166044"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c25c1e64414b91293a923472d34a42f70b166044_1694128765886_0.8354339374879631","host":"s3://npm-registry-packages"}},"0.0.0-next-b7fec801851465307d84e2b4b6361da5ab1b4354":{"name":"app-migrations","version":"0.0.0-next-b7fec801851465307d84e2b4b6361da5ab1b4354","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-b7fec801851465307d84e2b4b6361da5ab1b4354","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ac272df2e6843b45177921790559cf7cdb47345c","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-b7fec801851465307d84e2b4b6361da5ab1b4354.tgz","fileCount":6,"integrity":"sha512-t2Y+O0A9D5djgSpxCq7vN9scWpL7GGmAPo7OwunjMjqUXuulD6olZrg6FewZA3+C31+To4da3Fp07z9eUo8VnQ==","signatures":[{"sig":"MEUCIBOOQwWF+Dk1jL9DYPNSTbhT5Tw+D8I52D88FURn2vNsAiEA7j/LWG1zD4xTxikFUE+FP/FuYprQ1+rSvAAzntsdfXc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"b7fec801851465307d84e2b4b6361da5ab1b4354","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-b7fec801851465307d84e2b4b6361da5ab1b4354"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-b7fec801851465307d84e2b4b6361da5ab1b4354_1694129097127_0.003490021313677927","host":"s3://npm-registry-packages"}},"0.0.0-next-d4784fcb34a3145f96a0c778a1bc3c786e1cc774":{"name":"app-migrations","version":"0.0.0-next-d4784fcb34a3145f96a0c778a1bc3c786e1cc774","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-d4784fcb34a3145f96a0c778a1bc3c786e1cc774","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"87e543a06329ab78c7f8555799e349520d3fd98c","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-d4784fcb34a3145f96a0c778a1bc3c786e1cc774.tgz","fileCount":6,"integrity":"sha512-gvIlXaCqYoiGSHE0OhJbQmSNahGH2IVwHXF5zaUUFP4IbVak0lBuX0BaqUWRLY5+yusJdUdGEaMEHxAg7eONaw==","signatures":[{"sig":"MEQCIHsJOBpLhmtTrLUWXdFKh5awqVvqHZ+mjrW1NS+2c2n9AiAJSM0RXWaPqNl1xViG8i1EjSpkPrja8WClUhd5842Itg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"d4784fcb34a3145f96a0c778a1bc3c786e1cc774","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-d4784fcb34a3145f96a0c778a1bc3c786e1cc774"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-d4784fcb34a3145f96a0c778a1bc3c786e1cc774_1694165401199_0.8437625492660492","host":"s3://npm-registry-packages"}},"0.0.0-next-1b60150d81dce329b2f0f5c76277a455d79933ec":{"name":"app-migrations","version":"0.0.0-next-1b60150d81dce329b2f0f5c76277a455d79933ec","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1b60150d81dce329b2f0f5c76277a455d79933ec","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ab2ec3919a88d71474d8ca124b28f10b08517969","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1b60150d81dce329b2f0f5c76277a455d79933ec.tgz","fileCount":6,"integrity":"sha512-AnhEPveKSAk39dGCuM0dWxN2hCCr+odJsEwaK81fTHBJVJJssEf5KhnNzh3eJlFBirTV+aPMRIT4blkvK/LO7A==","signatures":[{"sig":"MEUCIQCdxFUQuz3OAYRIdxlA4uezhTJea33BVfho1pUDb8zKlAIgLG4lF+ivIFGN1vYZjKa8Sx6xAdX3EKD2R0Yqs11+1e0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1b60150d81dce329b2f0f5c76277a455d79933ec","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-1b60150d81dce329b2f0f5c76277a455d79933ec"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1b60150d81dce329b2f0f5c76277a455d79933ec_1694165606289_0.29357565773947836","host":"s3://npm-registry-packages"}},"0.0.0-next-9c2af84b4c5ea44fe3240bb8e878763c289402aa":{"name":"app-migrations","version":"0.0.0-next-9c2af84b4c5ea44fe3240bb8e878763c289402aa","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9c2af84b4c5ea44fe3240bb8e878763c289402aa","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ca628078e74e7dd0d64ddf30744a5b0a43bee10b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9c2af84b4c5ea44fe3240bb8e878763c289402aa.tgz","fileCount":6,"integrity":"sha512-rFyr8DzhfOi6nLGHKrHijpIiAwht9sGVIf8pYcqxDuYxvFWajescxLZ181ZtG5320ulimGA1fYfgQCtd5wwoIg==","signatures":[{"sig":"MEUCIQCDkCNKCdn0b/NWmo1zvPg7P30pYGX/EQAnty7G13n16AIgA/vC2V9SyQi20WNzEkX4zg/z+aEvOH6aHpaN1h5hVxw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9c2af84b4c5ea44fe3240bb8e878763c289402aa","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-9c2af84b4c5ea44fe3240bb8e878763c289402aa"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9c2af84b4c5ea44fe3240bb8e878763c289402aa_1694209321691_0.40392564010681364","host":"s3://npm-registry-packages"}},"0.0.0-next-9650ec9fd93b8dd78848a772fad56196ce5cda99":{"name":"app-migrations","version":"0.0.0-next-9650ec9fd93b8dd78848a772fad56196ce5cda99","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9650ec9fd93b8dd78848a772fad56196ce5cda99","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b21486c9d9bb23536c2f5653cd4f16d5c1f173be","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9650ec9fd93b8dd78848a772fad56196ce5cda99.tgz","fileCount":6,"integrity":"sha512-gabPMg4byKz/+urZwIEMA9zOIwKV2wvxmvSTsbuHVC/u96i70qOhNHbiAZ2pKW/E2mi1ztg6tJiefFBby873iw==","signatures":[{"sig":"MEQCIELrnLzYkq+K7BOyVLdX7lB/DTp3KF+ozaGdYtahOVO6AiAjJQzkTX8fX+vUxl5txgp3kyvVX/y8SrbDmWRWj0ttKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9650ec9fd93b8dd78848a772fad56196ce5cda99","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-9650ec9fd93b8dd78848a772fad56196ce5cda99"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9650ec9fd93b8dd78848a772fad56196ce5cda99_1694212653313_0.7848064205726699","host":"s3://npm-registry-packages"}},"0.0.0-next-563a1c01cb8412a6765ed36b9e63883c40ccfd1f":{"name":"app-migrations","version":"0.0.0-next-563a1c01cb8412a6765ed36b9e63883c40ccfd1f","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-563a1c01cb8412a6765ed36b9e63883c40ccfd1f","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"a1424ec1b7e599ee630b75e31e30310143e85c3b","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-563a1c01cb8412a6765ed36b9e63883c40ccfd1f.tgz","fileCount":6,"integrity":"sha512-TUq6bTWm6uLWGEYaA44Epdhaq1y6KOb+yDBc9L2fUuDZQV5Mu+vbhf6wwwpJbV4J/ii6FIYe96xrrn3LTr+SLA==","signatures":[{"sig":"MEUCIQC+X4JMpxCPa6xym+SSlFU8i9KgMu4N4ULK344U99MOyQIgXsQwNjLFDuCBnWAFzu4PZWyO8OcKomduc6AylQwd68o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"563a1c01cb8412a6765ed36b9e63883c40ccfd1f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.17.0+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.17.0","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-563a1c01cb8412a6765ed36b9e63883c40ccfd1f"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-563a1c01cb8412a6765ed36b9e63883c40ccfd1f_1694439462440_0.770901920038028","host":"s3://npm-registry-packages"}},"3.1.9":{"name":"app-migrations","version":"3.1.9","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.1.9","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"309705b7f5be06114c4cc74d5e4afd72e467174f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.1.9.tgz","fileCount":6,"integrity":"sha512-A6NUI3LuJ8LaGc2D5b64l/0TG4cIiI53ufF3CEKZ5uvabLrLEo+eKo3PEupgLPc4G9/NladbH6wR9ww2pmpUaw==","signatures":[{"sig":"MEUCIA4PQBWteTU6rKhbUXb5ElMPCyTevDCotbXtUV8HpFoCAiEAljdgQAGnGOZQ8E1VTcfhpzQgOnFIRysFZGHCDQ1qqtU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465},"main":"index.js","gitHead":"75b346b5f8c4bc9252af65ae3c65b97c6cc47d00","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"^1.1.9"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.1.9_1694440013878_0.6946267862009308","host":"s3://npm-registry-packages"}},"0.0.0-next-75b346b5f8c4bc9252af65ae3c65b97c6cc47d00":{"name":"app-migrations","version":"0.0.0-next-75b346b5f8c4bc9252af65ae3c65b97c6cc47d00","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-75b346b5f8c4bc9252af65ae3c65b97c6cc47d00","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"775b072e3df1e331e672ed49637f281ba98de566","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-75b346b5f8c4bc9252af65ae3c65b97c6cc47d00.tgz","fileCount":6,"integrity":"sha512-DKmp/v3VLRa68p0rZiSGNFZ+pDocry3BOAnEi0/udktw9tgs61JPdyZod9N6rSUEvZSkIhxvRwHkM8QPAyJG0g==","signatures":[{"sig":"MEYCIQCfDauvIWL0p9BolpFcNdaXGgRYwRfSEeQNpXBF8HpQvAIhAPKkrT4WcrRMq1rr3PHuRwCpubLoR9H4+dU4DJ+/Or5x","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"75b346b5f8c4bc9252af65ae3c65b97c6cc47d00","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-75b346b5f8c4bc9252af65ae3c65b97c6cc47d00"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-75b346b5f8c4bc9252af65ae3c65b97c6cc47d00_1694443851152_0.8928432467953538","host":"s3://npm-registry-packages"}},"0.0.0-next-aed5b72ee832ec7d7e5b3516a6d27979250471fd":{"name":"app-migrations","version":"0.0.0-next-aed5b72ee832ec7d7e5b3516a6d27979250471fd","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-aed5b72ee832ec7d7e5b3516a6d27979250471fd","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e815fee688f5902eb3c7d4354b26510c44cfd207","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-aed5b72ee832ec7d7e5b3516a6d27979250471fd.tgz","fileCount":6,"integrity":"sha512-WdDtYCkMFZ0PYWHT33ZCwdzJb/9LqnPjelWLCrsjnoydKJr2/PcbGsvv2Gp7dLjE4N90tKrRtBNgiQ+bFKk17g==","signatures":[{"sig":"MEUCIQDTQ2JEi5lBPS7CdKxdiIljD2rGeNjNza9rqsJ7XxD22gIgWmc50RS+peI700/iJd6FlzlioUYQkVVy0Fnn3Vu5JXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"aed5b72ee832ec7d7e5b3516a6d27979250471fd","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-aed5b72ee832ec7d7e5b3516a6d27979250471fd"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-aed5b72ee832ec7d7e5b3516a6d27979250471fd_1694444802661_0.43665871313074645","host":"s3://npm-registry-packages"}},"0.0.0-next-a390314895b5775ce5b6013d339bf1b26528236d":{"name":"app-migrations","version":"0.0.0-next-a390314895b5775ce5b6013d339bf1b26528236d","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a390314895b5775ce5b6013d339bf1b26528236d","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b564c08e5fd5ff63a8992939ed0121dcb2cdaa36","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a390314895b5775ce5b6013d339bf1b26528236d.tgz","fileCount":6,"integrity":"sha512-iHIXy/uNZC9pG6d+1qnre6Zip9L2WmvSl8s7+hSDRX3GksGtSRIaVggmDIqUevbHV40KWJJEOmoYUJQFT6X1KQ==","signatures":[{"sig":"MEUCIQDIAOCojwyoAhGAq5Al/h/03bYY6rb6bmmQ2z5TU8v3cgIgONnnQtm7kwsYeFR+xkBsDLYqQDJaqw+OZ/vktmdZB9Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a390314895b5775ce5b6013d339bf1b26528236d","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-a390314895b5775ce5b6013d339bf1b26528236d"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a390314895b5775ce5b6013d339bf1b26528236d_1694511260169_0.38519202883201964","host":"s3://npm-registry-packages"}},"0.0.0-next-73df2f6505237399543ede6a6a90ff5c5905004d":{"name":"app-migrations","version":"0.0.0-next-73df2f6505237399543ede6a6a90ff5c5905004d","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-73df2f6505237399543ede6a6a90ff5c5905004d","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"386f8d789a542e169a7c766fe932c1f545c45c01","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-73df2f6505237399543ede6a6a90ff5c5905004d.tgz","fileCount":6,"integrity":"sha512-92UWbefaoabe3Lw0hk1OzJbF3AqLLiF00cjwpe1i7n35UzQScwtSKfpt9O+We9o8jtF3KOMuElvAVXTR7VGcdg==","signatures":[{"sig":"MEYCIQCAYGdmkQiFKE3gGSdMQqag+QJSQfeXkPkDIaibDBHJswIhAKWWpUeiGXkXuARoWVbK0p5qjl0EfdFOz8KIQWfU647y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"73df2f6505237399543ede6a6a90ff5c5905004d","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-73df2f6505237399543ede6a6a90ff5c5905004d"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-73df2f6505237399543ede6a6a90ff5c5905004d_1694730698610_0.5332008215198685","host":"s3://npm-registry-packages"}},"0.0.0-next-c9014c9995a8d4a0e6e12cdf9244dc8230a2ee5e":{"name":"app-migrations","version":"0.0.0-next-c9014c9995a8d4a0e6e12cdf9244dc8230a2ee5e","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c9014c9995a8d4a0e6e12cdf9244dc8230a2ee5e","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"8a801ee4b8b518fb4e55898936a23c762abccdc7","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c9014c9995a8d4a0e6e12cdf9244dc8230a2ee5e.tgz","fileCount":6,"integrity":"sha512-KuVQqJ1Kn3U2zpSD5Hq43uPaiEDL7kfAmGwvH7JpAPsNH1jbCI2c64CD9OJ7gg5Yt/wO9MzmacV0Tx/k8omfpA==","signatures":[{"sig":"MEYCIQCSxeY97+FclRmOKjPwJPV+zu2a+gsP3zKi4byxxMDD/gIhAKsNOk2gWVX8OWA7OPz44yIeJ9mkLRWqkAm8GRpPcjF6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c9014c9995a8d4a0e6e12cdf9244dc8230a2ee5e","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-c9014c9995a8d4a0e6e12cdf9244dc8230a2ee5e"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c9014c9995a8d4a0e6e12cdf9244dc8230a2ee5e_1694813125905_0.9800337471042697","host":"s3://npm-registry-packages"}},"0.0.0-next-14b6e6a507f82ae562968219d65b22ddd81ce989":{"name":"app-migrations","version":"0.0.0-next-14b6e6a507f82ae562968219d65b22ddd81ce989","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-14b6e6a507f82ae562968219d65b22ddd81ce989","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"8dead07e8f69c35679f4191c2edc18120a72d3bc","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-14b6e6a507f82ae562968219d65b22ddd81ce989.tgz","fileCount":6,"integrity":"sha512-NkNkmhFjkwFgcft7d5sui4LB0hf+gQT0/OO/7U6d/yUKftr7mYJN7i6Vl/Lvl/oYCM0Phmy3d/+emqmrjXAi3g==","signatures":[{"sig":"MEYCIQCfX2h5NSvIuxiQ3b7AUUgXGVJyNNgBkR0tkFaE5j/VwgIhANkOthpUnWtBYrxPfzbhrM6eFdt6Y2p/xnAuJYWM5iA1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"14b6e6a507f82ae562968219d65b22ddd81ce989","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-14b6e6a507f82ae562968219d65b22ddd81ce989"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-14b6e6a507f82ae562968219d65b22ddd81ce989_1694814759752_0.3542748562939326","host":"s3://npm-registry-packages"}},"0.0.0-next-86b4aeaaa12e8e1dec71b2f7baab3ffb56dd7673":{"name":"app-migrations","version":"0.0.0-next-86b4aeaaa12e8e1dec71b2f7baab3ffb56dd7673","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-86b4aeaaa12e8e1dec71b2f7baab3ffb56dd7673","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"8d03545193380aa65ac456f1bbb68dc908229e9e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-86b4aeaaa12e8e1dec71b2f7baab3ffb56dd7673.tgz","fileCount":6,"integrity":"sha512-sted+dg4rFnKRUAiU+BHIiLdAzQqIcqoHSutqyvmYEplsToTBeNLdPw3ssXHl+pYVWHjCFUi7mjPIysv2kpglw==","signatures":[{"sig":"MEUCIAaLcUWSgMTE9+TrkXs86LXwESjQpuxy6Ubf3xux1mRXAiEA4cxNmQqcaOcfI+l3lS92TKK/qdWUpzOMoKmEumu2cfQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"86b4aeaaa12e8e1dec71b2f7baab3ffb56dd7673","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-86b4aeaaa12e8e1dec71b2f7baab3ffb56dd7673"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-86b4aeaaa12e8e1dec71b2f7baab3ffb56dd7673_1695063423256_0.5139516224612146","host":"s3://npm-registry-packages"}},"0.0.0-next-5b945c038c434227f3c4a202cedfb1cc6e4be758":{"name":"app-migrations","version":"0.0.0-next-5b945c038c434227f3c4a202cedfb1cc6e4be758","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-5b945c038c434227f3c4a202cedfb1cc6e4be758","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"6c3ddfa320ca53043f8994a121cd82eca3061038","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-5b945c038c434227f3c4a202cedfb1cc6e4be758.tgz","fileCount":6,"integrity":"sha512-tRgZPTRVxXNlUmvUwaHIUjgl3PYaD0L1zzo2WNAorv6AAxlxc/5XVb0LlkteGJJmodT84/J7UWpS1ymKbGKjEw==","signatures":[{"sig":"MEQCIGJ5/HKSFjyEsZEhasf3KzRCM7y2wiwCC3lySmlugrB+AiAUSEJiPxwBVRzD84Gqcv1a4vk1+P7Z3PWMCiArUZF2qw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"5b945c038c434227f3c4a202cedfb1cc6e4be758","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-5b945c038c434227f3c4a202cedfb1cc6e4be758"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-5b945c038c434227f3c4a202cedfb1cc6e4be758_1695078208862_0.3538194214005339","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"app-migrations","version":"3.2.0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.2.0","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"215cb0b3e9f9fd06b7a464f73a0a661ad8c05075","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.2.0.tgz","fileCount":6,"integrity":"sha512-KPm42P5t517mBV72jwS8tH+8xpggikTyw8WK/UREiVdqicsWvPewzBUMTO5FXvR42eFXEgDDNpvWrc9svM9Z0g==","signatures":[{"sig":"MEYCIQCKwyI1Z5CBKE51cv0k4qiWwqkRuhK/MmYSbOeCQ/UV7QIhAKoq7bywNs/naWxk6oyj7VUZhrbJ1do+wiqChSC0D2po","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465},"main":"index.js","gitHead":"146534300cc62674da9089cc7f8ebade832b359f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.2.0_1695101067975_0.5640476112755606","host":"s3://npm-registry-packages"}},"0.0.0-next-9b1f2d362ef8d184ce07224a21e077e04963f70f":{"name":"app-migrations","version":"0.0.0-next-9b1f2d362ef8d184ce07224a21e077e04963f70f","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-9b1f2d362ef8d184ce07224a21e077e04963f70f","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e49a503e4d83fa1076e5f3616a49d3fb9314b7d3","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-9b1f2d362ef8d184ce07224a21e077e04963f70f.tgz","fileCount":6,"integrity":"sha512-TinW5wIlR17U90HFGBWaqXwwfGoZ585l/Tw/KT6sUYEP7ZNIcmF5h31YfGN2iMPDWoyaM8d24d93k5Q8gdLxWw==","signatures":[{"sig":"MEQCIF+zaGQ3hEVfIpEcwfvPfUp/6T9D3ucvwGGejfZBOg8gAiAoVtnAVYRb51H2iR2ubuDvKFqvxu4q0vbhQ+Sosu5H4A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"9b1f2d362ef8d184ce07224a21e077e04963f70f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-9b1f2d362ef8d184ce07224a21e077e04963f70f"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-9b1f2d362ef8d184ce07224a21e077e04963f70f_1695174852498_0.7810117007083004","host":"s3://npm-registry-packages"}},"0.0.0-next-7c0d46a8b62b1a87e52aee93af870b973ab31fb8":{"name":"app-migrations","version":"0.0.0-next-7c0d46a8b62b1a87e52aee93af870b973ab31fb8","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-7c0d46a8b62b1a87e52aee93af870b973ab31fb8","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"df77d57cfcee12f438f4dd3f6aa40a301bef381a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-7c0d46a8b62b1a87e52aee93af870b973ab31fb8.tgz","fileCount":6,"integrity":"sha512-OhAeabPRvA5qlYLqsM/f2gu4ankYJSRYT3b3KG+MOUBon7e6EJTNVxndkA1gSTzrQ2tEe2tjGkPVrPvR19WUfg==","signatures":[{"sig":"MEUCIQDushT4KR5MmEPnBSY4re4ZRq0FtS02Ek50sT9QzoeOSAIgQEiZkS6awJS04SUsfcFt79CicVKzJJ1gYylmJCSmHIU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"7c0d46a8b62b1a87e52aee93af870b973ab31fb8","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-7c0d46a8b62b1a87e52aee93af870b973ab31fb8"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-7c0d46a8b62b1a87e52aee93af870b973ab31fb8_1695175637939_0.48849474991504405","host":"s3://npm-registry-packages"}},"0.0.0-next-594f9426128c681b581d58a0296a930de42e0404":{"name":"app-migrations","version":"0.0.0-next-594f9426128c681b581d58a0296a930de42e0404","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-594f9426128c681b581d58a0296a930de42e0404","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"1db1f459028e2eed160b4bfe2e5e7728f3148a6e","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-594f9426128c681b581d58a0296a930de42e0404.tgz","fileCount":6,"integrity":"sha512-pn0KK+AfHdi1BOM1eo8NSjU+m2taMYuF5N6lNn+4UFiRbg9+mO7mOjxC9xiMmI5Il4YWLOUHBSc+haG8qdV99w==","signatures":[{"sig":"MEUCIQC801fCNsyke1qbEIYpMRjjj19AZ6+xFUIN6z7tWYETbQIgYuHYWmE10Y6aQotHv60esmJywxtHTaTWYMNKWTxyn9g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"594f9426128c681b581d58a0296a930de42e0404","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-594f9426128c681b581d58a0296a930de42e0404"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-594f9426128c681b581d58a0296a930de42e0404_1695178371751_0.2797058578295011","host":"s3://npm-registry-packages"}},"0.0.0-next-a19dd157e511b26b229f75f9f7f44e9ca5c5821c":{"name":"app-migrations","version":"0.0.0-next-a19dd157e511b26b229f75f9f7f44e9ca5c5821c","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a19dd157e511b26b229f75f9f7f44e9ca5c5821c","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"381c97c5fbc1e4e951f0db71eed56e3addf0582c","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a19dd157e511b26b229f75f9f7f44e9ca5c5821c.tgz","fileCount":6,"integrity":"sha512-bW+IAwaXRS2cZiBdMv8ki7oPsErx4MfTIRcEGO5NjRyvqo4y7JXcoWhQXv9RodY3gbnqaeLL2oTDUweSgIPEjw==","signatures":[{"sig":"MEUCIA+IJSkZqj14uImiVxO8COCMtl40hIevjgCEPWPRhQXpAiEAgmgHJWTX77Vuuv4rdwGw9v293+c1FiuKiwiF3f9HDKs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a19dd157e511b26b229f75f9f7f44e9ca5c5821c","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-a19dd157e511b26b229f75f9f7f44e9ca5c5821c"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a19dd157e511b26b229f75f9f7f44e9ca5c5821c_1695178726947_0.8504201543943288","host":"s3://npm-registry-packages"}},"0.0.0-next-a31253f4ecb1eeb0002086ffa7439d7c46bb393a":{"name":"app-migrations","version":"0.0.0-next-a31253f4ecb1eeb0002086ffa7439d7c46bb393a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a31253f4ecb1eeb0002086ffa7439d7c46bb393a","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"57df48a9a8688ea1e38d85536c40476ca76db958","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a31253f4ecb1eeb0002086ffa7439d7c46bb393a.tgz","fileCount":6,"integrity":"sha512-ajh0xgHqD/+hnRvGjJTIepqjTXVn3DwdtxqIGJxjtKCZceTsBZfDse3spygprIgy0vhT0ZBlPElqj/DpS6Zq/Q==","signatures":[{"sig":"MEQCIEMoxYcpoex7Y1hidnez+X/8rpFx2avwnzh0HsmBCTHBAiAbA5a/u1U2tpd4eMvVrs2pnFQ+BprbftlNHGJLDBEMow==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a31253f4ecb1eeb0002086ffa7439d7c46bb393a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-a31253f4ecb1eeb0002086ffa7439d7c46bb393a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a31253f4ecb1eeb0002086ffa7439d7c46bb393a_1695268819516_0.8176135087463627","host":"s3://npm-registry-packages"}},"0.0.0-next-a23fde8b4d153893414b717423f0e48e00f69a36":{"name":"app-migrations","version":"0.0.0-next-a23fde8b4d153893414b717423f0e48e00f69a36","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-a23fde8b4d153893414b717423f0e48e00f69a36","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d98577ee21aef5e5dcd3f590cef3710e36973f3f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-a23fde8b4d153893414b717423f0e48e00f69a36.tgz","fileCount":6,"integrity":"sha512-UZ/Sx537qHAAkJn1OipjwV0ecJA89eIGJBiFRLLZLJ+UUEQrRANjvmJgdcnpfjvCye1aXzo6MGciCTXyjegxFA==","signatures":[{"sig":"MEUCIDNGLTDsKTwUhlBeszBiuBSoHF21GcEN7Yr9jN65ePI4AiEAyqdaDSVfu37c482a52swZP21PBftL2c3y4e2JbsawBw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"a23fde8b4d153893414b717423f0e48e00f69a36","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-a23fde8b4d153893414b717423f0e48e00f69a36"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-a23fde8b4d153893414b717423f0e48e00f69a36_1695268862364_0.810656856297757","host":"s3://npm-registry-packages"}},"0.0.0-next-3397cf2034f38edff9966d3d395d6db5171a8a01":{"name":"app-migrations","version":"0.0.0-next-3397cf2034f38edff9966d3d395d6db5171a8a01","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-3397cf2034f38edff9966d3d395d6db5171a8a01","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ff7d84ae5847fabb25b5fbe6e2f42da480add876","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-3397cf2034f38edff9966d3d395d6db5171a8a01.tgz","fileCount":6,"integrity":"sha512-8O6NcOwOgbPKGNqoTBAZS33zDvBUpfd+SdtRxfo7egQa3uCagQpEXBNMZN3HbAMK2Am5XGqkj+7HagBIG4uk2Q==","signatures":[{"sig":"MEYCIQDi//Zk8Ns5mFGMdU5uW8Upak3kGajVjs7E3PAomFdbVwIhAPYfmYgjs+4/0Mx3zSvdkrBErOrMYTL7ua+T3VmuIZAX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"3397cf2034f38edff9966d3d395d6db5171a8a01","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-3397cf2034f38edff9966d3d395d6db5171a8a01"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-3397cf2034f38edff9966d3d395d6db5171a8a01_1695270827739_0.07307307768157156","host":"s3://npm-registry-packages"}},"0.0.0-next-57f25336acf5cbe3e29cf6b0888aa66b301a79f0":{"name":"app-migrations","version":"0.0.0-next-57f25336acf5cbe3e29cf6b0888aa66b301a79f0","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-57f25336acf5cbe3e29cf6b0888aa66b301a79f0","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"42a9dd761d431ffc1606f38c741cfe9a8018c5d9","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-57f25336acf5cbe3e29cf6b0888aa66b301a79f0.tgz","fileCount":6,"integrity":"sha512-U0EoWgjcfyxeAhSrz0i6vyex9qelwexHIQET40HDIZbqXI2JyOT3HJHGS9GDIWMAv3PVQYTwvpihQmJY1OhW+g==","signatures":[{"sig":"MEUCIFcY1AkjyUAIzGkn34a74M7n1eK+u4lVjCiH+1LpUsa9AiEAm+uOAMt//3oXQUTVsbKp46nUIfFokMyqe0qrw14IeRw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"57f25336acf5cbe3e29cf6b0888aa66b301a79f0","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-57f25336acf5cbe3e29cf6b0888aa66b301a79f0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-57f25336acf5cbe3e29cf6b0888aa66b301a79f0_1695271511901_0.3693413543507462","host":"s3://npm-registry-packages"}},"0.0.0-next-736565d38c93cd4784109245b444d2e7c00448f4":{"name":"app-migrations","version":"0.0.0-next-736565d38c93cd4784109245b444d2e7c00448f4","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-736565d38c93cd4784109245b444d2e7c00448f4","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"92993cf35f953d306cf5c9dac5137e526ce1a919","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-736565d38c93cd4784109245b444d2e7c00448f4.tgz","fileCount":6,"integrity":"sha512-C0w7moucnVVEoccKL4xrBn96Djc9aOjkTcCMjwvu1PzAHV3xdXTZ22UtWw7LEEpnRZkVkElHCu2mXHNmX4Jhrw==","signatures":[{"sig":"MEUCIQDyKS5VjP3378rw9DLK61yXSr/+DzAPdUILNOGhCzk8YwIgGjOUT2zjdrvk8v5aCQs+T+TiPKBE/9cALjaUrVNhBBA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"736565d38c93cd4784109245b444d2e7c00448f4","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-736565d38c93cd4784109245b444d2e7c00448f4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-736565d38c93cd4784109245b444d2e7c00448f4_1695271835910_0.2409378133519069","host":"s3://npm-registry-packages"}},"0.0.0-next-1ceaaedb84012831172d67fb88467eb502b644ec":{"name":"app-migrations","version":"0.0.0-next-1ceaaedb84012831172d67fb88467eb502b644ec","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-1ceaaedb84012831172d67fb88467eb502b644ec","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e18e61db34cb71a5bc41ef1fcb33f6d829918ed3","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-1ceaaedb84012831172d67fb88467eb502b644ec.tgz","fileCount":6,"integrity":"sha512-m1wK2T20yeUkqZC61s96NmeEKrpwp9ibLA5/IZgrv65a+oKpL6djl3MOKYgTNpSU+32K3RzLOhAIV3kG+2qn6w==","signatures":[{"sig":"MEUCIBAy+kNEd13ouBryLNu3wlexmUFyFdZyWgyHPDSjW9SHAiEAmo7Aiazn85lt1LHdLLqKnX/RdfNIv/EasC6ekAIluGo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"1ceaaedb84012831172d67fb88467eb502b644ec","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-1ceaaedb84012831172d67fb88467eb502b644ec"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-1ceaaedb84012831172d67fb88467eb502b644ec_1695284075719_0.6449193179044157","host":"s3://npm-registry-packages"}},"0.0.0-next-e3ab55df3d9c7526ace255b80a850c980360f624":{"name":"app-migrations","version":"0.0.0-next-e3ab55df3d9c7526ace255b80a850c980360f624","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-e3ab55df3d9c7526ace255b80a850c980360f624","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"0cdb9f74dafa66175f219c5ec13590b1c64f74a9","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-e3ab55df3d9c7526ace255b80a850c980360f624.tgz","fileCount":6,"integrity":"sha512-U0ZGe2N0nb5SM4czf/OdVqG6Z4823lcSluAPwDhI/fv+LNXqRU3QkI2ukam4iGPSti541zfu9UVJRZ0C3rW/8w==","signatures":[{"sig":"MEUCIGxRM+ekUnnpOS9PvhQdQwM89gFJ71IHwgkcyYpXhZUWAiEApLZph2a4GW17Xgww6ADDRlgh1+bcNgePtXumhrbWxZs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"e3ab55df3d9c7526ace255b80a850c980360f624","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-e3ab55df3d9c7526ace255b80a850c980360f624"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-e3ab55df3d9c7526ace255b80a850c980360f624_1695291108180_0.4425666310329084","host":"s3://npm-registry-packages"}},"0.0.0-next-b9d1b050e736987814241466b7ae98c8b90f78c6":{"name":"app-migrations","version":"0.0.0-next-b9d1b050e736987814241466b7ae98c8b90f78c6","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-b9d1b050e736987814241466b7ae98c8b90f78c6","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"7262b60f484a7c27a02be88465cf0b6aaf1949e8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-b9d1b050e736987814241466b7ae98c8b90f78c6.tgz","fileCount":6,"integrity":"sha512-4OE6rXj2GxR1P/g8z54IcmS69Jhr3ZW5KDdh3iQVr8ADI6jYrk7CWX24Sdscmzl06sQ0po/ogARWxUpaFAREWw==","signatures":[{"sig":"MEUCIFBIPqcxTbm9YccGKgKn/Zk7e/hcML+i8PPKCs4NwL5+AiEAkxt0IS1YZ0XdRhLL7T+00fKDTqnT9B81axJQfFjPsK0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"b9d1b050e736987814241466b7ae98c8b90f78c6","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-b9d1b050e736987814241466b7ae98c8b90f78c6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-b9d1b050e736987814241466b7ae98c8b90f78c6_1695291511932_0.3556660221108381","host":"s3://npm-registry-packages"}},"0.0.0-next-ddf20a787276e2cabbc08ce1398f1fce6e0eb877":{"name":"app-migrations","version":"0.0.0-next-ddf20a787276e2cabbc08ce1398f1fce6e0eb877","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-ddf20a787276e2cabbc08ce1398f1fce6e0eb877","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"6d0a90afb4349ed9ff6957e083da8957d0ed3af4","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-ddf20a787276e2cabbc08ce1398f1fce6e0eb877.tgz","fileCount":6,"integrity":"sha512-sX2PRuVIqdyYe6JvDDW03B9p4dyVNjsLbQlgv4f3O64/+gelQOU31AwnlRwbAt+Ff3qWqrvLmJhoU5witQA0GQ==","signatures":[{"sig":"MEUCIQC+ILCnTzuk6sqSfOjP1hoegQvBUi6vf4eS+MmKcpwCsAIgdFX/L/UJCBOaHPF8GDpu57B+RJhg4igl5YldzwdO/q4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"ddf20a787276e2cabbc08ce1398f1fce6e0eb877","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-ddf20a787276e2cabbc08ce1398f1fce6e0eb877"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-ddf20a787276e2cabbc08ce1398f1fce6e0eb877_1695676278669_0.9509329454383924","host":"s3://npm-registry-packages"}},"0.0.0-next-b76ea7dd6d7035734d31099bf67212f561870431":{"name":"app-migrations","version":"0.0.0-next-b76ea7dd6d7035734d31099bf67212f561870431","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-b76ea7dd6d7035734d31099bf67212f561870431","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"61b0f99402e8f4f7cf86e74099d3a2501d69c6c2","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-b76ea7dd6d7035734d31099bf67212f561870431.tgz","fileCount":6,"integrity":"sha512-YWptPIFQezTtA+q7judA995e5uT6jji9TrOsihbeZqcMbDok2mlk27BmORkbYF/6s83cN6oV6nu3YEDfUWMDkg==","signatures":[{"sig":"MEQCIBz1leeCcnj9dHsS+Gm4ttDbeZNLQeDpy2xu6beHNxihAiAaeQD9VphhJvpve8v+y5ns4HvQIPPBbHN83OGfdLmzsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"b76ea7dd6d7035734d31099bf67212f561870431","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-b76ea7dd6d7035734d31099bf67212f561870431"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-b76ea7dd6d7035734d31099bf67212f561870431_1695678288298_0.36482879732861373","host":"s3://npm-registry-packages"}},"0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf":{"name":"app-migrations","version":"0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"442ff83fef127412de2d4833febdf4057fa10b1a","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf.tgz","fileCount":6,"integrity":"sha512-FoV4PqLLsdEKcd5uMxfFhVt8xNtytk952wuH8HHCj9jJqJMSNKQeDYGH3X2/B/dURkdzbhvNO7Lk5NDsnxwuaw==","signatures":[{"sig":"MEQCIAWd53TMzgdWYWFwBH72aqpertQMzuhPL+XUbGZjKqA4AiAeD1tlEYZysYUf1cFKqX1JmUSoGtnNMERSzder77a+BA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"afee5c48dabf3b11ed0ee36a4560b5d39742fccf","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf_1695678734518_0.17401670824159088","host":"s3://npm-registry-packages"}},"0.0.0-next-91ec641e8e0114d6898011b33f611b5801c2b301":{"name":"app-migrations","version":"0.0.0-next-91ec641e8e0114d6898011b33f611b5801c2b301","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-91ec641e8e0114d6898011b33f611b5801c2b301","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"0b53ffd16f7e9c8dabd685e8267df31a315393e5","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-91ec641e8e0114d6898011b33f611b5801c2b301.tgz","fileCount":6,"integrity":"sha512-JT0E2JOuF29eh2fCUwp7uB9rvOGTXCF/j8gVD5erfZ1amtOKX+9h9cGpugp/0ibshqQ5iHrSDHCv/BE+a9rMDQ==","signatures":[{"sig":"MEUCIHPNwBYa34kVgQwbLDks4UEkMX1nH+sXX153+VIDi5UMAiEA04WOy8Ee/oDp+GleWrqiMN/X7XAN3KhX+OIa9P7RQc0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"91ec641e8e0114d6898011b33f611b5801c2b301","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-91ec641e8e0114d6898011b33f611b5801c2b301"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-91ec641e8e0114d6898011b33f611b5801c2b301_1695714231451_0.6597503560074509","host":"s3://npm-registry-packages"}},"0.0.0-next-c7780d05684110c7f41111fba1fdba57ba9d3af6":{"name":"app-migrations","version":"0.0.0-next-c7780d05684110c7f41111fba1fdba57ba9d3af6","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-c7780d05684110c7f41111fba1fdba57ba9d3af6","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e917af3dcf16aa853230d7af6667b3d086df5892","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-c7780d05684110c7f41111fba1fdba57ba9d3af6.tgz","fileCount":6,"integrity":"sha512-4isQtTvDW1xGYaEdEemxnvNZXsWszy4fWfK9uRnGh2feA90m8Dg9zPxdDYx47FPX/WG0JmT/WqQOvsRKUwRwzA==","signatures":[{"sig":"MEYCIQCx4AkOxB9nKmaW5jyNC1t/4x9Myh8TMbH6omrb8Et2rAIhALSZCoVjGG1sdU3d101lzucSVP72+JLMP45LEJ8qrMTL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"c7780d05684110c7f41111fba1fdba57ba9d3af6","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-c7780d05684110c7f41111fba1fdba57ba9d3af6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-c7780d05684110c7f41111fba1fdba57ba9d3af6_1695761853314_0.06940801731045698","host":"s3://npm-registry-packages"}},"0.0.0-next-8596ab85d14da42f23f30aa220a34f2e6b42d91f":{"name":"app-migrations","version":"0.0.0-next-8596ab85d14da42f23f30aa220a34f2e6b42d91f","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-8596ab85d14da42f23f30aa220a34f2e6b42d91f","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"c54839ce401a3c3b7b24bdb14508b760ae4b2c72","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-8596ab85d14da42f23f30aa220a34f2e6b42d91f.tgz","fileCount":6,"integrity":"sha512-poNjdEL7l1N3kApyW36evzRb8paAShv0AfSXAtSiMC6ftxbJA/RYK7bYY0+DJLrxP0BwYmi8B31abt/OW2dt4g==","signatures":[{"sig":"MEUCIFoG4atVUc/wabkLNspgTdy5w+XZKtF2jN+aDGM+tWK9AiEA+FcFZA+h9T7uHtKl/fszxomK5Fluf8iYCdmf04Pt5Jo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"8596ab85d14da42f23f30aa220a34f2e6b42d91f","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-8596ab85d14da42f23f30aa220a34f2e6b42d91f"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-8596ab85d14da42f23f30aa220a34f2e6b42d91f_1695762564391_0.9208769986413445","host":"s3://npm-registry-packages"}},"0.0.0-next-cbdafc9e81fd9a69c759de6e5c32c012b0630fff":{"name":"app-migrations","version":"0.0.0-next-cbdafc9e81fd9a69c759de6e5c32c012b0630fff","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-cbdafc9e81fd9a69c759de6e5c32c012b0630fff","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"afd34e5f4f1286360528bd105d38a78f46bbc7b3","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-cbdafc9e81fd9a69c759de6e5c32c012b0630fff.tgz","fileCount":6,"integrity":"sha512-PP+2+2+1yc2AbVU3cv1/Gf0JoekfP6kMMjVP5FrTTv2oVyxLpTbJk6HP4ALTnkwuGPCpItPSFMCFeIQjFk2sOw==","signatures":[{"sig":"MEYCIQC2sl52nwcvpBFibQKmmR2GYauTQLBSwIg0/K0gagPmcAIhAMEPKgfMi6Q7cYytD4mnKR/K3gNAubeUHQ4jbqCYqaD9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"cbdafc9e81fd9a69c759de6e5c32c012b0630fff","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-cbdafc9e81fd9a69c759de6e5c32c012b0630fff"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-cbdafc9e81fd9a69c759de6e5c32c012b0630fff_1695854817621_0.307705998921844","host":"s3://npm-registry-packages"}},"0.0.0-next-ba552b8f02c4e17a5199123179285b0f901500ed":{"name":"app-migrations","version":"0.0.0-next-ba552b8f02c4e17a5199123179285b0f901500ed","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-ba552b8f02c4e17a5199123179285b0f901500ed","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"76322711a9693a3162a3900c51c333071fc7cf3c","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-ba552b8f02c4e17a5199123179285b0f901500ed.tgz","fileCount":6,"integrity":"sha512-zgetbOn9iG5m6LCGRTfDHb7W5E2c1FgTQEE4Hvy7Nw4upUmHRQyGEY2pOvonKrttU9Vyk49NUZZx8uhGLc49yg==","signatures":[{"sig":"MEYCIQD4ksMGkKA95eQQKhbMjvBmhJDtGBLaVNpiVe8g2hTAKQIhANP9shSBh+QOBBR9eW1Xkkej0K43fPNYLSKRFifN4SlM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"ba552b8f02c4e17a5199123179285b0f901500ed","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-ba552b8f02c4e17a5199123179285b0f901500ed"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-ba552b8f02c4e17a5199123179285b0f901500ed_1695895421143_0.18943426608117298","host":"s3://npm-registry-packages"}},"0.0.0-next-ce2d840fae1dc45497a70c8e2c0936ca0ee6e507":{"name":"app-migrations","version":"0.0.0-next-ce2d840fae1dc45497a70c8e2c0936ca0ee6e507","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-ce2d840fae1dc45497a70c8e2c0936ca0ee6e507","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"b5cdfeed35a91b63b283c0ede4f79d2aab5e16af","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-ce2d840fae1dc45497a70c8e2c0936ca0ee6e507.tgz","fileCount":6,"integrity":"sha512-eayUWtw4k602jKiqUvv3BZ10tVVHLZ65GQOEGpBS5qqzcfrm75rg+Mys/BzuAi6OV0RutA51i1fK0LYgaEjspw==","signatures":[{"sig":"MEUCIHDav0Cg8tz1Tvx9tKCkrIHlbZiCSO2lPF1K5AvVX/A0AiEA1BOyDSZ73MS7cYmgAaxGGmwxK/bibFoxnpWAYpo/m40=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"ce2d840fae1dc45497a70c8e2c0936ca0ee6e507","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-ce2d840fae1dc45497a70c8e2c0936ca0ee6e507"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-ce2d840fae1dc45497a70c8e2c0936ca0ee6e507_1695922546841_0.9158031033969269","host":"s3://npm-registry-packages"}},"0.0.0-next-da76e43124b2d90c0fce9c7e10cbc987844ba6fd":{"name":"app-migrations","version":"0.0.0-next-da76e43124b2d90c0fce9c7e10cbc987844ba6fd","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-da76e43124b2d90c0fce9c7e10cbc987844ba6fd","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"e30ed5948b6fdd56ea7d9aaa7d47a595e8cf95c8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-da76e43124b2d90c0fce9c7e10cbc987844ba6fd.tgz","fileCount":6,"integrity":"sha512-ZU6Iu9UjP5tm2jJrjJI2t5i2sbqTIOr3NOKC18hW7mtUilnQ91HXRAHarAKuas6xIuJBatE9sXm2stLsuus03g==","signatures":[{"sig":"MEQCIA7nyCUGCcFP4NT72ml7Ttrq3m342caXN/eBPejJpkoTAiB3SeOycYtlx/aBxx/Q/HTr7XhmJzMoJuP+QiM+J1zrSg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"da76e43124b2d90c0fce9c7e10cbc987844ba6fd","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-da76e43124b2d90c0fce9c7e10cbc987844ba6fd"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-da76e43124b2d90c0fce9c7e10cbc987844ba6fd_1696236263335_0.8474103552910095","host":"s3://npm-registry-packages"}},"0.0.0-next-031c3f252815794b46c0bb7abc6d07ee61544149":{"name":"app-migrations","version":"0.0.0-next-031c3f252815794b46c0bb7abc6d07ee61544149","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-031c3f252815794b46c0bb7abc6d07ee61544149","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"6de4a89fdada196bbba4d563e07ae0672c42df9c","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-031c3f252815794b46c0bb7abc6d07ee61544149.tgz","fileCount":6,"integrity":"sha512-4IJuy4ApnzFDY8u6VkfkqMNUSKkIDX6fhO6dTWLNhJB8D5SbHHW4o8gTJ+sJUfbjv/MjZx209VHUxabWKXNbqg==","signatures":[{"sig":"MEQCIBfZ+hO395Gp7RorY1xiFQKSFr/PvvKAM78alEQ99gp+AiBCyH0siwmBXXUS2bqQBR+w88npIE/RlOco8RwoQXkBWg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"031c3f252815794b46c0bb7abc6d07ee61544149","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-031c3f252815794b46c0bb7abc6d07ee61544149"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-031c3f252815794b46c0bb7abc6d07ee61544149_1696246911960_0.08659834959166135","host":"s3://npm-registry-packages"}},"0.0.0-next-fa3b3c1e9ca43b4f990838f3f5e9572a57a95065":{"name":"app-migrations","version":"0.0.0-next-fa3b3c1e9ca43b4f990838f3f5e9572a57a95065","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-fa3b3c1e9ca43b4f990838f3f5e9572a57a95065","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"8fac53dd0bb2a18bac36ca790ed07d8149998ca4","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-fa3b3c1e9ca43b4f990838f3f5e9572a57a95065.tgz","fileCount":6,"integrity":"sha512-mWdFc496dSJOfbrdehSbX54NmhB0hzd/LkEAU15ptBqFoAVs4LFutPxtKQrcb+ynkoddhe8RG9M9wf4VuoFBqg==","signatures":[{"sig":"MEUCIQDGKDwFFI9nOXZ7RoPDStPSxlGq2rR84N/jqtpA8kJgjAIgU1fh6AgDVeJogzxsaxJAMrGEPD904z1O7jJLWYP85Js=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"fa3b3c1e9ca43b4f990838f3f5e9572a57a95065","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-fa3b3c1e9ca43b4f990838f3f5e9572a57a95065"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-fa3b3c1e9ca43b4f990838f3f5e9572a57a95065_1696248342962_0.9069356877709434","host":"s3://npm-registry-packages"}},"0.0.0-next-15d1ce3ae0eb77de3a5aeedcae94be76de15bbdd":{"name":"app-migrations","version":"0.0.0-next-15d1ce3ae0eb77de3a5aeedcae94be76de15bbdd","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-15d1ce3ae0eb77de3a5aeedcae94be76de15bbdd","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"d43cfa9cb7a8adce5d3e96416b9ba27814e8ece0","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-15d1ce3ae0eb77de3a5aeedcae94be76de15bbdd.tgz","fileCount":6,"integrity":"sha512-OoaGYJp7lXt0ZouHIWzsLa//htEhwZBb2e1IRxT03BY73nQ7Bo6IjoBXpsPzavXTawJ4uFq3tLYDa2CM5UNq+w==","signatures":[{"sig":"MEYCIQDU6dufiipoReSTPxeGO+ho3JbGaw5zXXlJSBrboblU6QIhAOyrhtFVAX5viqVqXW/KhEWZrha6My0Oh8YdEGEo126e","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"15d1ce3ae0eb77de3a5aeedcae94be76de15bbdd","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-15d1ce3ae0eb77de3a5aeedcae94be76de15bbdd"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-15d1ce3ae0eb77de3a5aeedcae94be76de15bbdd_1696273667264_0.4888252664806654","host":"s3://npm-registry-packages"}},"0.0.0-next-8c769bace514d2dfa8f746c1f0ba776bdcad6aa2":{"name":"app-migrations","version":"0.0.0-next-8c769bace514d2dfa8f746c1f0ba776bdcad6aa2","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-8c769bace514d2dfa8f746c1f0ba776bdcad6aa2","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"6e72da45310b62d2b53909e85631bb6df555880d","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-8c769bace514d2dfa8f746c1f0ba776bdcad6aa2.tgz","fileCount":6,"integrity":"sha512-yVa0mD3B+QaJazUq/SGctjL4SrjTv4CkZgtrG9P5x3orupnkcun4eTJGzUzbYO4fPStd7QiWpqynL4C/fCLNZg==","signatures":[{"sig":"MEUCIQDTULDd7AlW6AWQb5ZzsHCl7tAk0nSfqQ/I/t7qcZU2egIgNny8/fCScuI2stZzBdmp4Dygxd0uFbLJNNCAEPdv2qY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"8c769bace514d2dfa8f746c1f0ba776bdcad6aa2","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-8c769bace514d2dfa8f746c1f0ba776bdcad6aa2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-8c769bace514d2dfa8f746c1f0ba776bdcad6aa2_1696273785017_0.34366233815189684","host":"s3://npm-registry-packages"}},"0.0.0-next-69151f1cbaff4886cc4e85eaacaaf1b0ff732a2a":{"name":"app-migrations","version":"0.0.0-next-69151f1cbaff4886cc4e85eaacaaf1b0ff732a2a","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-69151f1cbaff4886cc4e85eaacaaf1b0ff732a2a","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"ab5fd1f1d71fea10c8b7945f4571e88d0b852497","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-69151f1cbaff4886cc4e85eaacaaf1b0ff732a2a.tgz","fileCount":6,"integrity":"sha512-HcynhuYoBo1nuM6vQEza5S0LNNPpGwOe1xeMajtgwXl4EMCUajo3OmI7rvqNv1lDl5Zpr0QbXeawxDHslWwQPA==","signatures":[{"sig":"MEQCIGcXLq93LORIG/XFTyvYczJTi2+Uf65lxas4ZFYKod+VAiBHJ0In4aqnXo4TjCrSdCiT4AJOtF2rhine197fa0sGWA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"69151f1cbaff4886cc4e85eaacaaf1b0ff732a2a","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-69151f1cbaff4886cc4e85eaacaaf1b0ff732a2a"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-69151f1cbaff4886cc4e85eaacaaf1b0ff732a2a_1696274194641_0.2692066019707675","host":"s3://npm-registry-packages"}},"0.0.0-next-6351f727447205cf2c402c9786084d710a4b2fb6":{"name":"app-migrations","version":"0.0.0-next-6351f727447205cf2c402c9786084d710a4b2fb6","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-6351f727447205cf2c402c9786084d710a4b2fb6","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"830532407636b85d4cc63047ffedcb598a3b6ab8","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-6351f727447205cf2c402c9786084d710a4b2fb6.tgz","fileCount":6,"integrity":"sha512-KUXvlsYYx+3FYwPnSyahNKUrBeWHUSE6lUA2XimlU7PWGhs+v0+gBj5CiD7B3f5Yde/HfAXp8933B4cR3uQ+gg==","signatures":[{"sig":"MEYCIQCupDFHRiTArcleuJrsWwx7TFij3pP2G6U1S1zBKBXXcgIhAPUZ+A+DMChjuLnaZeRnQ69JG5y/Clq7RYhSnLliwX5B","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"6351f727447205cf2c402c9786084d710a4b2fb6","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-6351f727447205cf2c402c9786084d710a4b2fb6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-6351f727447205cf2c402c9786084d710a4b2fb6_1696275285084_0.6715505656104417","host":"s3://npm-registry-packages"}},"3.2.1":{"name":"app-migrations","version":"3.2.1","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@3.2.1","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"86489fbf777e6ccf4f5a919c26438f93b5b64eb5","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-3.2.1.tgz","fileCount":6,"integrity":"sha512-Rk9oKmYLgFqdvR3+miSmOOpAAzAzLPR5TN0LUoWR8+4EqfSV7gj23ozLjRUXEES2oVfHon7MSTZ0xPtCNhsMcg==","signatures":[{"sig":"MEUCICjpT32MNuVz2WRFWtPBE3TOaG292+r+9EZGbsYpftHJAiEAtoYrPDwbNl7IS3HnmISVqvVIpkXRqqVeQmapdvlF33E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465},"main":"index.js","gitHead":"2f5b80f5e4a015e576e9fe4b069271c92e688a05","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"^1.2.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_3.2.1_1696310612677_0.5635039833426103","host":"s3://npm-registry-packages"}},"0.0.0-next-4d0e65954ff82d6acf17b3591b06ec4de66b7977":{"name":"app-migrations","version":"0.0.0-next-4d0e65954ff82d6acf17b3591b06ec4de66b7977","author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","_id":"app-migrations@0.0.0-next-4d0e65954ff82d6acf17b3591b06ec4de66b7977","maintainers":[{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"dist":{"shasum":"3e64dcfc3b1904f1523a9cae1f0945874d4a633f","tarball":"https://registry.npmjs.org/app-migrations/-/app-migrations-0.0.0-next-4d0e65954ff82d6acf17b3591b06ec4de66b7977.tgz","fileCount":6,"integrity":"sha512-O92hN+TSZlAm+Q9P/YXiv5m14ObZ3TDyvsSQQpBUfhDqEzC9mXQ/4ivUVyCkDSuWbLpP+4lclgU9MQlb3tagog==","signatures":[{"sig":"MEQCIGQELVxMj6qijkpz8Kb96m+i+gSb7cOZaUY2yI9PhUzqAiA2dB4PyoNTMpD2y6p3MKYm6hdjrH0ktKL8S/ESwKMDgg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36556},"main":"index.js","readme":"# app-migrations [![npm][npm_img]][npm_url]\n\n> A helper module to define and execute app schema migrations.\n\nRun on every start of your application with the previous and current version.\n\nMakes sure that the correct migration steps are executed in the right order and\nthat downgrades are only allowed if there hasn't been a migration between the\ntwo versions.\n\napp-migrations uses [semver](https://github.com/npm/node-semver) to determine\nversion order.\n\n## Examples\n\n##### Set up migrations\n\n```javascript\n// define your migrations functions, keyed to the version they were introduced at.\nvar migrations = {\n  '1.0.4': function(previousVersion, currentVersion, done) {\n    // introduced new \"jetpack\" feature which requires changes to the engine.\n    // ... add code here ...\n    done(null, 'upgraded engine to support jetpack.');\n  },\n  '1.0.9': function(previousVersion, currentVersion, done) {\n    // added photon cannons for more fire power, but needed to deprecate\n    // laser cannons instead.\n    // ... add code here ...\n    done(null, 'removed laser cannons, added photon cannons.');\n  }\n};\n\nvar migrate = require('app-migrations')(migrations);\n```\nOn every new launch, run `migrate()` with previous and current version.\n\n##### upgrade from 1.0.0 (got nothing) to 2.0.0 (need jetpack and photon cannons)\n\n```javascript\nmigrate('1.0.0', '2.0.0', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.4': 'upgraded engine to support jetpack.',\n//  '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.5 (we already got jetpacks) to 1.1.4 (need photon cannon)\n```javascript\nmigrate('1.0.5', '1.1.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: { '1.0.9': 'removed laser cannons, added photon cannons.' }\n```\n\n##### upgrade from 1.0.4 to 1.0.4 (no changes needed)\n```javascript\nmigrate('1.0.4', '1.0.4', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.6 (no internal changes, downgrade ok)\n```javascript\nmigrate('1.0.8', '1.0.6', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Success: {}\n```\n\n##### downgrade from 1.0.8 to 1.0.3 (incompatible due to internal changes)\n```javascript\nmigrate('1.0.8', '1.0.3', function(err, res) {\n  if (err) return console.error('Error:', e.message);\n  console.log('Success:', res);\n});\n\n// console output\n// Error: Downgrade from version 1.0.8 to 1.0.3 not possible.\n```\n\n[npm_img]: https://img.shields.io/npm/v/app-migrations.svg\n[npm_url]: https://npmjs.org/package/app-migrations\n","gitHead":"4d0e65954ff82d6acf17b3591b06ec4de66b7977","scripts":{"lint":"eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern","test":"mocha","check":"npm run lint && npm run depcheck","test-ci":"npm run test","depcheck":"depcheck"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"_npmVersion":"lerna/7.1.5/node@v16.20.2+x64 (linux)","description":"Helper for application schema migrations","directories":{},"_nodeVersion":"16.20.2","compass:main":"index.js","dependencies":{"async":"^3.2.2","debug":"^4.2.0","lodash":"^4.17.21","semver":"^7.5.4","@mongodb-js/compass-logging":"0.0.0-next-4d0e65954ff82d6acf17b3591b06ec4de66b7977"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^10.2.0","eslint":"^7.25.0","depcheck":"^1.4.1","eslint-config-mongodb-js":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/app-migrations_0.0.0-next-4d0e65954ff82d6acf17b3591b06ec4de66b7977_1696345769431_0.7633716811537081","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-03-11T03:28:05.720Z","modified":"2026-07-15T15:34:42.227Z","0.1.0":"2016-03-11T03:28:05.720Z","0.1.1":"2016-03-11T03:32:22.877Z","0.1.2":"2017-05-31T17:55:51.672Z","0.2.0":"2020-01-15T15:48:59.995Z","0.3.0":"2020-01-15T16:26:14.082Z","1.0.0":"2020-01-29T17:56:48.232Z","1.1.0":"2021-05-26T17:41:14.667Z","1.1.1":"2021-05-27T14:01:58.555Z","2.0.0":"2021-06-03T16:54:07.861Z","2.1.0":"2021-06-16T17:37:38.134Z","2.1.1":"2021-06-18T15:24:21.235Z","2.2.0":"2021-06-21T09:25:07.265Z","2.2.1":"2021-08-05T11:58:00.132Z","2.3.0":"2021-08-11T11:22:15.584Z","2.4.0":"2021-11-19T11:08:59.886Z","2.5.0":"2021-12-21T14:14:34.773Z","2.6.0":"2022-01-07T18:15:10.613Z","2.6.1":"2022-01-11T21:05:52.033Z","2.7.0":"2022-02-03T13:34:10.488Z","2.7.1":"2022-02-25T13:06:15.203Z","2.8.0":"2022-02-25T14:09:33.379Z","2.9.0":"2022-03-03T14:36:44.269Z","2.10.0":"2022-03-30T17:14:05.007Z","2.11.0":"2022-04-27T16:30:41.264Z","2.12.0":"2022-05-12T09:04:57.413Z","2.13.0":"2022-06-27T07:47:48.822Z","2.14.0":"2022-07-12T18:15:09.203Z","3.0.0":"2022-08-09T13:25:32.830Z","3.1.0":"2022-09-22T15:14:07.169Z","0.0.0-experimental-1c53312ce4905234885618d41ae95fde9c21aa18":"2022-09-26T13:17:00.558Z","0.0.0-next-e30a9e850a8a66b70770fbf6658a3e35cf1ff8b8":"2022-09-26T14:07:19.579Z","0.0.0-next-25b11de63d51aa4ca7fda0f3eae67999e3418ca5":"2022-09-28T16:53:55.941Z","0.0.0-next-dfa464112f63969f158bde32322e393fa2b77940":"2022-09-28T22:05:23.496Z","0.0.0-next-e42d58083be39ce9f112e6ec7f9fd1fdcb666e3e":"2022-09-29T16:07:31.027Z","0.0.0-next-5f69e8129e0242b4e507fee055188a8a83e1f1c1":"2022-10-05T11:10:47.908Z","0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f":"2022-10-05T16:14:55.186Z","0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47":"2022-10-06T09:46:47.010Z","0.0.0-next-cd3c5c1303c464ef7900dc08adb8154d15c7f3a9":"2022-10-06T14:44:01.532Z","0.0.0-next-d9691f3c8230e21aeb2817ac2c984aba0d79f09c":"2022-10-07T19:44:36.673Z","0.0.0-next-1cb9ea1724d90e58422b33fe089df5b774e0be10":"2022-10-07T19:49:26.406Z","0.0.0-next-4216a27cdf41425fff35938bb42040bb93c2d246":"2022-10-07T20:00:12.276Z","0.0.0-next-e3d7e58db726184c34e0d2d9f3342595a865eb55":"2022-11-01T17:36:20.280Z","0.0.0-next-dd9be0f790095ebc62a3de5b5f33543ff3c55cf3":"2022-11-02T09:11:06.473Z","3.1.1":"2022-11-02T09:50:19.155Z","0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb":"2022-11-02T11:30:45.873Z","0.0.0-next-59e1f6f134da2a3417bd69a71c7788320608ee5d":"2022-11-04T03:10:04.763Z","0.0.0-next-ea4f317e964c0504e54c01d83c385280a9135bba":"2022-11-04T03:18:12.832Z","0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04":"2022-11-08T21:27:17.842Z","0.0.0-next-5f5cecf01c890c348e17907482b03cea2f8c5f21":"2022-11-09T23:44:25.699Z","0.0.0-next-51a8e00f16dc1652cb0f0674c540570614a8895e":"2022-11-09T23:50:11.375Z","0.0.0-next-6d1491390706ac21857752412a5e4d10e112a29a":"2022-11-09T23:54:25.260Z","0.0.0-next-44318443f2cd1088082181789b25fc26a7a11bb2":"2022-11-09T23:56:05.281Z","0.0.0-next-3b50f8232d3349fe79554f36417d7fbb45b6352a":"2022-11-10T00:00:27.052Z","0.0.0-next-47b085701d7c0b212b54bcac46f6106d34ec429e":"2022-11-10T12:45:59.346Z","0.0.0-next-9e3b266e199e346a30e2c20aac373d48c2ea9888":"2022-11-11T20:43:36.859Z","0.0.0-next-91daa029e219b08cf0b775b6648d35867f2272d0":"2022-11-16T23:12:32.000Z","0.0.0-next-27bdd4c654b0108a364c4bb3541996722734028c":"2022-11-17T02:40:44.556Z","0.0.0-next-7f1112246f97f222dc289edb7b9f0359d8f020cb":"2022-11-17T02:50:09.844Z","0.0.0-next-c12720c09369b6620405de027fa85d469db43e9c":"2022-11-18T04:59:41.452Z","0.0.0-next-2122563cf622c0d212372dee10ec2a4a664d8006":"2022-11-18T05:09:30.575Z","0.0.0-next-c31c6db319e5099ee073b5782609b1dcfa2370d8":"2022-11-19T06:50:13.097Z","0.0.0-next-981f8ae49e299320ca0add5ae8e58c8738baa699":"2022-11-19T07:03:55.399Z","0.0.0-next-6a646700444fec2ae51cd86f87f6a29e58f774b0":"2022-11-19T07:06:29.190Z","0.0.0-next-112bf8f8b20d7181824478f76e627ee32d6e03d7":"2022-11-19T20:42:34.093Z","0.0.0-next-19de7da29c34177349014132e37b723c1cb16ebd":"2022-11-19T22:16:56.025Z","0.0.0-next-1484036deb50fe0421bb8be4c48b2f9e56c17a46":"2022-11-22T02:40:45.777Z","0.0.0-next-6e34a0d07479c665cdfa3bddb6bfd864365f6b8a":"2022-11-22T02:41:35.436Z","0.0.0-next-31a3fe49cf0eba4c3afe85c4a4139ce198cb0e51":"2022-11-22T02:44:28.471Z","0.0.0-next-bb1a39e78c30cda5ef910174e54d2c9708186388":"2022-11-22T02:50:04.959Z","0.0.0-next-b5a88ca5d89936f4997a6df7c6e08614f25de0a1":"2022-11-22T02:52:11.378Z","0.0.0-next-9a3af5fc8cc6a9ccc96866e1b71d0a33c14d7c08":"2022-11-22T02:59:47.268Z","0.0.0-next-2cde0fe836b81baa0f68d274840a5f97b8dae0c6":"2022-11-22T03:04:59.102Z","0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a":"2022-11-23T01:39:12.165Z","0.0.0-next-64ed9e6634006598c90fc79f71c554ec401bfc8e":"2022-11-23T02:15:53.466Z","0.0.0-next-a005ee4428ffd61a00127102fa0c29212a52fc83":"2022-11-24T03:21:56.245Z","0.0.0-next-e06434c386fd387cc5650fc9c0906b46cb4d6c34":"2022-11-24T03:35:42.157Z","0.0.0-next-8d44ba9084fbf5b834ca7df8b77135d3c8fc6896":"2022-11-24T20:19:56.803Z","0.0.0-next-74685ebe9d7b81dd4a870c8ffd51152622741526":"2022-11-24T20:26:24.013Z","0.0.0-next-92270b35885e90f6eb7b153275848f7a2be21278":"2022-11-25T10:01:29.160Z","0.0.0-next-f9347a106881d77aa4b1f7f37daed25d73c5f92c":"2022-11-25T22:47:19.642Z","0.0.0-next-94f03d5249971d1eea1868df296db6e766f40f9f":"2022-11-25T23:48:13.469Z","0.0.0-next-e3ac63bd187d674b27865523c639e78bf78ac7a1":"2022-11-28T22:09:51.614Z","0.0.0-next-92d0020f1616b24273dd45bcadc1f36b47a690d7":"2022-11-29T09:38:55.862Z","0.0.0-next-449f5b693a70d24bf653fcbd3719d8d88d91d899":"2022-11-29T23:35:25.507Z","0.0.0-next-9ee9b0963df24390835a677f1a9081d9bc53ca2a":"2022-11-29T23:39:51.938Z","0.0.0-next-98550b9ab2651e46658429899a0b7353249a18c0":"2022-12-01T09:47:00.610Z","0.0.0-next-f5e96f4dde195c3f4c44fc6c373583df1178a29d":"2022-12-01T23:16:52.787Z","0.0.0-next-21edffba0b9d147d7a297a3e4a69d68cdca09b82":"2022-12-01T23:28:31.428Z","0.0.0-next-6a5d526328ecfce1da82bf064daeb19f1c2bf6a5":"2022-12-04T22:31:33.796Z","0.0.0-next-aafcfc5ac487a7962baee26ca6c5870e66de2533":"2022-12-05T09:36:17.625Z","0.0.0-next-2f189f8218b434e8d36a7472a2ac843f17147b9b":"2022-12-06T00:52:22.271Z","0.0.0-next-faf899c161858cffa138dc64f4fbf9c0da2145e0":"2022-12-06T00:54:03.948Z","0.0.0-next-f5d7198f71e9d27890af5dc79d01c3950c637d49":"2022-12-07T17:14:04.027Z","0.0.0-next-1336f6ccd01a8b5f63ed6bea289fa9f8fc4d9557":"2022-12-09T02:44:19.002Z","0.0.0-next-d43728ce0cf99f511bd2d2aebad966bc49276179":"2022-12-09T02:46:45.765Z","0.0.0-next-0d9e77c42a99b49fd4ecc7167d0c769866f92ef2":"2022-12-09T02:56:25.405Z","0.0.0-next-7db57a9d912a713312c9f79acdfcde9e49b554d9":"2022-12-09T18:24:20.923Z","0.0.0-next-907430527b638cb96704541b347715ec1dcc648b":"2022-12-12T21:33:06.709Z","0.0.0-next-3888dd701d06bedcc2b043270c5dc626b9997eb0":"2022-12-12T21:38:08.209Z","0.0.0-next-dc4590988660016a4419dbc587f3182af207ed15":"2022-12-14T18:28:23.034Z","0.0.0-next-384d29b0a9580a15a106637331eb1fe9f304acba":"2023-01-11T15:42:09.362Z","0.0.0-next-cbaa086f387b9c9b62aef9381297773a9794a200":"2023-01-13T15:10:49.198Z","0.0.0-next-cb3371cdb3289f37402f09c6388269e88c943a81":"2023-01-13T17:38:37.521Z","0.0.0-next-f6dcd616f47e1d3843402c3e0f47d541edec53f3":"2023-01-14T19:48:45.090Z","0.0.0-next-6900ac52ffc5e2e7ef959752bc33235dc12946e4":"2023-01-16T14:42:53.214Z","0.0.0-next-d09be9dbbff785d6692110b819e06b0186bd3ac7":"2023-01-16T21:59:30.224Z","0.0.0-next-b72d7d0f94c6cd6b83966a08494549408ed56560":"2023-01-20T15:15:04.508Z","0.0.0-next-288585a9b69e86c5bb1bfcf4b6df1f5db45ad7bf":"2023-01-26T02:24:27.646Z","0.0.0-next-9c2b4b0b01c61fc3051beeb16fa883130e745d9b":"2023-02-02T04:11:11.044Z","3.1.2":"2023-02-02T09:36:54.812Z","0.0.0-next-cfe9a829fd77fc84e090f2c7b38663167071ebc5":"2023-02-02T22:41:37.756Z","0.0.0-next-6e4c984eb458cbfc675ec138ae979303ef32bcb5":"2023-02-02T23:24:59.671Z","0.0.0-next-1638fa3a4f457428151ba0ef06b33cfc4a77c896":"2023-02-04T16:24:47.717Z","0.0.0-next-3e67b8063fbcd84b0bfd6451e2568968fbdba25a":"2023-02-06T20:34:35.848Z","0.0.0-next-920407d9fa8e9bc60bfc2577492e5be59254432e":"2023-02-06T20:35:18.788Z","0.0.0-next-7bfb57937adf16eda85ca92547ea5711d120b4c1":"2023-02-06T20:38:40.642Z","0.0.0-next-3b389244f7eb06219ec1e923cac29b45a6ec3e84":"2023-02-06T20:40:00.311Z","0.0.0-next-014cd3f52319f9c3e62d458f4c10e0af7ae98052":"2023-02-13T23:32:37.504Z","0.0.0-next-887a3dabb2b894331aec6aa894bc425e2dc591b5":"2023-02-15T00:05:11.786Z","0.0.0-next-c5eba7335c2da0b9754b4e52495c98f48ec15463":"2023-02-15T10:49:20.757Z","0.0.0-next-9acb1d074fcbf6aa34b275f617178f0f155ff495":"2023-02-20T21:34:03.029Z","3.1.3":"2023-02-24T20:46:39.920Z","0.0.0-next-7675c98b3881009dcc19690b66a6e63e65e1a13c":"2023-02-26T18:50:55.908Z","0.0.0-next-e5f447d1d4e3c5e91efdf6c7e380240ff610dc24":"2023-03-02T08:38:43.851Z","3.1.4":"2023-03-03T09:41:49.830Z","0.0.0-next-e0e7275f55471eecce19ff3b75439fb06dce1fad":"2023-03-03T12:29:16.596Z","0.0.0-next-a8732fdbdeb3ad56ef759d7970565ccd371888eb":"2023-03-03T14:08:49.191Z","0.0.0-next-04ba59a8ace9d68fd90d540d8a8936985115e22e":"2023-03-18T12:33:35.092Z","0.0.0-next-ed8f90bd71f084cb541f99b15caf3833ec6a953c":"2023-03-20T20:56:55.398Z","0.0.0-next-97c3945c3938ec09f9aa141b791f53d15bd47600":"2023-03-20T20:57:39.481Z","0.0.0-next-d4e65fe0ae295543658a34afcb1bd79b9b5ecd75":"2023-03-28T15:29:51.690Z","0.0.0-next-3904cf8445c3449f8f87362208a2b0448f57aded":"2023-03-28T19:35:43.802Z","0.0.0-next-a863ce6adfb98ced08f9644a294f5b63b110c7d8":"2023-03-28T19:41:06.952Z","0.0.0-next-c3291a871fc2c07d3e2038cc1ad275c102e1d321":"2023-03-30T09:35:23.353Z","0.0.0-next-da0d016fdae6992001ca3f3347c293c36815df43":"2023-03-31T20:57:36.359Z","0.0.0-next-76532b01c39fab29385234ef65aac28c9e7d3e9f":"2023-03-31T20:59:36.114Z","0.0.0-next-30478c108fea9fe7d84759fb032faee28e0bbfbb":"2023-04-19T12:30:49.486Z","0.0.0-next-1f064ba7669c838cc646f440aedd0cf45c4df973":"2023-04-19T20:52:31.492Z","0.0.0-next-259fb95ccf1d41c3210676266488d0705f9b544e":"2023-04-20T01:48:18.821Z","0.0.0-next-5e29b9ff5907de09aef425352f5bb129b192e22c":"2023-04-20T18:25:33.444Z","3.1.5":"2023-04-21T10:19:03.020Z","0.0.0-next-604fdbd72ed8b3cb7869997416b51ea07fd77400":"2023-04-26T09:23:16.878Z","0.0.0-next-35420eb38f659fbfc4bff9e72644deebafef275e":"2023-04-27T01:56:52.702Z","0.0.0-next-f8695ae3010acc2686c0a530f153ebb01ddb040a":"2023-04-27T09:19:12.821Z","0.0.0-next-5965a9bfaeadf7fcf283dfd3fe19aa58f68c5c1c":"2023-04-27T21:45:18.064Z","0.0.0-next-c7e6e3b221454842020aa1a9adedb2461878d995":"2023-04-27T22:12:29.009Z","0.0.0-next-07a892207f0c33a49a10f047b8e98d59fb1df676":"2023-05-03T06:04:05.588Z","0.0.0-next-3871489afff599d3c0e5827b05c6cd97787625bb":"2023-05-03T17:50:45.294Z","0.0.0-next-27b7937b9a9b4fc9415bbd7962fe0f6b00d4be5d":"2023-05-03T17:51:08.619Z","0.0.0-next-23c47176cb8ae215c36676e7e063cfda61b887ea":"2023-05-03T18:25:06.618Z","0.0.0-next-28d3c6ea9e684b19e4fcfd38c8b4e94fba06844f":"2023-05-04T07:28:18.430Z","0.0.0-next-6c80d388bff8033f8ad0136897982d9caae9b2d0":"2023-05-31T22:24:28.085Z","0.0.0-next-225e955061dcfc0119514b8299a0dc1faed48637":"2023-05-31T22:25:07.539Z","0.0.0-next-0189b6f6005b078db9424856c7565117e3b45ef3":"2023-06-02T23:41:27.599Z","0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054":"2023-06-02T23:43:03.865Z","0.0.0-next-e182f845553cf87006baf04d22367061288c5226":"2023-06-03T00:32:26.195Z","0.0.0-next-2d8cfc600e1d4de8c32643b601d0c021734b31ed":"2023-06-03T00:53:42.602Z","0.0.0-next-c2ee6dc98a012b4f4494e197ec69ca57d395b8fa":"2023-06-03T01:03:58.055Z","0.0.0-next-5d4d8579be24c292424443140492919b337a3b28":"2023-06-03T08:35:35.353Z","3.1.6":"2023-06-05T10:34:21.471Z","0.0.0-next-e3e38f7d039860a6114dcb42a77f550e236b18ba":"2023-06-06T08:37:05.951Z","0.0.0-next-5e0eb3ba4d40569bc6acb4383f7c85221ebc81fa":"2023-06-06T11:26:11.505Z","0.0.0-next-52e439f268b74410212a0d91a5ee39021eb44499":"2023-06-06T11:27:28.423Z","0.0.0-next-5dfa7c0dfa9690d09de616d9a4839fde1ab0e467":"2023-06-08T06:58:29.731Z","0.0.0-next-1d02bfb24078b4391bee7a83e34cb3d7da39a731":"2023-06-08T07:01:48.587Z","0.0.0-next-b2733835a3b65a4990e1af518669453fad1aba04":"2023-06-08T07:06:14.661Z","0.0.0-next-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1":"2023-06-08T08:10:34.727Z","0.0.0-next-a163d3eea7baaadc9ff00f56212f6befadf68cc1":"2023-06-10T02:50:44.185Z","0.0.0-next-e35a108a54700c3d0f1f8d937fe870db23cb1682":"2023-06-10T03:58:27.726Z","0.0.0-next-80a9e175edd3eabee53daee876d77943872e4205":"2023-06-12T22:53:06.740Z","0.0.0-next-707fe01258204f4be98f1b7a6cffef62deed0b66":"2023-06-13T10:09:28.295Z","0.0.0-next-58b07e3b9faef89f8f737552ca57d6db6e0ea503":"2023-06-14T23:06:08.783Z","0.0.0-next-a6a1fbc898ffbe115f44ef184f30cf0d9348f9c2":"2023-06-14T23:09:58.515Z","0.0.0-next-60cc295fd36171b66786a43c0396bcc8db207829":"2023-06-22T07:40:34.466Z","0.0.0-next-3ddf2b32a13c98a8713916c7c20185f8ae9a9327":"2023-06-24T03:39:21.100Z","0.0.0-next-f0a5a0fe0d39e23cbafd19676a6f8bc00f4480b5":"2023-06-24T03:41:57.768Z","0.0.0-next-ed2df3c8a8927bde74631eed8827575645a9c2c4":"2023-06-28T04:01:34.264Z","0.0.0-next-99faf39dcaa3321ec39c2a4a4c7b67e04f3c753e":"2023-06-28T16:34:23.394Z","0.0.0-next-c584ad92337ea0098e7068e83ed68dd13565b7da":"2023-06-30T05:22:18.568Z","0.0.0-next-835937ee6a94b541fd12d3d0c54d829fb2d0e492":"2023-06-30T18:34:23.363Z","0.0.0-next-a7eb730693b63501028444f9ef6b634620af6e37":"2023-07-03T18:45:20.518Z","0.0.0-next-084f1c20551b15b25b3945fae7547f5321bc4128":"2023-07-03T18:47:23.708Z","0.0.0-next-9c1e839a379c1d7525de44084db049cc54c0b292":"2023-07-05T20:11:01.015Z","0.0.0-next-247cba5e738b47e2c433fd1bc2e3d0ed48142ca5":"2023-07-13T02:43:57.800Z","0.0.0-next-8c579fa95e9deb46d73653d702f7f3b0e41efeb8":"2023-07-21T02:41:42.651Z","0.0.0-next-1d0257ec5ae772888fbfb677bbacf8cd7dfb3127":"2023-07-21T03:23:46.514Z","0.0.0-next-5bb899576d8b95cb24b170e4fb80a7a4cc89beac":"2023-07-24T12:05:45.451Z","0.0.0-next-71516462af839d62ee28dd99ff05de7ed4ce8d8d":"2023-07-29T11:06:09.686Z","0.0.0-next-f80a8dc02764b396d508892a0b6c54c9e9249811":"2023-07-29T11:55:23.067Z","3.1.7":"2023-08-07T10:19:36.512Z","3.1.8":"2023-08-29T05:22:51.129Z","0.0.0-next-b53158d1a4cfaa42b802a8e10059a81778b5ea8b":"2023-09-07T12:13:38.095Z","0.0.0-next-0b7bdbac2841bb29f779dc118427209fea404a6b":"2023-09-07T23:18:06.232Z","0.0.0-next-c25c1e64414b91293a923472d34a42f70b166044":"2023-09-07T23:19:26.127Z","0.0.0-next-b7fec801851465307d84e2b4b6361da5ab1b4354":"2023-09-07T23:24:57.284Z","0.0.0-next-d4784fcb34a3145f96a0c778a1bc3c786e1cc774":"2023-09-08T09:30:01.432Z","0.0.0-next-1b60150d81dce329b2f0f5c76277a455d79933ec":"2023-09-08T09:33:26.551Z","0.0.0-next-9c2af84b4c5ea44fe3240bb8e878763c289402aa":"2023-09-08T21:42:02.040Z","0.0.0-next-9650ec9fd93b8dd78848a772fad56196ce5cda99":"2023-09-08T22:37:33.523Z","0.0.0-next-563a1c01cb8412a6765ed36b9e63883c40ccfd1f":"2023-09-11T13:37:42.618Z","3.1.9":"2023-09-11T13:46:54.181Z","0.0.0-next-75b346b5f8c4bc9252af65ae3c65b97c6cc47d00":"2023-09-11T14:50:51.431Z","0.0.0-next-aed5b72ee832ec7d7e5b3516a6d27979250471fd":"2023-09-11T15:06:42.833Z","0.0.0-next-a390314895b5775ce5b6013d339bf1b26528236d":"2023-09-12T09:34:20.330Z","0.0.0-next-73df2f6505237399543ede6a6a90ff5c5905004d":"2023-09-14T22:31:38.820Z","0.0.0-next-c9014c9995a8d4a0e6e12cdf9244dc8230a2ee5e":"2023-09-15T21:25:26.071Z","0.0.0-next-14b6e6a507f82ae562968219d65b22ddd81ce989":"2023-09-15T21:52:39.919Z","0.0.0-next-86b4aeaaa12e8e1dec71b2f7baab3ffb56dd7673":"2023-09-18T18:57:03.586Z","0.0.0-next-5b945c038c434227f3c4a202cedfb1cc6e4be758":"2023-09-18T23:03:29.075Z","3.2.0":"2023-09-19T05:24:28.260Z","0.0.0-next-9b1f2d362ef8d184ce07224a21e077e04963f70f":"2023-09-20T01:54:12.668Z","0.0.0-next-7c0d46a8b62b1a87e52aee93af870b973ab31fb8":"2023-09-20T02:07:18.236Z","0.0.0-next-594f9426128c681b581d58a0296a930de42e0404":"2023-09-20T02:52:51.963Z","0.0.0-next-a19dd157e511b26b229f75f9f7f44e9ca5c5821c":"2023-09-20T02:58:47.199Z","0.0.0-next-a31253f4ecb1eeb0002086ffa7439d7c46bb393a":"2023-09-21T04:00:19.750Z","0.0.0-next-a23fde8b4d153893414b717423f0e48e00f69a36":"2023-09-21T04:01:02.634Z","0.0.0-next-3397cf2034f38edff9966d3d395d6db5171a8a01":"2023-09-21T04:33:48.086Z","0.0.0-next-57f25336acf5cbe3e29cf6b0888aa66b301a79f0":"2023-09-21T04:45:12.090Z","0.0.0-next-736565d38c93cd4784109245b444d2e7c00448f4":"2023-09-21T04:50:36.120Z","0.0.0-next-1ceaaedb84012831172d67fb88467eb502b644ec":"2023-09-21T08:14:35.902Z","0.0.0-next-e3ab55df3d9c7526ace255b80a850c980360f624":"2023-09-21T10:11:48.400Z","0.0.0-next-b9d1b050e736987814241466b7ae98c8b90f78c6":"2023-09-21T10:18:32.181Z","0.0.0-next-ddf20a787276e2cabbc08ce1398f1fce6e0eb877":"2023-09-25T21:11:18.833Z","0.0.0-next-b76ea7dd6d7035734d31099bf67212f561870431":"2023-09-25T21:44:48.565Z","0.0.0-next-afee5c48dabf3b11ed0ee36a4560b5d39742fccf":"2023-09-25T21:52:14.792Z","0.0.0-next-91ec641e8e0114d6898011b33f611b5801c2b301":"2023-09-26T07:43:51.707Z","0.0.0-next-c7780d05684110c7f41111fba1fdba57ba9d3af6":"2023-09-26T20:57:33.538Z","0.0.0-next-8596ab85d14da42f23f30aa220a34f2e6b42d91f":"2023-09-26T21:09:24.678Z","0.0.0-next-cbdafc9e81fd9a69c759de6e5c32c012b0630fff":"2023-09-27T22:46:57.833Z","0.0.0-next-ba552b8f02c4e17a5199123179285b0f901500ed":"2023-09-28T10:03:41.453Z","0.0.0-next-ce2d840fae1dc45497a70c8e2c0936ca0ee6e507":"2023-09-28T17:35:47.099Z","0.0.0-next-da76e43124b2d90c0fce9c7e10cbc987844ba6fd":"2023-10-02T08:44:23.625Z","0.0.0-next-031c3f252815794b46c0bb7abc6d07ee61544149":"2023-10-02T11:41:52.166Z","0.0.0-next-fa3b3c1e9ca43b4f990838f3f5e9572a57a95065":"2023-10-02T12:05:43.180Z","0.0.0-next-15d1ce3ae0eb77de3a5aeedcae94be76de15bbdd":"2023-10-02T19:07:47.551Z","0.0.0-next-8c769bace514d2dfa8f746c1f0ba776bdcad6aa2":"2023-10-02T19:09:45.296Z","0.0.0-next-69151f1cbaff4886cc4e85eaacaaf1b0ff732a2a":"2023-10-02T19:16:34.843Z","0.0.0-next-6351f727447205cf2c402c9786084d710a4b2fb6":"2023-10-02T19:34:45.321Z","3.2.1":"2023-10-03T05:23:32.904Z","0.0.0-next-4d0e65954ff82d6acf17b3591b06ec4de66b7977":"2023-10-03T15:09:29.599Z"},"bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"author":{"name":"Thomas Rueckstiess","email":"thomas@rueckstiess.net"},"license":"SSPL","homepage":"https://github.com/mongodb-js/compass","repository":{"url":"git+https://github.com/mongodb-js/compass.git","type":"git"},"description":"Helper for application schema migrations","maintainers":[{"email":"satya@mongodb.com","name":"satyasinha"},{"email":"kristina.stefanova@mongodb.com","name":"kristina.stefano"},{"email":"nathan.smyth@10gen.com","name":"jarjee"},{"email":"iteng@mongodb.com","name":"devtoolsbot"},{"email":"james.wang@mongodb.com","name":"mongo-j"},{"email":"neal.beeken@mongodb.com","name":"nbbeeken"},{"email":"dbx-node@mongodb.com","name":"dbx-node"},{"email":"devtools-npm-user@mongodb.com","name":"devtools-npm-user"},{"email":"me@tomr.au","name":"rueckstiess"}],"readme":"","readmeFilename":""}