effection
Advanced tools
Comparing version 0.1.0 to 0.2.0-d6d2bd4
@@ -8,1 +8,16 @@ # Changelog | ||
## [Unreleased] | ||
## [0.2.0] - 2019-10-17 | ||
### Added | ||
- Typescript typings: Effection now officially supports TypeScript! | ||
From here on out, the project is committed to shipping precise and | ||
up-to-date typing information for its entire public API | ||
https://github.com/thefrontside/effection.js/pull/8 | ||
## [0.1.0] - 2019-10-05 | ||
### Added | ||
- Test Suite, and functioning structured concurrency model |
declare module "effection" { | ||
export type Operation = SequenceFn | Promise<any> | Controller | undefined; | ||
export type SequenceFn = (this: Execution, ...args: any[]) => Sequence; | ||
export type Sequence = Generator<Operation, any, any>; | ||
export type Controller = (execution: Execution) => void | (() => void); | ||
export const timeout: (duration: number) => any; | ||
export interface Execution<T = any> { | ||
resume(result: T): void; | ||
throw(error: Error): void; | ||
} | ||
export function execute<T>(operation: Operation): Execution<T>; | ||
export function call(operation: Operation, ...args: any[]): Operation; | ||
export function timeout(durationMillis: number): Operation; | ||
} |
{ | ||
"name": "effection", | ||
"description": "Effortlessly composable structured concurrency primitive for JavaScript", | ||
"version": "0.1.0", | ||
"version": "0.2.0-d6d2bd4", | ||
"license": "MIT", | ||
@@ -37,5 +37,5 @@ "files": [ | ||
"ts-node": "^8.1.0", | ||
"typescript": "^3.4.5" | ||
"typescript": "^3.6.4" | ||
}, | ||
"private": false | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
39336
1188
0