Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Preview (beta) #790

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
"initialVersions": {
"docs": "0.0.0",
"ember-resources": "5.6.2",
"ember-app": "0.0.0"
"ember-app": "0.0.0",
"test-app": "0.0.0"
},
"changesets": [
"afraid-cherries-type",
"curvy-frogs-sin",
"gold-weeks-destroy",
"hungry-waves-kiss",
"long-apples-sneeze",
"twenty-adults-knock"
"many-brooms-turn",
"red-badgers-doubt",
"twenty-adults-knock",
"young-walls-own"
]
}
59 changes: 59 additions & 0 deletions ember-resources/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
# ember-resources

## 6.0.0-beta.1

### Major Changes

- [#785](https://github.com/NullVoxPopuli/ember-resources/pull/785) [`66cee0e`](https://github.com/NullVoxPopuli/ember-resources/commit/66cee0e3cb91a4baa6b8a35aed8c67c2d05322a3) Thanks [@NullVoxPopuli](https://github.com/NullVoxPopuli)! - The import path `ember-resources/util/function-resource` has been removed,
as all the relevent exports have been available from `ember-resources` since v5.

### Minor Changes

- [#794](https://github.com/NullVoxPopuli/ember-resources/pull/794) [`8989bbb`](https://github.com/NullVoxPopuli/ember-resources/commit/8989bbb1afb41404f27c76a0b083f7bb46d7fc9e) Thanks [@NullVoxPopuli](https://github.com/NullVoxPopuli)! - New Utils: UpdateFrequency and FrameRate

NOTE: for existing users of `ember-resources`, this addition has no impact on your bundle.

<details><summary>FrameRate</summary>

Utility that uses requestAnimationFrame to report
how many frames per second the current monitor is
rendering at.

The result is rounded to two decimal places.

```js
import { FramRate } from "ember-resources/util/fps";

<template>{{ FrameRate }}</template>;
```

</details>

<details><summary>UpdateFrequency</summary>

Utility that will report the frequency of updates to tracked data.

```js
import { UpdateFrequency } from 'ember-resources/util/fps';

export default class Demo extends Component {
@tracked someProp;

@use updateFrequency = UpdateFrequency(() => this.someProp);

<template>
{{this.updateFrequency}}
</template>
}
```

NOTE: the function passed to UpdateFrequency may not set tracked data.

</details>

### Patch Changes

- [#806](https://github.com/NullVoxPopuli/ember-resources/pull/806) [`00e8f2f`](https://github.com/NullVoxPopuli/ember-resources/commit/00e8f2f2f3f35fb3272629ff0e9c7dfbd1aaf9b0) Thanks [@sergey-zhidkov](https://github.com/sergey-zhidkov)! - `trackedTask` must return correct last value.

Fixes the issue described at #793
If the task was called multiple times and the last returned value was null or undefined,
then trackedTask will return the previous value instead of the current one.

## 6.0.0-beta.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion ember-resources/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-resources",
"version": "6.0.0-beta.0",
"version": "6.0.0-beta.1",
"keywords": [
"ember-addon"
],
Expand Down