diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc96e32f8..972fe4c83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: # (scripts/workflow-bun-version.test.ts enforces that); later entries # are trial lanes for the next Bun line — promote one to first once it # has soaked. - bun-version: ['1.3.14', '1.4.0'] + bun-version: ['1.3.14', '1.4.1'] include: - bun-version: '1.3.14' redis: true @@ -65,7 +65,7 @@ jobs: # script is itself `bun run ./scripts/test-packages.ts`), which is # how the first version of this lane fed the harness a bare # `--parallel` and died on "Unknown flag". - - bun-version: '1.4.0' + - bun-version: '1.4.1' redis: true trial: true test-bun-flags: '-- -- --parallel --timeout 30000' @@ -282,7 +282,7 @@ jobs: # The flags are applied on pushes only. `--parallel` costs the lane most # of its green (numbers on the matrix entry above), and a lane that is # red on two runs in three is one everybody learns to scroll past — - # which would also cost the 1.4.0 promotion soak, the other thing this + # which would also cost the 1.4 promotion soak, the other thing this # lane is for and the half that passes. On a pull request it therefore # runs plain, and `--parallel` keeps collecting on main at 11-12 runs a # day, off everyone's PR checks. The consequence is worth stating: for diff --git a/bun.lock b/bun.lock index 16a1a671b..1af7bb2b2 100644 --- a/bun.lock +++ b/bun.lock @@ -8,7 +8,7 @@ "@babel/parser": "^7.24.7", "@babel/types": "^7.29.0", "@changesets/cli": "^2.31.1", - "bun-types": "^1.4.0", + "bun-types": "^1.4.1", "oxlint": "1.81.0", "oxlint-tsgolint": "7.0.2001", "typescript": "^7.0.2", @@ -1168,7 +1168,7 @@ "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="], - "bun-types": ["bun-types@1.4.0", "", { "dependencies": { "@types/node": "*" } }, "sha512-iIKw23BspnQQYd3prITOBxeUsxBHnwzX6YJfGMuNOZzeNcMmVqzIIVGRm1l69ogaPQmb4wB6BN8mA5bE9YuC5Q=="], + "bun-types": ["bun-types@1.4.1", "", { "dependencies": { "@types/node": "*" } }, "sha512-loKuVrAFZKfEv+JvWkHRS9GW5IqLuLRjVXN9p+vZvBN86O5hf/pBZQ5hSoyipsrMmWObZBDvWnlmKvjKTM0PdA=="], "bytes": ["bytes@3.1.2", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="], diff --git a/package.json b/package.json index 52399492f..4b65d4b02 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "@babel/parser": "^7.24.7", "@babel/types": "^7.29.0", "@changesets/cli": "^2.31.1", - "bun-types": "^1.4.0", + "bun-types": "^1.4.1", "oxlint": "1.81.0", "oxlint-tsgolint": "7.0.2001", "typescript": "^7.0.2", diff --git a/packages/server/src/http/Application.ts b/packages/server/src/http/Application.ts index 9bdb480e8..6f98f9b11 100644 --- a/packages/server/src/http/Application.ts +++ b/packages/server/src/http/Application.ts @@ -285,13 +285,9 @@ function registerProcessTeardown(onSignal: () => void, onExit: () => void): () = process.on('exit', onExit) return () => { - // Via the EventEmitter surface: bun-types 1.4.0 declares `off` on Process - // with only a "memoryPressure" overload, shadowing the generic `off`, so - // signal names stop compiling. `on`/`once` are unaffected. - const emitter: NodeJS.EventEmitter = process - emitter.off('SIGINT', onSignal) - emitter.off('SIGTERM', onSignal) - emitter.off('exit', onExit) + process.off('SIGINT', onSignal) + process.off('SIGTERM', onSignal) + process.off('exit', onExit) } }