diff --git a/CHANGELOG.md b/CHANGELOG.md index c24cd9af..d2a10fc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,414 +1,305 @@ ## [1.14.1](https://github.com/salesforcecli/plugin-packaging/compare/1.14.0...1.14.1) (2023-02-02) - ### Bug Fixes -* only call waitForPublish once ([bb08bf2](https://github.com/salesforcecli/plugin-packaging/commit/bb08bf2ff939d3551940abe34812b60a2e7c2c7b)) -* verify the SPV is availble to query, before checking deps ([30b0190](https://github.com/salesforcecli/plugin-packaging/commit/30b019030de9b386396ae86e9cad7bb818931302)) - - +- only call waitForPublish once ([bb08bf2](https://github.com/salesforcecli/plugin-packaging/commit/bb08bf2ff939d3551940abe34812b60a2e7c2c7b)) +- verify the SPV is availble to query, before checking deps ([30b0190](https://github.com/salesforcecli/plugin-packaging/commit/30b019030de9b386396ae86e9cad7bb818931302)) # [1.14.0](https://github.com/salesforcecli/plugin-packaging/compare/1.13.0...1.14.0) (2023-02-02) - ### Features -* use latest sf-plugins-core and oclif/core ([c8910f7](https://github.com/salesforcecli/plugin-packaging/commit/c8910f70d280eb13bd1d197e00d7ffc3e5b2910f)) - - +- use latest sf-plugins-core and oclif/core ([c8910f7](https://github.com/salesforcecli/plugin-packaging/commit/c8910f70d280eb13bd1d197e00d7ffc3e5b2910f)) # [1.13.0](https://github.com/salesforcecli/plugin-packaging/compare/1.12.5...1.13.0) (2023-01-30) - ### Features -* adds the seedMetadata command line parameter to the convert command ([6242478](https://github.com/salesforcecli/plugin-packaging/commit/6242478337f5099239b14be954ca8abd855eddab)) - - +- adds the seedMetadata command line parameter to the convert command ([6242478](https://github.com/salesforcecli/plugin-packaging/commit/6242478337f5099239b14be954ca8abd855eddab)) ## [1.12.5](https://github.com/salesforcecli/plugin-packaging/compare/1.12.4...1.12.5) (2023-01-30) - ### Bug Fixes -* align with current output (thanks, ut) ([e833184](https://github.com/salesforcecli/plugin-packaging/commit/e83318456256a941055df37700e333e5786c7a81)) -* placeholder for where the multiple errors are shown ([668c6ea](https://github.com/salesforcecli/plugin-packaging/commit/668c6ea5665395b1227d9dfe93b6d64334dd8ee4)) -* remove unused token ([86d383e](https://github.com/salesforcecli/plugin-packaging/commit/86d383e5e862265e11f94c5c872a02957a78d1cf)) - - +- align with current output (thanks, ut) ([e833184](https://github.com/salesforcecli/plugin-packaging/commit/e83318456256a941055df37700e333e5786c7a81)) +- placeholder for where the multiple errors are shown ([668c6ea](https://github.com/salesforcecli/plugin-packaging/commit/668c6ea5665395b1227d9dfe93b6d64334dd8ee4)) +- remove unused token ([86d383e](https://github.com/salesforcecli/plugin-packaging/commit/86d383e5e862265e11f94c5c872a02957a78d1cf)) ## [1.12.4](https://github.com/salesforcecli/plugin-packaging/compare/1.12.3...1.12.4) (2023-01-25) - ### Bug Fixes -* add apiversion flag to commands, NUTs passing ([b643826](https://github.com/salesforcecli/plugin-packaging/commit/b64382673ae38872d372486b79a435ea2d7fced3)) -* delete file I added by mistake ([64f3277](https://github.com/salesforcecli/plugin-packaging/commit/64f3277468c0fef39c434cf3b82ab4aeabdc06d6)) -* final content update ([fbb8b9e](https://github.com/salesforcecli/plugin-packaging/commit/fbb8b9eb9cc98ab423ee59f29ed622ba1d4103e1)) -* finish standardizing command help ([5ce791d](https://github.com/salesforcecli/plugin-packaging/commit/5ce791dd0fda0e38a8c4c18a8450e1a7f09a074e)) -* first batch of content updates ([1c88f37](https://github.com/salesforcecli/plugin-packaging/commit/1c88f375bd76b1d80624b99b0f0ea846ad143059)) -* sf-ify all the flags ([aa68277](https://github.com/salesforcecli/plugin-packaging/commit/aa6827724b4ee61ec725fd4e8c592b9d7604acf5)) -* src passing linting ([312d760](https://github.com/salesforcecli/plugin-packaging/commit/312d7604b39cae17d327abdc86de9d893eaef6bf)) -* standardize messages for package1 commands ([bf642bc](https://github.com/salesforcecli/plugin-packaging/commit/bf642bc52b4c941d63bb7c3fd965882c02bcfe9c)) -* standardize more commands ([f65a95d](https://github.com/salesforcecli/plugin-packaging/commit/f65a95d54596ac2271c1ad37feb3c80afd390b64)) -* standardize more packaging commands ([2a2bcca](https://github.com/salesforcecli/plugin-packaging/commit/2a2bcca95295925e5ab0604ee5f055b3b3823327)) -* update package.json with new style and fix messages for last command ([9e4f824](https://github.com/salesforcecli/plugin-packaging/commit/9e4f8240f906035b75982a022a177a253360551b)) -* update test with new message ([25f6b4d](https://github.com/salesforcecli/plugin-packaging/commit/25f6b4dab595c16af521a178ad69ea702555dc59)) -* update version of command-reference ([c0c7dab](https://github.com/salesforcecli/plugin-packaging/commit/c0c7dab6ed293cbe9b100c15d4afc3fbfaf4d27e)) - - +- add apiversion flag to commands, NUTs passing ([b643826](https://github.com/salesforcecli/plugin-packaging/commit/b64382673ae38872d372486b79a435ea2d7fced3)) +- delete file I added by mistake ([64f3277](https://github.com/salesforcecli/plugin-packaging/commit/64f3277468c0fef39c434cf3b82ab4aeabdc06d6)) +- final content update ([fbb8b9e](https://github.com/salesforcecli/plugin-packaging/commit/fbb8b9eb9cc98ab423ee59f29ed622ba1d4103e1)) +- finish standardizing command help ([5ce791d](https://github.com/salesforcecli/plugin-packaging/commit/5ce791dd0fda0e38a8c4c18a8450e1a7f09a074e)) +- first batch of content updates ([1c88f37](https://github.com/salesforcecli/plugin-packaging/commit/1c88f375bd76b1d80624b99b0f0ea846ad143059)) +- sf-ify all the flags ([aa68277](https://github.com/salesforcecli/plugin-packaging/commit/aa6827724b4ee61ec725fd4e8c592b9d7604acf5)) +- src passing linting ([312d760](https://github.com/salesforcecli/plugin-packaging/commit/312d7604b39cae17d327abdc86de9d893eaef6bf)) +- standardize messages for package1 commands ([bf642bc](https://github.com/salesforcecli/plugin-packaging/commit/bf642bc52b4c941d63bb7c3fd965882c02bcfe9c)) +- standardize more commands ([f65a95d](https://github.com/salesforcecli/plugin-packaging/commit/f65a95d54596ac2271c1ad37feb3c80afd390b64)) +- standardize more packaging commands ([2a2bcca](https://github.com/salesforcecli/plugin-packaging/commit/2a2bcca95295925e5ab0604ee5f055b3b3823327)) +- update package.json with new style and fix messages for last command ([9e4f824](https://github.com/salesforcecli/plugin-packaging/commit/9e4f8240f906035b75982a022a177a253360551b)) +- update test with new message ([25f6b4d](https://github.com/salesforcecli/plugin-packaging/commit/25f6b4dab595c16af521a178ad69ea702555dc59)) +- update version of command-reference ([c0c7dab](https://github.com/salesforcecli/plugin-packaging/commit/c0c7dab6ed293cbe9b100c15d4afc3fbfaf4d27e)) ## [1.12.3](https://github.com/salesforcecli/plugin-packaging/compare/1.12.2...1.12.3) (2023-01-18) - ### Bug Fixes -* bump pkg library version and modify language flag description ([b974b9e](https://github.com/salesforcecli/plugin-packaging/commit/b974b9e05f9f984b97fa6dcaefd1ae0c29ed2655)) - - +- bump pkg library version and modify language flag description ([b974b9e](https://github.com/salesforcecli/plugin-packaging/commit/b974b9e05f9f984b97fa6dcaefd1ae0c29ed2655)) ## [1.12.2](https://github.com/salesforcecli/plugin-packaging/compare/1.12.1...1.12.2) (2023-01-09) - ### Bug Fixes -* allow path and package flags, emit warning and telemtry if both present ([931dfe2](https://github.com/salesforcecli/plugin-packaging/commit/931dfe2c3981b525a9726f4045ed521dab259690)) - - +- allow path and package flags, emit warning and telemtry if both present ([931dfe2](https://github.com/salesforcecli/plugin-packaging/commit/931dfe2c3981b525a9726f4045ed521dab259690)) ## [1.12.1](https://github.com/salesforcecli/plugin-packaging/compare/1.12.0...1.12.1) (2023-01-07) - ### Bug Fixes -* **deps:** bump @salesforce/kit from 1.8.0 to 1.8.2 ([aeed853](https://github.com/salesforcecli/plugin-packaging/commit/aeed85360ff5542011f36bc652c43efdfb2728fb)) - - +- **deps:** bump @salesforce/kit from 1.8.0 to 1.8.2 ([aeed853](https://github.com/salesforcecli/plugin-packaging/commit/aeed85360ff5542011f36bc652c43efdfb2728fb)) # [1.12.0](https://github.com/salesforcecli/plugin-packaging/compare/1.11.4...1.12.0) (2023-01-04) - ### Bug Fixes -* change nuts to use non-beta commands ([1e50acd](https://github.com/salesforcecli/plugin-packaging/commit/1e50acd3e9d11394c677906aeeffb5421fafeda0)) - +- change nuts to use non-beta commands ([1e50acd](https://github.com/salesforcecli/plugin-packaging/commit/1e50acd3e9d11394c677906aeeffb5421fafeda0)) ### Features -* ga packaging commands ([ab8ac81](https://github.com/salesforcecli/plugin-packaging/commit/ab8ac81bc9e8428750d7589cf678c5b42a0a703a)) - - +- ga packaging commands ([ab8ac81](https://github.com/salesforcecli/plugin-packaging/commit/ab8ac81bc9e8428750d7589cf678c5b42a0a703a)) ## [1.11.4](https://github.com/salesforcecli/plugin-packaging/compare/1.11.3...1.11.4) (2023-01-04) - ### Bug Fixes -* **deps:** bump json5 from 1.0.1 to 1.0.2 ([40230a5](https://github.com/salesforcecli/plugin-packaging/commit/40230a5551e88fcd3033889cd7295de686cb7add)) - - +- **deps:** bump json5 from 1.0.1 to 1.0.2 ([40230a5](https://github.com/salesforcecli/plugin-packaging/commit/40230a5551e88fcd3033889cd7295de686cb7add)) ## [1.11.3](https://github.com/salesforcecli/plugin-packaging/compare/1.11.2...1.11.3) (2022-12-24) - ### Bug Fixes -* **deps:** bump @salesforce/packaging from 1.1.2 to 1.1.3 ([5b6e41c](https://github.com/salesforcecli/plugin-packaging/commit/5b6e41c48cc7346d8de9d3e1ae18c9c7f7939e3f)) - - +- **deps:** bump @salesforce/packaging from 1.1.2 to 1.1.3 ([5b6e41c](https://github.com/salesforcecli/plugin-packaging/commit/5b6e41c48cc7346d8de9d3e1ae18c9c7f7939e3f)) ## [1.11.2](https://github.com/salesforcecli/plugin-packaging/compare/1.11.1...1.11.2) (2022-12-22) - ### Bug Fixes -* do not show deprecated packages ([30981b5](https://github.com/salesforcecli/plugin-packaging/commit/30981b588dc57e0e27eaea17f711a0a05ae17771)) - - +- do not show deprecated packages ([30981b5](https://github.com/salesforcecli/plugin-packaging/commit/30981b588dc57e0e27eaea17f711a0a05ae17771)) ## [1.11.1](https://github.com/salesforcecli/plugin-packaging/compare/1.11.0...1.11.1) (2022-12-20) - ### Bug Fixes -* bump deps ([acea3f7](https://github.com/salesforcecli/plugin-packaging/commit/acea3f7fae0fe14e02d985aab55dcd5f8e4a88f9)) - - +- bump deps ([acea3f7](https://github.com/salesforcecli/plugin-packaging/commit/acea3f7fae0fe14e02d985aab55dcd5f8e4a88f9)) # [1.11.0](https://github.com/salesforcecli/plugin-packaging/compare/1.10.11...1.11.0) (2022-12-20) - ### Features -* add Language ([8fce020](https://github.com/salesforcecli/plugin-packaging/commit/8fce02083e4207d38e8e2358db704ad749c0f7ad)) -* add Language ([6475492](https://github.com/salesforcecli/plugin-packaging/commit/64754928e3d685c48572eda020c4c5e018a23cc6)) -* add Language, updated snapshot ([cb53233](https://github.com/salesforcecli/plugin-packaging/commit/cb532337684a71a6dc8882fcd0b2a142a0dbeb2d)) - - +- add Language ([8fce020](https://github.com/salesforcecli/plugin-packaging/commit/8fce02083e4207d38e8e2358db704ad749c0f7ad)) +- add Language ([6475492](https://github.com/salesforcecli/plugin-packaging/commit/64754928e3d685c48572eda020c4c5e018a23cc6)) +- add Language, updated snapshot ([cb53233](https://github.com/salesforcecli/plugin-packaging/commit/cb532337684a71a6dc8882fcd0b2a142a0dbeb2d)) ## [1.10.11](https://github.com/salesforcecli/plugin-packaging/compare/1.10.10...1.10.11) (2022-12-19) - ### Bug Fixes -* change SfError back to Error ([9a38fc5](https://github.com/salesforcecli/plugin-packaging/commit/9a38fc56de3b3f5e13879274ca9592b0a4c36a67)) -* pkg install polling timeout should display how to query the status ([5e0eedb](https://github.com/salesforcecli/plugin-packaging/commit/5e0eedb4aa408251994b3248b972881df237ed13)) -* update package delete NUTs ([34c9852](https://github.com/salesforcecli/plugin-packaging/commit/34c98523b265b86527c8a445151c951041aca4b0)) - - +- change SfError back to Error ([9a38fc5](https://github.com/salesforcecli/plugin-packaging/commit/9a38fc56de3b3f5e13879274ca9592b0a4c36a67)) +- pkg install polling timeout should display how to query the status ([5e0eedb](https://github.com/salesforcecli/plugin-packaging/commit/5e0eedb4aa408251994b3248b972881df237ed13)) +- update package delete NUTs ([34c9852](https://github.com/salesforcecli/plugin-packaging/commit/34c98523b265b86527c8a445151c951041aca4b0)) ## [1.10.10](https://github.com/salesforcecli/plugin-packaging/compare/1.10.9...1.10.10) (2022-12-07) - ### Bug Fixes -* add message to query for errors when more than 12 ([a7153db](https://github.com/salesforcecli/plugin-packaging/commit/a7153db52f6f07aaf5ab167c3019a66f96a5fcf7)) -* print errors when reporting on a new PV with errors ([e538a75](https://github.com/salesforcecli/plugin-packaging/commit/e538a7513a34aff58347a77003d3e4fa4187596e)) - - +- add message to query for errors when more than 12 ([a7153db](https://github.com/salesforcecli/plugin-packaging/commit/a7153db52f6f07aaf5ab167c3019a66f96a5fcf7)) +- print errors when reporting on a new PV with errors ([e538a75](https://github.com/salesforcecli/plugin-packaging/commit/e538a7513a34aff58347a77003d3e4fa4187596e)) ## [1.10.9](https://github.com/salesforcecli/plugin-packaging/compare/1.10.8...1.10.9) (2022-11-28) - ### Bug Fixes -* ensure code coverage and build duration values ([e5cc508](https://github.com/salesforcecli/plugin-packaging/commit/e5cc50869ed40f88aab37d0bb5eb0f63557e3713)) -* ensure code coverage and build duration values ([c9ecd99](https://github.com/salesforcecli/plugin-packaging/commit/c9ecd99266c2eff06b0917b11e33bb75e394cb8d)) - - +- ensure code coverage and build duration values ([e5cc508](https://github.com/salesforcecli/plugin-packaging/commit/e5cc50869ed40f88aab37d0bb5eb0f63557e3713)) +- ensure code coverage and build duration values ([c9ecd99](https://github.com/salesforcecli/plugin-packaging/commit/c9ecd99266c2eff06b0917b11e33bb75e394cb8d)) ## [1.10.8](https://github.com/salesforcecli/plugin-packaging/compare/1.10.7...1.10.8) (2022-11-21) - ### Bug Fixes -* pass wait correctly to api ([6cb64c7](https://github.com/salesforcecli/plugin-packaging/commit/6cb64c7f147eefbac56d454be0cec09daa6479fa)) - - +- pass wait correctly to api ([6cb64c7](https://github.com/salesforcecli/plugin-packaging/commit/6cb64c7f147eefbac56d454be0cec09daa6479fa)) ## [1.10.7](https://github.com/salesforcecli/plugin-packaging/compare/1.10.6...1.10.7) (2022-11-10) - ### Bug Fixes -* add doc for contributing to and developing in the packaging plugin ([c5cd426](https://github.com/salesforcecli/plugin-packaging/commit/c5cd426569a32bcb6efd36662149a294d7e9cf65)) - - +- add doc for contributing to and developing in the packaging plugin ([c5cd426](https://github.com/salesforcecli/plugin-packaging/commit/c5cd426569a32bcb6efd36662149a294d7e9cf65)) ## [1.10.6](https://github.com/salesforcecli/plugin-packaging/compare/1.10.5...1.10.6) (2022-11-10) - ### Bug Fixes -* audit message ussage ([3a78a93](https://github.com/salesforcecli/plugin-packaging/commit/3a78a9310f30dd246b7380252490ff7598887968)) -* message clean up ([c59305a](https://github.com/salesforcecli/plugin-packaging/commit/c59305a5488a64bd208ea76acefb7d70f19805fa)) - - +- audit message ussage ([3a78a93](https://github.com/salesforcecli/plugin-packaging/commit/3a78a9310f30dd246b7380252490ff7598887968)) +- message clean up ([c59305a](https://github.com/salesforcecli/plugin-packaging/commit/c59305a5488a64bd208ea76acefb7d70f19805fa)) ## [1.10.5](https://github.com/salesforcecli/plugin-packaging/compare/1.10.4...1.10.5) (2022-11-08) - ### Bug Fixes -* update imports to use 4 main classes ([e7002f1](https://github.com/salesforcecli/plugin-packaging/commit/e7002f16b288037605e4e9256f3fdc18938babec)) - - +- update imports to use 4 main classes ([e7002f1](https://github.com/salesforcecli/plugin-packaging/commit/e7002f16b288037605e4e9256f3fdc18938babec)) ## [1.10.4](https://github.com/salesforcecli/plugin-packaging/compare/1.10.3...1.10.4) (2022-11-05) - ### Bug Fixes -* **deps:** bump tslib from 2.4.0 to 2.4.1 ([e0dd92e](https://github.com/salesforcecli/plugin-packaging/commit/e0dd92e42510b44a46cff2856951db93014154aa)) - - +- **deps:** bump tslib from 2.4.0 to 2.4.1 ([e0dd92e](https://github.com/salesforcecli/plugin-packaging/commit/e0dd92e42510b44a46cff2856951db93014154aa)) ## [1.10.3](https://github.com/salesforcecli/plugin-packaging/compare/1.10.2...1.10.3) (2022-11-04) - ### Bug Fixes -* apply dev scripts and bump packaging ([24e4330](https://github.com/salesforcecli/plugin-packaging/commit/24e4330ca83efdf8016b553db6efe1fd2d4a4981)) - - +- apply dev scripts and bump packaging ([24e4330](https://github.com/salesforcecli/plugin-packaging/commit/24e4330ca83efdf8016b553db6efe1fd2d4a4981)) ## [1.10.2](https://github.com/salesforcecli/plugin-packaging/compare/1.10.1...1.10.2) (2022-11-04) - ### Bug Fixes -* enumerate and format server errors better ([f1565ee](https://github.com/salesforcecli/plugin-packaging/commit/f1565eebaec4c4cda7ea8f6d1023d19896869857)) - - +- enumerate and format server errors better ([f1565ee](https://github.com/salesforcecli/plugin-packaging/commit/f1565eebaec4c4cda7ea8f6d1023d19896869857)) ## [1.10.1](https://github.com/salesforcecli/plugin-packaging/compare/1.10.0...1.10.1) (2022-11-04) - ### Bug Fixes -* bump packaging lib version to 0.1.17 ([224f78f](https://github.com/salesforcecli/plugin-packaging/commit/224f78f237640893824f4ced770db0a1dee80dcc)) - - +- bump packaging lib version to 0.1.17 ([224f78f](https://github.com/salesforcecli/plugin-packaging/commit/224f78f237640893824f4ced770db0a1dee80dcc)) # [1.10.0](https://github.com/salesforcecli/plugin-packaging/compare/1.9.8...1.10.0) (2022-11-03) - ### Features -* added an option definition file to the convert command ([f8b8f8a](https://github.com/salesforcecli/plugin-packaging/commit/f8b8f8ac1c59dd042b43c1f4dbe20ca109b61863)) -* added an option to the convert command ([71bceb6](https://github.com/salesforcecli/plugin-packaging/commit/71bceb6c162cb2c9118bb995371f5a610b8bb6d5)) - - +- added an option definition file to the convert command ([f8b8f8a](https://github.com/salesforcecli/plugin-packaging/commit/f8b8f8ac1c59dd042b43c1f4dbe20ca109b61863)) +- added an option to the convert command ([71bceb6](https://github.com/salesforcecli/plugin-packaging/commit/71bceb6c162cb2c9118bb995371f5a610b8bb6d5)) ## [1.9.8](https://github.com/salesforcecli/plugin-packaging/compare/1.9.7...1.9.8) (2022-10-29) - ### Bug Fixes -* **deps:** bump @salesforce/command from 5.2.16 to 5.2.17 ([557db56](https://github.com/salesforcecli/plugin-packaging/commit/557db56c1f428268786a10f4bb44d1a4077e62d5)) - - +- **deps:** bump @salesforce/command from 5.2.16 to 5.2.17 ([557db56](https://github.com/salesforcecli/plugin-packaging/commit/557db56c1f428268786a10f4bb44d1a4077e62d5)) ## [1.9.7](https://github.com/salesforcecli/plugin-packaging/compare/1.9.6...1.9.7) (2022-10-29) - ### Bug Fixes -* **deps:** bump @oclif/core from 1.19.1 to 1.20.0 ([421bb12](https://github.com/salesforcecli/plugin-packaging/commit/421bb12b3d36eebebbf56ee7d2e364c05178e853)) - - +- **deps:** bump @oclif/core from 1.19.1 to 1.20.0 ([421bb12](https://github.com/salesforcecli/plugin-packaging/commit/421bb12b3d36eebebbf56ee7d2e364c05178e853)) ## [1.9.6](https://github.com/salesforcecli/plugin-packaging/compare/1.9.5...1.9.6) (2022-10-27) - ### Bug Fixes -* bump packaging ([41440bc](https://github.com/salesforcecli/plugin-packaging/commit/41440bc3c0242f2ec8dbb8f5feb4ff652fc352a3)) - - +- bump packaging ([41440bc](https://github.com/salesforcecli/plugin-packaging/commit/41440bc3c0242f2ec8dbb8f5feb4ff652fc352a3)) ## [1.9.5](https://github.com/salesforcecli/plugin-packaging/compare/1.9.4...1.9.5) (2022-10-24) - ### Bug Fixes -* improve handling of pvc path flag ([d62afb7](https://github.com/salesforcecli/plugin-packaging/commit/d62afb7c0ad06d2a9d78691178c9d8ba9106fc56)) - +- improve handling of pvc path flag ([d62afb7](https://github.com/salesforcecli/plugin-packaging/commit/d62afb7c0ad06d2a9d78691178c9d8ba9106fc56)) ### Reverts -* Revert "chore: remove test file" ([4f73449](https://github.com/salesforcecli/plugin-packaging/commit/4f734498656bd31c0649c8b01fcfad0b06a54fe3)) - - +- Revert "chore: remove test file" ([4f73449](https://github.com/salesforcecli/plugin-packaging/commit/4f734498656bd31c0649c8b01fcfad0b06a54fe3)) ## [1.9.4](https://github.com/salesforcecli/plugin-packaging/compare/1.9.3...1.9.4) (2022-10-03) - ### Bug Fixes -* refactor to use new Package1Version class and its methods ([037fd11](https://github.com/salesforcecli/plugin-packaging/commit/037fd11ecc14d6c6b7d2b35e7a61ad9377eb65c5)) - - +- refactor to use new Package1Version class and its methods ([037fd11](https://github.com/salesforcecli/plugin-packaging/commit/037fd11ecc14d6c6b7d2b35e7a61ad9377eb65c5)) ## [1.9.3](https://github.com/salesforcecli/plugin-packaging/compare/1.9.2...1.9.3) (2022-09-30) - ### Bug Fixes -* modify commands for packaging library refactor ([e07d269](https://github.com/salesforcecli/plugin-packaging/commit/e07d2698501136498a9d18d73af4f7d375ecdff9)) -* update the lock file for latest packaging lib ([0e80feb](https://github.com/salesforcecli/plugin-packaging/commit/0e80feb9fa0a403ff4ad78a7d3a384162f075dcd)) - - +- modify commands for packaging library refactor ([e07d269](https://github.com/salesforcecli/plugin-packaging/commit/e07d2698501136498a9d18d73af4f7d375ecdff9)) +- update the lock file for latest packaging lib ([0e80feb](https://github.com/salesforcecli/plugin-packaging/commit/0e80feb9fa0a403ff4ad78a7d3a384162f075dcd)) ## [1.9.2](https://github.com/salesforcecli/plugin-packaging/compare/1.9.1...1.9.2) (2022-09-28) - ### Bug Fixes -* bump pkg lin to 0.0.42 ([7c98fdb](https://github.com/salesforcecli/plugin-packaging/commit/7c98fdb27993993ad68ae0159d342a2fa2f245a3)) -* fix promote nut test ([1255c1c](https://github.com/salesforcecli/plugin-packaging/commit/1255c1cb358227cb420a1dadd78b12e90f52dbfc)) - - +- bump pkg lin to 0.0.42 ([7c98fdb](https://github.com/salesforcecli/plugin-packaging/commit/7c98fdb27993993ad68ae0159d342a2fa2f245a3)) +- fix promote nut test ([1255c1c](https://github.com/salesforcecli/plugin-packaging/commit/1255c1cb358227cb420a1dadd78b12e90f52dbfc)) ## [1.9.1](https://github.com/salesforcecli/plugin-packaging/compare/1.9.0...1.9.1) (2022-09-15) - ### Bug Fixes -* update lifecycle event names ([51e2a63](https://github.com/salesforcecli/plugin-packaging/commit/51e2a636f17636fd9a17a5d3922defcdb06d6335)) - - +- update lifecycle event names ([51e2a63](https://github.com/salesforcecli/plugin-packaging/commit/51e2a636f17636fd9a17a5d3922defcdb06d6335)) # [1.9.0](https://github.com/salesforcecli/plugin-packaging/compare/9d88ff531898453158410b566ae5f2175b07ae99...1.9.0) (2022-09-13) - ### Bug Fixes -* add direct chalk dependency ([11e7b49](https://github.com/salesforcecli/plugin-packaging/commit/11e7b49b0d886e30893d18d861c8b668b7b031e9)) -* add direct chalk dependency ([cf18904](https://github.com/salesforcecli/plugin-packaging/commit/cf189044fc17b1a92e143b872811462070d15707)) -* add force:package:beta:install:report command ([1044e0e](https://github.com/salesforcecli/plugin-packaging/commit/1044e0ed08763deae904e491a2b8681dadac4ec4)) -* add package version displayancestry command ([30f6d5b](https://github.com/salesforcecli/plugin-packaging/commit/30f6d5be4d662cb738baf3be97e3609d06920f93)) -* add package:beta:update, NUT ([80ade7b](https://github.com/salesforcecli/plugin-packaging/commit/80ade7b4916bb29cd406874dd6bdc980476e1cda)) -* add package:beta:version:promote and NUT ([8db94c2](https://github.com/salesforcecli/plugin-packaging/commit/8db94c2b74e39c275774578a1c488288ca134321)) -* add package:beta:version:update and NUT ([1ac77a8](https://github.com/salesforcecli/plugin-packaging/commit/1ac77a84a97255510e09e893a8ec5f89762715b2)) -* add package:uninstall command ([86db455](https://github.com/salesforcecli/plugin-packaging/commit/86db45584449cb6ab59c7f45734413f92647362e)) -* add package:version:create:list command, NUT ([5a4e558](https://github.com/salesforcecli/plugin-packaging/commit/5a4e558c7870c62dbe56e93ffac68b602f014635)) -* add package:version:uninstall:report command, NUT, cleanup SfError/message ([d9f72f2](https://github.com/salesforcecli/plugin-packaging/commit/d9f72f2933ab88fad1fd75f04db864f733a58c79)) -* add package1:beta:version:create:get command, UTs, placeholder NUT ([9d3f4f5](https://github.com/salesforcecli/plugin-packaging/commit/9d3f4f5786f4c2bf42b81bc29b5b5da42a989e36)) -* add package1:version:list command, UTs, NUTs ([ecfbcd4](https://github.com/salesforcecli/plugin-packaging/commit/ecfbcd4aa1152bacbf99728f55599ab1be8a21f4)) -* add pvr and pvcr ([79d27cf](https://github.com/salesforcecli/plugin-packaging/commit/79d27cf4883590f11459328c451787df20433cd9)) -* add spinner and fix perserve file location msg ([7d732ae](https://github.com/salesforcecli/plugin-packaging/commit/7d732aefc3fe63098721fc00ba2a21196dc8b53c)) -* adds unit tests and NUTs ([24dbd52](https://github.com/salesforcecli/plugin-packaging/commit/24dbd524aadd923f253dd3d83d46aef50cb638b6)) -* apply fixes for qa issues ([7a944da](https://github.com/salesforcecli/plugin-packaging/commit/7a944da265e7875f84a774246fc5fab0e7e955dd)) -* build out some of pvl - not building ([7c166a3](https://github.com/salesforcecli/plugin-packaging/commit/7c166a3f3a8ba1bbbbd09d768baf0150810edd18)) -* bump packaging lib version ([ab11694](https://github.com/salesforcecli/plugin-packaging/commit/ab116944b61521ef57e22a8495b4c6e691951fea)) -* bump packaging library ([759b31e](https://github.com/salesforcecli/plugin-packaging/commit/759b31e5e5fa7de1f13c08f29ae055d15fb36571)) -* bump version number to 1.1.1 ([d472ff1](https://github.com/salesforcecli/plugin-packaging/commit/d472ff16f8733d287896e290515524461560babb)) -* bump version of package lib ([5a93522](https://github.com/salesforcecli/plugin-packaging/commit/5a9352229831f14cda22568101675e22e1618543)) -* correct output ([40662fc](https://github.com/salesforcecli/plugin-packaging/commit/40662fc6ad41ff0ddfd7902809f60294ee4066a8)) -* edit messages for cli ref ([afd97a2](https://github.com/salesforcecli/plugin-packaging/commit/afd97a2f6262c34606ba3395cb2b1139499f55ff)) -* edit messages for cli ref ([9d8ad57](https://github.com/salesforcecli/plugin-packaging/commit/9d8ad57c55e4d9a36b1f9d321afcdbbccdd0428f)) -* edit messages for cli ref ([70a6f16](https://github.com/salesforcecli/plugin-packaging/commit/70a6f160268e1d6bd6fb00eccb18df01394ad087)) -* edit messages for cli ref ([c1135e1](https://github.com/salesforcecli/plugin-packaging/commit/c1135e1447ecfdd592ca89ea8259528e8c452c2f)) -* edit messages so they don't break the cli ref command generator ([7554897](https://github.com/salesforcecli/plugin-packaging/commit/755489700b1efa0be9126572bc8b377064c6db2d)) -* finish pvl, add NUT ([a4fe3f0](https://github.com/salesforcecli/plugin-packaging/commit/a4fe3f05c96dd00907df32831d21d4498a0e43b2)) -* force version bump ([7c2c878](https://github.com/salesforcecli/plugin-packaging/commit/7c2c878b47abc9e711878ac7ebc1f805b5262460)) -* keep only examples in #examples section ([44a13c9](https://github.com/salesforcecli/plugin-packaging/commit/44a13c928e2665932785971a99346040d94b25ab)) -* lint fixes ([ac8cceb](https://github.com/salesforcecli/plugin-packaging/commit/ac8cceb91b76b90671acc6029c3329390b34b9aa)) -* look up 05i id if 04t is found for package:promote ([256dbdb](https://github.com/salesforcecli/plugin-packaging/commit/256dbdb652ca50f20b5678a1a7ecd89dfdd010dd)) -* make command output clearer for un-implemented commands ([65cab44](https://github.com/salesforcecli/plugin-packaging/commit/65cab44d3aa76b0bc78d5b26e5cc15c9294f19a9)) -* messages files are breaking the CLI Ref command generation ([9da58a6](https://github.com/salesforcecli/plugin-packaging/commit/9da58a681251b42c472d2d413a76238d50b5ec10)) -* only examples in # examples sections ([d68d002](https://github.com/salesforcecli/plugin-packaging/commit/d68d002d4792d11e0d246e7cb15233092b902dde)) -* only examples in #example section ([23195a2](https://github.com/salesforcecli/plugin-packaging/commit/23195a20c388ef952de75976d4d27607cb0c7707)) -* only examples in #examples section ([08492cd](https://github.com/salesforcecli/plugin-packaging/commit/08492cd4d086ef3b017fef0ef12c5c45cd2188e0)) -* only examples in #examples section ([d3c0b5f](https://github.com/salesforcecli/plugin-packaging/commit/d3c0b5fdb366d56f83aecdf81764454b7c88a709)) -* only required refactoring - waiting on packaging to enable na40 to convert ([c81f083](https://github.com/salesforcecli/plugin-packaging/commit/c81f08371081018457d9e864cf7fa02b144bf9b1)) -* package list ([9d88ff5](https://github.com/salesforcecli/plugin-packaging/commit/9d88ff531898453158410b566ae5f2175b07ae99)) -* package:installed:list command ([3169872](https://github.com/salesforcecli/plugin-packaging/commit/3169872cc959a18389f8c177ae8d3b9c09dd105c)) -* pass installation key when getting external sites ([982a2f2](https://github.com/salesforcecli/plugin-packaging/commit/982a2f20f793c19ffb33f37f4c38ba76cc9a80c8)) -* pkg create and delete commands ([f872b2b](https://github.com/salesforcecli/plugin-packaging/commit/f872b2bbbbc28c4324e7ac026a26ee914fcf0eac)) -* pkg create and delete commands ([c71ca30](https://github.com/salesforcecli/plugin-packaging/commit/c71ca3073840afcc1ac931c2fcde595d91265730)) -* remove longDescription and help for description ([8ea4663](https://github.com/salesforcecli/plugin-packaging/commit/8ea46639d74c58ecd7c927f82374138b729e464e)) -* return results even if not json ([b08c91b](https://github.com/salesforcecli/plugin-packaging/commit/b08c91bfbe552a419740de97a8b1af57d1bb38aa)) -* several fixes for pkg commands ([22c81af](https://github.com/salesforcecli/plugin-packaging/commit/22c81afddd7d2339027d65fc1c21b68e1bbca3c5)) -* several fixes for pkg commands ([bc1614d](https://github.com/salesforcecli/plugin-packaging/commit/bc1614df3da386d8a3b4f156f96ace6fdd7a72b5)) -* some install command work ([1adbf01](https://github.com/salesforcecli/plugin-packaging/commit/1adbf01fac8258b50af1628d8fc4c9b3d04fbe58)) -* some install command work ([1adfd60](https://github.com/salesforcecli/plugin-packaging/commit/1adfd6022d3fad0bd0cc76d75a4c0e8856b5ce83)) -* suppot 15-char IDs ([0674125](https://github.com/salesforcecli/plugin-packaging/commit/0674125d6370f6dd261f82c56bbb9cc1bcae4377)) -* type on event consumer for pvc ([e4200cc](https://github.com/salesforcecli/plugin-packaging/commit/e4200ccffefe090fa3b2d287d0487f830214d2c1)) -* update README and fix test output ([ad00150](https://github.com/salesforcecli/plugin-packaging/commit/ad0015011696d051bfaec682f67997e763f1fd85)) -* update tests ([fe81cab](https://github.com/salesforcecli/plugin-packaging/commit/fe81cab659990e3d5375ab13cb357ea6f7dddb17)) -* update version number ([f4f6989](https://github.com/salesforcecli/plugin-packaging/commit/f4f69895c1f458e9373ca925fe985c6fea868777)) -* use correct message based on flags ([84a3d96](https://github.com/salesforcecli/plugin-packaging/commit/84a3d96d129072c857e496a75d3ab11824ba82e2)) -* use os specific line endings ([fd431e8](https://github.com/salesforcecli/plugin-packaging/commit/fd431e8c73179fd40f31c75e434210e0bd8074b9)) - +- add direct chalk dependency ([11e7b49](https://github.com/salesforcecli/plugin-packaging/commit/11e7b49b0d886e30893d18d861c8b668b7b031e9)) +- add direct chalk dependency ([cf18904](https://github.com/salesforcecli/plugin-packaging/commit/cf189044fc17b1a92e143b872811462070d15707)) +- add force:package:beta:install:report command ([1044e0e](https://github.com/salesforcecli/plugin-packaging/commit/1044e0ed08763deae904e491a2b8681dadac4ec4)) +- add package version displayancestry command ([30f6d5b](https://github.com/salesforcecli/plugin-packaging/commit/30f6d5be4d662cb738baf3be97e3609d06920f93)) +- add package:beta:update, NUT ([80ade7b](https://github.com/salesforcecli/plugin-packaging/commit/80ade7b4916bb29cd406874dd6bdc980476e1cda)) +- add package:beta:version:promote and NUT ([8db94c2](https://github.com/salesforcecli/plugin-packaging/commit/8db94c2b74e39c275774578a1c488288ca134321)) +- add package:beta:version:update and NUT ([1ac77a8](https://github.com/salesforcecli/plugin-packaging/commit/1ac77a84a97255510e09e893a8ec5f89762715b2)) +- add package:uninstall command ([86db455](https://github.com/salesforcecli/plugin-packaging/commit/86db45584449cb6ab59c7f45734413f92647362e)) +- add package:version:create:list command, NUT ([5a4e558](https://github.com/salesforcecli/plugin-packaging/commit/5a4e558c7870c62dbe56e93ffac68b602f014635)) +- add package:version:uninstall:report command, NUT, cleanup SfError/message ([d9f72f2](https://github.com/salesforcecli/plugin-packaging/commit/d9f72f2933ab88fad1fd75f04db864f733a58c79)) +- add package1:beta:version:create:get command, UTs, placeholder NUT ([9d3f4f5](https://github.com/salesforcecli/plugin-packaging/commit/9d3f4f5786f4c2bf42b81bc29b5b5da42a989e36)) +- add package1:version:list command, UTs, NUTs ([ecfbcd4](https://github.com/salesforcecli/plugin-packaging/commit/ecfbcd4aa1152bacbf99728f55599ab1be8a21f4)) +- add pvr and pvcr ([79d27cf](https://github.com/salesforcecli/plugin-packaging/commit/79d27cf4883590f11459328c451787df20433cd9)) +- add spinner and fix perserve file location msg ([7d732ae](https://github.com/salesforcecli/plugin-packaging/commit/7d732aefc3fe63098721fc00ba2a21196dc8b53c)) +- adds unit tests and NUTs ([24dbd52](https://github.com/salesforcecli/plugin-packaging/commit/24dbd524aadd923f253dd3d83d46aef50cb638b6)) +- apply fixes for qa issues ([7a944da](https://github.com/salesforcecli/plugin-packaging/commit/7a944da265e7875f84a774246fc5fab0e7e955dd)) +- build out some of pvl - not building ([7c166a3](https://github.com/salesforcecli/plugin-packaging/commit/7c166a3f3a8ba1bbbbd09d768baf0150810edd18)) +- bump packaging lib version ([ab11694](https://github.com/salesforcecli/plugin-packaging/commit/ab116944b61521ef57e22a8495b4c6e691951fea)) +- bump packaging library ([759b31e](https://github.com/salesforcecli/plugin-packaging/commit/759b31e5e5fa7de1f13c08f29ae055d15fb36571)) +- bump version number to 1.1.1 ([d472ff1](https://github.com/salesforcecli/plugin-packaging/commit/d472ff16f8733d287896e290515524461560babb)) +- bump version of package lib ([5a93522](https://github.com/salesforcecli/plugin-packaging/commit/5a9352229831f14cda22568101675e22e1618543)) +- correct output ([40662fc](https://github.com/salesforcecli/plugin-packaging/commit/40662fc6ad41ff0ddfd7902809f60294ee4066a8)) +- edit messages for cli ref ([afd97a2](https://github.com/salesforcecli/plugin-packaging/commit/afd97a2f6262c34606ba3395cb2b1139499f55ff)) +- edit messages for cli ref ([9d8ad57](https://github.com/salesforcecli/plugin-packaging/commit/9d8ad57c55e4d9a36b1f9d321afcdbbccdd0428f)) +- edit messages for cli ref ([70a6f16](https://github.com/salesforcecli/plugin-packaging/commit/70a6f160268e1d6bd6fb00eccb18df01394ad087)) +- edit messages for cli ref ([c1135e1](https://github.com/salesforcecli/plugin-packaging/commit/c1135e1447ecfdd592ca89ea8259528e8c452c2f)) +- edit messages so they don't break the cli ref command generator ([7554897](https://github.com/salesforcecli/plugin-packaging/commit/755489700b1efa0be9126572bc8b377064c6db2d)) +- finish pvl, add NUT ([a4fe3f0](https://github.com/salesforcecli/plugin-packaging/commit/a4fe3f05c96dd00907df32831d21d4498a0e43b2)) +- force version bump ([7c2c878](https://github.com/salesforcecli/plugin-packaging/commit/7c2c878b47abc9e711878ac7ebc1f805b5262460)) +- keep only examples in #examples section ([44a13c9](https://github.com/salesforcecli/plugin-packaging/commit/44a13c928e2665932785971a99346040d94b25ab)) +- lint fixes ([ac8cceb](https://github.com/salesforcecli/plugin-packaging/commit/ac8cceb91b76b90671acc6029c3329390b34b9aa)) +- look up 05i id if 04t is found for package:promote ([256dbdb](https://github.com/salesforcecli/plugin-packaging/commit/256dbdb652ca50f20b5678a1a7ecd89dfdd010dd)) +- make command output clearer for un-implemented commands ([65cab44](https://github.com/salesforcecli/plugin-packaging/commit/65cab44d3aa76b0bc78d5b26e5cc15c9294f19a9)) +- messages files are breaking the CLI Ref command generation ([9da58a6](https://github.com/salesforcecli/plugin-packaging/commit/9da58a681251b42c472d2d413a76238d50b5ec10)) +- only examples in # examples sections ([d68d002](https://github.com/salesforcecli/plugin-packaging/commit/d68d002d4792d11e0d246e7cb15233092b902dde)) +- only examples in #example section ([23195a2](https://github.com/salesforcecli/plugin-packaging/commit/23195a20c388ef952de75976d4d27607cb0c7707)) +- only examples in #examples section ([08492cd](https://github.com/salesforcecli/plugin-packaging/commit/08492cd4d086ef3b017fef0ef12c5c45cd2188e0)) +- only examples in #examples section ([d3c0b5f](https://github.com/salesforcecli/plugin-packaging/commit/d3c0b5fdb366d56f83aecdf81764454b7c88a709)) +- only required refactoring - waiting on packaging to enable na40 to convert ([c81f083](https://github.com/salesforcecli/plugin-packaging/commit/c81f08371081018457d9e864cf7fa02b144bf9b1)) +- package list ([9d88ff5](https://github.com/salesforcecli/plugin-packaging/commit/9d88ff531898453158410b566ae5f2175b07ae99)) +- package:installed:list command ([3169872](https://github.com/salesforcecli/plugin-packaging/commit/3169872cc959a18389f8c177ae8d3b9c09dd105c)) +- pass installation key when getting external sites ([982a2f2](https://github.com/salesforcecli/plugin-packaging/commit/982a2f20f793c19ffb33f37f4c38ba76cc9a80c8)) +- pkg create and delete commands ([f872b2b](https://github.com/salesforcecli/plugin-packaging/commit/f872b2bbbbc28c4324e7ac026a26ee914fcf0eac)) +- pkg create and delete commands ([c71ca30](https://github.com/salesforcecli/plugin-packaging/commit/c71ca3073840afcc1ac931c2fcde595d91265730)) +- remove longDescription and help for description ([8ea4663](https://github.com/salesforcecli/plugin-packaging/commit/8ea46639d74c58ecd7c927f82374138b729e464e)) +- return results even if not json ([b08c91b](https://github.com/salesforcecli/plugin-packaging/commit/b08c91bfbe552a419740de97a8b1af57d1bb38aa)) +- several fixes for pkg commands ([22c81af](https://github.com/salesforcecli/plugin-packaging/commit/22c81afddd7d2339027d65fc1c21b68e1bbca3c5)) +- several fixes for pkg commands ([bc1614d](https://github.com/salesforcecli/plugin-packaging/commit/bc1614df3da386d8a3b4f156f96ace6fdd7a72b5)) +- some install command work ([1adbf01](https://github.com/salesforcecli/plugin-packaging/commit/1adbf01fac8258b50af1628d8fc4c9b3d04fbe58)) +- some install command work ([1adfd60](https://github.com/salesforcecli/plugin-packaging/commit/1adfd6022d3fad0bd0cc76d75a4c0e8856b5ce83)) +- suppot 15-char IDs ([0674125](https://github.com/salesforcecli/plugin-packaging/commit/0674125d6370f6dd261f82c56bbb9cc1bcae4377)) +- type on event consumer for pvc ([e4200cc](https://github.com/salesforcecli/plugin-packaging/commit/e4200ccffefe090fa3b2d287d0487f830214d2c1)) +- update README and fix test output ([ad00150](https://github.com/salesforcecli/plugin-packaging/commit/ad0015011696d051bfaec682f67997e763f1fd85)) +- update tests ([fe81cab](https://github.com/salesforcecli/plugin-packaging/commit/fe81cab659990e3d5375ab13cb357ea6f7dddb17)) +- update version number ([f4f6989](https://github.com/salesforcecli/plugin-packaging/commit/f4f69895c1f458e9373ca925fe985c6fea868777)) +- use correct message based on flags ([84a3d96](https://github.com/salesforcecli/plugin-packaging/commit/84a3d96d129072c857e496a75d3ab11824ba82e2)) +- use os specific line endings ([fd431e8](https://github.com/salesforcecli/plugin-packaging/commit/fd431e8c73179fd40f31c75e434210e0bd8074b9)) ### Features -* add package1:version:create command ([15636a0](https://github.com/salesforcecli/plugin-packaging/commit/15636a0806c040bc3784900f075daf6be92bb8e0)) -* add package1:version:create command ([41cc637](https://github.com/salesforcecli/plugin-packaging/commit/41cc637841ef36b5c10fafbca8d55264c5d69c84)) -* add package1:version:display command, NUT, pruned messages ([23e0c8e](https://github.com/salesforcecli/plugin-packaging/commit/23e0c8eb30939093996e8cadd8f795855c2cd352)) -* don't require project ([a6ec3bf](https://github.com/salesforcecli/plugin-packaging/commit/a6ec3bfc8069c5892689ee5ffe8aa89894df1192)) - - - +- add package1:version:create command ([15636a0](https://github.com/salesforcecli/plugin-packaging/commit/15636a0806c040bc3784900f075daf6be92bb8e0)) +- add package1:version:create command ([41cc637](https://github.com/salesforcecli/plugin-packaging/commit/41cc637841ef36b5c10fafbca8d55264c5d69c84)) +- add package1:version:display command, NUT, pruned messages ([23e0c8e](https://github.com/salesforcecli/plugin-packaging/commit/23e0c8eb30939093996e8cadd8f795855c2cd352)) +- don't require project ([a6ec3bf](https://github.com/salesforcecli/plugin-packaging/commit/a6ec3bfc8069c5892689ee5ffe8aa89894df1192)) diff --git a/command-snapshot.json b/command-snapshot.json index 3d3bc1d9..61bd2327 100644 --- a/command-snapshot.json +++ b/command-snapshot.json @@ -169,6 +169,7 @@ "target-hub-org", "uninstall-script", "validate-schema", + "verbose", "version-description", "version-name", "version-number", diff --git a/messages/package_version_create.md b/messages/package_version_create.md index 0ad5476d..c9dea858 100644 --- a/messages/package_version_create.md +++ b/messages/package_version_create.md @@ -161,6 +161,14 @@ Language for the package. Specify the language using a language code listed under "Supported Languages" in Salesforce Help. If no language is specified, the language defaults to the language of the Dev Hub user who created the package. +# flags.verbose.summary + +Display verbose command output. + +# flags.verbose.description + +Display verbose command output. When polling for the status of the creation, this will output status and timeout data on a separate line for each poll request, which is useful in CI systems where timeouts can occur with long periods of no output from commands. + # InProgress Package version creation request status is '%s'. Run "%s package:version:create:report -i %s" to query for status. diff --git a/messages/package_version_update.md b/messages/package_version_update.md index 2919ffd5..21d30fa0 100644 --- a/messages/package_version_update.md +++ b/messages/package_version_update.md @@ -48,4 +48,4 @@ New installation key for key-protected package (default: null) # success -Successfully updated the package version. +Successfully updated the package version. %s diff --git a/package.json b/package.json index 82b4766f..ea3b7815 100644 --- a/package.json +++ b/package.json @@ -157,4 +157,4 @@ "publishConfig": { "access": "public" } -} \ No newline at end of file +} diff --git a/src/commands/package/version/create.ts b/src/commands/package/version/create.ts index 032848c7..9741e79c 100644 --- a/src/commands/package/version/create.ts +++ b/src/commands/package/version/create.ts @@ -172,6 +172,10 @@ export class PackageVersionCreateCommand extends SfCommand { @@ -193,10 +197,15 @@ export class PackageVersionCreateCommand extends SfCommand { if (data.Status !== Package2VersionStatus.success && data.Status !== Package2VersionStatus.error) { - this.spinner.status = messages.getMessage('packageVersionCreateWaitingStatus', [ + const status = messages.getMessage('packageVersionCreateWaitingStatus', [ data.remainingWaitTime.minutes, data.Status, ]); + if (flags.verbose) { + this.log(status); + } else { + this.spinner.status = status; + } } } ); @@ -208,7 +217,13 @@ export class PackageVersionCreateCommand extends SfCommand { Tag: flags.tag, }); - this.logSuccess(messages.getMessage('success')); + this.logSuccess(messages.getMessage('success', [result.id])); return result; } diff --git a/test/commands/package/install.test.ts b/test/commands/package/install.test.ts index 1245b31e..3da6e29f 100644 --- a/test/commands/package/install.test.ts +++ b/test/commands/package/install.test.ts @@ -99,7 +99,11 @@ describe('package:install', () => { let getExternalSitesStub: sinon.SinonStub; let installStub: sinon.SinonStub; let installStatusStub: sinon.SinonStub; - const sandbox = sinon.createSandbox(); + + const stubSpinner = (cmd: Install) => { + $$.SANDBOX.stub(cmd.spinner, 'start'); + $$.SANDBOX.stub(cmd.spinner, 'stop'); + }; before(async () => { await $$.stubAuths(testOrg); @@ -107,13 +111,12 @@ describe('package:install', () => { }); beforeEach(async () => { - uxLogStub = sandbox.stub(SfCommand.prototype, 'log'); - uxWarnStub = sandbox.stub(SfCommand.prototype, 'warn'); + uxLogStub = $$.SANDBOX.stub(SfCommand.prototype, 'log'); + uxWarnStub = $$.SANDBOX.stub(SfCommand.prototype, 'warn'); }); afterEach(() => { $$.restore(); - sandbox.restore(); }); describe('package:install', () => { @@ -134,7 +137,9 @@ describe('package:install', () => { it('should error without required --package param', async () => { try { - await new Install(['-o', testOrg.username], config).run(); + const cmd = new Install(['-o', testOrg.username], config); + stubSpinner(cmd); + await cmd.run(); expect(false, 'Expected required flag error').to.be.true; } catch (err) { const error = err as Error; @@ -145,7 +150,9 @@ describe('package:install', () => { it('should error with org API Version < 36.0', async () => { try { - await new Install(['-p', myPackageVersion04t, '-o', testOrg.username, '--api-version', '33.0'], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-o', testOrg.username, '--api-version', '33.0'], config); + stubSpinner(cmd); + await cmd.run(); expect(false, 'Expected API version too low error').to.be.true; } catch (err) { const error = err as Error; @@ -158,7 +165,9 @@ describe('package:install', () => { installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').resolves(pkgInstallRequest); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxLogStub.calledOnce).to.be.true; const msg = `PackageInstallRequest is currently InProgress. You can continue to query the status using${EOL}sfdx package:install:report -i 0Hf1h0000006sh2CAA -o ${testOrg.username}`; @@ -172,7 +181,9 @@ describe('package:install', () => { error.setData(pkgInstallRequest); installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').throws(error); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install(['-p', myPackageVersion04t, '-u', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-u', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxLogStub.callCount).to.equal(1); const msg = `PackageInstallRequest is currently InProgress. You can continue to query the status using${EOL}sfdx package:install:report -i 0Hf1h0000006sh2CAA -o ${testOrg.username}`; expect(uxLogStub.args[0][0]).to.equal(msg); @@ -187,7 +198,9 @@ describe('package:install', () => { error.setData(pkgInstallRequest); installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').throws(error); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install(['-p', myPackageVersion04t, '--json', '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '--json', '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(result).to.deep.equal(pkgInstallRequest); expect(installStub.args[0][0]).to.deep.equal(pkgInstallCreateRequest); }); @@ -197,7 +210,9 @@ describe('package:install', () => { installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').resolves(request); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxLogStub.calledOnce).to.be.true; const msg = 'Successfully installed package [04t6A000002zgKSQAY]'; @@ -211,7 +226,9 @@ describe('package:install', () => { installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').resolves(request); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); try { - await new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config); + stubSpinner(cmd); + await cmd.run(); expect.fail('Expected error to be thrown'); } catch (err) { const error = err as Error; @@ -228,7 +245,9 @@ describe('package:install', () => { installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').resolves(request); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); try { - await new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config); + stubSpinner(cmd); + await cmd.run(); expect.fail('Expected error to be thrown'); } catch (err) { const error = err as Error; @@ -241,7 +260,9 @@ describe('package:install', () => { it('should throw PackageAliasNotFoundError', async () => { try { - await new Install(['-p', 'my_package_alias', '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', 'my_package_alias', '-o', testOrg.username], config); + stubSpinner(cmd); + await cmd.run(); expect.fail('Expected InvalidAliasOrIdError to be thrown'); } catch (err) { const error = err as Error; @@ -275,7 +296,9 @@ describe('package:install', () => { const request = Object.assign({}, pkgInstallRequest, { Status: 'SUCCESS' }); installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').resolves(request); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install(['-p', 'my_package_alias', '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', 'my_package_alias', '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxLogStub.calledOnce).to.be.true; const msg = 'Successfully installed package [my_package_alias]'; @@ -289,10 +312,9 @@ describe('package:install', () => { const expectedCreateRequest = Object.assign({}, pkgInstallCreateRequest, { Password: installationkey }); installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').resolves(pkgInstallRequest); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install( - ['-p', myPackageVersion04t, '-k', installationkey, '-o', testOrg.username], - config - ).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-k', installationkey, '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(result).to.deep.equal(pkgInstallRequest); expect(installStub.args[0][0]).to.deep.equal(expectedCreateRequest); }); @@ -307,7 +329,7 @@ describe('package:install', () => { installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').resolves(pkgInstallRequest); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install( + const cmd = new Install( [ '-p', myPackageVersion04t, @@ -321,7 +343,9 @@ describe('package:install', () => { testOrg.username, ], config - ).run(); + ); + stubSpinner(cmd); + const result = await cmd.run(); expect(result).to.deep.equal(pkgInstallRequest); expect(installStub.args[0][0]).to.deep.equal(expectedCreateRequest); @@ -335,7 +359,9 @@ describe('package:install', () => { }); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxLogStub.callCount).to.equal(1); expect(uxWarnStub.args[0][0]).to.equal(warningMsg); @@ -358,7 +384,9 @@ describe('package:install', () => { }); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const result = await new Install(['-p', myPackageVersion04t, '-w', '1', '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-w', '1', '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxLogStub.calledOnce).to.be.true; expect(result).to.deep.equal(pkgInstallRequest); @@ -388,8 +416,9 @@ describe('package:install', () => { }); stubMethod($$.SANDBOX, Connection.prototype, 'singleRecordQuery').resolves(subscriberPackageVersion); - const command = new Install(['-p', myPackageVersion04t, '-w', '1', '-b', '2', '-o', testOrg.username], config); - const result = await command.run(); + const cmd = new Install(['-p', myPackageVersion04t, '-w', '1', '-b', '2', '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxLogStub.calledOnce).to.be.true; expect(result).to.deep.equal(pkgInstallRequest); @@ -415,10 +444,12 @@ describe('package:install', () => { Package2ContainerOptions: 'Unlocked', }); - const result = await new Install( + const cmd = new Install( ['-p', myPackageVersion04t, '-t', 'Delete', '--no-prompt', '-o', testOrg.username], config - ).run(); + ); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxConfirmStub.calledOnce).to.be.false; expect(result).to.deep.equal(pkgInstallRequest); @@ -432,10 +463,9 @@ describe('package:install', () => { }); uxConfirmStub.resolves(true); - const result = await new Install( - ['-p', myPackageVersion04t, '-t', 'Delete', '-o', testOrg.username], - config - ).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-t', 'Delete', '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxConfirmStub.calledOnce).to.be.true; expect(result).to.deep.equal(pkgInstallRequest); @@ -466,11 +496,12 @@ describe('package:install', () => { Package2ContainerOptions: 'Managed', }); - const result = await new Install( + const cmd = new Install( ['-p', myPackageVersion04t, '-t', 'Delete', '--no-prompt', '-o', testOrg.username], config - ).run(); - + ); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxConfirmStub.calledOnce).to.be.false; expect(result).to.deep.equal(pkgInstallRequest); }); @@ -486,10 +517,9 @@ describe('package:install', () => { ); installStub = stubMethod($$.SANDBOX, SubscriberPackageVersion.prototype, 'install').resolves(pkgInstallRequest); - const result = await new Install( - ['-p', myPackageVersion04t, '--no-prompt', '-o', testOrg.username], - config - ).run(); + const cmd = new Install(['-p', myPackageVersion04t, '--no-prompt', '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(getExternalSitesStub.calledOnce).to.be.true; expect(uxConfirmStub.calledOnce).to.be.false; @@ -510,10 +540,12 @@ describe('package:install', () => { CspTrustedSites: { settings: ['url/for/site2'] }, }); - const result = await new Install( + const cmd = new Install( ['-p', myPackageVersion04t, '--no-prompt', '-k', installationkey, '-o', testOrg.username], config - ).run(); + ); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxConfirmStub.calledOnce).to.be.false; expect(installStub.args[0][0]).to.deep.equal(expectedCreateRequest); @@ -530,7 +562,9 @@ describe('package:install', () => { }); uxConfirmStub.resolves(true); - const result = await new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxConfirmStub.calledOnce).to.be.true; expect(uxConfirmStub.args[0][0]).to.include(extSites.join('\n')); @@ -546,7 +580,9 @@ describe('package:install', () => { CspTrustedSites: { settings: [{ endpointUrl: 'url/for/site2' }] }, }); - const result = await new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config).run(); + const cmd = new Install(['-p', myPackageVersion04t, '-o', testOrg.username], config); + stubSpinner(cmd); + const result = await cmd.run(); expect(uxConfirmStub.calledOnce).to.be.true; expect(uxConfirmStub.args[0][0]).to.include(extSites.join('\n')); diff --git a/test/commands/package/packageConvert.test.ts b/test/commands/package/packageConvert.test.ts index 56d0e928..c1952bbd 100644 --- a/test/commands/package/packageConvert.test.ts +++ b/test/commands/package/packageConvert.test.ts @@ -10,7 +10,6 @@ import { MockTestOrgData, TestContext } from '@salesforce/core/lib/testSetup'; import { Config } from '@oclif/core'; import { Package, PackagingSObjects } from '@salesforce/packaging'; import * as sinon from 'sinon'; -import { stubMethod } from '@salesforce/ts-sinon'; import { PackageConvert } from '../../../src/commands/package/convert'; import Package2VersionStatus = PackagingSObjects.Package2VersionStatus; @@ -22,12 +21,15 @@ describe('package:convert', () => { const testOrg = new MockTestOrgData(); const config = new Config({ root: resolve(__dirname, '../../package.json') }); - const sandbox = sinon.createSandbox(); - // stubs let spinnerStartStub: sinon.SinonStub; let convertStub: sinon.SinonStub; + const stubSpinner = (cmd: PackageConvert) => { + spinnerStartStub = $$.SANDBOX.stub(cmd.spinner, 'start'); + $$.SANDBOX.stub(cmd.spinner, 'stop'); + }; + before(async () => { await $$.stubAuths(testOrg); await config.load(); @@ -35,7 +37,6 @@ describe('package:convert', () => { afterEach(() => { $$.restore(); - sandbox.restore(); }); it('returns error for missing installationkey or installationkeybypass flag', async () => { @@ -43,7 +44,9 @@ describe('package:convert', () => { 'Exactly one of the following must be provided: --installation-key, --installation-key-bypass'; try { - await new PackageConvert(['-p', CONVERTED_FROM_PACKAGE_ID, '-v', 'test@user.com'], config).run(); + const cmd = new PackageConvert(['-p', CONVERTED_FROM_PACKAGE_ID, '-v', 'test@user.com'], config); + stubSpinner(cmd); + await cmd.run(); } catch (e) { expect((e as Error).message).to.include(expectedErrorMsg); } @@ -65,12 +68,12 @@ describe('package:convert', () => { }; convertStub = $$.SANDBOX.stub(Package, 'convert').resolves(pvc); - const command = new PackageConvert( + const cmd = new PackageConvert( ['-p', CONVERTED_FROM_PACKAGE_ID, '--installation-key', INSTALL_KEY, '-v', 'test@user.com'], config ); - spinnerStartStub = stubMethod(sandbox, command.spinner, 'start'); - const result = await command.run(); + stubSpinner(cmd); + const result = await cmd.run(); expect(spinnerStartStub.called).to.be.true; expect(result).to.deep.equal(pvc); @@ -92,10 +95,12 @@ describe('package:convert', () => { convertStub.restore(); convertStub = $$.SANDBOX.stub(Package, 'convert').resolves(pvc); - const result = await new PackageConvert( + const cmd = new PackageConvert( ['-p', CONVERTED_FROM_PACKAGE_ID, '--installation-key', INSTALL_KEY, '-v', 'test@user.com'], config - ).run(); + ); + stubSpinner(cmd); + const result = await cmd.run(); expect(result).to.deep.equal(pvc); }); it('starts package version create request (error)', async () => { @@ -116,10 +121,12 @@ describe('package:convert', () => { convertStub.restore(); convertStub = $$.SANDBOX.stub(Package, 'convert').resolves(pvc); try { - await new PackageConvert( + const cmd = new PackageConvert( ['-p', CONVERTED_FROM_PACKAGE_ID, '--installation-key', INSTALL_KEY, '-v', 'test@user.com'], config - ).run(); + ); + stubSpinner(cmd); + await cmd.run(); } catch (e) { expect((e as Error).message).to.include('Error: server error 1'); expect((e as Error).message).to.include('Error: server error 2'); diff --git a/test/commands/package/packageVersionCreate.test.ts b/test/commands/package/packageVersionCreate.test.ts index 79ff838d..f6f5e570 100644 --- a/test/commands/package/packageVersionCreate.test.ts +++ b/test/commands/package/packageVersionCreate.test.ts @@ -53,32 +53,33 @@ describe('package:version:create - tests', () => { let createStub = $$.SANDBOX.stub(PackageVersion, 'create'); const config = new Config({ root: resolve(__dirname, '../../package.json') }); - const sandbox = sinon.createSandbox(); - // stubs let logStub: sinon.SinonStub; + const stubSpinner = (cmd: PackageVersionCreateCommand) => { + $$.SANDBOX.stub(cmd.spinner, 'start'); + $$.SANDBOX.stub(cmd.spinner, 'stop'); + }; + before(async () => { await $$.stubAuths(testOrg); await config.load(); }); beforeEach(async () => { - logStub = sandbox.stub(SfCommand.prototype, 'log'); + logStub = $$.SANDBOX.stub(SfCommand.prototype, 'log'); }); afterEach(() => { $$.restore(); - sandbox.restore(); }); describe('package:version:create', () => { it('should create a new package version', async () => { createStub.resolves(pkgVersionCreateSuccessResult); - const res = await new PackageVersionCreateCommand( - ['-p', '05i3i000000Gmj6XXX', '-v', 'test@hub.org', '-x'], - config - ).run(); + const cmd = new PackageVersionCreateCommand(['-p', '05i3i000000Gmj6XXX', '-v', 'test@hub.org', '-x'], config); + stubSpinner(cmd); + const res = await cmd.run(); expect(res).to.deep.equal({ Branch: undefined, CreatedBy: '0053i000001ZIyGAAW', @@ -102,7 +103,9 @@ describe('package:version:create - tests', () => { createStub = $$.SANDBOX.stub(PackageVersion, 'create'); createStub.resolves(pkgVersionCreateErrorResult); try { - await new PackageVersionCreateCommand(['-p', '05i3i000000Gmj6XXX', '-v', 'test@hub.org', '-x'], config).run(); + const cmd = new PackageVersionCreateCommand(['-p', '05i3i000000Gmj6XXX', '-v', 'test@hub.org', '-x'], config); + stubSpinner(cmd); + await cmd.run(); assert.fail('the above should throw multiple errors'); } catch (e) { expect((e as Error).message).to.equal( diff --git a/test/commands/package/versionPromoteUpdate.nut.ts b/test/commands/package/versionPromoteUpdate.nut.ts index 7f4244a9..6844681b 100644 --- a/test/commands/package/versionPromoteUpdate.nut.ts +++ b/test/commands/package/versionPromoteUpdate.nut.ts @@ -6,11 +6,14 @@ */ import * as path from 'path'; - import { execCmd, genUniqueString, TestSession } from '@salesforce/cli-plugins-testkit'; import { expect } from 'chai'; import { PackageSaveResult, PackageVersionCreateRequestResult } from '@salesforce/packaging'; import { Duration } from '@salesforce/kit'; +import { Messages } from '@salesforce/core'; + +Messages.importMessagesDirectory(__dirname); +const messages = Messages.loadMessages('@salesforce/plugin-packaging', 'package_version_update'); describe('package:version:promote / package:version:update', () => { let packageId: string | undefined | null; @@ -93,7 +96,7 @@ describe('package:version:promote / package:version:update', () => { const result = execCmd(`package:version:update --package ${packageId} --branch MySuperCoolBranch`, { ensureExitCode: 0, }).shellOutput.stdout; - expect(result).to.contain(`Successfully updated the package version. ${packageId}`); + expect(result).to.contain(messages.getMessage('success', [packageId])); }); it('should update a package (--json)', () => {