Skip to content

Latest commit

 

History

History
490 lines (422 loc) · 31.2 KB

CHANGELOG.md

File metadata and controls

490 lines (422 loc) · 31.2 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

[Unreleased]

[0.8.0] - 2016-04-18

Added

  • CHANGELOG to "make it easier for users and contributors to see precisely what notable changes have been made between each release". Linked to from README
  • LICENSE to be more explicit about what was defined in package.json. Linked to from README
  • It is OK to not set default value for AWS Credentials so AWS can use Roles and internally set AWS credentials
  • Added context.json so it can easily be overwritten
  • Allow using a custom (and passed through) event.json file
  • Added package command for easy zip creation and inspection
  • Added VpcConfig support, see this PR for more information
  • Updated the AWS API version used to 2015-03-31
  • Make sure we throw errors on unrecoverable failures so other programs can listen on that
  • Added support for nodejs4.3 runtime (introducted to AWS Apr 7 2016)
  • Added support for post install scripts, this post_install.sh file will be triggered after npm install --production in case you want to run any code on your application before zipping
  • Added -x / --excludeGlobs to allow custom file exclusion
  • Excluding *.swp, deploy.env by default now

[0.8.1] - 2016-04-22

Bugfixes

  • Resolved a problem with excludes not being set #91
  • Resolved a problem with the package command and a custom config file #90
  • Allow use strict #86
  • Updated the env.example file to set the default (and by AWS recommended) runtime to nodejs4.3 #84

[0.8.2] - 2016-05-12

Bugfixes

  • Verify env vars before creating sample files #99
  • Fix AWS_PUBLIS typo #102

Added

  • Allow checking on process.env.environment to context switch #95

[0.8.3] - 2016-05-12

Bugfixes

  • Added EXCLUDE_GLOBS to package, so your local ZIPs are the same as the ZIPs uploaded to AWS Lambda #104

[0.8.4] - 2016-05-20

Bugfixes

  • Added extra quotes around the parsed environment #106

[0.8.5] - 2016-05-27

Adjustment

  • Extremely verbose NPM installs could crash node-lambda's buffer #108

[0.8.6] - 2016-06-28

Feature

  • Added prebuiltDirectory flag for users that want to use an already generated directory #116

Bugfixes

  • README was lying about how to use excludeGlobs #111

[0.8.7] - 2016-08-16

Features

  • Added -L to rsync to allow copying of symlinks #126
  • Added travisci support for node 6 #129
  • Support to use package.json description for AWS description #133
  • Inject environment variables via config file for the run command #136

Bugfixes

  • rsync should not exclude node_modules when using --prebuiltDirectory. #122
  • Set environment variables before requiring module #137
  • Typo fix publish when updating existing function #138

[0.8.8] - 2016-09-02

Features

  • Support AWS_PROFILE and de-duped a few CLI options #144
  • wrench was deprecated and has been replaced by fs-extra #146

Bugs

  • Displaying node-lambda -h returned an error #127
  • NPM overwrites $TMPDIR #134

[0.8.9] - 2016-09-06

Bugs

  • The above mentioned fix for issue #127 exposed a commander bug, reverted the change
  • Do not exclude package.json, even when specified in excludeGlobs #141

[0.8.10] - 2016-09-20

Features

  • We are now passing the environment string to the post install script #154

[0.8.11] - 2016-10-28

Bugfixes

  • Restore lambda version functionality #156
  • Namespaced packages fail to deploy #157

[0.8.12] - 2017-02-10

Bugfixes

  • Using path.join instead of hardcoded slashes #173
  • Drop node-uuid from package.json #174
  • Enforce max for timeout and update README docs #180
  • Fill default VpcConfig to prevent errors #183

Features

  • Added getRemainingTimeInMillis() to the context when running locally. #179
  • Adding support for lambda environment variables #181

[0.8.13] - 2017-02-12

Bugfixes

  • Fixed wrong runtime call #188
  • Docker support #186
  • Make default excludes apply to root only #185

[0.8.14] - 2017-03-27

Features

  • Event source mapping support #189
  • Fix version of Node.js supported by AWS Lambda #197
  • How about it if you have the option to specify the zip file? #199
  • Add 'Runtime' to the params of lambda.updateFunctionConfiguration #200

Bugfixes

  • Fix unit test failure at travis #198

[0.8.15] - 2017-03-28

