Skip to content

Releases: NullVoxPopuli/ember-resources

v3.0.1

25 Jul 21:50
Compare
Choose a tag to compare

3.0.1 (2021-07-25)

Bug Fixes

  • readme: all code samples now include imports from ember-resources (d7941f4), closes #87

v3.0.0

20 Jul 14:20
Compare
Choose a tag to compare

3.0.0 (2021-07-20)

Features

  • functions: all useFunction functions are now async (01c6ffd)

BREAKING CHANGES

  • functions: all functions async due to an issue that came up
    during production builds, where minification would optimize away the
    async/await when the function was a one liner, like:
async () => {
  return await ...
}

the async keyword was a clue to the FunctionRunner to go down a
different code branch (before running the function), but when the above
example function was minified, it became:

() => { return ... }

which then made the FunctionRunner go down the sync path, resulting
in the value being a promise, rather than the resolved value of the
promise.

v2.0.1

14 Jul 01:08
Compare
Choose a tag to compare

2.0.1 (2021-07-14)

Bug Fixes

  • deps: update dependency @ember/test-waiters to ^2.4.5 (010dae3)

v2.0.0

10 Jul 18:29
Compare
Choose a tag to compare

2.0.0 (2021-07-10)

Features

  • useFunction now supports an initialValue param (6ba9e26)

BREAKING CHANGES

  • useFunction is no longer an alias of useResource

v1.3.1

09 Jul 20:55
Compare
Choose a tag to compare

1.3.1 (2021-07-09)

Bug Fixes

  • readme: Correct example import of useResource (5f99b22)

v1.3.0

25 Jun 18:23
Compare
Choose a tag to compare

1.3.0 (2021-06-25)

Bug Fixes

  • readme: table of contents links now work (00a397f)

Features

  • types, docs: document types and how to test with resources (8545bb6)

v1.2.5

24 Jun 20:58
Compare
Choose a tag to compare

1.2.5 (2021-06-24)

Bug Fixes

  • async functions: properly entangle for the value and prevent infinite re-rendering (ad268fe)

v1.2.4

24 Jun 17:22
Compare
Choose a tag to compare

1.2.4 (2021-06-24)

Bug Fixes

  • types: add type visibility to the FunctionRunner to keep private (e051be9)
  • when an async function resolves, auto-tracking should do stuff (6504660)

v1.2.3

23 Jun 22:02
Compare
Choose a tag to compare

1.2.3 (2021-06-23)

Bug Fixes

  • lifecycle: support resources without a setup method (d11e6fc)

v1.2.2

17 Jun 13:49
Compare
Choose a tag to compare

1.2.2 (2021-06-17)

Bug Fixes

  • deps: update dependency ember-cli-typescript to ^4.2.1 (7a987a0)