Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
echo "store=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Restore pnpm cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ steps.pnpm-cache.outputs.store }}
key: ${{ runner.os }}-pnpm-store-cache-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/UpdateCodeowners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- run: pnpm run update-codeowners

- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
- uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_author: 'typescript-automation[bot] <290192711+typescript-automation[bot]@users.noreply.github.com>'
commit_message: '🤖 Update CODEOWNERS'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format-and-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
id: date
run: echo "date=$(/bin/date -u "+%Y-%m-%d")" >> $GITHUB_OUTPUT

- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
# dprint caches info about the files in the repo to skip formatting them.
# However, since package.json and .dprint.jsonc don't change very often,
Expand All @@ -39,7 +39,7 @@ jobs:

- run: pnpm dprint fmt

- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
- uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_author: 'typescript-automation[bot] <290192711+typescript-automation[bot]@users.noreply.github.com>'
commit_message: '🤖 dprint fmt'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pnpm-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: pnpm install

- name: Save pnpm cache
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ steps.pnpm-cache.outputs.store }}
key: ${{ runner.os }}-pnpm-store-cache-${{ steps.pnpm-cache.outputs.date }}
2 changes: 1 addition & 1 deletion .github/workflows/support-window.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Make SVG diagram
run: node --experimental-json-modules scripts/support-window > docs/support-window.svg

- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
- uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_author: 'typescript-automation[bot] <290192711+typescript-automation[bot]@users.noreply.github.com>'
commit_message: '🤖 Update support window'
Expand Down
4 changes: 4 additions & 0 deletions notNeededPackages.json
Original file line number Diff line number Diff line change
Expand Up @@ -7743,6 +7743,10 @@
"libraryName": "theming",
"asOfVersion": "2.0.0"
},
"through2": {
"libraryName": "through2",
"asOfVersion": "5.0.0"
},
"tildify": {
"libraryName": "tildify",
"asOfVersion": "2.0.0"
Expand Down
1 change: 1 addition & 0 deletions types/chrome/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9182,6 +9182,7 @@ declare namespace chrome {
| "identity"
| "identity.email"
| "idle"
| "input"
| "loginState"
| "management"
| "nativeMessaging"
Expand Down
2 changes: 1 addition & 1 deletion types/gulp-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"dependencies": {
"@types/node": "*",
"@types/through2": "*",
"@types/through2": "<5",
"@types/vinyl": "*",
"chalk": "^2.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion types/multistream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"devDependencies": {
"@types/multistream": "workspace:.",
"@types/through": "*",
"@types/through2": "*"
"@types/through2": "<5"
},
"owners": [
{
Expand Down
89 changes: 64 additions & 25 deletions types/node/buffer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1550,11 +1550,12 @@ declare module "node:buffer" {
/**
* If `value` is:
*
* * a string, `value` is interpreted according to the character encoding in `encoding`.
* * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety.
* To compare a partial `Buffer`, use `buf.subarray`.
* * a string, `value` is interpreted according to the character encoding in
* `encoding`.
* * a `Buffer` or `Uint8Array`, `value` will be used in its entirety.
* To compare a partial `Buffer`, use `buf.subarray`.
* * a number, `value` will be interpreted as an unsigned 8-bit integer
* value between `0` and `255`.
* value between `0` and `255`.
*
* ```js
* import { Buffer } from 'node:buffer';
Expand Down Expand Up @@ -1582,12 +1583,13 @@ declare module "node:buffer" {
* // Prints: 6
* ```
*
* If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
* If `value` is not a string, number, or `Buffer`, this method will throw a
* `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
* an integer between 0 and 255.
*
* If `byteOffset` is not a number, it will be coerced to a number. If the result
* of coercion is `NaN` or `0`, then the entire buffer will be searched. This
* behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
* behavior matches `String.prototype.indexOf()`.
*
* ```js
* import { Buffer } from 'node:buffer';
Expand All @@ -1608,14 +1610,27 @@ declare module "node:buffer" {
* ```
*
* If `value` is an empty string or empty `Buffer` and `byteOffset` is less
* than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned.
* than `buf.length`, `byteOffset` will be returned. If `value` is empty and
* `byteOffset` is at least `buf.length`, `buf.length` will be returned.
* @since v1.5.0
* @param value What to search for.
* @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
* @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
* @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
*/
indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
* @param start Where to begin searching in `buf`. If negative, then
* offset is calculated from the end of `buf`. **Default:** `0`.
* @param end Where to stop searching in `buf` (exclusive). **Default:**
* `buf.length`.
* @param encoding If `value` is a string, this is the encoding used to
* determine the binary representation of the string that will be searched for in
* `buf`. **Default:** `'utf8'`.
* @returns The index of the first occurrence of `value` in `buf`, or
* `-1` if `buf` does not contain `value`.
*/
indexOf(
value: string | number | Uint8Array,
start?: number,
end?: number,
encoding?: BufferEncoding,
): number;
indexOf(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): number;
indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
/**
* Identical to `buf.indexOf()`, except the last occurrence of `value` is found
Expand Down Expand Up @@ -1649,12 +1664,13 @@ declare module "node:buffer" {
* // Prints: 4
* ```
*
* If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
* If `value` is not a string, number, or `Buffer`, this method will throw a
* `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
* an integer between 0 and 255.
*
* If `byteOffset` is not a number, it will be coerced to a number. Any arguments
* that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer.
* This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
* This behavior matches `String.prototype.lastIndexOf()`.
*
* ```js
* import { Buffer } from 'node:buffer';
Expand All @@ -1680,11 +1696,24 @@ declare module "node:buffer" {
* If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned.
* @since v6.0.0
* @param value What to search for.
* @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
* @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
* @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
*/
lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
* @param start Where to begin searching in `buf`. If negative, then
* offset is calculated from the end of `buf`. **Default:**
* `buf.length - 1`.
* @param end Where to stop searching in `buf` (exclusive). **Default:**
* `buf.length`.
* @param encoding If `value` is a string, this is the encoding used to
* determine the binary representation of the string that will be searched for in
* `buf`. **Default:** `'utf8'`.
* @returns The index of the last occurrence of `value` in `buf`, or
* `-1` if `buf` does not contain `value`.
*/
lastIndexOf(
value: string | number | Uint8Array,
start?: number,
end?: number,
encoding?: BufferEncoding,
): number;
lastIndexOf(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): number;
lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
/**
* Equivalent to `buf.indexOf() !== -1`.
Expand All @@ -1711,12 +1740,22 @@ declare module "node:buffer" {
* ```
* @since v5.3.0
* @param value What to search for.
* @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
* @param [encoding='utf8'] If `value` is a string, this is its encoding.
* @return `true` if `value` was found in `buf`, `false` otherwise.
*/
includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
* @param start Where to begin searching in `buf`. If negative, then
* offset is calculated from the end of `buf`. **Default:** `0`.
* @param end Where to stop searching in `buf` (exclusive). **Default:**
* `buf.length`.
* @param encoding If `value` is a string, this is its encoding.
* **Default:** `'utf8'`.
* @returns `true` if `value` was found in `buf`, `false` otherwise.
*/
includes(
value: string | number | Uint8Array,
start?: number,
end?: number,
encoding?: BufferEncoding,
): boolean;
includes(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): boolean;
includes(value: string | number | Uint8Array, encoding: BufferEncoding): boolean;
}
var Buffer: BufferConstructor;
}
Expand Down
23 changes: 18 additions & 5 deletions types/node/crypto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1373,9 +1373,9 @@ declare module "node:crypto" {
*/
update(data: string | NodeJS.ArrayBufferView, inputEncoding?: BufferEncoding): Verify;
/**
* Verifies the provided data using the given `object` and `signature`.
* Verifies the provided data using the given `key` and `signature`.
*
* If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an
* If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
* object, the following additional properties can be passed:
*
* The `signature` argument is the previously calculated signature for the data, in
Expand All @@ -1392,7 +1392,7 @@ declare module "node:crypto" {
* @since v0.1.92
*/
verify(
object:
key:
| KeyLike
| VerifyKeyObjectInput
| VerifyPublicKeyInput
Expand Down Expand Up @@ -1470,8 +1470,10 @@ declare module "node:crypto" {
* If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
*
* This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
* once a private key has been generated or set, calling this function only updates
* the public key but does not generate a new private key.
* once a private key has been generated or set, calling this function only
* recomputes the public key from the existing private key. Since the public key is
* determined by the private key, the result will be the same unless the private key
* has been changed via `diffieHellman.setPrivateKey()`.
* @since v0.5.0
* @param encoding The `encoding` of the return value.
*/
Expand Down Expand Up @@ -2997,13 +2999,24 @@ declare module "node:crypto" {
*/
disableEntropyCache?: boolean | undefined;
}
interface RandomUUIDV7Options extends RandomUUIDOptions {}
type UUID = `${string}-${string}-${string}-${string}-${string}`;
/**
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
* cryptographic pseudorandom number generator.
* @since v15.6.0, v14.17.0
*/
function randomUUID(options?: RandomUUIDOptions): UUID;
/**
* Generates a random [RFC 9562](https://www.rfc-editor.org/rfc/rfc9562.txt) version 7 UUID. The UUID contains a millisecond
* precision Unix timestamp in the most significant 48 bits, followed by
* cryptographically secure random bits for the remaining fields, making it
* suitable for use as a database key with time-based sorting. The embedded
* timestamp relies on a non-monotonic clock and is not guaranteed to be strictly
* increasing.
* @since v26.1.0
*/
function randomUUIDv7(options?: RandomUUIDV7Options): UUID;
interface X509CheckOptions {
subject?: "always" | "default" | "never" | undefined;
wildcards?: boolean | undefined;
Expand Down
Loading