@architect/destroy
Advanced tools
Comparing version 1.3.0 to 2.0.0
@@ -5,2 +5,12 @@ # Architect Destroy changelog | ||
## [2.0.0] 2021-07-22 | ||
### Changed | ||
- Breaking change: removed support for Node.js 10.x (now EOL, and no longer available to created in AWS Lambda) | ||
- Breaking change: the `--name` flag can no longer be used in place of `--app` to destroy apps; `--app` must now be used to destroy apps, while `--name` may only be used to destroy stacks; fixes #1165 | ||
- Updated dependencies | ||
--- | ||
## [1.2.5 - 1.2.6] 2021-06-21 | ||
@@ -7,0 +17,0 @@ |
{ | ||
"name": "@architect/destroy", | ||
"version": "1.3.0", | ||
"version": "2.0.0", | ||
"description": "Destroy projects created with Architect", | ||
@@ -19,3 +19,3 @@ "main": "src/index.js", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
@@ -27,4 +27,4 @@ "repository": { | ||
"dependencies": { | ||
"@architect/inventory": "~1.4.3", | ||
"@architect/utils": "~2.1.3", | ||
"@architect/inventory": "~2.0.2", | ||
"@architect/utils": "~3.0.1", | ||
"aws-sdk": "~2.880.0", | ||
@@ -35,7 +35,7 @@ "run-parallel": "~1.2.0", | ||
"devDependencies": { | ||
"@architect/deploy": "^2.6.0", | ||
"@architect/eslint-config": "1.0.0", | ||
"aws-sdk-mock": "~5.1.0", | ||
"@architect/deploy": "^2.6.2", | ||
"@architect/eslint-config": "~1.0.0", | ||
"aws-sdk-mock": "5.1.0", | ||
"cross-env": "~7.0.3", | ||
"eslint": "~7.29.0", | ||
"eslint": "~7.31.0", | ||
"nyc": "~15.1.0", | ||
@@ -47,6 +47,3 @@ "tap-spec": "^5.0.0", | ||
"extends": "@architect/eslint-config" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
@@ -33,13 +33,7 @@ #!/usr/bin/env node | ||
let app = args.includes('--app') && (args[args.findIndex(findApp) + 1] === appname) | ||
if (!app) throw Error('no_app_name') | ||
// User should supply --app $appname in the CLI, however if they only supply --name (the old destroy behavior) then interpret that as --app (and warn) | ||
let findName = p => p === '--name' | ||
let stackname | ||
if (!app && args.includes('--name')) { | ||
app = (args[args.findIndex(findName) + 1] === appname) | ||
update.warn(`--name flag has been updated to support custom stack names, you should specify the app to destroy with: --app ${appname}`) | ||
} | ||
else { | ||
stackname = args.includes('--name') && args[args.findIndex(findName) + 1] | ||
} | ||
let stackname = args.includes('--name') && args[args.findIndex(findName) + 1] | ||
@@ -53,5 +47,2 @@ let forces = p => [ '-f', '--force', 'force' ].includes(p) | ||
if (!app) { | ||
throw Error('no_app_name') | ||
} | ||
let env = production ? 'production' : 'staging' | ||
@@ -58,0 +49,0 @@ update.status(`Destroying ${env} environment`) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21272
442
+ Added@architect/asap@4.0.0(transitive)
+ Added@architect/inventory@2.0.7(transitive)
+ Added@architect/parser@5.0.2(transitive)
+ Added@architect/utils@3.0.4(transitive)
+ Addedglob@7.2.3(transitive)
- Removed@architect/asap@3.13.8(transitive)
- Removed@architect/inventory@1.4.4(transitive)
- Removed@architect/parser@3.0.1(transitive)
- Removed@architect/utils@2.1.3(transitive)
- Removedglob@7.1.7(transitive)
Updated@architect/inventory@~2.0.2
Updated@architect/utils@~3.0.1