8052 Commits

Author SHA1 Message Date
Frank Schmid
c6038feb46
Merge pull request #4561 from hassankhan/update-aws-nodejs-typescript-template
Add type `APIGatewayEvent` to handler
2017-12-12 10:21:38 +01:00
Hassan Khan
b4b2803a4e Add type APIGatewayEvent to handler 2017-12-12 06:17:35 +00:00
Takahiro Horike
ce10e2c2c5
Merge pull request #4559 from serverless/fix-plugin-search-bug
Fix the plugin commands fail if listed plugins does not exist
2017-12-12 11:43:19 +09:00
horike37
355bfa01c0 fix the plugin commands bug 2017-12-12 05:05:00 +09:00
Takahiro Horike
1fb90f6dc1
Merge pull request #4537 from serverless/fix-resolve-signature-and-calls
Remove not used parameters from request() and add options hive
2017-12-12 01:47:04 +09:00
Takahiro Horike
24ce96da84
Merge pull request #4552 from jamestharpe/master
Installs @types/aws-lambda and uses types in handler, per issue #4546
2017-12-12 00:14:03 +09:00
Frank Schmid
e4a5a1d43c
Do not log warning if no options are given 2017-12-11 12:33:40 +01:00
Frank Schmid
81c896bc12
Removed reintroduction of stage+region in request. Added options.
Delete bucket was still using them

Hopefully all :)

Further test fixes.

.... worked too long yesterday

Fixed Variable tests

Remove not used parameters from request() and add options with warning
2017-12-11 12:33:35 +01:00
Frank Schmid
be68deefe1
Merge pull request #4144 from serverless/circular-vars
Added support for circular references in the variable system
2017-12-11 10:55:38 +01:00
James Tharpe
e16092cc4c Installs @types/aws-lambda and uses types in handler, per issue #4546 2017-12-10 19:48:34 -05:00
Takahiro Horike
12ec3df56f
Merge pull request #4531 from serverless/RegionalEndpoint
Add API Gateway endpoint configuration
2017-12-11 01:07:02 +09:00
Takahiro Horike
13cd6d8c47
Merge pull request #4547 from jamestharpe/master
Adds @types/node per #4546
2017-12-10 23:09:16 +09:00
James Tharpe
b9efc45ba1 Updates severless-webpack to ^4.0 per request from @HyperBrain 2017-12-10 08:02:05 -05:00
James Tharpe
b397858ef2 Adds @types/node per #4546 2017-12-09 16:25:06 -05:00
Alex DeBrie
a9e8080aec Fix CloudFormation for endpoint configuration 2017-12-09 12:43:19 +00:00
Frank Schmid
05260c0627
Merge pull request #4541 from erikerikson/add-coverage
add tests to get to 100% line coverage
2017-12-08 10:04:52 +01:00
Erik Erikson
df5dc28961 add tests to get to 100% line coverage
1. add tests that validate string value defaults in overrides.
2. add test of behavior when a javascript's export does not contain the attribute declared in the variable.
3. add tests of behavior when an SSM parameter is not found and the request to the SSM service fails.

