Skip to content

Commit a650f78

Browse files
abetomoDeviaVir
authored andcommitted
Drop nodejs4.3 (#469)
* 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" ```
1 parent b890e58 commit a650f78

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cache:
1515
jobs:
1616
include:
1717
- stage: npm release
18-
node_js: node
18+
node_js: 10
1919
script: echo "Deploying to npm ..."
2020
deploy:
2121
provider: npm

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ AWS Lambda will let you set environment variables for your function. Use the sam
205205

206206
## Node.js Runtime Configuration
207207

208-
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.
208+
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.
209209

210210
## Post install script
211211
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.

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ event_sources.json and ${program.eventFile} files as needed.`)
5252
}
5353

5454
run (program) {
55-
if (!['nodejs4.3', 'nodejs6.10', 'nodejs8.10'].includes(program.runtime)) {
55+
if (!['nodejs6.10', 'nodejs8.10'].includes(program.runtime)) {
5656
console.error(`Runtime [${program.runtime}] is not supported.`)
5757
process.exit(254)
5858
}

0 commit comments

Comments
 (0)