1 | # Change Log
|
2 | All notable changes to this project will be documented in this file.
|
3 | This project adheres to [Semantic Versioning](http://semver.org/).
|
4 |
|
5 | ## [Unreleased]
|
6 |
|
7 | ## [0.8.0] - 2016-04-18
|
8 | ### Added
|
9 | - CHANGELOG to ["make it easier for users and contributors to see precisely what notable changes have been made between each release"](http://keepachangelog.com/). Linked to from README
|
10 | - LICENSE to be more explicit about what was defined in `package.json`. Linked to from README
|
11 | - It is OK to not set default value for AWS Credentials so AWS can use Roles and internally set AWS credentials
|
12 | - Added `context.json` so it can easily be overwritten
|
13 | - Allow using a custom (and passed through) `event.json` file
|
14 | - Added `package` command for easy zip creation and inspection
|
15 | - Added `VpcConfig` support, see [this PR](https://github.com/motdotla/node-lambda/pull/64) for more information
|
16 | - Updated the AWS API version used to `2015-03-31`
|
17 | - Make sure we throw errors on unrecoverable failures so other programs can listen on that
|
18 | - Added support for nodejs4.3 runtime ([introducted to AWS](https://aws.amazon.com/blogs/compute/node-js-4-3-2-runtime-now-available-on-lambda/) Apr 7 2016)
|
19 | - 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
|
20 | - Added `-x` / `--excludeGlobs` to allow custom file exclusion
|
21 | - Excluding `*.swp`, `deploy.env` by default now
|
22 |
|
23 | ## [0.8.1] - 2016-04-22
|
24 | ### Bugfixes
|
25 | - Resolved a problem with excludes not being set [#91](https://github.com/motdotla/node-lambda/pull/91)
|
26 | - Resolved a problem with the package command and a custom config file [#90](https://github.com/motdotla/node-lambda/pull/90)
|
27 | - Allow `use strict` [#86](https://github.com/motdotla/node-lambda/pull/86)
|
28 | - Updated the `env.example` file to set the default (and by AWS recommended) runtime to `nodejs4.3` [#84](https://github.com/motdotla/node-lambda/pull/84)
|
29 |
|
30 | ## [0.8.2] - 2016-05-12
|
31 | ### Bugfixes
|
32 | - Verify env vars before creating sample files [#99](https://github.com/motdotla/node-lambda/pull/99)
|
33 | - Fix `AWS_PUBLIS` typo [#102](https://github.com/motdotla/node-lambda/pull/102)
|
34 | ### Added
|
35 | - Allow checking on `process.env.environment` to context switch [#95](https://github.com/motdotla/node-lambda/pull/95)
|
36 |
|
37 | ## [0.8.3] - 2016-05-12
|
38 | ### Bugfixes
|
39 | - Added `EXCLUDE_GLOBS` to `package`, so your local ZIPs are the same as the ZIPs uploaded to AWS Lambda [#104](https://github.com/motdotla/node-lambda/pull/104)
|
40 |
|
41 | ## [0.8.4] - 2016-05-20
|
42 | ### Bugfixes
|
43 | - Added extra quotes around the parsed environment [#106](https://github.com/motdotla/node-lambda/pull/106)
|
44 |
|
45 | ## [0.8.5] - 2016-05-27
|
46 | ### Adjustment
|
47 | - Extremely verbose NPM installs could crash node-lambda's buffer [#108](https://github.com/motdotla/node-lambda/pull/108)
|
48 |
|
49 | ## [0.8.6] - 2016-06-28
|
50 | ### Feature
|
51 | - Added `prebuiltDirectory` flag for users that want to use an already generated directory [#116](https://github.com/motdotla/node-lambda/pull/116)
|
52 |
|
53 | ### Bugfixes
|
54 | - README was lying about how to use `excludeGlobs` [#111](https://github.com/motdotla/node-lambda/pull/111)
|
55 |
|
56 | ## [0.8.7] - 2016-08-16
|
57 | ### Features
|
58 | - Added `-L` to rsync to allow copying of symlinks [#126](https://github.com/motdotla/node-lambda/pull/126)
|
59 | - Added travisci support for node 6 [#129](https://github.com/motdotla/node-lambda/pull/129)
|
60 | - Support to use package.json description for AWS description [#133](https://github.com/motdotla/node-lambda/pull/133)
|
61 | - Inject environment variables via config file for the `run` command [#136](https://github.com/motdotla/node-lambda/pull/136)
|
62 |
|
63 | ### Bugfixes
|
64 | - rsync should not exclude node_modules when using --prebuiltDirectory. [#122](https://github.com/motdotla/node-lambda/pull/122)
|
65 | - Set environment variables _before_ requiring module [#137](https://github.com/motdotla/node-lambda/pull/137)
|
66 | - Typo fix publish when updating existing function [#138](https://github.com/motdotla/node-lambda/pull/138)
|
67 |
|
68 | ## [0.8.8] - 2016-09-02
|
69 | ### Features
|
70 | - Support AWS_PROFILE and de-duped a few CLI options [#144](https://github.com/motdotla/node-lambda/pull/144)
|
71 | - `wrench` was deprecated and has been replaced by `fs-extra` [#146](https://github.com/motdotla/node-lambda/pull/146)
|
72 |
|
73 | ### Bugs
|
74 | - Displaying `node-lambda -h` returned an error [#127](https://github.com/motdotla/node-lambda/issues/127)
|
75 | - NPM overwrites `$TMPDIR` [#134](https://github.com/motdotla/node-lambda/issues/134)
|
76 |
|
77 | ## [0.8.9] - 2016-09-06
|
78 | ### Bugs
|
79 | - The above mentioned fix for issue [#127](https://github.com/motdotla/node-lambda/issues/127) exposed a commander bug, reverted the change
|
80 | - Do not exclude package.json, even when specified in excludeGlobs [#141](https://github.com/motdotla/node-lambda/pull/141)
|
81 |
|
82 | ## [0.8.10] - 2016-09-20
|
83 | ### Features
|
84 | - We are now passing the environment string to the post install script [#154](https://github.com/motdotla/node-lambda/pull/154)
|
85 |
|
86 | ## [0.8.11] - 2016-10-28
|
87 | ### Bugfixes
|
88 | - Restore lambda version functionality [#156](https://github.com/motdotla/node-lambda/issues/156)
|
89 | - Namespaced packages fail to deploy [#157](https://github.com/motdotla/node-lambda/issues/157)
|
90 |
|
91 | ## [0.8.12] - 2017-02-10
|
92 | ### Bugfixes
|
93 | - Using path.join instead of hardcoded slashes [#173](https://github.com/motdotla/node-lambda/pull/173)
|
94 | - Drop node-uuid from package.json [#174](https://github.com/motdotla/node-lambda/pull/174)
|
95 | - Enforce max for timeout and update README docs [#180](https://github.com/motdotla/node-lambda/pull/180)
|
96 | - Fill default VpcConfig to prevent errors [#183](https://github.com/motdotla/node-lambda/pull/183)
|
97 |
|
98 | ### Features
|
99 | - Added getRemainingTimeInMillis() to the context when running locally. [#179](https://github.com/motdotla/node-lambda/pull/179)
|
100 | - Adding support for lambda environment variables [#181](https://github.com/motdotla/node-lambda/pull/181)
|
101 |
|
102 | ## [0.8.13] - 2017-02-12
|
103 | ### Bugfixes
|
104 | - Fixed wrong runtime call [#188](https://github.com/motdotla/node-lambda/pull/188)
|
105 | - Docker support [#186](https://github.com/motdotla/node-lambda/pull/186)
|
106 | - Make default excludes apply to root only [#185](https://github.com/motdotla/node-lambda/pull/185)
|
107 |
|
108 |
|
109 | ## [0.8.14] - 2017-03-27
|
110 | ### Features
|
111 | - Event source mapping support [#189](https://github.com/motdotla/node-lambda/pull/189)
|
112 | - Fix version of Node.js supported by AWS Lambda [#197](https://github.com/motdotla/node-lambda/pull/197)
|
113 | - How about it if you have the option to specify the zip file? [#199](https://github.com/motdotla/node-lambda/pull/199)
|
114 | - Add 'Runtime' to the params of lambda.updateFunctionConfiguration [#200](https://github.com/motdotla/node-lambda/pull/200)
|
115 |
|
116 | ### Bugfixes
|
117 | - Fix unit test failure at travis [#198](https://github.com/motdotla/node-lambda/pull/198)
|
118 |
|
119 | ## [0.8.15] - 2017-03-28
|
120 | ### Features
|
121 | - Added DeadLetterConfig parameter [#206](https://github.com/motdotla/node-lambda/pull/206)
|
122 |
|
123 | ### Bugfixes
|
124 | - Fix default value of EVENT_SOURCE_FILE set '' [#205](https://github.com/motdotla/node-lambda/pull/205)
|
125 | - Removed event_sources.json [#204](https://github.com/motdotla/node-lambda/pull/204)
|
126 | - Add -S, --eventSourceFile option. [#203](https://github.com/motdotla/node-lambda/pull/203)
|
127 |
|
128 | ## [0.9.0] - 2017-04-13
|
129 | ### Features
|
130 | - Add tests for `_readArchive` [#213](https://github.com/motdotla/node-lambda/pull/213)
|
131 | - Add tests for event_sources.json [#214](https://github.com/motdotla/node-lambda/pull/214)
|
132 | - Add tests for DeadLetterConfig [#215](https://github.com/motdotla/node-lambda/pull/215)
|
133 | - Add `_readArchive` tests called in `_archive` [#216](https://github.com/motdotla/node-lambda/pull/216)
|
134 | - modify badge from png to svg [#227](https://github.com/motdotla/node-lambda/pull/227)
|
135 | - ScheduleEvents [#228](https://github.com/motdotla/node-lambda/pull/228)
|
136 |
|
137 | ### Bugfixes
|
138 | - Bugfix InvalidParameterValueException is given when createFunction [#209](https://github.com/motdotla/node-lambda/pull/209)
|
139 | - Clean unnecessary `else` [#217](https://github.com/motdotla/node-lambda/pull/217)
|
140 | - Refactor `_eventSourceList` [#218](https://github.com/motdotla/node-lambda/pull/218)
|
141 | - Clean deploy function [#220](https://github.com/motdotla/node-lambda/pull/220)
|
142 | - Fix default value of params.Environment.Variables is null [#221](https://github.com/motdotla/node-lambda/pull/221)
|
143 | - Fix to use authenticated `aws` object in main.js [#225](https://github.com/motdotla/node-lambda/pull/225)
|
144 | - Changed the format of `event_sources.json` [#226](https://github.com/motdotla/node-lambda/pull/226)
|
145 |
|
146 | ## [0.10.0] - 2017-05-10
|
147 | ### Features
|
148 | - Fix use fs object [#236](https://github.com/motdotla/node-lambda/pull/236)
|
149 | - Upgrade lodash [#237](https://github.com/motdotla/node-lambda/pull/237)
|
150 | - Add file copy function without rsync command [#238](https://github.com/motdotla/node-lambda/pull/238)
|
151 | - Add node.js 7 to `travis.yml` [#239](https://github.com/motdotla/node-lambda/pull/239)
|
152 | - Set http timeout to 30 mins. [#240](https://github.com/motdotla/node-lambda/pull/240)
|
153 | - Supported `TracingConfig` [#243](https://github.com/motdotla/node-lambda/pull/243)
|
154 | - Fix to using `path` object [#249](https://github.com/motdotla/node-lambda/pull/249)
|
155 | - Allow use of docker container for npm install [#251](https://github.com/motdotla/node-lambda/pull/251)
|
156 | - Bugfix `_filecopy` exclude [#253](https://github.com/motdotla/node-lambda/pull/253)
|
157 | - Fix to replace `_rsync` with `_fileCopy` [#254](https://github.com/motdotla/node-lambda/pull/254)
|
158 | - Custom ScheduleEvent rule description [#257](https://github.com/motdotla/node-lambda/pull/257)
|
159 | - Add test `functionName` pattern [#263](https://github.com/motdotla/node-lambda/pull/263)
|
160 | - Added `- cwd` option to `npm install` command [#265](https://github.com/motdotla/node-lambda/pull/265)
|
161 |
|
162 | ### Bugfixes
|
163 | - Add an overview of `event_sources.json` [#230](https://github.com/motdotla/node-lambda/pull/230)
|
164 | - Cleanup of `main.js run` [#231](https://github.com/motdotla/node-lambda/pull/231)
|
165 | - Fix results outputs [#233](https://github.com/motdotla/node-lambda/pull/233)
|
166 | - Bugfix for backward compatible objects [#234](https://github.com/motdotla/node-lambda/pull/234)
|
167 | - Fix after process of tests [#235](https://github.com/motdotla/node-lambda/pull/235)
|
168 | - Fix to be the same specification as `--exclude` of rsync command (about function which is an alternative to rsync command) [#244](https://github.com/motdotla/node-lambda/pull/244)
|
169 | - Fix to avoid `commander` bug [#247](https://github.com/motdotla/node-lambda/pull/247)
|
170 | - Fix `fs.exists` deprecated [#250](https://github.com/motdotla/node-lambda/pull/250)
|
171 | - Fix using `assert.include` [#252](https://github.com/motdotla/node-lambda/pull/252)
|
172 | - Fix not doing anything if `event_sources.json` is not specified [#256](https://github.com/motdotla/node-lambda/pull/256)
|
173 | - Fix using `path` [#258](https://github.com/motdotla/node-lambda/pull/258)
|
174 | - Fix tests for windows [#259](https://github.com/motdotla/node-lambda/pull/259)
|
175 | - Add Command Prompt to README [#266](https://github.com/motdotla/node-lambda/pull/266)
|
176 | - Fix indexjs current style [#268](https://github.com/motdotla/node-lambda/pull/268)
|
177 | - Fixed typo - Labmda => Lambda [#269](https://github.com/motdotla/node-lambda/pull/269)
|
178 | - Fix not to create `.env` sample file with `_buildAndArchive` [#270](https://github.com/motdotla/node-lambda/pull/270)
|
179 |
|
180 | ## [0.11.0] - 2017-06-16
|
181 | ### Features
|
182 | - Fix to include only `package.json` in the source directory [#274](https://github.com/motdotla/node-lambda/pull/274)
|
183 | - Fix os: deprecate 'tmpDir()' in favour of 'tmpdir()' https://github.c… [#275](https://github.com/motdotla/node-lambda/pull/275)
|
184 | - Upgraded `aws-sdk`[#277](https://github.com/motdotla/node-lambda/pull/277)
|
185 | - Unified in Camel Case & Remove unnecessary arguments [#278](https://github.com/motdotla/node-lambda/pull/278)
|
186 | - Remove function `_nativeZip` [#279](https://github.com/motdotla/node-lambda/pull/279)
|
187 | - Add known issue for duplicate trigger to ScheduleEvents section [#280](https://github.com/motdotla/node-lambda/pull/280)
|
188 | - Feature simple callbackWaitsForEmptyEventLoop support [#284](https://github.com/motdotla/node-lambda/pull/284)
|
189 | - Fix to use test handler by stopping replace processing of existing index.js [#285](https://github.com/motdotla/node-lambda/pull/285)
|
190 | - Fix to use '===' instead of '==' (Including similar modifications) [#287](https://github.com/motdotla/node-lambda/pull/287)
|
191 | - Replaced `rimraf` with `fs.remove` [#291](https://github.com/motdotla/node-lambda/pull/291)
|
192 | - Refactored: JavaScript Standard Style [#292](https://github.com/motdotla/node-lambda/pull/292)
|
193 | - Refactored and add test [#294](https://github.com/motdotla/node-lambda/pull/294)
|
194 | - Refactored, improved error handling [#295](https://github.com/motdotla/node-lambda/pull/295)
|
195 | - Remove semicolon (Automatic update with `standard --fix`) [#298](https://github.com/motdotla/node-lambda/pull/298)
|
196 | - Adopted "JavaScript Standard Style" as coding style [#299](https://github.com/motdotla/node-lambda/pull/299)
|
197 | - Replace async.js in `_updateScheduleEvents` with Promise [#302](https://github.com/motdotla/node-lambda/pull/302)
|
198 | - Modify from `exec` to `execFile` with `_npmInstall` [#303](https://github.com/motdotla/node-lambda/pull/303)
|
199 | - Automated NPM deploys (on tags) [#304](https://github.com/motdotla/node-lambda/pull/304)
|
200 | - Add package-lock.json [#305](https://github.com/motdotla/node-lambda/pull/305)
|
201 | - Added `_updateEventSources` test and refactoring [#308](https://github.com/motdotla/node-lambda/pull/308)
|
202 | - Added test of function to upload Zip to Lambda [#309](https://github.com/motdotla/node-lambda/pull/309)
|
203 | - Fix timing to check Runtime [#310](https://github.com/motdotla/node-lambda/pull/310)
|
204 | - Feature event accept array [#311](https://github.com/motdotla/node-lambda/pull/311)
|
205 | - Modify to use isArray [#312](https://github.com/motdotla/node-lambda/pull/312)
|
206 | - Modify execution of multiple events to synchronous processing [#313](https://github.com/motdotla/node-lambda/pull/313)
|
207 | - Fix to make `bin/node-lambda` conform to JavaScript Standard Style [#315](https://github.com/motdotla/node-lambda/pull/315)
|
208 | - Replace asyncjs of `_updateEventSources` with Promise [#316](https://github.com/motdotla/node-lambda/pull/316)
|
209 | - Replace async.js of deploy with Promise [#319](https://github.com/motdotla/node-lambda/pull/319)
|
210 | - Modified the function used in `deploy` to return Promise [#320](https://github.com/motdotla/node-lambda/pull/320)
|
211 | - Modify main process of deploy to another function [#323](https://github.com/motdotla/node-lambda/pull/323)
|
212 | - Fix to use Proxy [#324](https://github.com/motdotla/node-lambda/pull/324)
|
213 |
|
214 | ### Bugfixes
|
215 | - Remove the cleaning process after the test [#281](https://github.com/motdotla/node-lambda/pull/281)
|
216 | - Fix run handler callback [#282](https://github.com/motdotla/node-lambda/pull/282)
|
217 | - Remove 'os' [#286](https://github.com/motdotla/node-lambda/pull/286)
|
218 | - Fix not specifying file name with test in package.json [#289](https://github.com/motdotla/node-lambda/pull/289)
|
219 | - Update phase as it is necessary to separate release phase (.travis.yml) [#306](https://github.com/motdotla/node-lambda/pull/306)
|
220 | - Refactoring and unnecessary package removal [#307](https://github.com/motdotla/node-lambda/pull/307)
|
221 | - Modify `var` of global variable to `const` [#317](https://github.com/motdotla/node-lambda/pull/317)
|
222 | - Remove Hoek [#318](https://github.com/motdotla/node-lambda/pull/318)
|
223 |
|
224 | ## [0.11.1] - 2017-07-04
|
225 | ### Features
|
226 | - Improve deploy process with Promise [#327](https://github.com/motdotla/node-lambda/pull/327)
|
227 | - Refactoring `_cleanDirectory` [#330](https://github.com/motdotla/node-lambda/pull/330)
|
228 | - Refactoring `_npmInstall` [#331](https://github.com/motdotla/node-lambda/pull/331)
|
229 | - Replace callback with Promise [#332](https://github.com/motdotla/node-lambda/pull/332)
|
230 | - Upgrade commander.js [#334](https://github.com/motdotla/node-lambda/pull/332)
|
231 | - Refactoring `_fileCopy` [#336](https://github.com/motdotla/node-lambda/pull/336)
|
232 | - Add simple context method [#337](https://github.com/motdotla/node-lambda/pull/337)
|
233 | - Refactoring `_archive` [#338](https://github.com/motdotla/node-lambda/pull/338)
|
234 | - Refactoring `_listEventSourceMappings` [#339](https://github.com/motdotla/node-lambda/pull/339)
|
235 | - Replace `var` with `const` [#341](https://github.com/motdotla/node-lambda/pull/341)
|
236 | - Replace with arrow function [#342](https://github.com/motdotla/node-lambda/pull/342)
|
237 |
|
238 | ### Bugfixes
|
239 | - Modify file used for test [#326](https://github.com/motdotla/node-lambda/pull/326)
|
240 | - Update package-lock.json [#328](https://github.com/motdotla/node-lambda/pull/328)
|
241 | - Remove `_rsync` [#329](https://github.com/motdotla/node-lambda/pull/329)
|
242 | - Bugfixed that mode of file changes when zip is created [#335](https://github.com/motdotla/node-lambda/pull/335)
|
243 |
|
244 | ## [0.11.2] - 2017-07-05
|
245 | ### Features
|
246 | - Fix to deprecated the `configFile` option in the `pacakage` command [#344](https://github.com/motdotla/node-lambda/pull/344)
|
247 |
|
248 | ### Bugfixes
|
249 | - Fix to set boolean in params.Publish [#346](https://github.com/motdotla/node-lambda/pull/346)
|
250 |
|
251 | ## [0.11.3] - 2017-07-07
|
252 | ### Features
|
253 | - Fix symlink at zip [#348](https://github.com/motdotla/node-lambda/pull/348)
|
254 |
|
255 | ## [0.11.4] - 2017-09-22
|
256 | ### Features
|
257 | - Remove configFile Option of package command in README [#350](https://github.com/motdotla/node-lambda/pull/350)
|
258 | - Remove configFile option in package command [#351](https://github.com/motdotla/node-lambda/pull/351)
|
259 | - Uprade chai [#352](https://github.com/motdotla/node-lambda/pull/352)
|
260 | - Add the ability to set KMSKeyArn to a Lambda function [#356](https://github.com/motdotla/node-lambda/pull/356)
|
261 | - Add appveyor.yml[#357](https://github.com/motdotla/node-lambda/pull/357)
|
262 | - Add function for setting CloudWatchLogs RetentionPolicy [#359](https://github.com/motdotla/node-lambda/pull/359)
|
263 | - Switch ScheduleEvents to class syntax [#360](https://github.com/motdotla/node-lambda/pull/360)
|
264 | - Add `_setLogsRetentionPolicy` to `lib/main.js` [#361](https://github.com/motdotla/node-lambda/pull/361)
|
265 | - Change `lib/main.js` to class syntax [#362](https://github.com/motdotla/node-lambda/pull/362)
|
266 | - Use stable node, at npm release. [#370](https://github.com/motdotla/node-lambda/pull/370)
|
267 | - Add option to disable run multiple [#372](https://github.com/motdotla/node-lambda/pull/372)
|
268 |
|
269 | ### Bugfixes
|
270 | - Update repository url [#358](https://github.com/motdotla/node-lambda/pull/358)
|
271 | - Fix deploy command exit code [#366](https://github.com/motdotla/node-lambda/pull/366)
|
272 | - Add invalidation of log output to make the test result easier to read [#367](https://github.com/motdotla/node-lambda/pull/367)
|
273 | - Fix commandline version option [#368](https://github.com/motdotla/node-lambda/pull/368)
|
274 | - Change: Ensure dotenv.load called before AWS load [#369](https://github.com/motdotla/node-lambda/pull/369)
|
275 | - Update README with latest output for 'node-lambda run -h' [#373](https://github.com/motdotla/node-lambda/pull/373)
|
276 | - Update Usage of README [#374](https://github.com/motdotla/node-lambda/pull/374)
|