Skip to content

Commit

Permalink
Merge pull request #1022 from NullVoxPopuli/changeset-release/main
Browse files Browse the repository at this point in the history
Release Preview
  • Loading branch information
NullVoxPopuli authored Oct 20, 2023
2 parents de0a6d4 + 6856378 commit 5812bbd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
9 changes: 0 additions & 9 deletions .changeset/sour-coats-shop.md

This file was deleted.

20 changes: 15 additions & 5 deletions ember-resources/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# ember-resources

## 6.4.2

### Patch Changes

- [#1019](https://github.com/NullVoxPopuli/ember-resources/pull/1019) [`d63d7b7`](https://github.com/NullVoxPopuli/ember-resources/commit/d63d7b7d72702babc195fe70142741d3d083e290) Thanks [@wagenet](https://github.com/wagenet)! - The `keepLatest` utility previously incorrectly had a `| undefined` type for the return value.
That's been removed.

`| undefined` is still a valid type if the passed value is possibly `| undefined`.
This made the `| undefined` on `keepLatest` redundant.

## 6.4.1

### Patch Changes
Expand All @@ -26,7 +36,7 @@
let id = typeof maybeIdFn === "function" ? maybeIdFn() : maybeIdFn;
let response = await fetch(`https://api.github.com/users/${id}`);
return response.json();
})
}),
);

// `use` returns a ReadonlyCell where `.current`
Expand Down Expand Up @@ -96,15 +106,15 @@
let num = numFn();

return Math.sqrt(num);
})
}),
);

const Squared = resourceFactory((numFn: NumberThunk) =>
trackedFunction(async () => {
let num = numFn();

return Math.pow(num, 2);
})
}),
);

const Hypotenuse = resourceFactory((aFn: NumberThunk, bFn: NumberThunk) => {
Expand All @@ -114,7 +124,7 @@
const c = use(
Sqrt(() => {
return (aSquared.current.value ?? 0) + (bSquared.current.value ?? 0);
})
}),
);

// We use the function return because we want this property chain
Expand Down Expand Up @@ -314,7 +324,7 @@

data = use(
this,
Clock(() => this.locale)
Clock(() => this.locale),
);
}
```
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.4.1",
"version": "6.4.2",
"keywords": [
"ember-addon"
],
Expand Down

0 comments on commit 5812bbd

Please sign in to comment.