Repository: motdotla/node-lambda
Pull request #514 (2019-12-26 14:06:48)

Update README (remove --endpoint of run subcommand, add --endpoint of deploy subcommand)
Hi

I removed `--endpoint` of run subcommand.
Because the `--endpoint` option does not exist in the run subcommand.

```sh
$ ./node_modules/node-lambda/bin/node-lambda --version
0.14.0
$ ./node_modules/node-lambda/bin/node-lambda run --help
Usage: run|execute [options]

Run your Amazon Lambda application locally

Options:
  -H, --handler [AWS_HANDLER]                                 Lambda Handler {index.handler} (default: "index.handler")
  -j, --eventFile [EVENT_FILE]                                Event JSON File (default: "event.json")
  -u, --runtime [AWS_RUNTIME]                                 Lambda Runtime (default: "nodejs10.x")
  -t, --timeout [AWS_RUN_TIMEOUT]                             Lambda Timeout (default: 3)
  -f, --configFile [CONFIG_FILE]                              Path to file holding secret environment variables (e.g. "deploy.env") (default: "")
  -x, --contextFile [CONTEXT_FILE]                            Context JSON File (default: "context.json")
  -M, --enableRunMultipleEvents [ENABLE_RUN_MULTIPLE_EVENTS]  Enable run multiple events (default: true)
  -y, --proxy [PROXY]                                         Proxy server (default: "")
  -h, --help                                                  output usage information
```

And, the `--endpoint` option was missing from the` deploy` subcommand,

```sh
$ ./node_modules/node-lambda/bin/node-lambda deploy --help
Usage: deploy [options]

Deploy your application to Amazon Lambda

Options:
  -e, --environment [AWS_ENVIRONMENT]                   Choose environment {dev, staging, production} (default: "")
  -E, --endpoint [AWS_ENDPOINT]                         Choose endpoint (e.g. localstack, "http://127.0.0.1:4574") (default: "")
  -a, --accessKey [AWS_ACCESS_KEY_ID]                   AWS Access Key (default: "")
  -s, --secretKey [AWS_SECRET_ACCESS_KEY]               AWS Secret Key (default: "")
  -P, --profile [AWS_PROFILE]                           AWS Profile (default: "yamap-kawahara.yohei")
  -k, --sessionToken [AWS_SESSION_TOKEN]                AWS Session Token (default: "")
  -r, --region [AWS_REGION]                             AWS Region (default: "ap-northeast-1")
  -n, --functionName [AWS_FUNCTION_NAME]                Lambda FunctionName (default: "lambda-cloudwatch-slack")
  -H, --handler [AWS_HANDLER]                           Lambda Handler {index.handler} (default: "index.handler")
  -o, --role [AWS_ROLE]                                 Amazon Role ARN (default: "your_amazon_role")
  -m, --memorySize [AWS_MEMORY_SIZE]                    Lambda Memory Size (default: "128")
  -t, --timeout [AWS_TIMEOUT]                           Lambda Timeout (default: "3")
  -d, --description [AWS_DESCRIPTION]                   Lambda Description (default: "Better Slack notifications for AWS CloudWatch")
  -u, --runtime [AWS_RUNTIME]                           Lambda Runtime (default: "nodejs10.x")
  -p, --publish [AWS_PUBLISH]                           Lambda Publish (default: false)
  -L, --lambdaVersion [AWS_FUNCTION_VERSION]            Lambda Function Version (default: "")
  -b, --vpcSubnets [AWS_VPC_SUBNETS]                    Lambda Function VPC Subnets (default: "")
  -g, --vpcSecurityGroups [AWS_VPC_SECURITY_GROUPS]     Lambda VPC Security Group (default: "")
  -K, --kmsKeyArn [AWS_KMS_KEY_ARN]                     Lambda KMS Key ARN (default: "")
  -Q, --deadLetterConfigTargetArn [AWS_DLQ_TARGET_ARN]  Lambda DLQ resource
  -c, --tracingConfig [AWS_TRACING_CONFIG]              Lambda tracing settings (default: "")
  -l, --layers [AWS_LAYERS]                             Lambda Layers settings (e.g. "ARN1,ARN2[,..])" (default: "")
  -R, --retentionInDays [AWS_LOGS_RETENTION_IN_DAYS]    CloudWatchLogs retentionInDays settings (default: "")
  -G, --sourceDirectory [SRC_DIRECTORY]                 Path to lambda source Directory (e.g. "./some-lambda") (default: "")
  -I, --dockerImage [DOCKER_IMAGE]                      Docker image for npm install (default: "")
  -f, --configFile [CONFIG_FILE]                        Path to file holding secret environment variables (e.g. "deploy.env") (default: "")
  -S, --eventSourceFile [EVENT_SOURCE_FILE]             Path to file holding event source mapping variables (e.g. "event_sources.json") (default: "")
  -x, --excludeGlobs [EXCLUDE_GLOBS]                    Space-separated glob pattern(s) for additional exclude files (e.g. "event.json dotenv.sample") (default: "event.json")
  -D, --prebuiltDirectory [PREBUILT_DIRECTORY]          Prebuilt directory (default: "")
  -T, --deployTimeout [DEPLOY_TIMEOUT]                  Deploy Timeout (default: 120000)
  -z, --deployZipfile [DEPLOY_ZIPFILE]                  Deploy zipfile (default: "")
  -B, --deployUseS3 [DEPLOY_USE_S3]                     Use S3 to deploy. (default: false)
  -y, --proxy [PROXY]                                   Proxy server (default: "")
  -h, --help                                            output usage information
```

