Skip to content

Commit 7129237

Browse files
committed
docs(readme): update
1 parent 9cbea9f commit 7129237

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
[![NPM Downloads](https://img.shields.io/npm/dm/mutative)](https://npmtrends.com/mutative)
99
![license](https://img.shields.io/npm/l/mutative)
1010

11-
1211
**Mutative** - A JavaScript library for efficient immutable updates, 2-6x faster than naive handcrafted reducer, and more than 10x faster than Immer.
1312

1413
**Why is Mutative faster than the spread operation(naive handcrafted reducer)?**
@@ -173,6 +172,7 @@ Overall, Mutative has a huge performance lead over Immer in [more performance te
173172
| Non-global config |||
174173
| async draft function |||
175174
| Fully compatible with JSON Patch spec |||
175+
| new Set methods(Mutative v1.1.0+) |||
176176

177177
Mutative has fewer bugs such as accidental draft escapes than Immer, [view details](https://github.com/unadlib/mutative/blob/main/test/immer-non-support.test.ts).
178178

website/blog/releases/1.0/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ While Immer has been a popular choice for handling immutable data, Mutative 1.0
140140
| Non-global config |||
141141
| async draft function |||
142142
| Fully compatible with JSON Patch spec |||
143+
| new Set methods(Mutative v1.1.0+) |||
143144

144145
Mutative has fewer bugs such as accidental draft escapes than Immer, [view details](https://github.com/unadlib/mutative/blob/main/test/immer-non-support.test.ts).
145146

website/docs/extra-topics/comparison-with-immer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Mutative is a high-performance immutable update library, and Immer is a popular
1818
| Non-global config |||
1919
| async draft function |||
2020
| Fully compatible with JSON Patch spec |||
21+
| new Set methods(Mutative v1.1.0+) |||
2122

2223
Mutative has fewer bugs such as accidental draft escapes than Immer, [view details](https://github.com/unadlib/mutative/blob/main/test/immer-non-support.test.ts).
2324

@@ -55,4 +56,3 @@ Immer relies on auto-freeze to be enabled, if auto-freeze is disabled, Immer wil
5556
So if you are using Immer, you will have to enable auto-freeze for performance. Mutative is disabled auto-freeze by default. With the default configuration of both, we can see the 16x performance gap between Mutative (`6,015 ops/sec`) and Immer (`382 ops/sec`).
5657

5758
Overall, Mutative has a huge performance lead over Immer in [more performance testing scenarios](https://github.com/unadlib/mutative/tree/main/test/performance). Run `yarn performance` to get all the performance results locally.
58-

0 commit comments

Comments
 (0)