Skip to content

Commit 5812bbd

Browse files
Merge pull request #1022 from NullVoxPopuli/changeset-release/main
Release Preview
2 parents de0a6d4 + 6856378 commit 5812bbd

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.changeset/sour-coats-shop.md

-9
This file was deleted.

ember-resources/CHANGELOG.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# ember-resources
22

3+
## 6.4.2
4+
5+
### Patch Changes
6+
7+
- [#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.
8+
That's been removed.
9+
10+
`| undefined` is still a valid type if the passed value is possibly `| undefined`.
11+
This made the `| undefined` on `keepLatest` redundant.
12+
313
## 6.4.1
414

515
### Patch Changes
@@ -26,7 +36,7 @@
2636
let id = typeof maybeIdFn === "function" ? maybeIdFn() : maybeIdFn;
2737
let response = await fetch(`https://api.github.com/users/${id}`);
2838
return response.json();
29-
})
39+
}),
3040
);
3141

3242
// `use` returns a ReadonlyCell where `.current`
@@ -96,15 +106,15 @@
96106
let num = numFn();
97107

98108
return Math.sqrt(num);
99-
})
109+
}),
100110
);
101111

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

106116
return Math.pow(num, 2);
107-
})
117+
}),
108118
);
109119

110120
const Hypotenuse = resourceFactory((aFn: NumberThunk, bFn: NumberThunk) => {
@@ -114,7 +124,7 @@
114124
const c = use(
115125
Sqrt(() => {
116126
return (aSquared.current.value ?? 0) + (bSquared.current.value ?? 0);
117-
})
127+
}),
118128
);
119129

120130
// We use the function return because we want this property chain
@@ -314,7 +324,7 @@
314324

315325
data = use(
316326
this,
317-
Clock(() => this.locale)
327+
Clock(() => this.locale),
318328
);
319329
}
320330
```

ember-resources/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-resources",
3-
"version": "6.4.1",
3+
"version": "6.4.2",
44
"keywords": [
55
"ember-addon"
66
],

0 commit comments

Comments
 (0)