Features

  • Added DeadLetterConfig parameter #206

Bugfixes

  • Fix default value of EVENT_SOURCE_FILE set '' #205
  • Removed event_sources.json #204
  • Add -S, --eventSourceFile option. #203

[0.9.0] - 2017-04-13

Features

  • Add tests for _readArchive #213
  • Add tests for event_sources.json #214
  • Add tests for DeadLetterConfig #215
  • Add _readArchive tests called in _archive #216
  • modify badge from png to svg #227
  • ScheduleEvents #228

Bugfixes

  • Bugfix InvalidParameterValueException is given when createFunction #209
  • Clean unnecessary else #217
  • Refactor _eventSourceList #218
  • Clean deploy function #220
  • Fix default value of params.Environment.Variables is null #221
  • Fix to use authenticated aws object in main.js #225
  • Changed the format of event_sources.json #226

[0.10.0] - 2017-05-10

Features

  • Fix use fs object #236
  • Upgrade lodash #237
  • Add file copy function without rsync command #238
  • Add node.js 7 to travis.yml #239
  • Set http timeout to 30 mins. #240
  • Supported TracingConfig #243
  • Fix to using path object #249
  • Allow use of docker container for npm install #251
  • Bugfix _filecopy exclude #253
  • Fix to replace _rsync with _fileCopy #254
  • Custom ScheduleEvent rule description #257
  • Add test functionName pattern #263
  • Added - cwd option to npm install command #265

Bugfixes

  • Add an overview of event_sources.json #230
  • Cleanup of main.js run #231
  • Fix results outputs #233
  • Bugfix for backward compatible objects #234
  • Fix after process of tests #235
  • Fix to be the same specification as --exclude of rsync command (about function which is an alternative to rsync command) #244
  • Fix to avoid commander bug #247
  • Fix fs.exists deprecated #250
  • Fix using assert.include #252
  • Fix not doing anything if event_sources.json is not specified #256
  • Fix using path #258
  • Fix tests for windows #259
  • Add Command Prompt to README #266
  • Fix indexjs current style #268
  • Fixed typo - Labmda => Lambda #269
  • Fix not to create .env sample file with _buildAndArchive #270

[0.11.0] - 2017-06-16

Features

  • Fix to include only package.json in the source directory #274
  • Fix os: deprecate 'tmpDir()' in favour of 'tmpdir()' https://github.c… #275
  • Upgraded aws-sdk#277
  • Unified in Camel Case & Remove unnecessary arguments #278
  • Remove function _nativeZip #279
  • Add known issue for duplicate trigger to ScheduleEvents section #280
  • Feature simple callbackWaitsForEmptyEventLoop support #284
  • Fix to use test handler by stopping replace processing of existing index.js #285
  • Fix to use '===' instead of '==' (Including similar modifications) #287
  • Replaced rimraf with fs.remove #291
  • Refactored: JavaScript Standard Style #292
  • Refactored and add test #294
  • Refactored, improved error handling #295
  • Remove semicolon (Automatic update with standard --fix) #298
  • Adopted "JavaScript Standard Style" as coding style #299
  • Replace async.js in _updateScheduleEvents with Promise #302
  • Modify from exec to execFile with _npmInstall #303
  • Automated NPM deploys (on tags) #304
  • Add package-lock.json #305
  • Added _updateEventSources test and refactoring #308
  • Added test of function to upload Zip to Lambda #309
  • Fix timing to check Runtime #310
  • Feature event accept array #311
  • Modify to use isArray #312
  • Modify execution of multiple events to synchronous processing #313
  • Fix to make bin/node-lambda conform to JavaScript Standard Style #315
  • Replace asyncjs of _updateEventSources with Promise #316
  • Replace async.js of deploy with Promise #319
  • Modified the function used in deploy to return Promise #320
  • Modify main process of deploy to another function #323
  • Fix to use Proxy #324

Bugfixes

  • Remove the cleaning process after the test #281
  • Fix run handler callback #282
  • Remove 'os' #286
  • Fix not specifying file name with test in package.json #289
  • Update phase as it is necessary to separate release phase (.travis.yml) #306
  • Refactoring and unnecessary package removal #307
  • Modify var of global variable to const #317
  • Remove Hoek #318

[0.11.1] - 2017-07-04

