@rushstack/heft
Advanced tools
Comparing version 0.61.3 to 0.62.0
@@ -26,23 +26,2 @@ /** | ||
/** | ||
* A cancellation token. Can be used to signal that an ongoing process has either been cancelled | ||
* or timed out. | ||
* | ||
* @beta | ||
* @deprecated Use `AbortSignal` directly instead. https://nodejs.org/docs/latest-v16.x/api/globals.html#class-abortsignal | ||
*/ | ||
export declare class CancellationToken { | ||
private readonly _signal; | ||
/** @internal */ | ||
constructor(abortSignal: AbortSignal); | ||
/** | ||
* Whether or not the token has been cancelled. | ||
*/ | ||
get isCancelled(): boolean; | ||
/** | ||
* Obtain a promise that resolves when the token is cancelled. | ||
*/ | ||
get onCancelledPromise(): Promise<void>; | ||
} | ||
export { CommandLineChoiceListParameter } | ||
@@ -619,11 +598,2 @@ | ||
readonly abortSignal: AbortSignal; | ||
/** | ||
* A cancellation token that is used to signal that the build is cancelled. This | ||
* can be used to stop operations early and allow for a new build to | ||
* be started. | ||
* | ||
* @beta | ||
* @deprecated Use `abortSignal` instead. | ||
*/ | ||
readonly cancellationToken: CancellationToken; | ||
} | ||
@@ -630,0 +600,0 @@ |
@@ -11,3 +11,2 @@ /** | ||
export type { IHeftPlugin, IHeftTaskPlugin, IHeftLifecyclePlugin } from './pluginFramework/IHeftPlugin'; | ||
export { CancellationToken } from './pluginFramework/CancellationToken'; | ||
export type { IHeftParameters, IHeftDefaultParameters } from './pluginFramework/HeftParameterManager'; | ||
@@ -14,0 +13,0 @@ export type { IHeftLifecycleSession, IHeftLifecycleHooks, IHeftLifecycleCleanHookOptions, IHeftLifecycleToolStartHookOptions, IHeftLifecycleToolFinishHookOptions } from './pluginFramework/HeftLifecycleSession'; |
@@ -5,3 +5,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._MetricsCollector = exports.CancellationToken = exports.HeftConfiguration = void 0; | ||
exports._MetricsCollector = exports.HeftConfiguration = void 0; | ||
/** | ||
@@ -16,6 +16,4 @@ * Heft is a config-driven toolchain that invokes other popular tools such | ||
Object.defineProperty(exports, "HeftConfiguration", { enumerable: true, get: function () { return HeftConfiguration_1.HeftConfiguration; } }); | ||
var CancellationToken_1 = require("./pluginFramework/CancellationToken"); | ||
Object.defineProperty(exports, "CancellationToken", { enumerable: true, get: function () { return CancellationToken_1.CancellationToken; } }); | ||
var MetricsCollector_1 = require("./metrics/MetricsCollector"); | ||
Object.defineProperty(exports, "_MetricsCollector", { enumerable: true, get: function () { return MetricsCollector_1.MetricsCollector; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -12,3 +12,2 @@ "use strict"; | ||
const WatchFileSystemAdapter_1 = require("../../utilities/WatchFileSystemAdapter"); | ||
const CancellationToken_1 = require("../../pluginFramework/CancellationToken"); | ||
/** | ||
@@ -89,5 +88,3 @@ * Log out a start message, run a provided function, and log out an end message | ||
const runHookOptions = { | ||
abortSignal, | ||
// Included for backwards compatibility | ||
cancellationToken: new CancellationToken_1.CancellationToken(abortSignal) | ||
abortSignal | ||
}; | ||
@@ -94,0 +91,0 @@ // Run the plugin run hook |
@@ -11,3 +11,2 @@ /// <reference types="node" /> | ||
import type { HeftPluginHost } from './HeftPluginHost'; | ||
import type { CancellationToken } from './CancellationToken'; | ||
import type { WatchGlobFn } from '../plugins/FileGlobSpecifier'; | ||
@@ -152,11 +151,2 @@ /** | ||
readonly abortSignal: AbortSignal; | ||
/** | ||
* A cancellation token that is used to signal that the build is cancelled. This | ||
* can be used to stop operations early and allow for a new build to | ||
* be started. | ||
* | ||
* @beta | ||
* @deprecated Use `abortSignal` instead. | ||
*/ | ||
readonly cancellationToken: CancellationToken; | ||
} | ||
@@ -163,0 +153,0 @@ /** |
{ | ||
"name": "@rushstack/heft", | ||
"version": "0.61.3", | ||
"version": "0.62.0", | ||
"description": "Build all your JavaScript projects the same way: A way that works.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
858611
181
8817