Skip to content

Commit

Permalink
version 0.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed May 19, 2020
1 parent 300daaa commit 48d03a2
Show file tree
Hide file tree
Showing 20 changed files with 281 additions and 272 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@
**Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a
high state of flux, you're at risk of it changing without notice.

## 0.5.6

- **Internal**
- add a namespace to `Decoder`'s `URI` in order to avoid name collision (@StefanoMagrassi)

## 0.5.5

- **Bug Fix:**
- **Bug Fix**
- fix `response` for `BadStatus` error in order to comply with `Response` type (@StefanoMagrassi)

## 0.5.4
Expand Down
30 changes: 15 additions & 15 deletions docs/modules/Cmd.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Added in v0.5.0
<h2 class="text-delta">Table of contents</h2>

- [Cmd (interface)](#cmd-interface)
- [none (constant)](#none-constant)
- [batch (function)](#batch-function)
- [map (function)](#map-function)
- [of (function)](#of-function)
- [batch](#batch)
- [map](#map)
- [none](#none)
- [of](#of)

---

Expand All @@ -34,50 +34,50 @@ export interface Cmd<Msg> extends Observable<Task<Option<Msg>>> {}

Added in v0.5.0

# none (constant)
# batch

A `none` command is an empty stream.
Batches the execution of a list of commands.

**Signature**

```ts
export const none: Cmd<never> = ...
export declare function batch<Msg>(arr: Array<Cmd<Msg>>): Cmd<Msg>
```

Added in v0.5.0

# batch (function)
# map

Batches the execution of a list of commands.
Maps the carried `Msg` of a `Cmd` into another `Msg`.

**Signature**

```ts
export function batch<Msg>(arr: Array<Cmd<Msg>>): Cmd<Msg> { ... }
export declare function map<A, Msg>(f: (a: A) => Msg): (cmd: Cmd<A>) => Cmd<Msg>
```

Added in v0.5.0

# map (function)
# none

Maps the carried `Msg` of a `Cmd` into another `Msg`.
A `none` command is an empty stream.

**Signature**

```ts
export function map<A, Msg>(f: (a: A) => Msg): (cmd: Cmd<A>) => Cmd<Msg> { ... }
export declare const none: Cmd<never>
```

Added in v0.5.0

# of (function)
# of

Creates a new `Cmd` that carries the provided `Msg`.

**Signature**

```ts
export function of<Msg>(m: Msg): Cmd<Msg> { ... }
export declare function of<Msg>(m: Msg): Cmd<Msg>
```

Added in v0.5.0
32 changes: 16 additions & 16 deletions docs/modules/Debug/Html.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ Added in v0.5.3

<h2 class="text-delta">Table of contents</h2>

- [programWithDebugger (function)](#programwithdebugger-function)
- [programWithDebuggerWithFlags (function)](#programwithdebuggerwithflags-function)
- [programWithDebuggerWithFlagsWithStop (function)](#programwithdebuggerwithflagswithstop-function)
- [programWithDebuggerWithStop (function)](#programwithdebuggerwithstop-function)
- [programWithDebugger](#programwithdebugger)
- [programWithDebuggerWithFlags](#programwithdebuggerwithflags)
- [programWithDebuggerWithFlagsWithStop](#programwithdebuggerwithflagswithstop)
- [programWithDebuggerWithStop](#programwithdebuggerwithstop)

---

# programWithDebugger (function)
# programWithDebugger

Adds a debugging capability to a generic `Html` `Program`.

Expand All @@ -73,67 +73,67 @@ or applying a message with:
**Signature**

```ts
export function programWithDebugger<Model, Msg, Dom>(
export declare function programWithDebugger<Model, Msg, Dom>(
init: [Model, Cmd<Msg>],
update: (msg: Msg, model: Model) => [Model, Cmd<Msg>],
view: (model: Model) => Html<Dom, Msg>,
subscriptions?: (model: Model) => Sub<Msg>
): Program<Model, Msg, Dom> { ... }
): Program<Model, Msg, Dom>
```

Added in v0.5.3

# programWithDebuggerWithFlags (function)
# programWithDebuggerWithFlags

Same as `programWithDebugger()` but with `Flags` that can be passed when the `Program` is created in order to manage initial values.

**Signature**

```ts
export function programWithDebuggerWithFlags<Flags, Model, Msg, Dom>(
export declare function programWithDebuggerWithFlags<Flags, Model, Msg, Dom>(
init: (flags: Flags) => [Model, Cmd<Msg>],
update: (msg: Msg, model: Model) => [Model, Cmd<Msg>],
view: (model: Model) => Html<Dom, Msg>,
subscriptions?: (model: Model) => Sub<Msg>
): (flags: Flags) => Program<Model, Msg, Dom> { ... }
): (flags: Flags) => Program<Model, Msg, Dom>
```

Added in v0.5.3

# programWithDebuggerWithFlagsWithStop (function)
# programWithDebuggerWithFlagsWithStop

Same as `programWithDebuggerWithStop()` but with `Flags` that can be passed when the `Program` is created in order to manage initial values.

**Signature**

```ts
export function programWithDebuggerWithFlagsWithStop<Model, Msg, Dom>(
export declare function programWithDebuggerWithFlagsWithStop<Model, Msg, Dom>(
stopDebuggerOn: Observable<unknown>
): <Flags, S extends Model, M extends Msg, D extends Dom>(
init: (flags: Flags) => [S, Cmd<M>],
update: (msg: M, model: S) => [S, Cmd<M>],
view: (model: S) => Html<D, M>,
subscriptions?: (model: S) => Sub<M>
) => (flags: Flags) => Program<S, M, D> { ... }
) => (flags: Flags) => Program<S, M, D>
```

Added in v0.5.4

# programWithDebuggerWithStop (function)
# programWithDebuggerWithStop

A function that requires an `Observable` and returns a `programWithDebugger()` function: the underlying debugger will stop when the `Observable` emits a value.

**Signature**

```ts
export function programWithDebuggerWithStop<Model, Msg, Dom>(
export declare function programWithDebuggerWithStop<Model, Msg, Dom>(
stopDebuggerOn: Observable<unknown>
): <S extends Model, M extends Msg, D extends Dom>(
init: [S, Cmd<M>],
update: (msg: M, model: S) => [S, Cmd<M>],
view: (model: S) => Html<D, M>,
subscriptions?: (model: S) => Sub<M>
) => Program<S, M, D> { ... }
) => Program<S, M, D>
```

Added in v0.5.4
32 changes: 16 additions & 16 deletions docs/modules/Debug/Navigation.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ Added in v0.5.3

<h2 class="text-delta">Table of contents</h2>

- [programWithDebugger (function)](#programwithdebugger-function)
- [programWithDebuggerWithFlags (function)](#programwithdebuggerwithflags-function)
- [programWithDebuggerWithFlagsWithStop (function)](#programwithdebuggerwithflagswithstop-function)
- [programWithDebuggerWithStop (function)](#programwithdebuggerwithstop-function)
- [programWithDebugger](#programwithdebugger)
- [programWithDebuggerWithFlags](#programwithdebuggerwithflags)
- [programWithDebuggerWithFlagsWithStop](#programwithdebuggerwithflagswithstop)
- [programWithDebuggerWithStop](#programwithdebuggerwithstop)

---

# programWithDebugger (function)
# programWithDebugger

Adds a debugging capability to a generic `Navigation` `Program`.

Expand All @@ -75,71 +75,71 @@ or applying a message with:
**Signature**

```ts
export function programWithDebugger<Model, Msg, Dom>(
export declare function programWithDebugger<Model, Msg, Dom>(
locationToMessage: (location: Location) => Msg,
init: (location: Location) => [Model, Cmd<Msg>],
update: (msg: Msg, model: Model) => [Model, Cmd<Msg>],
view: (model: Model) => Html<Dom, Msg>,
subscriptions?: (model: Model) => Sub<Msg>
): Program<Model, Msg, Dom> { ... }
): Program<Model, Msg, Dom>
```

Added in v0.5.3

# programWithDebuggerWithFlags (function)
# programWithDebuggerWithFlags

Same as `programWithDebugger()` but with `Flags` that can be passed when the `Program` is created in order to manage initial values.

**Signature**

```ts
export function programWithDebuggerWithFlags<Flags, Model, Msg, Dom>(
export declare function programWithDebuggerWithFlags<Flags, Model, Msg, Dom>(
locationToMessage: (location: Location) => Msg,
init: (flags: Flags) => (location: Location) => [Model, Cmd<Msg>],
update: (msg: Msg, model: Model) => [Model, Cmd<Msg>],
view: (model: Model) => Html<Dom, Msg>,
subscriptions?: (model: Model) => Sub<Msg>
): (flags: Flags) => Program<Model, Msg, Dom> { ... }
): (flags: Flags) => Program<Model, Msg, Dom>
```

Added in v0.5.3

# programWithDebuggerWithFlagsWithStop (function)
# programWithDebuggerWithFlagsWithStop

Same as `programWithDebuggerWithStop()` but with `Flags` that can be passed when the `Program` is created in order to manage initial values.

**Signature**

```ts
export function programWithDebuggerWithFlagsWithStop<Model, Msg, Dom>(
export declare function programWithDebuggerWithFlagsWithStop<Model, Msg, Dom>(
stopDebuggerOn: Observable<unknown>
): <Flags, S extends Model, M extends Msg, D extends Dom>(
locationToMessage: (location: Location) => M,
init: (flags: Flags) => (location: Location) => [S, Cmd<M>],
update: (msg: M, model: S) => [S, Cmd<M>],
view: (model: S) => Html<D, M>,
subscriptions?: (model: S) => Sub<M>
) => (flags: Flags) => Program<S, M, D> { ... }
) => (flags: Flags) => Program<S, M, D>
```

Added in v0.5.4

# programWithDebuggerWithStop (function)
# programWithDebuggerWithStop

A function that requires an `Observable` and returns a `programWithDebugger()` function: the underlying debugger will stop when the `Observable` emits a value.

**Signature**

```ts
export function programWithDebuggerWithStop<Model, Msg, Dom>(
export declare function programWithDebuggerWithStop<Model, Msg, Dom>(
stopDebuggerOn: Observable<unknown>
): <S extends Model, M extends Msg, D extends Dom>(
locationToMessage: (location: Location) => M,
init: (location: Location) => [S, Cmd<M>],
update: (msg: M, model: S) => [S, Cmd<M>],
view: (model: S) => Html<D, M>,
subscriptions?: (model: S) => Sub<M>
) => Program<S, M, D> { ... }
) => Program<S, M, D>
```

Added in v0.5.4
28 changes: 14 additions & 14 deletions docs/modules/Debug/commons.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Added in v0.5.0
- [DebugData (type alias)](#debugdata-type-alias)
- [Global (type alias)](#global-type-alias)
- [MsgWithDebug (type alias)](#msgwithdebug-type-alias)
- [debugInit (function)](#debuginit-function)
- [debugMsg (function)](#debugmsg-function)
- [runDebugger (function)](#rundebugger-function)
- [updateWithDebug (function)](#updatewithdebug-function)
- [debugInit](#debuginit)
- [debugMsg](#debugmsg)
- [runDebugger](#rundebugger)
- [updateWithDebug](#updatewithdebug)

---

Expand Down Expand Up @@ -147,31 +147,31 @@ export type MsgWithDebug<Model, Msg> =
Added in v0.5.0
# debugInit (function)
# debugInit
Creates a `DebugInit`
**Signature**
```ts
export const debugInit = (): DebugInit => ...
export declare const debugInit: () => DebugInit
```
Added in v0.5.0
# debugMsg (function)
# debugMsg
Creates a `DebugMsg`
**Signature**
```ts
export const debugMsg = <Msg>(payload: Msg): DebugMsg<Msg> => ...
export declare const debugMsg: <Msg>(payload: Msg) => DebugMsg<Msg>
```
Added in v0.5.0
# runDebugger (function)
# runDebugger
Checks which type of debugger can be used (standard `console` or _Redux DevTool Extension_) based on provided `window` and prepares the subscription to the "debug" stream
Expand All @@ -180,15 +180,15 @@ Checks which type of debugger can be used (standard `console` or _Redux DevTool
**Signature**
```ts
export function runDebugger<Model, Msg>(
export declare function runDebugger<Model, Msg>(
win: Global,
stop$: Observable<unknown>
): (deps: DebuggerR<Model, Msg>) => IO<void> { ... }
): (deps: DebuggerR<Model, Msg>) => IO<void>
```

Added in v0.5.4

# updateWithDebug (function)
# updateWithDebug

Adds debugging capability to the provided `update` function.

Expand All @@ -215,10 +215,10 @@ or applying a message with:
**Signature**

```ts
export function updateWithDebug<Model, Msg>(
export declare function updateWithDebug<Model, Msg>(
debug$: BehaviorSubject<DebugData<Model, Msg>>,
update: (msg: Msg, model: Model) => [Model, Cmd<Msg>]
): (msg: MsgWithDebug<Model, Msg>, model: Model) => [Model, Cmd<Msg>] { ... }
): (msg: MsgWithDebug<Model, Msg>, model: Model) => [Model, Cmd<Msg>]
```

Added in v0.5.3
Loading

0 comments on commit 48d03a2

Please sign in to comment.