Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 5096189

Browse files
authored
feat: added support for nodejs22 (#941)
1 parent 9dbe321 commit 5096189

File tree

9 files changed

+42
-17
lines changed

9 files changed

+42
-17
lines changed

dockercompose/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ func functions( //nolint:funlen
373373
}
374374

375375
return &Service{
376-
Image: fmt.Sprintf("nhost/functions:%d-1.3.0", *cfg.GetFunctions().GetNode().Version),
376+
Image: fmt.Sprintf("nhost/functions:%d-1.4.0", *cfg.GetFunctions().GetNode().Version),
377377
DependsOn: nil,
378378
EntryPoint: nil,
379379
Command: nil,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Request, Response } from 'express'
2+
3+
export default (_: Request, res: Response) => {
4+
throw new Error('This is an unhandled error')
5+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Request, Response } from 'express'
2+
3+
export default (_: Request, res: Response) => {
4+
try {
5+
throw new Error('This is an error')
6+
} catch (error) {
7+
console.log(error)
8+
res.status(500).json({
9+
error: error.message,
10+
})
11+
}
12+
}
13+

examples/myproject/nhost/nhost.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ liveQueriesMultiplexedRefetchInterval = 3000
2121

2222
[functions]
2323
[functions.node]
24-
version = 20
24+
version = 22
2525

2626
[auth]
2727
version = '0.35.0'

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/google/go-cmp v0.6.0
1515
github.com/google/uuid v1.6.0
1616
github.com/hashicorp/go-getter v1.7.6
17-
github.com/nhost/be v0.0.0-20250108140619-2d5cbe3d8d53
17+
github.com/nhost/be v0.0.0-20250116151339-605671e870a1
1818
github.com/pelletier/go-toml/v2 v2.2.3
1919
github.com/rs/cors/wrapper/gin v0.0.0-20240830163046-1084d89a1692
2020
github.com/sirupsen/logrus v1.9.3

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,8 @@ github.com/nhost/be v0.0.0-20250108133629-afef8c60957d h1:Qpm1om9RfHMFILg9LTZchP
538538
github.com/nhost/be v0.0.0-20250108133629-afef8c60957d/go.mod h1:6lkCTKviZ+ZQDaYed7QFz4MoFb5sg10tlaux2AHeBEQ=
539539
github.com/nhost/be v0.0.0-20250108140619-2d5cbe3d8d53 h1:a/HtPyxfMQCOUtCuFPfBCDiwXQe0qXHa2TN/zZ8QuSg=
540540
github.com/nhost/be v0.0.0-20250108140619-2d5cbe3d8d53/go.mod h1:6lkCTKviZ+ZQDaYed7QFz4MoFb5sg10tlaux2AHeBEQ=
541+
github.com/nhost/be v0.0.0-20250116151339-605671e870a1 h1:Ot50lURnX/giULeCXO2Q3dl+F144l4anQ9smEEtIFtI=
542+
github.com/nhost/be v0.0.0-20250116151339-605671e870a1/go.mod h1:SgL7alnP/yxHF4Un46J+jowx+bi5e4kajmo1EI3C9QA=
541543
github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI=
542544
github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M=
543545
github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=

vendor/github.com/nhost/be/services/mimir/schema/appconfig/hasura_storage.go

Lines changed: 17 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/nhost/be/services/mimir/schema/schema.cue

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ github.com/muesli/termenv
564564
# github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
565565
## explicit
566566
github.com/munnerz/goautoneg
567-
# github.com/nhost/be v0.0.0-20250108140619-2d5cbe3d8d53
567+
# github.com/nhost/be v0.0.0-20250116151339-605671e870a1
568568
## explicit; go 1.23.1
569569
github.com/nhost/be/lib/graphql
570570
github.com/nhost/be/lib/graphql/context

0 commit comments

Comments
 (0)