-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps-dev): bump @types/node from 22.8.1 to 22.8.7 in the typescript group #1808
Merged
github-actions
merged 1 commit into
main
from
dependabot/npm_and_yarn/typescript-be06f98f54
Nov 4, 2024
Merged
chore(deps-dev): bump @types/node from 22.8.1 to 22.8.7 in the typescript group #1808
github-actions
merged 1 commit into
main
from
dependabot/npm_and_yarn/typescript-be06f98f54
Nov 4, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependabot
bot
added
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update Javascript code
labels
Nov 4, 2024
Diff between @types/node 22.8.1 and 22.8.7diff --git a/README.md b/README.md
index v22.8.1..v22.8.7 100644
--- a/README.md
+++ b/README.md
@@ -9,5 +9,5 @@
### Additional Details
- * Last updated: Fri, 25 Oct 2024 22:02:20 GMT
+ * Last updated: Sun, 03 Nov 2024 04:02:17 GMT
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
diff --git a/crypto.d.ts b/crypto.d.ts
index v22.8.1..v22.8.7 100644
--- a/crypto.d.ts
+++ b/crypto.d.ts
@@ -611,9 +611,4 @@
asymmetricKeyType?: KeyType | undefined;
/**
- * For asymmetric keys, this property represents the size of the embedded key in
- * bytes. This property is `undefined` for symmetric keys.
- */
- asymmetricKeySize?: number | undefined;
- /**
* This property exists only on asymmetric keys. Depending on the type of the key,
* this object contains information about the key. None of the information obtained
@@ -2140,5 +2135,8 @@
* @since v0.11.14
*/
- function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
+ function publicEncrypt(
+ key: RsaPublicKey | RsaPrivateKey | KeyLike,
+ buffer: NodeJS.ArrayBufferView | string,
+ ): Buffer;
/**
* Decrypts `buffer` with `key`.`buffer` was previously encrypted using
@@ -2152,5 +2150,8 @@
* @since v1.1.0
*/
- function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
+ function publicDecrypt(
+ key: RsaPublicKey | RsaPrivateKey | KeyLike,
+ buffer: NodeJS.ArrayBufferView | string,
+ ): Buffer;
/**
* Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
@@ -2161,5 +2162,5 @@
* @since v0.11.14
*/
- function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
+ function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView | string): Buffer;
/**
* Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
@@ -2170,5 +2171,5 @@
* @since v1.1.0
*/
- function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
+ function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView | string): Buffer;
/**
* ```js
diff --git a/http.d.ts b/http.d.ts
index v22.8.1..v22.8.7 100644
--- a/http.d.ts
+++ b/http.d.ts
@@ -142,4 +142,5 @@
"content-security-policy"?: string | undefined;
"content-security-policy-report-only"?: string | undefined;
+ "content-type"?: string | undefined;
cookie?: string | string[] | undefined;
dav?: string | string[] | undefined;
diff --git a/package.json b/package.json
index v22.8.1..v22.8.7 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
"name": "@types/node",
- "version": "22.8.1",
+ "version": "22.8.7",
"description": "TypeScript definitions for node",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
@@ -221,5 +221,5 @@
},
"peerDependencies": {},
- "typesPublisherContentHash": "679317e7cae6b391e6bf63e356e0496420e31113098d850dbc95b3d22c17a6c6",
+ "typesPublisherContentHash": "eb4a12d3db7d5c2f973b35f0ccc659d77637fdcdc340900124be3f5602cc29bc",
"typeScriptVersion": "4.8"
}
\ No newline at end of file
diff --git a/readline.d.ts b/readline.d.ts
index v22.8.1..v22.8.7 100644
--- a/readline.d.ts
+++ b/readline.d.ts
@@ -315,27 +315,76 @@
export type CompleterResult = [string[], string];
export interface ReadLineOptions {
+ /**
+ * The [`Readable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream to listen to
+ */
input: NodeJS.ReadableStream;
+ /**
+ * The [`Writable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#writable-streams) stream to write readline data to.
+ */
output?: NodeJS.WritableStream | undefined;
+ /**
+ * An optional function used for Tab autocompletion.
+ */
completer?: Completer | AsyncCompleter | undefined;
+ /**
+ * `true` if the `input` and `output` streams should be treated like a TTY,
+ * and have ANSI/VT100 escape codes written to it.
+ * Default: checking `isTTY` on the `output` stream upon instantiation.
+ */
terminal?: boolean | undefined;
/**
- * Initial list of history lines. This option makes sense
- * only if `terminal` is set to `true` by the user or by an internal `output`
- * check, otherwise the history caching mechanism is not initialized at all.
+ * Initial list of history lines.
+ * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
+ * otherwise the history caching mechanism is not initialized at all.
* @default []
*/
history?: string[] | undefined;
+ /**
+ * Maximum number of history lines retained.
+ * To disable the history set this value to `0`.
+ * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
+ * otherwise the history caching mechanism is not initialized at all.
+ * @default 30
+ */
historySize?: number | undefined;
+ /**
+ * If `true`, when a new input line added to the history list duplicates an older one,
+ * this removes the older line from the list.
+ * @default false
+ */
+ removeHistoryDuplicates?: boolean | undefined;
+ /**
+ * The prompt string to use.
+ * @default "> "
+ */
prompt?: string | undefined;
+ /**
+ * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds,
+ * both `\r` and `\n` will be treated as separate end-of-line input.
+ * `crlfDelay` will be coerced to a number no less than `100`.
+ * It can be set to `Infinity`, in which case
+ * `\r` followed by `\n` will always be considered a single newline
+ * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v22.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
+ * @default 100
+ */
crlfDelay?: number | undefined;
/**
- * If `true`, when a new input line added
- * to the history list duplicates an older one, this removes the older line
- * from the list.
- * @default false
+ * The duration `readline` will wait for a character
+ * (when reading an ambiguous key sequence in milliseconds
+ * one that can both form a complete key sequence using the input read so far
+ * and can take additional input to complete a longer key sequence).
+ * @default 500
*/
- removeHistoryDuplicates?: boolean | undefined;
escapeCodeTimeout?: number | undefined;
+ /**
+ * The number of spaces a tab is equal to (minimum 1).
+ * @default 8
+ */
tabSize?: number | undefined;
+ /**
+ * Allows closing the interface using an AbortSignal.
+ * Aborting the signal will internally call `close` on the interface.
+ */
+ signal?: AbortSignal | undefined;
}
/**
diff --git a/util.d.ts b/util.d.ts
index v22.8.1..v22.8.7 100644
--- a/util.d.ts
+++ b/util.d.ts
@@ -1518,16 +1518,21 @@
>;
+ type ApplyOptionalModifiers<O extends ParseArgsOptionsConfig, V extends Record<keyof O, unknown>> = (
+ & { -readonly [LongOption in keyof O]?: V[LongOption] }
+ & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] }
+ ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object
+
type ParsedValues<T extends ParseArgsConfig> =
& IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
- & (T["options"] extends ParseArgsOptionsConfig ? {
- -readonly [LongOption in keyof T["options"]]:
- // when "default" is not undefined, the value will be present
- | (T["options"][LongOption]["default"] extends {} ? never : undefined)
- | IfDefaultsFalse<
+ & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers<
+ T["options"],
+ {
+ [LongOption in keyof T["options"]]: IfDefaultsFalse<
T["options"][LongOption]["multiple"],
Array<ExtractOptionValue<T, T["options"][LongOption]>>,
ExtractOptionValue<T, T["options"][LongOption]>
>;
- }
+ }
+ >
: {});
diff --git a/fs/promises.d.ts b/fs/promises.d.ts
index v22.8.1..v22.8.7 100644
--- a/fs/promises.d.ts
+++ b/fs/promises.d.ts
@@ -239,4 +239,8 @@
position?: number | null,
): Promise<FileReadResult<T>>;
+ read<T extends NodeJS.ArrayBufferView = Buffer>(
+ buffer: T,
+ options?: FileReadOptions<T>,
+ ): Promise<FileReadResult<T>>;
read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
/**
@@ -430,4 +434,11 @@
buffer: TBuffer;
}>;
+ write<TBuffer extends Uint8Array>(
+ buffer: TBuffer,
+ options?: { offset?: number; length?: number; position?: number },
+ ): Promise<{
+ bytesWritten: number;
+ buffer: TBuffer;
+ }>;
write(
data: string,
diff --git a/readline/promises.d.ts b/readline/promises.d.ts
index v22.8.1..v22.8.7 100644
--- a/readline/promises.d.ts
+++ b/readline/promises.d.ts
@@ -4,6 +4,11 @@
*/
declare module "readline/promises" {
- import { AsyncCompleter, Completer, Direction, Interface as _Interface, ReadLineOptions } from "node:readline";
import { Abortable } from "node:events";
+ import {
+ CompleterResult,
+ Direction,
+ Interface as _Interface,
+ ReadLineOptions as _ReadLineOptions,
+ } from "node:readline";
/**
* Instances of the `readlinePromises.Interface` class are constructed using the `readlinePromises.createInterface()` method. Every instance is associated with a
@@ -112,4 +117,11 @@
rollback(): this;
}
+ type Completer = (line: string) => CompleterResult | Promise<CompleterResult>;
+ interface ReadLineOptions extends Omit<_ReadLineOptions, "completer"> {
+ /**
+ * An optional function used for Tab autocompletion.
+ */
+ completer?: Completer | undefined;
+ }
/**
* The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance.
@@ -141,5 +153,5 @@
input: NodeJS.ReadableStream,
output?: NodeJS.WritableStream,
- completer?: Completer | AsyncCompleter,
+ completer?: Completer,
terminal?: boolean,
): Interface;
Command detailsnpm diff --diff=@types/node@22.8.1 --diff=@types/node@22.8.7 --diff-unified=2 See also the Reported by ybiquitous/npm-diff-action@v1.6.0 (Node.js 22.11.0 and npm 10.9.0) |
Bumps the typescript group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node). Updates `@types/node` from 22.8.1 to 22.8.7 - [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-type: direct:development update-type: version-update:semver-patch dependency-group: typescript ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
bot
force-pushed
the
dependabot/npm_and_yarn/typescript-be06f98f54
branch
from
November 4, 2024 02:10
6745753
to
2946d0e
Compare
github-actions
bot
deleted the
dependabot/npm_and_yarn/typescript-be06f98f54
branch
November 4, 2024 02:11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update Javascript code
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps the typescript group with 1 update: @types/node.
Updates
@types/node
from 22.8.1 to 22.8.7Commits
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 rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major version
will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor version
will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>
will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>
will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>
will remove the ignore condition of the specified dependency and ignore conditions