Skip to content

Commit 339ef9e

Browse files
committed
Rollback sideEffects implementation
1 parent 53bcb2f commit 339ef9e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Dates are formatted as YYYY-MM-DD.
88

99
## Unreleased
1010

11+
## [5.0.0-beta.3]
12+
13+
Remove tree-shaking possibility as it does break. Moreover, as nearly every collection type can be converted to another collection (`Map().toList()` for example), so nearly no code was removed.
14+
15+
I think that if we want to implement this, we might need to rethink this functionality.
16+
1117
## [5.0.0-beta.2]
1218

1319
Merge `main` branch into `5.x` for [4.3.4](https://github.com/immutable-js/immutable-js/releases/tag/v4.3.4) fixes.
@@ -16,10 +22,9 @@ Merge `main` branch into `5.x` for [4.3.4](https://github.com/immutable-js/immut
1622

1723
### Changed
1824

19-
### [Minor BC break] Reducing file size / tree shaking
25+
### [Minor BC break] Remove default export
2026

2127
Immutable does not export a default object containing all it's API anymore.
22-
It changes the output of your JS file if you use a bundler that supports tree-shaking (all modern bundler do).
2328
As a drawback, you can not `immport Immutable` directly:
2429

2530
```diff
@@ -157,7 +162,6 @@ For now, only `get`, `getIn`, `set`, `update`, `delete`, `remove`, `toJS`, `toJS
157162

158163
## [4.1.0] - 2022-05-23
159164

160-
- [BREAKING] The ES6 bundle no longer exposes a default export, which allows bundlers to apply tree-shaking. [#1888](https://github.com/immutable-js/immutable-js/pull/1888) by [bdurrer](https://github.com/bdurrer)
161165
- Accept Symbol as Map key. [#1859](https://github.com/immutable-js/immutable-js/pull/1859) by [jdeniau](https://github.com/jdeniau)
162166
- Optimize contructors without arguments [#1887](https://github.com/immutable-js/immutable-js/pull/1887) by [marianoguerra](https://github.com/marianoguerra)
163167
- Fix Flow removeIn types [#1902](https://github.com/immutable-js/immutable-js/pull/1902) by [nifgraup](https://github.com/nifgraup)

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
"main": "dist/immutable.js",
1919
"module": "dist/es/Immutable.js",
2020
"types": "dist/immutable.d.ts",
21-
"sideEffects": [
22-
"./src/CollectionImpl.js"
23-
],
2421
"files": [
2522
"dist",
2623
"README.md",
@@ -142,13 +139,13 @@
142139
"name": "List",
143140
"path": "dist/es/Immutable.js",
144141
"import": "{ List }",
145-
"limit": "12 kB"
142+
"limit": "20 kB"
146143
},
147144
{
148145
"name": "Seq",
149146
"path": "dist/es/Immutable.js",
150147
"import": "{ Seq }",
151-
"limit": "2 kB"
148+
"limit": "20 kB"
152149
}
153150
]
154151
}

0 commit comments

Comments
 (0)