Skip to content

Commit

Permalink
Drop nodejs4.3 (motdotla#469)
Browse files Browse the repository at this point in the history
* Drop Node.js 4.3

Node.js 4.3 was dropped from the document.
https://docs.aws.amazon.com/lambda/latest/dg/programming-model.html

* Fix version of npm release to 10

following error

```
error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 4.x <= 10.x". Got "11.0.0"
```
  • Loading branch information
abetomo authored and DeviaVir committed Nov 5, 2018
1 parent b890e58 commit a650f78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cache:
jobs:
include:
- stage: npm release
node_js: node
node_js: 10
script: echo "Deploying to npm ..."
deploy:
provider: npm
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,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 8.10, 6.10 and Node.js 4.3. 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 8.10 and Node.js 6.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.
Expand Down
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ event_sources.json and ${program.eventFile} files as needed.`)
}

run (program) {
if (!['nodejs4.3', 'nodejs6.10', 'nodejs8.10'].includes(program.runtime)) {
if (!['nodejs6.10', 'nodejs8.10'].includes(program.runtime)) {
console.error(`Runtime [${program.runtime}] is not supported.`)
process.exit(254)
}
Expand Down

0 comments on commit a650f78

Please sign in to comment.