Skip to content

Commit

Permalink
Merge pull request #1045 from wallabag/fix/node-22
Browse files Browse the repository at this point in the history
Jump to Node 22
  • Loading branch information
j0k3r authored Jan 8, 2025
2 parents 803cdb2 + 38c4a29 commit 94f8ff4
Show file tree
Hide file tree
Showing 6 changed files with 1,041 additions and 1,487 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@babel/preset-env",
{
"targets": {
"node": "20"
"node": "22"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# wallabag Serverless Bot

[![serverless](http://public.serverless.com/badges/v3.svg)](https://serverless.com/)
![Tests](https://github.com/wallabag/serverless-bot/workflows/Tests/badge.svg)

This serverless project does some stuff to help the wallabag team. It:
Expand All @@ -20,8 +19,8 @@ Available lambdas:

## Prerequisites

- Node.js 20
- Serverless CLI v3.37.0 or later (`npm install -g serverless@3`)
- Node.js 22
- OSS Serverless (`npm install -g osls`)
- An AWS account
- Defined [provider credentials](https://serverless.com/framework/docs/providers/aws/guide/credentials/)

Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
},
"author": "wallabag <[email protected]>",
"license": "MIT",
"engines": {
"npm": "please-use-yarn-instead",
"yarn": ">= 1.22.0",
"node": ">= 22"
},
"devDependencies": {
"@20minutes/eslint-config": "^1.2.6",
"@babel/core": "^7.26.0",
Expand Down Expand Up @@ -54,5 +59,8 @@
"html",
"text-summary"
]
},
"resolutions": {
"uri-js": "npm:uri-js-replace"
}
}
4 changes: 2 additions & 2 deletions serverless.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
frameworkVersion: ">=3.37.0"
frameworkVersion: "^3.43.1"

service: wallabag-serverless-bot

Expand All @@ -15,7 +15,7 @@ custom:

provider:
name: aws
runtime: nodejs20.x
runtime: nodejs22.x
profile: default
region: ${opt:region, 'eu-west-1'}
versionFunctions: false
Expand Down
Loading

0 comments on commit 94f8ff4

Please sign in to comment.