dependabot[bot] on npm_and_yarn
build(deps): bump decode-uri-co… (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
build(deps): bump moment from 2… (compare)
dependabot[bot] on npm_and_yarn
build(deps): bump moment from 2… (compare)
dependabot[bot] on npm_and_yarn
build(deps): bump shelljs from … (compare)
dependabot[bot] on npm_and_yarn
build(deps): bump marked from 0… (compare)
Observable
class will get huge due to having so many operators.
Observable
could have a transform
or pipe
on it that takes one of those functions which should have been methods.
var Ack;
(function (Ack) {
function syncOn(ack, callback) {
if (ack === exports.Continue || ack === exports.Stop) {
callback(funfix_1.Success(ack));
}
else {
ack.onComplete((result) => {
callback(result);
});
}
return ack;
}
Ack.syncOn = syncOn;
...
export interface Observer<T> {
onNext(elem: T): Ack
onComplete(): void
onError(e: Throwable): void
}
export namespace Observer {
export interface Sync<T> extends Observer<T> {
onNext(elem: T): SyncAck
}
}
export interface WithScheduler<T> {
readonly scheduler: Scheduler
}
export interface Subscriber<T> extends WithScheduler<T>, Observer<T> {
}
export namespace Subscriber {
export interface Sync<T> extends WithScheduler<T>, Observer.Sync<T> {
}
}
export type Operator<I, O> = (s: Subscriber<O>) => Subscriber<I>
Ack | Future<Ack>
explicitly. Just an opinion. I think here it's important for people to see Future
in there.
Ack
to be SyncAck
and AsyncAck
to not exist.
Future
and hiding it would probably make it worse.
11M node_modules/funfix-types/
9.8M node_modules/funfix-types/dist/docs/
@/all I released the initial version of https://funland-js.org
This is the replacement for funfix-types
. It's a refactoring, the types are plain interfaces with no code, compatible with static-land
and the higher-kinded encoding is also compatible with fp-ts
. And the laws are provided as a separate project, because size matters.
And then this is going to be a dependency for all of funfix
's sub-projects, so all data types are going to be compatible with the static-land
spec by default.
@/all Released a new Funfix version: https://github.com/funfix/funfix/releases/tag/v7.0.0-rc.2
It’s a pre-release, with breaking changes, exports its “types” sub-project into https://funland-js.org; the theme of the release being compatibility with static-land, Fantasy-Land and reuses the HTKs encoding of fp-ts.
@lostintime here's the latest release candidate:
$ du -h node_modules
884K node_modules/funfix-exec/dist
176K node_modules/funfix-exec/src
1.1M node_modules/funfix-exec
176K node_modules/funland/dist
72K node_modules/funland/src
264K node_modules/funland
492K node_modules/funfix-core/dist
108K node_modules/funfix-core/src
616K node_modules/funfix-core
612K node_modules/funfix-effect/dist
120K node_modules/funfix-effect/src
748K node_modules/funfix-effect
48K node_modules/funfix/dist
8.0K node_modules/funfix/src
68K node_modules/funfix
2.7M node_modules
So docs are gone from the packages.
import { Future } from 'funfix';
class Future ...
is making it to the browser...