-
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.10.5 to 22.10.7 in the typescript group #1840
Merged
github-actions
merged 1 commit into
main
from
dependabot/npm_and_yarn/typescript-9c2cf13a2e
Jan 20, 2025
Merged
chore(deps-dev): bump @types/node from 22.10.5 to 22.10.7 in the typescript group #1840
github-actions
merged 1 commit into
main
from
dependabot/npm_and_yarn/typescript-9c2cf13a2e
Jan 20, 2025
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
Diff between @types/node 22.10.5 and 22.10.7diff --git a/README.md b/README.md
index v22.10.5..v22.10.7 100644
--- a/README.md
+++ b/README.md
@@ -9,5 +9,5 @@
### Additional Details
- * Last updated: Fri, 03 Jan 2025 06:37:24 GMT
+ * Last updated: Thu, 16 Jan 2025 00:46:49 GMT
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
diff --git a/module.d.ts b/module.d.ts
index v22.10.5..v22.10.7 100644
--- a/module.d.ts
+++ b/module.d.ts
@@ -204,5 +204,5 @@
nextResolve: (
specifier: string,
- context?: ResolveHookContext,
+ context?: Partial<ResolveHookContext>,
) => ResolveFnOutput | Promise<ResolveFnOutput>,
) => ResolveFnOutput | Promise<ResolveFnOutput>;
@@ -244,5 +244,5 @@
url: string,
context: LoadHookContext,
- nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
+ nextLoad: (url: string, context?: Partial<LoadHookContext>) => LoadFnOutput | Promise<LoadFnOutput>,
) => LoadFnOutput | Promise<LoadFnOutput>;
namespace constants {
diff --git a/package.json b/package.json
index v22.10.5..v22.10.7 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
"name": "@types/node",
- "version": "22.10.5",
+ "version": "22.10.7",
"description": "TypeScript definitions for node",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
@@ -216,5 +216,5 @@
},
"peerDependencies": {},
- "typesPublisherContentHash": "5204c15eb02bc9a74afae771b0dc25867021c6aa886a7aad0f8c75fe7571881e",
+ "typesPublisherContentHash": "0179bf8f3b9c8f59fbbc60e9561901be4c7e49c60dbc58088a1bf6f1f83564bc",
"typeScriptVersion": "5.0"
}
\ No newline at end of file
diff --git a/process.d.ts b/process.d.ts
index v22.10.5..v22.10.7 100644
--- a/process.d.ts
+++ b/process.d.ts
@@ -334,9 +334,41 @@
}
interface HRTime {
+ /**
+ * This is the legacy version of {@link process.hrtime.bigint()}
+ * before bigint was introduced in JavaScript.
+ *
+ * The `process.hrtime()` method returns the current high-resolution real time in a `[seconds, nanoseconds]` tuple `Array`,
+ * where `nanoseconds` is the remaining part of the real time that can't be represented in second precision.
+ *
+ * `time` is an optional parameter that must be the result of a previous `process.hrtime()` call to diff with the current time.
+ * If the parameter passed in is not a tuple `Array`, a TypeError will be thrown.
+ * Passing in a user-defined array instead of the result of a previous call to `process.hrtime()` will lead to undefined behavior.
+ *
+ * These times are relative to an arbitrary time in the past,
+ * and not related to the time of day and therefore not subject to clock drift.
+ * The primary use is for measuring performance between intervals:
+ * ```js
+ * const { hrtime } = require('node:process');
+ * const NS_PER_SEC = 1e9;
+ * const time = hrtime();
+ * // [ 1800216, 25 ]
+ *
+ * setTimeout(() => {
+ * const diff = hrtime(time);
+ * // [ 1, 552 ]
+ *
+ * console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);
+ * // Benchmark took 1000000552 nanoseconds
+ * }, 1000);
+ * ```
+ * @since 0.7.6
+ * @legacy Use {@link process.hrtime.bigint()} instead.
+ * @param time The result of a previous call to `process.hrtime()`
+ */
(time?: [number, number]): [number, number];
/**
- * The `bigint` version of the `{@link hrtime()}` method returning the current high-resolution real time in nanoseconds as a `bigint`.
+ * The `bigint` version of the {@link process.hrtime()} method returning the current high-resolution real time in nanoseconds as a `bigint`.
*
- * Unlike `{@link hrtime()}`, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s.
+ * Unlike {@link process.hrtime()}, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s.
* ```js
* import { hrtime } from 'node:process';
@@ -353,4 +385,5 @@
* }, 1000);
* ```
+ * @since v10.7.0
*/
bigint(): bigint;
Command detailsnpm diff --diff=@types/node@22.10.5 --diff=@types/node@22.10.7 --diff-unified=2 See also the Reported by ybiquitous/npm-diff-action@v1.6.0 (Node.js 22.13.0 and npm 11.0.0) |
Bumps the typescript group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node). Updates `@types/node` from 22.10.5 to 22.10.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>
068b56f
to
a58ae08
Compare
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.
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
Bumps the typescript group with 1 update: @types/node.
Updates
@types/node
from 22.10.5 to 22.10.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