You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: require Node.js 22 and clean up legacy documentation
Updated minimum Node.js version to 22 to align with modern JavaScript features and improved performance. Removed outdated version 3.x documentation and Lambda Layer references as the package now exclusively uses Docker images for better reliability.
- Require Node.js 22 or higher in engines field
- Remove legacy Lambda Layer documentation
- Update all package manager references to pnpm
- Simplify README by removing deprecated sections
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: readme.md
+36-44Lines changed: 36 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,15 @@
5
5
## Install
6
6
7
7
```
8
-
$ yarn add @shelf/aws-lambda-libreoffice
8
+
$ pnpm add @shelf/aws-lambda-libreoffice
9
9
```
10
10
11
11
## Features
12
12
13
+
-**ESM Module Support**: Native ESM package with full TypeScript support
13
14
- Includes CJK and X11 fonts bundled in the [base Docker image](https://github.com/shelfio/libreoffice-lambda-base-image)!
14
-
- Relies on the latest LibreOffice 7.4 version which is not stripped down from features as a previous layer-based version of this package
15
-
- Requires node.js 16x runtime (x86_64)
15
+
- Relies on the latest LibreOffice 7.6 version which is not stripped down from features
16
+
- Requires Node.js 22 or higher (x86_64)
16
17
17
18
## Requirements
18
19
@@ -24,11 +25,11 @@ See the example at [libreoffice-lambda-base-image](https://github.com/shelfio/li
24
25
Example:
25
26
26
27
```Dockerfile
27
-
FROM public.ecr.aws/shelf/lambda-libreoffice-base:7.6-node18-x86_64
28
+
FROM public.ecr.aws/shelf/lambda-libreoffice-base:7.6-node20-x86_64
28
29
29
30
COPY ./ ${LAMBDA_TASK_ROOT}/
30
31
31
-
RUNyarn install
32
+
RUNpnpm install
32
33
33
34
CMD [ "handler.handler" ]
34
35
```
@@ -40,14 +41,16 @@ CMD [ "handler.handler" ]
40
41
- For larger files support, you can [extend Lambda's /tmp space](https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/) using the `ephemeral-storage` parameter
41
42
- Set environment variable `HOME` to `/tmp`
42
43
43
-
## Usage (For version 4.x; based on a Lambda Docker Image)
44
+
## Usage (ESM)
44
45
45
-
Given you have packaged your Lambda function as a Docker image, you can now use this package:
46
+
This package is now a native ESM module. If you're using CommonJS, you'll need to use dynamic imports or update your project to use ESM.
0 commit comments