Features

  • Improve deploy process with Promise #327
  • Refactoring _cleanDirectory #330
  • Refactoring _npmInstall #331
  • Replace callback with Promise #332
  • Upgrade commander.js #334
  • Refactoring _fileCopy #336
  • Add simple context method #337
  • Refactoring _archive #338
  • Refactoring _listEventSourceMappings #339
  • Replace var with const #341
  • Replace with arrow function #342

Bugfixes

  • Modify file used for test #326
  • Update package-lock.json #328
  • Remove _rsync #329
  • Bugfixed that mode of file changes when zip is created #335

[0.11.2] - 2017-07-05

Features

  • Fix to deprecated the configFile option in the pacakage command #344

Bugfixes

  • Fix to set boolean in params.Publish #346

[0.11.3] - 2017-07-07

Features

  • Fix symlink at zip #348

[0.11.4] - 2017-09-22

Features

  • Remove configFile Option of package command in README #350
  • Remove configFile option in package command #351
  • Uprade chai #352
  • Add the ability to set KMSKeyArn to a Lambda function #356
  • Add appveyor.yml#357
  • Add function for setting CloudWatchLogs RetentionPolicy #359
  • Switch ScheduleEvents to class syntax #360
  • Add _setLogsRetentionPolicy to lib/main.js #361
  • Change lib/main.js to class syntax #362
  • Use stable node, at npm release. #370
  • Add option to disable run multiple #372

Bugfixes

  • Update repository url #358
  • Fix deploy command exit code #366
  • Add invalidation of log output to make the test result easier to read #367
  • Fix commandline version option #368
  • Change: Ensure dotenv.load called before AWS load #369
  • Update README with latest output for 'node-lambda run -h' #373
  • Update Usage of README #374

[0.11.5] - 2017-12-11

Features

  • Move node-zip to devDependencies #378
  • Added the ability to set constants when scheduling a Lambda function Cloudwatch event #380
  • Update CI's Node.js to LTS and latest version #386
  • Update packages #392
  • Added class to set S3 events #393
  • Add updateS3Events to main #394
  • Refactoring lib/schedule_events.js #395

Bugfixes

  • Set docker run working directory so npm install works #381
  • Change short option of --tracingConfig to -c #385
  • Fix to use Proxy when run locally #389

[0.11.6] - 2018-01-07

Features

  • Refactoring lib/main.js #398
  • Remove unnecessary return this for constructor #399
  • Remove unnecessary try-cache #401
  • Add event_sources.json to setup message #402
  • Modify using template literals #403
  • Remove unnecessary promise chain #404
  • Local/Cloud flag #405

[0.11.7] - 2018-04-12

Features

  • AWS X-Ray SDK Support #414
  • Upgrade standard #416
  • Added support for using custom endpoints like localstack #417
  • NodeJS 8.10 runtime now available #419

Bugfixes

  • remove env var value from commanderjs flag definition #409

[0.12.0] - 2018-08-10

Features

  • Implemente to specify bucket name of S3 #458
  • Implement deployment using S3 (Create a bucket for each region.) #455
  • Add class for uploading deploy package to S3 #454
  • Fix to throw an error except ResourceNotFoundException #452
  • Feature upload to s3 and deploy from bucket #446
  • npm update #445
  • Upgrade dependent packages #441
  • Add simple test of _deployToRegion() and deploy() #439
  • Remove unnecessary package load in test/main.js #438
  • Add cache of node modules to CI setting #436
  • Modify require to { } statement #435
  • Fix to use includes instead of indexOf #433
  • Remove test code for Node.js4 #432
  • Upgrade fs-extra #431
  • Stop supporting Node.js 4 #430
  • Fix using klaw instead of fs.walk #424
  • Add Node.js10 to CI setting #428

Bugfixes

  • Fix StatementId #451
  • Bugfix of initialValue of recude in s3events #447
  • Added handling to catch and log error return from async lambda #443
  • Log result of an async handler method by resolving promise if a promise #440
  • Fix to display return value of handler #427
  • Fix to set array when same bucket #423

[0.13.0] - 2018-11-15

Features

  • Drop nodejs4.3 #469
  • Update maximum timeout value from 300 to 900 #465
  • Modify to follow the rules of the new 'standard' #463
  • Add 'osx' to CI os #464
  • Update CI test to LTS version #462
  • Upgrade archiver #460

Bugfixes

  • Fix value of StartingPosition #467

[0.14.0] - 2019-05-25

