@cycle/run
Advanced tools
Comparing version 5.1.0-rc.1 to 5.1.0
@@ -0,1 +1,14 @@ | ||
## 5.1.0 (2018-10-17) | ||
* fix(run): support TypeScript 3.1 ([a90cd63](https://github.com/cyclejs/cyclejs/commit/a90cd63)), closes [#815](https://github.com/cyclejs/cyclejs/issues/815) | ||
* refactor(run): move run tooling to pnpm ([0b2eebd](https://github.com/cyclejs/cyclejs/commit/0b2eebd)) | ||
### BREAKING CHANGE | ||
* If you use JavaScript, there are no breaking changes. If you use | ||
TypeScript, this package may not work anymore with versions of TS below | ||
3.1. | ||
## 5.0.0 (2018-09-26) | ||
@@ -2,0 +15,0 @@ |
import { CycleProgram, DisposeFunction, Drivers, MatchingDrivers, MatchingMain, Engine } from './types'; | ||
export { FantasyObserver, FantasySubscription, FantasyObservable, DevToolEnabledSource, Sources, Sinks, SinkProxies, Driver, Drivers, DisposeFunction, MatchingDrivers, MatchingMain, Main, CycleProgram, Engine } from './types'; | ||
export { FantasyObserver, FantasySubscription, FantasyObservable, DevToolEnabledSource, Sources, Sinks, SinkProxies, Driver, Drivers, DisposeFunction, MatchingDrivers, MatchingMain, Main, CycleProgram, Engine, } from './types'; | ||
/** | ||
@@ -4,0 +4,0 @@ * A function that prepares the Cycle application to be executed. Takes a `main` |
@@ -31,7 +31,7 @@ import { Stream } from 'xstream'; | ||
export declare type Sinks<M extends Main> = ReturnType<M>; | ||
export declare type MatchingMain<D extends Drivers, M extends Main> = Main & { | ||
export declare type MatchingMain<D extends Drivers, M extends Main> = (Main & { | ||
(so: Sources<D>): Sinks<M>; | ||
} | Main & { | ||
}) | (Main & { | ||
(): Sinks<M>; | ||
}; | ||
}); | ||
export declare type MatchingDrivers<D extends Drivers, M extends Main> = Drivers & { | ||
@@ -38,0 +38,0 @@ [k in string & keyof Sinks<M>]: ((si?: Sinks<M>[k]) => Sources<D>[k]) | ((si: Sinks<M>[k]) => Sources<D>[k]); |
import { CycleProgram, DisposeFunction, Drivers, MatchingDrivers, MatchingMain, Engine } from './types'; | ||
export { FantasyObserver, FantasySubscription, FantasyObservable, DevToolEnabledSource, Sources, Sinks, SinkProxies, Driver, Drivers, DisposeFunction, MatchingDrivers, MatchingMain, Main, CycleProgram, Engine } from './types'; | ||
export { FantasyObserver, FantasySubscription, FantasyObservable, DevToolEnabledSource, Sources, Sinks, SinkProxies, Driver, Drivers, DisposeFunction, MatchingDrivers, MatchingMain, Main, CycleProgram, Engine, } from './types'; | ||
/** | ||
@@ -4,0 +4,0 @@ * A function that prepares the Cycle application to be executed. Takes a `main` |
@@ -31,7 +31,7 @@ import { Stream } from 'xstream'; | ||
export declare type Sinks<M extends Main> = ReturnType<M>; | ||
export declare type MatchingMain<D extends Drivers, M extends Main> = Main & { | ||
export declare type MatchingMain<D extends Drivers, M extends Main> = (Main & { | ||
(so: Sources<D>): Sinks<M>; | ||
} | Main & { | ||
}) | (Main & { | ||
(): Sinks<M>; | ||
}; | ||
}); | ||
export declare type MatchingDrivers<D extends Drivers, M extends Main> = Drivers & { | ||
@@ -38,0 +38,0 @@ [k in string & keyof Sinks<M>]: ((si?: Sinks<M>[k]) => Sources<D>[k]) | ((si: Sinks<M>[k]) => Sources<D>[k]); |
{ | ||
"name": "@cycle/run", | ||
"version": "5.1.0-rc.1", | ||
"version": "5.1.0", | ||
"description": "The Cycle.js run() function to use with xstream", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -39,7 +39,9 @@ import {Stream} from 'xstream'; | ||
export type MatchingMain<D extends Drivers, M extends Main> = Main & { | ||
(so: Sources<D>): Sinks<M>; | ||
} | Main & { | ||
(): Sinks<M>; | ||
}; | ||
export type MatchingMain<D extends Drivers, M extends Main> = | ||
| Main & { | ||
(so: Sources<D>): Sinks<M>; | ||
} | ||
| Main & { | ||
(): Sinks<M>; | ||
}; | ||
@@ -46,0 +48,0 @@ export type MatchingDrivers<D extends Drivers, M extends Main> = Drivers & |
@@ -36,7 +36,7 @@ // tslint:disable-next-line | ||
first: xs.of('test'), | ||
second: xs.of('string') | ||
second: xs.of('string'), | ||
}; | ||
} | ||
function app2() { | ||
return { second: xs.of('test') }; | ||
return {second: xs.of('test')}; | ||
} | ||
@@ -47,3 +47,6 @@ function driver(sink: Stream<string>) { | ||
const {sinks, sources} = setup(app, {first: driver, second: driver}); | ||
const {sinks: sinks2, sources: sources2} = setup(app2, {first: driver, second: driver}); | ||
const {sinks: sinks2, sources: sources2} = setup(app2, { | ||
first: driver, | ||
second: driver, | ||
}); | ||
@@ -50,0 +53,0 @@ assert.strictEqual(typeof sinks, 'object'); |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
105195
40
2006