hono-adapter-aws-lambda 0.2.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/package.json +17 -13
package/README.md
CHANGED
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
**hono-adapter-aws-lambda** is a fork of [hono](https://hono.dev/)'s `aws-lambda` adapter, experimenting and adding some extra features
|
|
10
10
|
|
|
11
|
-
## Features & Roadmap
|
|
12
|
-
- [x]
|
|
11
|
+
## Features, Changes & Roadmap
|
|
12
|
+
- [x] Codebase is refactored quite a bit.
|
|
13
|
+
- [x] Add routing support for trigger events.
|
|
13
14
|
- > I.e, support for S3, SQS, etc. triggers, which would also support a simpler cross-function call interface.
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
- Multiple routes on the same eventSource support.
|
|
16
|
+
- Uses a factory pattern, the internal trigger context (middlewares, env bindings) is decoupled from the main Hono app.
|
|
17
|
+
- See [#10](https://github.com/NamesMT/hono-adapter-aws-lambda/issues/10) for more information.
|
|
18
|
+
- [x] Support returning a Lambda response result directly, useful for returning the response of another invoked function.
|
|
18
19
|
|
|
19
20
|
## Usage
|
|
20
21
|
### Install package:
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono-adapter-aws-lambda",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"packageManager": "pnpm@9.6.0",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "NamesMT <dangquoctrung123@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -52,26 +52,30 @@
|
|
|
52
52
|
"prepare": "simple-git-hooks",
|
|
53
53
|
"prepublishOnly": "pnpm run build"
|
|
54
54
|
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"hono": ">=4.5.1"
|
|
57
|
+
},
|
|
58
|
+
"peerDependenciesMeta": {
|
|
59
|
+
"hono": {
|
|
60
|
+
"optional": false
|
|
61
|
+
}
|
|
62
|
+
},
|
|
55
63
|
"dependencies": {
|
|
56
|
-
"@namesmt/utils-lambda": "^0.0
|
|
57
|
-
"@types/aws-lambda": "^8.10.
|
|
58
|
-
"consola": "^3.2.3",
|
|
59
|
-
"hono": "^4.5.0",
|
|
60
|
-
"std-env": "^3.7.0"
|
|
64
|
+
"@namesmt/utils-lambda": "^0.1.0",
|
|
65
|
+
"@types/aws-lambda": "^8.10.142"
|
|
61
66
|
},
|
|
62
67
|
"devDependencies": {
|
|
63
|
-
"@antfu/eslint-config": "^2.23.
|
|
64
|
-
"@types/node": "^20.14.
|
|
65
|
-
"@
|
|
66
|
-
"@vitest/coverage-v8": "^2.0.3",
|
|
68
|
+
"@antfu/eslint-config": "^2.23.2",
|
|
69
|
+
"@types/node": "^20.14.12",
|
|
70
|
+
"@vitest/coverage-v8": "^2.0.4",
|
|
67
71
|
"eslint": "^9.7.0",
|
|
68
72
|
"klona": "^2.0.6",
|
|
69
73
|
"lint-staged": "^15.2.7",
|
|
70
74
|
"simple-git-hooks": "^2.11.1",
|
|
71
75
|
"tsx": "^4.16.2",
|
|
72
|
-
"typescript": "^5.5.
|
|
76
|
+
"typescript": "^5.5.4",
|
|
73
77
|
"unbuild": "^2.0.0",
|
|
74
|
-
"vitest": "^2.0.
|
|
78
|
+
"vitest": "^2.0.4"
|
|
75
79
|
},
|
|
76
80
|
"pnpm": {
|
|
77
81
|
"overrides": {
|