Bump @types/node from 14.18.63 to 26.1.2 - #2701
Conversation
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.18.63 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] <support@github.com>
There was a problem hiding this comment.
Pull request overview
Note
Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.
Updates Node.js TypeScript definitions to a newer major version, likely to align type checking with a newer Node runtime/API surface.
Changes:
- Bumped
@types/nodefrom^14.14.24to^26.1.2
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Co-authored-by: jainakanksha-msft <181211853+jainakanksha-msft@users.noreply.github.com>
|
Verified:
Confirmed everything is in order: build succeeds ( |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/common/persistence/MemoryExtentStore.ts:188
- The
data as AsyncIterable<Buffer | string>assertion hides a type/contract mismatch:appendExtentacceptsNodeJS.ReadableStream, but that type is not guaranteed to beAsyncIterableunder newer@types/node. This makes the implementation depend on behavior the public signature doesn’t express (and can mask future regressions if a non-async-iterable stream is passed).
Consider tightening the public type (e.g., NodeJS.ReadableStream & AsyncIterable<Buffer | string>, or Readable from stream) across IExtentStore and extent store implementations, or alternatively handle non-async-iterable streams via event-based consumption instead of relying on a cast.
} else {
for await (const chunk of data as AsyncIterable<Buffer | string>) {
if (chunk.length > 0) {
|
@copilot, let bring the rating 5 out of 5 by adding more test coverage which is touched in the PR. |
Co-authored-by: jainakanksha-msft <181211853+jainakanksha-msft@users.noreply.github.com>
... Both suggestions were valid and are applied in 35ddc8f:
Build is clean and all 20 tests in |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/common/persistence/MemoryExtentStore.ts:191
IExtentChunk.count/offsetare defined as bytes, butappendExtent()currently incrementscountusingchunk.lengthwherechunkcan be a string. For non-ASCII data, string length != byte length, and the persistedcountwill be wrong (and later slicing inreadExtent()will also be based on the wrong unit). Converting stream chunks toBufferbefore storing/counting keeps the in-memory store aligned with the byte-based contract.
for await (const chunk of data as AsyncIterable<Buffer | string>) {
if (chunk.length > 0) {
chunks.push(chunk)
count += chunk.length
}
@copilot , please review the suppressed comments. |
|
@copilot , please review the suppressed comments. |
… byte-accurate counts Co-authored-by: jainakanksha-msft <181211853+jainakanksha-msft@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/common/persistence/MemoryExtentStore.ts:181
appendExtent()now normalizes all stream chunks toBuffer, butchunksis still typed as(Buffer | string)[]. Narrowing this local type toBuffer[]better reflects the new invariant and avoids accidentally reintroducing string-length (character) semantics in future edits.
async appendExtent(data: NodeJS.ReadableStream | Buffer, contextId?: string | undefined): Promise<IExtentChunk> {
const chunks: (Buffer | string)[] = []
let count = 0;
if (Buffer.isBuffer(data)) {
@copilot , please review the suppressed comments. |
Co-authored-by: jainakanksha-msft <181211853+jainakanksha-msft@users.noreply.github.com>
... Agreed, narrowed |
Bumps @types/node from 14.18.63 to 26.1.2.
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)