Releases: workast/sdk
Releases · workast/sdk
Release list
v3.5.0
What's Changed
- Added notes.create and regenerated types for markdown notes by @guillegette in #66
Full Changelog: v3.4.0...v3.5.0
v3.4.0
What's Changed
- Add AccountError for deactivated and suspended accounts by @guillegette in #65
Full Changelog: v3.3.0...v3.4.0
v3.3.0
What's Changed
- Add a default 30s request timeout by @guillegette in #62
Full Changelog: v3.2.0...v3.3.0
v3.2.0
What's Changed
- Add tasks.createPersonal for the personal list by @guillegette in #61
Full Changelog: v3.1.0...v3.2.0
v3.1.0
What's new
@workast/sdk/mock stubs SDK methods so tests and examples can run without hitting the API. It also ships examples — Public API response fixtures generated from the spec (examples.task, examples.list, examples.userResource, and so on).
import { Workast } from '@workast/sdk';
import { examples, mockWorkast } from '@workast/sdk/mock';
const workast = new Workast({ apiKey: process.env.WORKAST_API_KEY });
const mock = mockWorkast();
mock.tasks.create.on(examples.list.id, { text: examples.task.text }).resolves({
...examples.task,
text: 'Ship from my test',
});Queue errors with .rejects() and errors.*. Inspect traffic with mock.calls(), then reset() or restore() when the test is done.
See the testing section in the README for matching rules and helpers.
Full Changelog: v3.0.0...v3.1.0
v3.0.0
What's Changed
- Release 2.3.0 by @MatiasFito in #59
- v3 by @guillegette in #60
Full Changelog: v2.3.0...v3.0.0