Skip to content

Commit

Permalink
Prepare release 2.44.0 (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
klippx authored Sep 12, 2024
1 parent 3a3c092 commit 8d1835e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
25 changes: 0 additions & 25 deletions .changeset/sharp-vans-approve.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## 2.44.0

### Minor Changes

- 3a3c092: # Add support for abort signals

The [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object. All gateway APIs (Fetch, HTTP and XHR) support this interface via the `signal` parameter:

```javascript
const abortController = new AbortController()
// Start a long running task...
client.Bitcoin.mine({ signal: abortController.signal })
// This takes too long, abort!
abortController.abort()
```

# Minor type fixes

The return value of some functions on `Request` have been updated to highlight that they might return undefined:

- `Request#body()`
- `Request#auth()`
- `Request#timeout()`

The reasoning behind this change is that if you didn't pass them (and no middleware set them) they might simply be undefined. So the types were simply wrong before. If you experience a "breaking change" due to this change, then it means you have a potential bug that you didn't properly handle before.

## 2.43.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mappersmith",
"version": "2.43.4",
"version": "2.44.0",
"description": "It is a lightweight rest client for node.js and the browser",
"author": "Tulio Ornelas <ornelas.tulio@gmail.com>",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '2.43.4'
export const version = '2.44.0'

0 comments on commit 8d1835e

Please sign in to comment.