Please confirm 🙏 
Regards.

Yohei


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8828f50..c0f9f02 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -382,3 +382,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
     - Modify unit tests [#501](https://github.com/motdotla/node-lambda/pull/501)
     - Fix GitHub Actions workflow [#500](https://github.com/motdotla/node-lambda/pull/500)
     - Add GitHub Actions workflow [#499](https://github.com/motdotla/node-lambda/pull/499)
+
+## [0.16.0] - 2020-02-12
+### Features
+- Remove osx from travis [#513](https://github.com/motdotla/node-lambda/pull/513)
+- Drop nodejs8.10 from runtime [#516](https://github.com/motdotla/node-lambda/pull/516)
diff --git a/README.md b/README.md
index ea72e53..8ff2dc9 100644
--- a/README.md
+++ b/README.md
@@ -123,7 +123,6 @@ Options:
   -x, --contextFile [context.json]      Context JSON File
   -M, --enableRunMultipleEvents [true]  Enable run multiple events
   -y, --proxy []                        Proxy server
-  -E, --endpoint []                     Use different endpoint (e.g. localstack, "http://127.0.0.1:4574")
 ```
 
 #### package
@@ -166,6 +165,7 @@ Deploy your application to Amazon Lambda
 Options:
   -h, --help                          output usage information
   -e, --environment [development]     Choose environment {dev, staging, production}
+  -E, --endpoint [AWS_ENDPOINT]       Choose endpoint (e.g. localstack, "http://127.0.0.1:4574") (default: "")
   -a, --accessKey [your_key]          AWS Access Key
   -s, --secretKey [your_secret]       AWS Secret Key
   -P, --profile []                    AWS Profile
@@ -212,7 +212,7 @@ AWS Lambda will let you set environment variables for your function. Use the sam
 
 ## Node.js Runtime Configuration
 
-AWS Lambda now supports Node.js 12, Node.js 10 and Node.js 8.10. Please also check the [Programming Model (Node.js)](http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html) page.
+AWS Lambda now supports Node.js 12 and Node.js 10. Please also check the [Programming Model (Node.js)](http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html) page.
 
 ## Post install script
 When running `node-lambda deploy` if you need to do some action after `npm install --production` and before deploying to AWS Lambda (e.g. replace some modules with precompiled ones or download some libraries, replace some config file depending on environment) you can create `post_install.sh` script. If the file exists the script will be executed (and output shown after execution) if not it is skipped. Environment string is passed to script as first parameter so you can use it if needed. Make sure that the script is executable.
diff --git a/lib/main.js b/lib/main.js
index 2e02fb1..6de0638 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -51,7 +51,7 @@ event_sources.json and ${program.eventFile} files as needed.`)
   }
 
   run (program) {
-    if (!['nodejs8.10', 'nodejs10.x', 'nodejs12.x'].includes(program.runtime)) {
+    if (!['nodejs10.x', 'nodejs12.x'].includes(program.runtime)) {
       console.error(`Runtime [${program.runtime}] is not supported.`)
       process.exit(254)
     }
diff --git a/package-lock.json b/package-lock.json
index 3cd90b9..3754f9b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
 {
   "name": "node-lambda",
-  "version": "0.15.0",
+  "version": "0.16.0",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
diff --git a/package.json b/package.json
index 07208ae..7d9392b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "node-lambda",
-  "version": "0.15.0",
+  "version": "0.16.0",
   "description": "Command line tool for locally running and remotely deploying your node.js applications to Amazon Lambda.",
   "main": "lib/main.js",
   "directories": {


Test patch:
diff --git a/test/main.js b/test/main.js
index 8936122..dc7eaba 100644
--- a/test/main.js
+++ b/test/main.js
@@ -148,7 +148,7 @@ describe('lib/main', function () {
   })
 
   it('version should be set', () => {
-    assert.equal(lambda.version, '0.15.0')
+    assert.equal(lambda.version, '0.16.0')
   })
 
   describe('_codeDirectory', () => {