total-typescript/ts-reset (@total-typescript/ts-reset)
### [`v0.6.1`](https://redirect.github.com/total-typescript/ts-reset/blob/HEAD/CHANGELOG.md#061)
##### Patch Changes
- [`757be40`](https://redirect.github.com/total-typescript/ts-reset/commit/757be40): Fixed a bug where creating an empty map would no longer infer types correctly.
### [`v0.6.0`](https://redirect.github.com/total-typescript/ts-reset/blob/HEAD/CHANGELOG.md#060)
##### Minor Changes
- [`6574858`](https://redirect.github.com/total-typescript/ts-reset/commit/6574858): Added a rule, `/map-constructor`, to default `Map` to `Map` when no arguments are passed to the constructor.
Before, you'd get `any` for both key and value types. Now, the result of `Map.get` is `unknown` instead of `any`:
```ts
const userMap = new Map();
const value = userMap.get("matt"); // value: unknown
```
This now is part of the recommended rules.
- [`5bf3a15`](https://redirect.github.com/total-typescript/ts-reset/commit/5bf3a15): Added a rule, `/promise-catch`, to change the `catch` method to take `unknown` instead of `any` as an argument.
```ts
const promise = Promise.reject("error");
// BEFORE
promise.catch((error) => {
console.error(error); // error is any!
});
// AFTER
promise.catch((error) => {
console.error(error); // error is unknown!
});
```
##### Patch Changes
- [`53cee4f`](https://redirect.github.com/total-typescript/ts-reset/commit/53cee4f): author: [@none23](https://redirect.github.com/none23)
Fixed a bug where running .filter on a union of arrays would not work.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
0.5.1
->0.6.1
Release Notes
total-typescript/ts-reset (@total-typescript/ts-reset)
### [`v0.6.1`](https://redirect.github.com/total-typescript/ts-reset/blob/HEAD/CHANGELOG.md#061) ##### Patch Changes - [`757be40`](https://redirect.github.com/total-typescript/ts-reset/commit/757be40): Fixed a bug where creating an empty map would no longer infer types correctly. ### [`v0.6.0`](https://redirect.github.com/total-typescript/ts-reset/blob/HEAD/CHANGELOG.md#060) ##### Minor Changes - [`6574858`](https://redirect.github.com/total-typescript/ts-reset/commit/6574858): Added a rule, `/map-constructor`, to default `Map` to `MapConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.