From 574324ab25387ab4102962f97bb93324fe6a5533 Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Fri, 24 May 2024 19:00:46 +0000 Subject: [PATCH] chore(release): 2.2.0 [skip ci] --- CHANGELOG.md | 132 ++++++++++--------------------------- README.md | 182 ++++++++++++--------------------------------------- package.json | 2 +- 3 files changed, 78 insertions(+), 238 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e02a6e..12ad533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,213 +1,151 @@ -## [2.1.1](https://github.com/forcedotcom/change-case-management/compare/2.1.0...2.1.1) (2023-05-17) +# [2.2.0](https://github.com/forcedotcom/change-case-management/compare/2.1.1...2.2.0) (2024-05-24) +### Features -### Bug Fixes +- esm ([b6b5e7f](https://github.com/forcedotcom/change-case-management/commit/b6b5e7fa49bc23347aa63b9117c65bbe1d202d59)) +- v2 change case API ([26de260](https://github.com/forcedotcom/change-case-management/commit/26de2600faecd75643ecf8bef476493f046651ad)) -* catch and throw ctc errors ([28f5270](https://github.com/forcedotcom/change-case-management/commit/28f5270316194442a3d91b248d65dc2e4de3ada2)) +## [2.1.1](https://github.com/forcedotcom/change-case-management/compare/2.1.0...2.1.1) (2023-05-17) +### Bug Fixes +- catch and throw ctc errors ([28f5270](https://github.com/forcedotcom/change-case-management/commit/28f5270316194442a3d91b248d65dc2e4de3ada2)) # [2.1.0](https://github.com/forcedotcom/change-case-management/compare/1.5.7...2.1.0) (2023-04-04) - ### Features -* sfify ([53ae736](https://github.com/forcedotcom/change-case-management/commit/53ae7362dd3695a32ee098a19164397b3c0f03ad)) - - +- sfify ([53ae736](https://github.com/forcedotcom/change-case-management/commit/53ae7362dd3695a32ee098a19164397b3c0f03ad)) ## [1.5.7](https://github.com/forcedotcom/change-case-management/compare/1.5.6...1.5.7) (2022-12-07) - ### Bug Fixes -* **deps:** bump qs from 6.5.2 to 6.5.3 ([4410653](https://github.com/forcedotcom/change-case-management/commit/4410653bf9fe32ec4d5184c2b546f27458282b5e)) - - +- **deps:** bump qs from 6.5.2 to 6.5.3 ([4410653](https://github.com/forcedotcom/change-case-management/commit/4410653bf9fe32ec4d5184c2b546f27458282b5e)) ## [1.5.6](https://github.com/forcedotcom/change-case-management/compare/1.5.5...1.5.6) (2022-12-07) - ### Bug Fixes -* **deps:** bump decode-uri-component from 0.2.0 to 0.2.2 ([9336e19](https://github.com/forcedotcom/change-case-management/commit/9336e198406dc54f9ef46baf639c2639d875e0b9)) - - +- **deps:** bump decode-uri-component from 0.2.0 to 0.2.2 ([9336e19](https://github.com/forcedotcom/change-case-management/commit/9336e198406dc54f9ef46baf639c2639d875e0b9)) ## [1.5.5](https://github.com/forcedotcom/change-case-management/compare/1.5.4...1.5.5) (2022-11-19) - ### Bug Fixes -* **deps:** bump @salesforce/kit from 1.7.1 to 1.8.0 ([f2821cd](https://github.com/forcedotcom/change-case-management/commit/f2821cddd5e892c3ad85067e94986b85cb8badb6)) - - +- **deps:** bump @salesforce/kit from 1.7.1 to 1.8.0 ([f2821cd](https://github.com/forcedotcom/change-case-management/commit/f2821cddd5e892c3ad85067e94986b85cb8badb6)) ## [1.5.4](https://github.com/forcedotcom/change-case-management/compare/1.5.3...1.5.4) (2022-11-05) - ### Bug Fixes -* **deps:** bump tslib from 2.3.1 to 2.4.1 ([c3984c5](https://github.com/forcedotcom/change-case-management/commit/c3984c5ddafa65e21451aa439f30936c835689e4)) - - +- **deps:** bump tslib from 2.3.1 to 2.4.1 ([c3984c5](https://github.com/forcedotcom/change-case-management/commit/c3984c5ddafa65e21451aa439f30936c835689e4)) ## [1.5.3](https://github.com/forcedotcom/change-case-management/compare/1.5.2...1.5.3) (2022-10-29) - ### Bug Fixes -* **deps:** bump @salesforce/kit from 1.7.0 to 1.7.1 ([78b2800](https://github.com/forcedotcom/change-case-management/commit/78b280003c12400f5a62e26809976b260c49262a)) - - +- **deps:** bump @salesforce/kit from 1.7.0 to 1.7.1 ([78b2800](https://github.com/forcedotcom/change-case-management/commit/78b280003c12400f5a62e26809976b260c49262a)) ## [1.5.2](https://github.com/forcedotcom/change-case-management/compare/1.5.1...1.5.2) (2022-10-08) - ### Bug Fixes -* **deps:** bump @salesforce/kit from 1.6.1 to 1.7.0 ([2bbe6fe](https://github.com/forcedotcom/change-case-management/commit/2bbe6febb1c1c76e09b25b2f399d9b760e44caad)) - - +- **deps:** bump @salesforce/kit from 1.6.1 to 1.7.0 ([2bbe6fe](https://github.com/forcedotcom/change-case-management/commit/2bbe6febb1c1c76e09b25b2f399d9b760e44caad)) ## [1.5.1](https://github.com/forcedotcom/change-case-management/compare/v1.5.0...1.5.1) (2022-10-08) - ### Bug Fixes -* **deps:** bump @salesforce/kit from 1.5.33 to 1.6.1 ([3016503](https://github.com/forcedotcom/change-case-management/commit/301650339f89d4458195ad900c9b8857e136f8d3)) - - +- **deps:** bump @salesforce/kit from 1.5.33 to 1.6.1 ([3016503](https://github.com/forcedotcom/change-case-management/commit/301650339f89d4458195ad900c9b8857e136f8d3)) # [1.5.0](https://github.com/forcedotcom/change-case-management/compare/v1.4.0...v1.5.0) (2022-02-14) - ### Bug Fixes -* update dev-scripts, bring CTC into the fold ([c6894a1](https://github.com/forcedotcom/change-case-management/commit/c6894a13620470d064b732da563c2b6edef25f3c)) - +- update dev-scripts, bring CTC into the fold ([c6894a1](https://github.com/forcedotcom/change-case-management/commit/c6894a13620470d064b732da563c2b6edef25f3c)) ### Features -* add new command to update scheduled build on workitem @W-9156514@ ([#13](https://github.com/forcedotcom/change-case-management/issues/13)) ([681dfd9](https://github.com/forcedotcom/change-case-management/commit/681dfd9b628ce99e0d00956e3f793ce20edb3d87)) - - +- add new command to update scheduled build on workitem @W-9156514@ ([#13](https://github.com/forcedotcom/change-case-management/issues/13)) ([681dfd9](https://github.com/forcedotcom/change-case-management/commit/681dfd9b628ce99e0d00956e3f793ce20edb3d87)) # [1.4.0](https://github.com/forcedotcom/change-case-management/compare/v1.3.6...v1.4.0) (2021-03-29) - ### Features -* config item uses full name ([5c66fbf](https://github.com/forcedotcom/change-case-management/commit/5c66fbfb3514c5f67010a8f0c42c327292f3e7ae)) - - +- config item uses full name ([5c66fbf](https://github.com/forcedotcom/change-case-management/commit/5c66fbfb3514c5f67010a8f0c42c327292f3e7ae)) ## [1.3.6](https://github.com/forcedotcom/change-case-management/compare/v1.3.5...v1.3.6) (2021-03-26) - ### Bug Fixes -* only tries to close non-closed cases ([efd8f92](https://github.com/forcedotcom/change-case-management/commit/efd8f92d0dc63adc5e0b0652f75c6b56242dcbf9)) -* typing for startResponse ([eebf8d2](https://github.com/forcedotcom/change-case-management/commit/eebf8d2fa59fdb2203543bdfa744d2acc6c00479)) - - +- only tries to close non-closed cases ([efd8f92](https://github.com/forcedotcom/change-case-management/commit/efd8f92d0dc63adc5e0b0652f75c6b56242dcbf9)) +- typing for startResponse ([eebf8d2](https://github.com/forcedotcom/change-case-management/commit/eebf8d2fa59fdb2203543bdfa744d2acc6c00479)) ## [1.3.5](https://github.com/forcedotcom/change-case-management/compare/v1.3.4...v1.3.5) (2021-03-26) - ### Bug Fixes -* remove existing case check (we won't leave open!) ([e592a2c](https://github.com/forcedotcom/change-case-management/commit/e592a2c8d600b9914fd64f3517a7058d5c40e080)) - - +- remove existing case check (we won't leave open!) ([e592a2c](https://github.com/forcedotcom/change-case-management/commit/e592a2c8d600b9914fd64f3517a7058d5c40e080)) ## [1.3.4](https://github.com/forcedotcom/change-case-management/compare/v1.3.3...v1.3.4) (2021-03-25) - ### Bug Fixes -* .snyk & package.json to reduce vulnerabilities ([58fcf74](https://github.com/forcedotcom/change-case-management/commit/58fcf747933d887f9174bd8a75c22768b9cc9e7a)) -* .snyk & package.json to reduce vulnerabilities ([b58aad9](https://github.com/forcedotcom/change-case-management/commit/b58aad94f9506a9526310df35bea17db7ad3aa3c)) -* checks for create errors before trying success ([ddf95e9](https://github.com/forcedotcom/change-case-management/commit/ddf95e955947bab7e4b0dc1dba3b7c1aac926f3f)) -* rename configuration item ([75aa9b3](https://github.com/forcedotcom/change-case-management/commit/75aa9b3d88bd28e9d31e5055ebccab1034e23fb0)) -* rename configuration item flag ([ff527a2](https://github.com/forcedotcom/change-case-management/commit/ff527a2789a83f76cf37ecec81acb2f3a43c994f)) - - +- .snyk & package.json to reduce vulnerabilities ([58fcf74](https://github.com/forcedotcom/change-case-management/commit/58fcf747933d887f9174bd8a75c22768b9cc9e7a)) +- .snyk & package.json to reduce vulnerabilities ([b58aad9](https://github.com/forcedotcom/change-case-management/commit/b58aad94f9506a9526310df35bea17db7ad3aa3c)) +- checks for create errors before trying success ([ddf95e9](https://github.com/forcedotcom/change-case-management/commit/ddf95e955947bab7e4b0dc1dba3b7c1aac926f3f)) +- rename configuration item ([75aa9b3](https://github.com/forcedotcom/change-case-management/commit/75aa9b3d88bd28e9d31e5055ebccab1034e23fb0)) +- rename configuration item flag ([ff527a2](https://github.com/forcedotcom/change-case-management/commit/ff527a2789a83f76cf37ecec81acb2f3a43c994f)) ## [1.3.3](https://github.com/forcedotcom/change-case-management/compare/v1.3.2...v1.3.3) (2020-06-17) - ### Bug Fixes -* initialize bypass with env var ([#3](https://github.com/forcedotcom/change-case-management/issues/3)) ([576bd28](https://github.com/forcedotcom/change-case-management/commit/576bd2864929f39cd52f21cbab22d885f2a05266)) - - +- initialize bypass with env var ([#3](https://github.com/forcedotcom/change-case-management/issues/3)) ([576bd28](https://github.com/forcedotcom/change-case-management/commit/576bd2864929f39cd52f21cbab22d885f2a05266)) ## [1.3.2](https://github.com/forcedotcom/change-case-management/compare/v1.3.1...v1.3.2) (2020-06-16) - ### Bug Fixes -* update readme and message ([c2cfabc](https://github.com/forcedotcom/change-case-management/commit/c2cfabc0d8c614de01f525a2b52daf5fc25d50e3)) - - +- update readme and message ([c2cfabc](https://github.com/forcedotcom/change-case-management/commit/c2cfabc0d8c614de01f525a2b52daf5fc25d50e3)) ## [1.3.1](https://github.com/forcedotcom/change-case-management/compare/v1.3.0...v1.3.1) (2020-04-30) - ### Bug Fixes -* remove invalid business unit and allow create to pass if already created ([6a58586](https://github.com/forcedotcom/change-case-management/commit/6a5858677ecbba94a002376252ca73147fd8053b)) - - +- remove invalid business unit and allow create to pass if already created ([6a58586](https://github.com/forcedotcom/change-case-management/commit/6a5858677ecbba94a002376252ca73147fd8053b)) # [1.3.0](https://github.com/forcedotcom/change-case-management/compare/v1.2.1...v1.3.0) (2020-04-28) - ### Features -* add the ability to set business name and create records and builds if they don't exist ([d165884](https://github.com/forcedotcom/change-case-management/commit/d1658847dedddb221a9d543b36ac2d7a4de8191a)) - - +- add the ability to set business name and create records and builds if they don't exist ([d165884](https://github.com/forcedotcom/change-case-management/commit/d1658847dedddb221a9d543b36ac2d7a4de8191a)) ## [1.2.1](https://github.com/forcedotcom/change-case-management/compare/v1.2.0...v1.2.1) (2020-04-27) - ### Bug Fixes -* use standard pre-approved ([bb3447e](https://github.com/forcedotcom/change-case-management/commit/bb3447e4aa4fc8c74c503bd6a582aff2f0093be1)) - - +- use standard pre-approved ([bb3447e](https://github.com/forcedotcom/change-case-management/commit/bb3447e4aa4fc8c74c503bd6a582aff2f0093be1)) # [1.2.0](https://github.com/forcedotcom/change-case-management/compare/v1.1.0...v1.2.0) (2020-04-24) - ### Features -* add dryrun for testing CD ([ca1ccef](https://github.com/forcedotcom/change-case-management/commit/ca1ccef01d9ca10192a4424363d9876fb53f3ad7)) - - +- add dryrun for testing CD ([ca1ccef](https://github.com/forcedotcom/change-case-management/commit/ca1ccef01d9ca10192a4424363d9876fb53f3ad7)) # [1.1.0](https://github.com/forcedotcom/change-case-management/compare/v1.0.0...v1.1.0) (2020-04-24) - ### Features -* add location and release to query without id ([36f4152](https://github.com/forcedotcom/change-case-management/commit/36f4152baf458fadc3692335edc95844e6c2ed35)) - - +- add location and release to query without id ([36f4152](https://github.com/forcedotcom/change-case-management/commit/36f4152baf458fadc3692335edc95844e6c2ed35)) # [1.0.0](https://github.com/forcedotcom/change-case-management/compare/d95109923e932eccaa21efc42f0e926bc7659b10...v1.0.0) (2020-04-23) - ### Bug Fixes -* bad argv usage and add more tests ([a02f3eb](https://github.com/forcedotcom/change-case-management/commit/a02f3eb181be92b1f7efeaa9985a3a96647b230a)) - +- bad argv usage and add more tests ([a02f3eb](https://github.com/forcedotcom/change-case-management/commit/a02f3eb181be92b1f7efeaa9985a3a96647b230a)) ### Features -* support auth with sfdx auth url ([d951099](https://github.com/forcedotcom/change-case-management/commit/d95109923e932eccaa21efc42f0e926bc7659b10)) - - - +- support auth with sfdx auth url ([d951099](https://github.com/forcedotcom/change-case-management/commit/d95109923e932eccaa21efc42f0e926bc7659b10)) diff --git a/README.md b/README.md index 4f38007..8536a6c 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,8 @@ The most important environment variable is for authentication. Set `SF_CHANGE_CA $ npm install -g @salesforce/change-case-management $ sfchangecase COMMAND running command... -$ sfchangecase (-v|--version|version) -@salesforce/change-case-management/1.4.0 linux-x64 node-v12.22.10 +$ sfchangecase (--version) +@salesforce/change-case-management/2.2.0 linux-x64 node-v18.20.2 $ sfchangecase --help [COMMAND] USAGE $ sfchangecase COMMAND @@ -56,158 +56,60 @@ USAGE -- [`sfchangecase check [-i ] [-r -l ] [--bypass] [--dryrun] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfchangecase-check--i-id--r-string--l-url---bypass---dryrun--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfchangecase close [-i ] [-r -l ] [-s Implemented - per plan|Not Implemented|Rolled back - with no impact] [--bypass] [--dryrun] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfchangecase-close--i-id--r-string--l-url--s-implemented---per-plannot-implementedrolled-back---with-no-impact---bypass---dryrun--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfchangecase create -i -r -c [-l ] [--bypass] [--dryrun] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfchangecase-create--i-id--r-string--c-string--l-url---bypass---dryrun--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) -- [`sfchangecase updateScheduledBuild -i -b [--bypass] [--dryrun] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfchangecase-updatescheduledbuild--i-string--b-string---bypass---dryrun--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal) +- [`sfchangecase close`](#sfchangecase-close) +- [`sfchangecase create`](#sfchangecase-create) -## `sfchangecase check [-i ] [-r -l ] [--bypass] [--dryrun] [-u ] [--apiversion ] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]` +## `sfchangecase close` -check the status of a change case record +Close a change case and stop its implementation steps. ``` USAGE - $ sfchangecase check [-i ] [-r -l ] [--bypass] [--dryrun] [-u ] [--apiversion ] - [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] - -OPTIONS - -i, --changecaseid=changecaseid change case id - -l, --location=location url of the source control location - -r, --release=release schedule build of the new release - - -u, --targetusername=targetusername username or alias for the target - org; overrides default target org - - --apiversion=apiversion override the api version used for - api requests made by this command - - --bypass bypass the change case commands - - --dryrun run the command without making any - API calls - all calls will be - 'successful' - - --json format output as json - - --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for - this command invocation + $ sfchangecase close -o [--json] [--flags-dir ] [-i ] [-r -l ] [-s + Implemented - per plan|Not Implemented|Rolled back - with no impact] [--dry-run] + +FLAGS + -i, --change-case-id= change case id + -l, --location= url of the source control location + -o, --target-org= (required) For testing, you can supply a username/alias. It will also parse the org + from the environment: SF_CHANGE_CASE_SFDX_AUTH_URL + -r, --release= schedule build of the new release + -s, --status=