Skip to content

Commit 1f9b5d6

Browse files
committed
Merge branch '2.1.0'
2 parents 6cbd970 + 3192ad4 commit 1f9b5d6

26 files changed

+3705
-506
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v2.1.0
4+
5+
- Upgraded TypeScript to `4.6.4`.
6+
- Improved typing of `Object.property.hasOwnProperty` and `Object.hasOwn`. (https://github.com/uhyo/better-typescript-lib/issues/4)
7+
- Fixed typing of `JSON.stringify` so that its return type includes `undefined` when possible. (https://github.com/uhyo/better-typescript-lib/issues/6)
8+
- Tightened typing of Array higher-order functions. Predicates passed to `filter`, `every` and `some` now must return a value of `boolean` type. (https://github.com/uhyo/better-typescript-lib/issues/7)
9+
310
## v2.0.0
411

512
- Upgraded TypeScript to `4.5.2`.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Starting from TypeScript 4.5, the TypeScript compiler detects existence of `@typ
3232

3333
| better-typescript-lib | TypeScript |
3434
| --------------------- | --------------- |
35+
| 2.1.0 | TS 4.6 or later |
3536
| 2.0.0 | TS 4.5 or later |
3637

3738
[If you are using TypeScript 4.4 or prior, see the v1 branch.](https://github.com/uhyo/better-typescript-lib/tree/v1)

TypeScript

Submodule TypeScript updated 1738 files

build/replacement.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export const replacement = new Map([
88
"IArguments",
99
"JSON",
1010
"ArrayConstructor",
11+
"ReadonlyArray",
12+
"Array",
1113
"PromiseConstructorLike",
14+
"Object",
1215
]),
1316
],
1417
[
@@ -36,6 +39,7 @@ export const replacement = new Map([
3639
"IterableIterator",
3740
"IArguments",
3841
"PromiseConstructor",
42+
"MapConstructor",
3943
]),
4044
],
4145
["es2015.promise.d.ts", new Set(["PromiseConstructor"])],
@@ -47,4 +51,5 @@ export const replacement = new Map([
4751
["es2019.object.d.ts", new Set(["ObjectConstructor"])],
4852
["es2021.promise.d.ts", new Set(["AggregateError"])],
4953
["es2021.string.d.ts", new Set(["String"])],
54+
["es2022.object.d.ts", new Set(["ObjectConstructor"])],
5055
]);

0 commit comments

Comments
 (0)