Skip to content

Commit 612e92f

Browse files
authored
V4 API (#22)
* initial v4 updates * update documentation and clean up code * update readme * update documentation * refactor api gateway code for response reuse, update documentation * update readme * update documentation * update changelog with changes * clean up circle config
1 parent 8284d0b commit 612e92f

28 files changed

+2598
-1173
lines changed

.circleci/config.yml

Lines changed: 14 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,24 @@
1-
anchors:
2-
container-config: &container-config
3-
docker:
4-
- image: circleci/node:lts
5-
environment:
6-
TERM: dumb
1+
version: 2.1
72

8-
load-cache: &load-cache
9-
restore_cache:
10-
key: dependency-cache-{{ checksum "package-lock.json" }}
3+
orbs:
4+
node: circleci/[email protected]
115

12-
## Circle CI configuration, see https://circleci.com/docs/2.0/configuration-reference/
13-
version: 2
146
jobs:
15-
install:
16-
<<: *container-config
17-
steps:
18-
- checkout
19-
- *load-cache
20-
- run:
21-
name: Install dependencies
22-
command: npm ci
23-
- save_cache:
24-
key: dependency-cache-{{ checksum "package-lock.json" }}
25-
paths:
26-
- node_modules
27-
28-
test:
29-
<<: *container-config
30-
steps:
31-
- checkout
32-
- *load-cache
33-
- run:
34-
name: Test
35-
command: npm test
36-
- store_artifacts:
37-
path: coverage
38-
- run:
39-
name: Send coverage to Codecov
40-
command: npm run codecov
41-
427
publish:
43-
<<: *container-config
8+
executor:
9+
name: node/default
10+
tag: lts
4411
steps:
4512
- checkout
46-
- *load-cache
47-
- run:
48-
name: Set npm credentials
49-
command: echo "//registry.npmjs.org/:_authToken=$NPM_PUBLISH_TOKEN" >> ~/.npmrc
13+
- node/install-packages
5014
- run:
5115
name: Publish on npm
5216
command: npm run publish-please
5317

5418
deploy-example-app:
55-
<<: *container-config
19+
executor:
20+
name: node/default
21+
tag: lts
5622
steps:
5723
- checkout
5824
- run:
@@ -64,13 +30,8 @@ workflows:
6430

6531
test-and-publish:
6632
jobs:
67-
- install:
68-
filters:
69-
tags:
70-
only: /.*/
71-
- test:
72-
requires:
73-
- install
33+
- node/test:
34+
version: lts
7435
filters:
7536
tags:
7637
only: /.*/
@@ -83,17 +44,15 @@ workflows:
8344
# only: /.*/
8445
- publish:
8546
context: manwaring-npm
86-
requires:
87-
- test
47+
requires: [node/test]
8848
filters:
8949
branches:
9050
ignore: /.*/
9151
tags:
9252
only: /v.*/
9353
- deploy-example-app:
9454
context: aws-manwaring
95-
requires:
96-
- publish
55+
requires: [publish]
9756
filters:
9857
branches:
9958
ignore: /.*/

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
66

7+
## [4.0.0]&nbsp;&nbsp;(2020-08-11)
8+
9+
### Changed
10+
11+
- Updated the API Gateway and HTTP API response function signatures for easier overriding of defaults
12+
713
## [3.7.0]&nbsp;&nbsp;(2020-08-03)
814

915
### Added
@@ -253,6 +259,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/),
253259
- Update older libraries
254260
- Now publish from Git tags instead of master pushes
255261

262+
[4.0.0]: https://github.com/manwaring/lambda-wrapper/compare/v3.7.0...v4.0.0
256263
[3.7.0]: https://github.com/manwaring/lambda-wrapper/compare/v3.6.3...v3.7.0
257264
[3.6.3]: https://github.com/manwaring/lambda-wrapper/compare/v3.6.2...v3.6.3
258265
[3.6.2]: https://github.com/manwaring/lambda-wrapper/compare/v3.6.1...v3.6.2

0 commit comments

Comments
 (0)