Features

  • Support Node.js 10.x #487
  • Add Node.js 12 to CI setting #486
  • Add file to configure aws authentication settings #482
  • Add layers option to readme #481
  • Add option to specify Lambda Layers #480
  • Upgrade packages #479
  • Add dockerVolumes option in package in order to mount additional volumes #473
  • Add keepNodeModules option in package #472

Bugfixes

  • Remove 'packageDirectory' option from 'deploy' #484
  • Update s3deploy bucket handling #475
  • Fix Docker volume mount from OSX - #461 #471

[0.15.0] - 2019-12-11

Features

  • adds tagging on new and updated functions #508
  • Add nodejs12.x to runtime #510
  • Don't audit packages when installing #505
  • Use ci instead of install when installing packages #502
  • Add reference to TypeScript example/template #497
  • Drop nodejs6.10 #495
  • Warn on providing unknown commands #494
  • Fix tests
    • Fix GitHub Actions workflow #506
    • Fix npm ci test. #509
    • Remove appveyor.yml #504
    • Modify unit tests #501
    • Fix GitHub Actions workflow #500
    • Add GitHub Actions workflow #499

[0.16.0] - 2020-02-12

Features

  • Remove osx from travis #513
  • Drop nodejs8.10 from runtime #516

[0.17.0] - 2020-05-14

Features

  • Implement a simple API Gateway event #530
    • [README] Add the 'apiGateway' option to the run command #532
  • Add Node.js 14 to CI settings #524
  • Drop old Node support #523
  • Bump acorn from 7.0.0 to 7.1.1 #522
  • Add Silent or quiet mode when deploying #520
    • [README update] Add silent option to deploy command #521
  • Update README (remove --endpoint of run subcommand, add --endpoint of deploy subcommand) #514

Bugfixes

  • Upgrade "aws-xray-sdk-core" #529
  • Fix Lambda update failure #526

[0.18.0] - 2021-02-19

Features

  • feat: support nodejs14.x runtime #553
  • Upgrade Mocha to fix high sev vulnerability. #551
  • docs: add a note to the README about deploying container image #549
  • Support npm7 #550
  • feat: support for 'ImageUri' parameter #548
  • upgrade 'commander' to 7 #547
  • ci: add 'fail-fast: false' setting #546
  • use starsWith instead of indexOf #545
  • Upgrade 'standard' #543
  • Update S3_LOCATION_POSSIBLE_VALUES #542
  • Bump bl from 4.0.2 to 4.0.3 #541
  • Add description of vpc options #540
  • Upgrade packages #538
  • Bump lodash from 4.17.15 to 4.17.19 #536
  • Add build badge in README #534

[0.19.0] - 2021-03-30

Features

  • feat: support --no-optional option in npm install #557

[0.19.1] - 2021-04-24

Bugfixes

  • Fix errors caused by old proxy-agent #564

[0.20.0] - 2021-09-25

Features

  • updated proxy-agent to 5.0.0 #574
  • show suggestions after an error for an unknown command or option #572
  • feat: drop nodejs10x from lambda runtime #571

Bugfixes

  • fix(_uploadExisting): fix function update errors #575
  • test: fix npm install test failing in some cases #569
  • Clean the tmp dir during _archivePrebuilt to match _buildAndArchive behavior #518

[0.21.0] - 2021-11-10

Features

  • feat: support for yarn #581

[0.22.0] - 2022-02-17

Features

  • Support for Architectures parameter #591

Bugfixes

  • fix: skip installing the package, when there is no package.json #589

[1.0.0] - 2022-05-19

Features

  • feat: remove BUILD from the exclusion list #607
    • BREAKING CHANGES
  • add nodejs16.x to runtime #605

[1.1.0] - 2022-10-26

Features

  • feat: support esm #613

Bugfixes

  • fix the bug in excludeGlobs in _fileCopy #609

[1.2.0] - 2022-12-21

Features

  • Add support for nodejs18x #616

[1.2.1] - 2023-11-28

Features

  • Add 'ap-southeast-3' to S3_LOCATION_POSSIBLE_VALUES #621

Bugfixes

  • Fix minimatch import #640
  • Fix typo #654

Minor changes

  • Improve testing
  • Update dependencies
  • Update README

[1.3.0] - 2024-01-04

Features

  • Support .mjs #701
  • Update lambda runtime list #702

Minor changes

  • Update dependencies