add returns to tests that weren't returning their promises (and were thereby risking false positives.
2017-12-08 00:53:58 -08:00
Frank Schmid
2f33595b2a
Merge pull request #4534 from erikerikson/variables-cleanup
Variables cleanup
2017-12-07 21:55:22 +01:00
Erik Erikson
32e660d94c add tests to validate that nested variables inside overwrites are resolved 2017-12-07 12:49:09 -08:00
Takahiro Horike
cb822ad505
Merge pull request #4533 from jeffnoehren/master
Spotinst - updating variables and quick start docs
2017-12-07 15:24:02 +09:00
Erik Erikson
6a0784ce2f add now passing "populate once" tests, use populate over render 2017-12-06 16:48:54 -08:00
Erik Erikson
c8ebe25968 fix build by adding `'use strict'; to generated 'async.load.js' 2017-12-06 16:38:51 -08:00
Erik Erikson
d6abd689b6 fix migrated tests 2017-12-06 16:20:17 -08:00
Erik Erikson
8c1fe6dfcc Refactor, simplify, correct, add tests
Increase name consistency
Improve names to be-what-they-are
Reduce cyclomatic complexity
Include overrides population fix
Add variable methods documentation
Add more tests around significant variable patterns/risky cases
2017-12-06 15:59:07 -08:00
Frank Schmid
bce1264d7b
Fixed merge 2017-12-07 00:35:13 +01:00
Frank Schmid
8f70c13a9c
Merge branch 'master' into circular-vars 2017-12-07 00:22:55 +01:00
Frank Schmid
80dec1f5c5
Merge pull request #4521 from serverless/populate-default-objects
Populate objects if default syntax targets an object
2017-12-07 00:10:20 +01:00
jeffnoehren
4c15a5b2c7 Merge branch 'master' of github.com:jeffnoehren/serverless 2017-12-06 14:24:56 -08:00
Jeffrey Noehren
b81303956f
Merge pull request #8 from serverless/master
updating branch
2017-12-06 14:24:48 -08:00
jeffnoehren
517c543003 updating docs 2017-12-06 14:24:03 -08:00
Rafal Wilinski
1acf67d6a2
Merge pull request #4532 from liamgray/patch-2
Mention log limit in the documentation
2017-12-06 22:23:34 +01:00
liamgray
33d62a8a92
Mention log limit in the documentation
I initially thought this command would return *all* the logs within the date range. I can see why it doesn't do that, but I think mentioning the limit in the docs makes sense.

The number comes from [the AWS docs](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CloudWatchLogs.html#filterLogEvents-property)  about the function that's used for this command.
2017-12-06 13:10:35 -08:00
Alex DeBrie
e297a32860 Add docs on endpointType configuration 2017-12-06 18:39:48 +00:00
Alex DeBrie
9889081914 Add endpointType configuration 2017-12-06 18:28:12 +00:00
Frank Schmid
2e09606f13
Merge remote-tracking branch 'remotes/upstream/master' into circular-vars 2017-12-06 13:20:51 +01:00
Frank Schmid
8ff661835e
Merge branch 'master' into populate-default-objects 2017-12-06 12:34:50 +01:00
Frank Schmid
c53b0b2807
Merge pull request #4518 from serverless/cache-AWS-requests
Added request cache and queue to AWS provider and use it from variable resolution
2017-12-06 12:29:44 +01:00
Frank Schmid
bf7bbe0ad6
Merge pull request #4529 from erikerikson/circular-vars-test
Add significant variable usage corner cases
2017-12-06 11:05:25 +01:00
Erik Erikson
dea94bc310 Add significant variable usage corner cases 2017-12-05 14:31:00 -08:00
Takahiro Horike
abad61876e
Merge pull request #4525 from serverless/add-tip-resource-names
Added hint to docs on how to determine generated resource names easily
2017-12-05 21:02:57 +09:00
Frank Schmid
8cd604cd41
Wrap cached value into promise (addresses issue mentioned in #4509) 2017-12-05 12:39:48 +01:00
Frank Schmid
5526802a1b
Added request cache and queue to AWS provider
Make sure that requests are throttled. Use a queue for the requests.

Added new expected parameter to request() call in variables test

Added request cache tests
Check that request is indeed called 1000 times

Cache promises, not values

Use request cache for AWS variable requests

Use fromCallback instead of "new Promise" anti-pattern.

Added request cache to AWS provider
2017-12-05 12:39:39 +01:00
Frank Schmid
781c072ce8
Added hint to determine generated resource names easily 2017-12-05 10:57:35 +01:00
Frank Schmid
37340467ed
Populate objects if default syntax targets an object 2017-12-04 18:08:39 +01:00
Takahiro Horike
b7b31535f6
Merge pull request #4429 from chernando/master
Basic logging for python invoke local
2017-12-04 08:39:29 +09:00
Takahiro Horike
84aaf02a37
Merge pull request #4480 from vladgolubev/feature/more-lodash
Refactor generate-readme script to dedup common code
2017-12-04 08:12:48 +09:00
Takahiro Horike
e969928f3d
Merge pull request #4515 from shadowsyntax/patch-1
Updated getting-started.md
2017-12-04 07:12:36 +09:00
Frank Schmid
bc1571d4a2
Merge pull request #4499 from e-e-e/master
Add cache to Variables class.
2017-12-03 13:34:31 +01:00
Sherif O
dab36c594a
Updated getting-started.md
Made changes to show how to update an older version of serverless to a new stable version.
2017-12-03 13:28:04 +01:00
Frank Schmid
48638355a2
Merge pull request #4510 from serverless/fix-version-logical-id
Fix lambda version generation when only function config changes
2017-12-03 12:33:32 +01:00