Releases: NullVoxPopuli/ember-resources
Releases · NullVoxPopuli/ember-resources
v3.0.1
3.0.1 (2021-07-25)
Bug Fixes
- readme: all code samples now include imports from ember-resources (d7941f4), closes #87
v3.0.0
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:
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
2.0.1 (2021-07-14)
Bug Fixes
- deps: update dependency @ember/test-waiters to ^2.4.5 (010dae3)
v2.0.0
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
1.3.1 (2021-07-09)
Bug Fixes
- readme: Correct example import of
useResource
(5f99b22)
v1.3.0
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
1.2.5 (2021-06-24)
Bug Fixes
- async functions: properly entangle for the value and prevent infinite re-rendering (ad268fe)
v1.2.4
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
1.2.3 (2021-06-23)
Bug Fixes
- lifecycle: support resources without a setup method (d11e6fc)
v1.2.2
1.2.2 (2021-06-17)
Bug Fixes
- deps: update dependency ember-cli-typescript to ^4.2.1 (7a987a0)