Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

chore(docker): upgrade bun to 1.4.4 (#17064)

Khaled Riyad2c28ed894362
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 45641e11f43..df3bb83f6b5 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -31,7 +31,7 @@ ENV LC_ALL en_US.UTF-8
COPY default.cf /usr/local/etc/isolate
-RUN npm i -g [email protected] [email protected] [email protected] @anthropic-ai/claude-code
+RUN npm i -g [email protected] [email protected] [email protected] @anthropic-ai/claude-code
# install isolated-vm in a parent directory to avoid linking the package in every sandbox
diff --git a/Dockerfile b/Dockerfile
index e29437f976b..1524d76c78e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,9 +36,9 @@ RUN apt-get update && \
# Download, extract, and clean up bun in a single layer so the zip never ships
RUN export ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
- curl -fSL --retry 5 --retry-delay 2 https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64-baseline.zip -o bun.zip; \
+ curl -fSL --retry 5 --retry-delay 2 https://github.com/oven-sh/bun/releases/download/bun-v1.4.4/bun-linux-x64-baseline.zip -o bun.zip; \
elif [ "$ARCH" = "aarch64" ]; then \
- curl -fSL --retry 5 --retry-delay 2 https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-aarch64.zip -o bun.zip; \
+ curl -fSL --retry 5 --retry-delay 2 https://github.com/oven-sh/bun/releases/download/bun-v1.4.4/bun-linux-aarch64.zip -o bun.zip; \
fi && \
unzip bun.zip && \
mv bun-*/bun /usr/local/bin/bun && \
diff --git a/Dockerfile.worker b/Dockerfile.worker
index 2605de7c30d..c0fafadae0e 100644
--- a/Dockerfile.worker
+++ b/Dockerfile.worker
@@ -13,9 +13,9 @@ RUN apt-get update && \
RUN export ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
- curl -fSL --retry 5 --retry-delay 2 https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64-baseline.zip -o bun.zip; \
+ curl -fSL --retry 5 --retry-delay 2 https://github.com/oven-sh/bun/releases/download/bun-v1.4.4/bun-linux-x64-baseline.zip -o bun.zip; \
elif [ "$ARCH" = "aarch64" ]; then \
- curl -fSL --retry 5 --retry-delay 2 https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-aarch64.zip -o bun.zip; \
+ curl -fSL --retry 5 --retry-delay 2 https://github.com/oven-sh/bun/releases/download/bun-v1.4.4/bun-linux-aarch64.zip -o bun.zip; \
fi && \
unzip bun.zip && mv bun-*/bun /usr/local/bin/bun && chmod +x /usr/local/bin/bun && rm -rf bun.zip bun-*
diff --git a/brain/knowledge/engineering/cloud-deployment-paths.md b/brain/knowledge/engineering/cloud-deployment-paths.md
index e18599d677b..918dc38854b 100644
--- a/brain/knowledge/engineering/cloud-deployment-paths.md
+++ b/brain/knowledge/engineering/cloud-deployment-paths.md
@@ -33,3 +33,4 @@ A hotfix merges into `main` first. A manual gate run with `hotfix_prs` (ENG-1098
- **Building the image locally from a branch can fail before your code is even copied.** Two independent causes seen 2026-09-10 on arm64: (1) `snapshot.debian.org` served corrupt `.deb`s (`Hash Sum mismatch`, `File has unexpected size … Mirror sync in progress?`, `Bad header line`) across three retries, with no cache mount involved — workaround is a throwaway Dockerfile whose base stage is `FROM ghcr.io/activepieces/activepieces:<root package.json version> AS base` (same bun/npm/isolated-vm tooling, no apt), plus `ENV NODE_ENV=development` and `RUN rm -rf /usr/src/app` at the top of the build stage (the published image sets `NODE_ENV=production`, which makes `bun install` skip devDependencies). (2) `bun install --frozen-lockfile` fails whenever any workspace `package.json` version differs from its `bun.lock` entry; check with `bun install --lockfile-only` in a copy and `diff` the result before blaming your change.
- **`breaking = true` on a migration and the `⛓️‍💥 breaking-change` PR label are different axes.** The migration flag is about rollback safety and is what stops deploys; the label is about self-hoster upgrade impact and is enforced by `breaking-change-check.yml` on PRs. Neither implies the other.
- **The Dockerfile's prune step deletes `packages/pieces/core` (and every community piece but the api's 5), then re-runs `bun install` without a lockfile.** Any other kept workspace that declares one of the removed pieces as `workspace:*` breaks the image build with `Workspace dependency "@activepieces/piece-…" not found`. #15842 hit this by adding core pieces to the engine's devDependencies for CI tests; the prune step now strips the engine's `@activepieces/piece-*` devDependencies. Check any new piece dependency outside `packages/pieces` against that step.
+- **The run stage installs with `bun install --production`, so anything a kept workspace's compiled `dist` requires must be in its `dependencies`, not `devDependencies`.** The run stage copies `packages/` from the build stage, workspace `node_modules` links from the full install included, and bun 1.4.0 left those stale devDependency links in place, which hid that `tslib` was dev-only in `pieces/framework`, `pieces/common`, `core/ai-providers` and the api's 5 pieces, and that `server/api` listed those 5 pieces as devDependencies while importing them. bun 1.4.4 removes stale links (oven-sh/bun#45307), and the image died at boot with `Cannot find module 'tslib'` (seen 2026-10-27, also reported by a self-hosted customer building their own image). `bun install` in the repo stays green; only the built image shows it, and a new package that compiles with `importHelpers` reintroduces it (ai-providers did within days). After a bun bump, build the image and resolve every bare `require` in `packages/**/dist` from its own directory.
diff --git a/bun.lock b/bun.lock
index 38fe5117285..444b65b0bb6 100644
--- a/bun.lock
+++ b/bun.lock
@@ -114,9 +114,9 @@
"@openrouter/ai-sdk-provider": "3.0.0",
"ai": "7.0.44",
"ai-gateway-provider": "4.0.0",
+ "tslib": "2.6.2",
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6",
},
},
@@ -221,10 +221,10 @@
"@activepieces/core-utils": "workspace:*",
"@activepieces/pieces-framework": "workspace:*",
"form-data": "4.0.6",
+ "tslib": "2.6.2",
"zod": "4.3.6",
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6",
},
},
@@ -3122,8 +3122,6 @@
"@activepieces/core-utils": "workspace:*",
"@activepieces/pieces-common": "workspace:*",
"@activepieces/pieces-framework": "workspace:*",
- },
- "devDependencies": {
"tslib": "2.6.2",
},
},
@@ -4773,10 +4771,10 @@
"dayjs": "1.11.9",
"intercom-client": "6.2.0",
"string-strip-html": "8.5.0",
+ "tslib": "2.6.2",
"undici": "7.29.1",
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6",
},
},
@@ -6130,8 +6128,6 @@
"@activepieces/pieces-framework": "workspace:*",
"@microsoft/microsoft-graph-client": "3.0.7",
"@microsoft/microsoft-graph-types": "2.40.0",
- },
- "devDependencies": {
"tslib": "2.6.2",
},
},
@@ -8637,10 +8633,10 @@
"@activepieces/pieces-framework": "workspace:*",
"@slack/web-api": "7.9.0",
"slackify-markdown": "4.4.0",
+ "tslib": "2.6.2",
"zod": "4.3.6",
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6",
},
},
@@ -8888,9 +8884,9 @@
"@activepieces/core-utils": "workspace:*",
"@activepieces/pieces-common": "workspace:*",
"@activepieces/pieces-framework": "workspace:*",
+ "tslib": "2.6.2",
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6",
},
},
@@ -11014,11 +11010,11 @@
"@activepieces/core-utils": "workspace:*",
"ai": "^6.0.0",
"semver": "7.6.0",
+ "tslib": "2.6.2",
"zod": "4.3.6",
},
"devDependencies": {
"@types/semver": "7.5.6",
- "tslib": "2.6.2",
"vitest": "3.2.6",
},
},
@@ -11032,6 +11028,11 @@
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
"@activepieces/engine": "workspace:*",
+ "@activepieces/piece-facebook-leads": "workspace:*",
+ "@activepieces/piece-intercom": "workspace:*",
+ "@activepieces/piece-microsoft-teams-bot": "workspace:*",
+ "@activepieces/piece-slack": "workspace:*",
+ "@activepieces/piece-square": "workspace:*",
"@activepieces/pieces-common": "workspace:*",
"@activepieces/pieces-framework": "workspace:*",
"@activepieces/server-utils": "workspace:*",
@@ -11134,11 +11135,6 @@
"zod": "4.3.6",
},
"devDependencies": {
- "@activepieces/piece-facebook-leads": "workspace:*",
- "@activepieces/piece-intercom": "workspace:*",
- "@activepieces/piece-microsoft-teams-bot": "workspace:*",
- "@activepieces/piece-slack": "workspace:*",
- "@activepieces/piece-square": "workspace:*",
"@faker-js/faker": "10.5.0",
"@types/bcrypt": "5.0.0",
"@types/content-disposition": "0.5.9",
diff --git a/package.json b/package.json
index 169f78ecda7..5a684359c7f 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "activepieces",
"version": "0.93.0",
- "packageManager": "[email protected]",
+ "packageManager": "[email protected]",
"trustedDependencies": [
"sqlite3",
"isolated-vm",
diff --git a/packages/core/ai-providers/package.json b/packages/core/ai-providers/package.json
index 937765c7e6f..5d432ab937e 100644
--- a/packages/core/ai-providers/package.json
+++ b/packages/core/ai-providers/package.json
@@ -22,10 +22,10 @@
"@ai-sdk/openai-compatible": "3.0.18",
"@openrouter/ai-sdk-provider": "3.0.0",
"ai": "7.0.44",
- "ai-gateway-provider": "4.0.0"
+ "ai-gateway-provider": "4.0.0",
+ "tslib": "2.6.2"
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6"
}
}
diff --git a/packages/pieces/common/package.json b/packages/pieces/common/package.json
index 8cfeaf96777..dc3f3115146 100644
--- a/packages/pieces/common/package.json
+++ b/packages/pieces/common/package.json
@@ -14,10 +14,10 @@
"@activepieces/pieces-framework": "workspace:*",
"@activepieces/core-utils": "workspace:*",
"form-data": "4.0.6",
- "zod": "4.3.6"
+ "zod": "4.3.6",
+ "tslib": "2.6.2"
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6"
}
}
diff --git a/packages/pieces/community/facebook-leads/package.json b/packages/pieces/community/facebook-leads/package.json
index d9ac7c0dcf7..7fbf9dfe108 100644
--- a/packages/pieces/community/facebook-leads/package.json
+++ b/packages/pieces/community/facebook-leads/package.json
@@ -12,9 +12,7 @@
"@activepieces/pieces-common": "workspace:*",
"@activepieces/pieces-framework": "workspace:*",
"@activepieces/core-piece-types": "workspace:*",
- "@activepieces/core-utils": "workspace:*"
- },
- "devDependencies": {
+ "@activepieces/core-utils": "workspace:*",
"tslib": "2.6.2"
}
}
diff --git a/packages/pieces/community/intercom/package.json b/packages/pieces/community/intercom/package.json
index 5f00cf0c3c0..d933c4c7655 100644
--- a/packages/pieces/community/intercom/package.json
+++ b/packages/pieces/community/intercom/package.json
@@ -11,10 +11,10 @@
"string-strip-html": "8.5.0",
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
- "undici": "7.29.1"
+ "undici": "7.29.1",
+ "tslib": "2.6.2"
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6"
},
"scripts": {
diff --git a/packages/pieces/community/microsoft-teams-bot/package.json b/packages/pieces/community/microsoft-teams-bot/package.json
index 60170286b20..6e38a8cbd26 100644
--- a/packages/pieces/community/microsoft-teams-bot/package.json
+++ b/packages/pieces/community/microsoft-teams-bot/package.json
@@ -9,9 +9,7 @@
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
"@microsoft/microsoft-graph-client": "3.0.7",
- "@microsoft/microsoft-graph-types": "2.40.0"
- },
- "devDependencies": {
+ "@microsoft/microsoft-graph-types": "2.40.0",
"tslib": "2.6.2"
},
"scripts": {
diff --git a/packages/pieces/community/slack/package.json b/packages/pieces/community/slack/package.json
index 488101c824d..657ff26e648 100644
--- a/packages/pieces/community/slack/package.json
+++ b/packages/pieces/community/slack/package.json
@@ -10,10 +10,10 @@
"slackify-markdown": "4.4.0",
"zod": "4.3.6",
"@activepieces/core-piece-types": "workspace:*",
- "@activepieces/core-utils": "workspace:*"
+ "@activepieces/core-utils": "workspace:*",
+ "tslib": "2.6.2"
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6"
},
"scripts": {
diff --git a/packages/pieces/community/square/package.json b/packages/pieces/community/square/package.json
index ca745bcfbfa..61ba4670773 100644
--- a/packages/pieces/community/square/package.json
+++ b/packages/pieces/community/square/package.json
@@ -13,10 +13,10 @@
"@activepieces/pieces-common": "workspace:*",
"@activepieces/pieces-framework": "workspace:*",
"@activepieces/core-piece-types": "workspace:*",
- "@activepieces/core-utils": "workspace:*"
+ "@activepieces/core-utils": "workspace:*",
+ "tslib": "2.6.2"
},
"devDependencies": {
- "tslib": "2.6.2",
"vitest": "3.2.6"
}
}
diff --git a/packages/pieces/framework/package.json b/packages/pieces/framework/package.json
index b9855fc5ff5..f8a1a9a0b02 100644
--- a/packages/pieces/framework/package.json
+++ b/packages/pieces/framework/package.json
@@ -14,11 +14,11 @@
"@activepieces/core-piece-types": "workspace:*",
"zod": "4.3.6",
"ai": "^6.0.0",
- "semver": "7.6.0"
+ "semver": "7.6.0",
+ "tslib": "2.6.2"
},
"devDependencies": {
"@types/semver": "7.5.6",
- "vitest": "3.2.6",
- "tslib": "2.6.2"
+ "vitest": "3.2.6"
}
}
diff --git a/packages/server/api/package.json b/packages/server/api/package.json
index 95ca1948bf3..0dfbf4d5d97 100644
--- a/packages/server/api/package.json
+++ b/packages/server/api/package.json
@@ -109,15 +109,15 @@
"typeorm": "0.3.31",
"typeorm-pglite": "0.3.2",
"unpdf": "1.4.0",
- "zod": "4.3.6"
- },
- "devDependencies": {
- "deno": "2.9.3",
+ "zod": "4.3.6",
"@activepieces/piece-facebook-leads": "workspace:*",
"@activepieces/piece-intercom": "workspace:*",
"@activepieces/piece-microsoft-teams-bot": "workspace:*",
"@activepieces/piece-slack": "workspace:*",
- "@activepieces/piece-square": "workspace:*",
+ "@activepieces/piece-square": "workspace:*"
+ },
+ "devDependencies": {
+ "deno": "2.9.3",
"@faker-js/faker": "10.5.0",
"@types/bcrypt": "5.0.0",
"@types/content-disposition": "0.5.9",