Skip to content

Commit

Permalink
release version 5.2.0 (#748)
Browse files Browse the repository at this point in the history
* bump version to 5.2.0

* fix docs

* update changelog
  • Loading branch information
StefanoMagrassi authored Oct 17, 2023
1 parent ea9eb6f commit de04c51
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [5.2.0](https://github.com/contactlab/appy/releases/tag/5.2.0)

**New Feature:**

- Forward `RequestInfoInit` to `ResponseError` (#743)

## [5.1.0](https://github.com/contactlab/appy/releases/tag/5.1.0)

**New Feature:**
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ type ReqInput = RequestInfo | RequestInfoInit;
type RequestInfoInit = [RequestInfo, RequestInit];
```

`Resp<A>` is an object that carries the original `Response` from a `fetch()` call and the actual retrieved `data` (of type `A`).
`Resp<A>` is an object that carries the original `Response` from a `fetch()` call, the actual retrieved `data` (of type `A`) and the request's input (optional).

```ts
interface Resp<A> {
response: Response;
data: A;
input?: RequestInfoInit;
}
```

Expand All @@ -75,7 +76,7 @@ interface RequestError {
}
```

`ResponseError` represents a response error. It carries the generated `Error` and the original `Response` object.
`ResponseError` represents a response error. It carries the generated `Error`, the original `Response` object and the request's input (optional).

```ts
interface ResponseError {
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ nav_order: 2

# Changelog

## [5.2.0](https://github.com/contactlab/appy/releases/tag/5.2.0)

**New Feature:**

- Forward `RequestInfoInit` to `ResponseError` (#743)

## [5.1.0](https://github.com/contactlab/appy/releases/tag/5.1.0)

**New Feature:**
Expand Down
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ type ReqInput = RequestInfo | RequestInfoInit;
type RequestInfoInit = [RequestInfo, RequestInit];
```

`Resp<A>` is an object that carries the original `Response` from a `fetch()` call and the actual retrieved `data` (of type `A`).
`Resp<A>` is an object that carries the original `Response` from a `fetch()` call, the actual retrieved `data` (of type `A`) and the request's input (optional).

```ts
interface Resp<A> {
response: Response;
data: A;
input?: RequestInfoInit;
}
```

Expand All @@ -80,7 +81,7 @@ interface RequestError {
}
```

`ResponseError` represents a response error. It carries the generated `Error` and the original `Response` object.
`ResponseError` represents a response error. It carries the generated `Error`, the original `Response` object and the request's input (optional).

```ts
interface ResponseError {
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/request.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Added in v4.0.0

## ResponseError (interface)

`ResponseError` represents a response error. It carriess the generated `Error` and the original `Response` object.
`ResponseError` represents a response error. It carriess the generated `Error`, the original `Response` object and the request's input (optional).

**Signature**

Expand Down Expand Up @@ -179,7 +179,7 @@ Added in v4.0.0
## Resp (interface)
`Resp<A>` is an object that carries the original `Response` from a `fetch()` call and the actual retrieved `data` (of type `A`).
`Resp<A>` is an object that carries the original `Response` from a `fetch()` call, the actual retrieved `data` (of type `A`) and the request's input (optional).
**Signature**
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contactlab/appy",
"version": "5.1.0",
"version": "5.2.0",
"description": "A functional wrapper around Fetch API",
"main": "./index.js",
"module": "./_es6/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export type RequestInfoInit = [RequestInfo, RequestInit];
export type Combinator = <A>(req: Req<A>) => Req<A>;

/**
* `Resp<A>` is an object that carries the original `Response` from a `fetch()` call and the actual retrieved `data` (of type `A`).
* `Resp<A>` is an object that carries the original `Response` from a `fetch()` call, the actual retrieved `data` (of type `A`) and the request's input (optional).
*
* @category Response
* @since 4.0.0
Expand Down Expand Up @@ -81,7 +81,7 @@ export interface RequestError {
}

/**
* `ResponseError` represents a response error. It carriess the generated `Error` and the original `Response` object.
* `ResponseError` represents a response error. It carriess the generated `Error`, the original `Response` object and the request's input (optional).
*
* @category Error
* @since 4.0.0
Expand Down

0 comments on commit de04c51

Please sign in to comment.