lambder 4.6.1 → 4.6.2
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 +18 -0
- package/package.json +22 -7
package/Readme.md
CHANGED
|
@@ -74,6 +74,24 @@ npm install lambder zod
|
|
|
74
74
|
yarn add lambder zod
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
`zod` and the AWS SDK clients are optional peer dependencies, so installing
|
|
78
|
+
lambder never drags them into your tree. Add whatever the code you actually
|
|
79
|
+
import needs:
|
|
80
|
+
|
|
81
|
+
| What you import | What to install alongside |
|
|
82
|
+
|---|---|
|
|
83
|
+
| `lambder/client` (browser, shared isomorphic code) | `zod` |
|
|
84
|
+
| `lambder` on AWS Lambda (`nodejs18.x` and later) | `zod`. The runtime already provides the AWS SDK v3, so mark the SDK packages as dev dependencies and keep them out of the deployment package |
|
|
85
|
+
| `lambder` anywhere else (a long-running server, a container, local tests) | `zod`, `@aws-sdk/client-dynamodb`, `@aws-sdk/lib-dynamodb` |
|
|
86
|
+
| `LambderS3FileSource` | `@aws-sdk/client-s3`, loaded on first read |
|
|
87
|
+
| `lambder/testing` | `msw` |
|
|
88
|
+
|
|
89
|
+
The SDK and its `@smithy` tree are roughly 21MB installed, which is why they are
|
|
90
|
+
peers rather than dependencies: a frontend importing only `lambder/client` has
|
|
91
|
+
no use for any of it, and a Lambda deployment package should not ship a second
|
|
92
|
+
copy of what the runtime already loads. The runtime pins its own SDK version,
|
|
93
|
+
so if you need a specific one, install it and bundle it yourself.
|
|
94
|
+
|
|
77
95
|
## Package Entry Points
|
|
78
96
|
|
|
79
97
|
The package ships three entry points; pick by where the code runs:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lambder",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -51,26 +51,40 @@
|
|
|
51
51
|
"url": "https://github.com/nesovera/lambder.git"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@aws-sdk/client-dynamodb": "^3.574.0",
|
|
55
|
-
"@aws-sdk/lib-dynamodb": "^3.574.0",
|
|
56
54
|
"cookie": "^1.0.2",
|
|
57
55
|
"js-cookie": "^3.0.5",
|
|
58
56
|
"lru-cache": "^11.5.2",
|
|
59
57
|
"mime-types": "^2.1.35",
|
|
60
|
-
"path-to-regexp": "^6.2.1"
|
|
61
|
-
"zod": "^4.1.12"
|
|
58
|
+
"path-to-regexp": "^6.2.1"
|
|
62
59
|
},
|
|
63
60
|
"peerDependencies": {
|
|
61
|
+
"@aws-sdk/client-dynamodb": "^3.574.0",
|
|
64
62
|
"@aws-sdk/client-s3": "^3.574.0",
|
|
65
|
-
"
|
|
63
|
+
"@aws-sdk/lib-dynamodb": "^3.574.0",
|
|
64
|
+
"msw": "^2.0.0",
|
|
65
|
+
"zod": "^4.1.12"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
|
+
"@aws-sdk/client-dynamodb": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"@aws-sdk/client-s3": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"@aws-sdk/lib-dynamodb": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
68
77
|
"msw": {
|
|
69
78
|
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"zod": {
|
|
81
|
+
"optional": true
|
|
70
82
|
}
|
|
71
83
|
},
|
|
72
84
|
"devDependencies": {
|
|
85
|
+
"@aws-sdk/client-dynamodb": "^3.913.0",
|
|
73
86
|
"@aws-sdk/client-s3": "^3.1127.0",
|
|
87
|
+
"@aws-sdk/lib-dynamodb": "^3.913.0",
|
|
74
88
|
"@types/aws-lambda": "^8.10.136",
|
|
75
89
|
"@types/cookie": "^0.6.0",
|
|
76
90
|
"@types/js-cookie": "^3.0.6",
|
|
@@ -82,6 +96,7 @@
|
|
|
82
96
|
"aws-sdk-client-mock": "^4.1.0",
|
|
83
97
|
"eslint": "^8.57.0",
|
|
84
98
|
"typescript": "^5.9.3",
|
|
85
|
-
"vitest": "^3.2.4"
|
|
99
|
+
"vitest": "^3.2.4",
|
|
100
|
+
"zod": "^4.1.12"
|
|
86
101
|
}
|
|
87
102
|
}
|