You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
Dates are formatted as YYYY-MM-DD.
8
8
9
-
## [Unreleased]
9
+
## Unreleased
10
10
11
11
### Changed
12
12
@@ -38,7 +38,6 @@ and the return type of `m.get('length')` is typed as `number`.
38
38
The return of `m.get('inexistant')` throw the TypeScript error:
39
39
40
40
> Argument of type '"inexistant"' is not assignable to parameter of type '1 | "length"
41
-
42
41
#### If you want to keep the old definition
43
42
44
43
**This is a minor BC for TS users**, so if you want to keep the old definition, you can declare you Map like this:
@@ -57,7 +56,6 @@ type MyMapType = {
57
56
1:string|null;
58
57
optionalProperty?:string;
59
58
};
60
-
61
59
const m =Map<MyMapType>({ length: 3, 1: 'one' });
62
60
```
63
61
@@ -79,6 +77,30 @@ Map<{ a?: string }>({ a: 'a' }).delete('a'); // you can only delete an optional
79
77
80
78
For now, only `get`, `getIn`, `set`, `update`, `delete` and `remove` methods are implemented. All other methods will fallback to the basic `Map` definition. Other method definition will be added later, but as some might be really complex, we prefer the progressive enhancement on the most used functions.
81
79
80
+
81
+
82
+
## [4.2.4] - 2023-02-06
83
+
84
+
- Improve type infererence for from JS by [KSXGitHub](https://github.com/KSXGitHub)[#1927](https://github.com/immutable-js/immutable-js/pull/1927)
85
+
86
+
## [4.2.3] - 2023-02-02
87
+
88
+
- TypeScript: `groupBy` return either a `Map` or an `OrderedMap`: make the type more precise than base `Collection`[#1924](https://github.com/immutable-js/immutable-js/pull/1924)
89
+
90
+
## [4.2.2] - 2023-01-02
91
+
92
+
-[Flow] Add type for `partition` method [#1920](https://github.com/immutable-js/immutable-js/pull/1920) by [Dagur](https://github.com/Dagur)
93
+
94
+
## [4.2.1] - 2022-12-23
95
+
96
+
-[Typescript] rollback some of the change on `toJS` to avoir circular reference
97
+
98
+
## [4.2.0] - 2022-12-22
99
+
100
+
-[TypeScript] Better type for toJS [#1917](https://github.com/immutable-js/immutable-js/pull/1917) by [jdeniau](https://github.com/jdeniau)
101
+
-[TS Minor Break] tests are ran with TS > 4.5 only. It was tested with TS > 2.1 previously, but we want to level up TS types with recent features. TS 4.5 has been released more than one year before this release. If it does break your implementation (it might not), you should probably consider upgrading to the latest TS version.
102
+
- Added a `partition` method to all containers [#1916](https://github.com/immutable-js/immutable-js/pull/1916) by [johnw42](https://github.com/johnw42)
103
+
82
104
## [4.1.0] - 2022-05-23
83
105
84
106
- Accept Symbol as Map key. [#1859](https://github.com/immutable-js/immutable-js/pull/1859) by [jdeniau](https://github.com/jdeniau)
0 commit comments