Skip to content

Releases: workast/sdk

v3.5.0

Choose a tag to compare

@github-actions github-actions released this 16 Sep 02:57

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

Choose a tag to compare

@github-actions github-actions released this 15 Sep 05:38

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

Choose a tag to compare

@github-actions github-actions released this 08 Sep 02:21

What's Changed

Full Changelog: v3.2.0...v3.3.0

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Sep 05:49

What's Changed

Full Changelog: v3.1.0...v3.2.0

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Aug 05:48

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

Choose a tag to compare

@github-actions github-actions released this 16 Aug 03:43

What's Changed

Full Changelog: v2.3.0...v3.0.0