Skip to content

Commit

Permalink
Merge pull request #69 from defer-run/changeset-release/master
Browse files Browse the repository at this point in the history
Upcoming Release Changes
  • Loading branch information
gearnode authored Jul 3, 2023
2 parents 0219cce + 89371de commit de597e5
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 30 deletions.
5 changes: 0 additions & 5 deletions .changeset/mighty-vans-melt.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/spicy-crabs-drop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-cherries-wash.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 @@
# @defer/client

## 1.6.0

### Minor Changes

- [#70](https://github.com/defer-run/defer.client/pull/70) [`4646cd0`](https://github.com/defer-run/defer.client/commit/4646cd0daaa8c88664f564756a5d93d6dc6ef6e3) Thanks [@gearnode](https://github.com/gearnode)! - Introducing `maxDuration` support

`defer()` exposes a new `maxDuration` configuration:

```ts
const importContacts = (companyId: string, contacts: Contact[]) => {
// ...
};

export default defer(importContacts, {
maxDuration: 10 // timeout after 10secs
});
```

BREAKING CHANGE: `maxDuration` has a default value to 30min. Users having executions going over this limit can override it with a higher value `{ maxDuration: 3600 }`

* [#70](https://github.com/defer-run/defer.client/pull/70) [`c92bb44`](https://github.com/defer-run/defer.client/commit/c92bb445b1559406c45aa8a985b6d63ceabbadd8) Thanks [@gearnode](https://github.com/gearnode)! - Allow options for CRON function

### Patch Changes

- [#68](https://github.com/defer-run/defer.client/pull/68) [`74ab12b`](https://github.com/defer-run/defer.client/commit/74ab12bfbefbf9a16eaa487efc27ebe8681e751b) Thanks [@gearnode](https://github.com/gearnode)! - Fix error code field name

## 1.5.0

### Minor 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": "@defer/client",
"version": "1.5.0",
"version": "1.6.0",
"description": "Zero infrastructure NodeJS background jobs",
"main": "dist/cjs/index.js",
"repository": "git@github.com:defer-run/defer.client.git",
Expand Down

0 comments on commit de597e5

Please sign in to comment.