This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new ef759de8387 Bump @types/node from 22.19.17 to 26.1.2 in /ts-sdk
(#71408)
ef759de8387 is described below
commit ef759de83877b556afb8559f349d17246b1c1eb8
Author: Dependabot [bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Fri Aug 14 22:59:08 2026 +0200
Bump @types/node from 22.19.17 to 26.1.2 in /ts-sdk (#71408)
* Bump @types/node from 22.19.17 to 26.1.2 in /ts-sdk
Bumps
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
from 22.19.17 to 26.1.2.
- [Release
notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
-
[Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-version: 26.1.2
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected]>
* Keep ts-sdk typecheck passing under @types/node 26
@types/node 26 widens the socket "data" event payload to
`string | Buffer`. These sockets never have an encoding set, so the
payload is always a Buffer; annotating the listener parameter says so
instead of forcing a runtime branch that can never be taken.
* Keep ts-sdk/docs pinned to the same @types/node as ts-sdk
The docs toolchain type-checks the SDK's own sources, so a pin that
lags behind ts-sdk resolves those sources against different Node
typings than the SDK is built with. The
check-ts-sdk-docs-package-version-in-sync
hook enforces the pairing.
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot]
<49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jarek Potiuk <[email protected]>
---
ts-sdk/docs/package-lock.json | 16 +++++------
ts-sdk/docs/package.json | 2 +-
ts-sdk/example/package.json | 2 +-
ts-sdk/package.json | 2 +-
ts-sdk/pnpm-lock.yaml | 42 ++++++++++++++--------------
ts-sdk/src/coordinator/comm-channel.ts | 2 +-
ts-sdk/tests/coordinator/log-channel.test.ts | 4 +--
7 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/ts-sdk/docs/package-lock.json b/ts-sdk/docs/package-lock.json
index 7da6ecc3fd9..14391fc3d73 100644
--- a/ts-sdk/docs/package-lock.json
+++ b/ts-sdk/docs/package-lock.json
@@ -10,7 +10,7 @@
"devDependencies": {
"@clean-jsdoc-theme/typedoc": "^5.1.1",
"@msgpack/msgpack": "^3.1.2",
- "@types/node": "^22.19.17",
+ "@types/node": "^26.1.2",
"typedoc": "^0.28.20",
"typescript": "^6.0.2"
}
@@ -1003,13 +1003,13 @@
"license": "MIT"
},
"node_modules/@types/node": {
- "version": "22.20.1",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.1.tgz",
- "integrity":
"sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q==",
+ "version": "26.2.0",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.2.0.tgz",
+ "integrity":
"sha512-5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "undici-types": "~6.21.0"
+ "undici-types": "~8.3.0"
}
},
"node_modules/@types/unist": {
@@ -3673,9 +3673,9 @@
"license": "MIT"
},
"node_modules/undici-types": {
- "version": "6.21.0",
- "resolved":
"https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
- "integrity":
"sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+ "version": "8.3.0",
+ "resolved":
"https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",
+ "integrity":
"sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",
"dev": true,
"license": "MIT"
},
diff --git a/ts-sdk/docs/package.json b/ts-sdk/docs/package.json
index 6ea85316ae3..36cbddecd67 100644
--- a/ts-sdk/docs/package.json
+++ b/ts-sdk/docs/package.json
@@ -13,7 +13,7 @@
"devDependencies": {
"@clean-jsdoc-theme/typedoc": "^5.1.1",
"@msgpack/msgpack": "^3.1.2",
- "@types/node": "^22.19.17",
+ "@types/node": "^26.1.2",
"typedoc": "^0.28.20",
"typescript": "^6.0.2"
}
diff --git a/ts-sdk/example/package.json b/ts-sdk/example/package.json
index 77e94019616..6569ce6b74f 100644
--- a/ts-sdk/example/package.json
+++ b/ts-sdk/example/package.json
@@ -12,7 +12,7 @@
"@apache-airflow/ts-sdk": "file:.."
},
"devDependencies": {
- "@types/node": "^22.19.17",
+ "@types/node": "^26.1.2",
"esbuild": "^0.28.2",
"typescript": "^6.0.2"
}
diff --git a/ts-sdk/package.json b/ts-sdk/package.json
index cec7dec234b..da1e4dea5d0 100644
--- a/ts-sdk/package.json
+++ b/ts-sdk/package.json
@@ -73,7 +73,7 @@
"devDependencies": {
"@eslint/js": "^10.0.1",
"esbuild": "^0.28.2",
- "@types/node": "^22.19.17",
+ "@types/node": "^26.1.2",
"eslint": "^10.4.0",
"json-schema-to-typescript": "^15.0.4",
"prettier": "^3.8.3",
diff --git a/ts-sdk/pnpm-lock.yaml b/ts-sdk/pnpm-lock.yaml
index c392fa3243c..00c9113e8e1 100644
--- a/ts-sdk/pnpm-lock.yaml
+++ b/ts-sdk/pnpm-lock.yaml
@@ -16,8 +16,8 @@ importers:
specifier: ^10.0.1
version: 10.0.1([email protected])
'@types/node':
- specifier: ^22.19.17
- version: 22.19.17
+ specifier: ^26.1.2
+ version: 26.1.2
esbuild:
specifier: ^0.28.2
version: 0.28.2
@@ -41,7 +41,7 @@ importers:
version: 8.60.0([email protected])([email protected])
vitest:
specifier: ^4.1.7
- version:
4.1.7(@types/[email protected])(@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected]))
+ version:
4.1.7(@types/[email protected])(@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected]))
example:
dependencies:
@@ -50,8 +50,8 @@ importers:
version: file:([email protected])
devDependencies:
'@types/node':
- specifier: ^22.19.17
- version: 22.19.17
+ specifier: ^26.1.2
+ version: 26.1.2
esbuild:
specifier: ^0.28.2
version: 0.28.2
@@ -625,8 +625,8 @@ packages:
'@types/[email protected]':
resolution: {integrity:
sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==}
- '@types/[email protected]':
- resolution: {integrity:
sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==}
+ '@types/[email protected]':
+ resolution: {integrity:
sha512-Vu4a5UFA9rIIFJ7rB/Vaafh9lrCQszopTCx6KjFboXTGQbPNasehVR5TEiithSDGyd1DEiUByggTZsg8jukeIg==}
'@typescript-eslint/[email protected]':
resolution: {integrity:
sha512-QYb/sa74/s7OKMbACMjrYnGspj9Hs5YI5aaffSL65UfeBUzVzBJfVo3oWSpbzPurvm7yaCCo2Lk7lVj610HqKw==}
@@ -1230,8 +1230,8 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
- [email protected]:
- resolution: {integrity:
sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
+ [email protected]:
+ resolution: {integrity:
sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==}
[email protected]:
resolution: {integrity:
sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
@@ -1691,9 +1691,9 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]':
+ '@types/[email protected]':
dependencies:
- undici-types: 6.21.0
+ undici-types: 8.3.0
'@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':
dependencies:
@@ -1798,7 +1798,7 @@ snapshots:
obug: 2.1.4
std-env: 4.2.0
tinyrainbow: 3.1.1
- vitest:
4.1.7(@types/[email protected])(@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected]))
+ vitest:
4.1.7(@types/[email protected])(@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected]))
optional: true
'@vitest/[email protected]':
@@ -1810,13 +1810,13 @@ snapshots:
chai: 6.2.2
tinyrainbow: 3.1.0
-
'@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':
+
'@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':
dependencies:
'@vitest/spy': 4.1.7
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
- vite: 8.0.10(@types/[email protected])([email protected])([email protected])
+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])
'@vitest/[email protected]':
dependencies:
@@ -2362,13 +2362,13 @@ snapshots:
[email protected]: {}
- [email protected]: {}
+ [email protected]: {}
[email protected]:
dependencies:
punycode: 2.3.1
- [email protected](@types/[email protected])([email protected])([email protected]):
+ [email protected](@types/[email protected])([email protected])([email protected]):
dependencies:
lightningcss: 1.33.0
picomatch: 4.0.5
@@ -2376,15 +2376,15 @@ snapshots:
rolldown: 1.0.0-rc.17
tinyglobby: 0.2.17
optionalDependencies:
- '@types/node': 22.19.17
+ '@types/node': 26.1.2
esbuild: 0.28.2
fsevents: 2.3.3
tsx: 4.21.0
-
[email protected](@types/[email protected])(@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected])):
+
[email protected](@types/[email protected])(@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected])):
dependencies:
'@vitest/expect': 4.1.7
- '@vitest/mocker':
4.1.7([email protected](@types/[email protected])([email protected])([email protected]))
+ '@vitest/mocker':
4.1.7([email protected](@types/[email protected])([email protected])([email protected]))
'@vitest/pretty-format': 4.1.7
'@vitest/runner': 4.1.7
'@vitest/snapshot': 4.1.7
@@ -2401,10 +2401,10 @@ snapshots:
tinyexec: 1.1.1
tinyglobby: 0.2.16
tinyrainbow: 3.1.0
- vite: 8.0.10(@types/[email protected])([email protected])([email protected])
+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])
why-is-node-running: 2.3.0
optionalDependencies:
- '@types/node': 22.19.17
+ '@types/node': 26.1.2
'@vitest/coverage-v8': 4.1.7([email protected])
transitivePeerDependencies:
- msw
diff --git a/ts-sdk/src/coordinator/comm-channel.ts
b/ts-sdk/src/coordinator/comm-channel.ts
index 858265f7d57..2c8eeb0a908 100644
--- a/ts-sdk/src/coordinator/comm-channel.ts
+++ b/ts-sdk/src/coordinator/comm-channel.ts
@@ -76,7 +76,7 @@ export class CommChannel {
// tick as construction, before the event loop can deliver a
// read, and as the only reader — loses nothing, double-reads
// nothing.
- sock.on("data", (chunk) => this.handleData(chunk));
+ sock.on("data", (chunk: Buffer) => this.handleData(chunk));
sock.on("close", () => this.handleClose(null));
sock.on("error", (err) => this.handleClose(err));
}
diff --git a/ts-sdk/tests/coordinator/log-channel.test.ts
b/ts-sdk/tests/coordinator/log-channel.test.ts
index 592170f10ae..f454b718cfc 100644
--- a/ts-sdk/tests/coordinator/log-channel.test.ts
+++ b/ts-sdk/tests/coordinator/log-channel.test.ts
@@ -35,7 +35,7 @@ async function makeServer(): Promise<Fixture> {
resolveSockClosed = r;
});
const server = net.createServer((sock) => {
- sock.on("data", (chunk) => received.push(chunk));
+ sock.on("data", (chunk: Buffer) => received.push(chunk));
sock.on("close", () => resolveSockClosed());
});
await new Promise<void>((resolve) => server.listen(0, "127.0.0.1", resolve));
@@ -288,7 +288,7 @@ describe("LogChannel", () => {
const received: Buffer[] = [];
const server = net.createServer((sock) => {
serverSocks.push(sock);
- sock.on("data", (chunk) => received.push(chunk));
+ sock.on("data", (chunk: Buffer) => received.push(chunk));
});
await new Promise<void>((resolve) => server.listen(0, "127.0.0.1",
resolve));
const port = (server.address() as net.AddressInfo).port;