@budibase/worker 2.17.8 → 2.18.1

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/Dockerfile CHANGED
@@ -44,6 +44,8 @@ EXPOSE 4001
44
44
  # due to this causing yarn to stop installing dev dependencies
45
45
  # which are actually needed to get this environment up and running
46
46
  ENV NODE_ENV=production
47
+ # this is required for isolated-vm to work on Node 20+
48
+ ENV NODE_OPTIONS="--no-node-snapshot"
47
49
  ENV CLUSTER_MODE=${CLUSTER_MODE}
48
50
  ENV SERVICE=worker-service
49
51
  ENV POSTHOG_TOKEN=phc_bIjZL7oh2GEUd2vqvTBH8WvrX0fWTFQMs6H5KQxiUxU
package/nodemon.json CHANGED
@@ -8,6 +8,6 @@
8
8
  "../string-templates"
9
9
  ],
10
10
  "ext": "js,ts,json",
11
- "ignore": ["src/**/*.spec.ts", "src/**/*.spec.js", "../*/dist/**/*"],
12
- "exec": "yarn build && node dist/index.js"
11
+ "ignore": ["**/*.spec.ts", "**/*.spec.js", "../*/dist/**/*"],
12
+ "exec": "yarn build && node --no-node-snapshot dist/index.js"
13
13
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.17.8",
4
+ "version": "2.18.1",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -37,10 +37,10 @@
37
37
  "author": "Budibase",
38
38
  "license": "GPL-3.0",
39
39
  "dependencies": {
40
- "@budibase/backend-core": "2.17.8",
41
- "@budibase/pro": "2.17.8",
42
- "@budibase/string-templates": "2.17.8",
43
- "@budibase/types": "2.17.8",
40
+ "@budibase/backend-core": "2.18.1",
41
+ "@budibase/pro": "2.18.1",
42
+ "@budibase/string-templates": "2.18.1",
43
+ "@budibase/types": "2.18.1",
44
44
  "@koa/router": "8.0.8",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
46
46
  "@types/global-agent": "2.1.1",
@@ -48,7 +48,7 @@
48
48
  "bcrypt": "5.1.0",
49
49
  "bcryptjs": "2.4.3",
50
50
  "bull": "4.10.1",
51
- "dd-trace": "5.0.0",
51
+ "dd-trace": "5.2.0",
52
52
  "dotenv": "8.6.0",
53
53
  "global-agent": "3.0.0",
54
54
  "ical-generator": "4.1.0",
@@ -68,7 +68,9 @@
68
68
  "passport-local": "1.0.0",
69
69
  "pouchdb": "7.3.0",
70
70
  "pouchdb-all-dbs": "1.1.1",
71
- "server-destroy": "1.0.1"
71
+ "server-destroy": "1.0.1",
72
+ "undici": "^6.0.1",
73
+ "undici-types": "^6.0.1"
72
74
  },
73
75
  "devDependencies": {
74
76
  "@swc/core": "1.3.71",
@@ -106,5 +108,5 @@
106
108
  }
107
109
  }
108
110
  },
109
- "gitHead": "1e44b9f893e4a4c44e5759837f1354e5c2464341"
111
+ "gitHead": "bacb888b699e362e38c2be211a2a524e3172c347"
110
112
  }
@@ -23,27 +23,27 @@ const USERS = [
23
23
  password: "test",
24
24
  },
25
25
  {
26
- email: "loadtest2@test.com",
26
+ email: "loadtest2@example.com",
27
27
  password: "test",
28
28
  },
29
29
  {
30
- email: "loadtest3@test.com",
30
+ email: "loadtest3@example.com",
31
31
  password: "test",
32
32
  },
33
33
  {
34
- email: "loadtest4@test.com",
34
+ email: "loadtest4@example.com",
35
35
  password: "test",
36
36
  },
37
37
  {
38
- email: "loadtest5@test.com",
38
+ email: "loadtest5@example.com",
39
39
  password: "test",
40
40
  },
41
41
  {
42
- email: "loadtest6@test.com",
42
+ email: "loadtest6@example.com",
43
43
  password: "test",
44
44
  },
45
45
  {
46
- email: "loadtest7@test.com",
46
+ email: "loadtest7@example.com",
47
47
  password: "test",
48
48
  },
49
49
  ]
@@ -80,7 +80,7 @@ describe("/api/global/auth", () => {
80
80
 
81
81
  it("should return 403 when user doesn't exist", async () => {
82
82
  const tenantId = config.tenantId!
83
- const email = "invaliduser@test.com"
83
+ const email = "invaliduser@example.com"
84
84
  const password = "password"
85
85
 
86
86
  const response = await config.api.auth.login(
@@ -490,7 +490,7 @@ describe("/api/global/users", () => {
490
490
  it("should not be able to update email address", async () => {
491
491
  const email = structures.email()
492
492
  const user = await config.createUser(structures.users.user({ email }))
493
- user.email = "new@test.com"
493
+ user.email = "new@example.com"
494
494
 
495
495
  const response = await config.api.users.saveUser(user, 400)
496
496
 
@@ -10,7 +10,7 @@ export class EmailAPI extends TestAPI {
10
10
  return this.request
11
11
  .post(`/api/global/email/send`)
12
12
  .send({
13
- email: "test@test.com",
13
+ email: "test@example.com",
14
14
  purpose,
15
15
  tenantId: this.config.getTenantId(),
16
16
  userId: this.config.user?._id!,
@@ -45,7 +45,7 @@ export function smtp(conf?: any): SMTPConfig {
45
45
  config: {
46
46
  port: 12345,
47
47
  host: "smtptesthost.com",
48
- from: "testfrom@test.com",
48
+ from: "testfrom@example.com",
49
49
  subject: "Hello!",
50
50
  secure: false,
51
51
  ...conf,
@@ -59,7 +59,7 @@ export function smtpEthereal(): SMTPConfig {
59
59
  config: {
60
60
  port: 587,
61
61
  host: "smtp.ethereal.email",
62
- from: "testfrom@test.com",
62
+ from: "testfrom@example.com",
63
63
  secure: false,
64
64
  auth: {
65
65
  user: "wyatt.zulauf29@ethereal.email",