From d59d79632ae00af3273c60d255ed1a5845a2fa45 Mon Sep 17 00:00:00 2001 From: rstachof Date: Fri, 10 Jan 2025 20:08:34 -0500 Subject: [PATCH] put immer10each benchmark back --- immutability-benchmarks.mjs | 3 +++ package.json | 1 + pnpm-lock.yaml | 8 ++++++++ 3 files changed, 12 insertions(+) diff --git a/immutability-benchmarks.mjs b/immutability-benchmarks.mjs index a1ad860..208ffad 100644 --- a/immutability-benchmarks.mjs +++ b/immutability-benchmarks.mjs @@ -7,6 +7,7 @@ import {produce as produce7, setAutoFreeze as setAutoFreeze7} from "immer7" import {produce as produce8, setAutoFreeze as setAutoFreeze8} from "immer8" import {produce as produce9, setAutoFreeze as setAutoFreeze9} from "immer9" import {produce as produce10, setAutoFreeze as setAutoFreeze10} from "immer10" +import {produce as produce10Each, setAutoFreeze as setAutoFreeze10Each} from "immer10Each" import {create as produceMutative} from "mutative"; import {produce as produceMutativeCompat, setAutoFreeze as setAutoFreezeMutativeCompat} from "mutative-compat"; import {bench, run, group, summary} from "mitata" @@ -62,6 +63,7 @@ const immerProducers = { // immer8: produce8, immer9: produce9, immer10: produce10, + immer10Each: produce10Each, mutative: produceMutative, mutativeCompat: produceMutativeCompat } @@ -74,6 +76,7 @@ const setAutoFreezes = { // immer8: setAutoFreeze8, immer9: setAutoFreeze9, immer10: setAutoFreeze10, + immer10Each: setAutoFreeze10Each, mutative: () => {}, mutativeCompat: setAutoFreezeMutativeCompat } diff --git a/package.json b/package.json index 715136c..51cf801 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "cross-env": "^7.0.3", "immer": "^10.1.1", "immer10": "npm:immer@10", + "immer10Each": "file:.yalc/immer", "immer5": "npm:immer@5", "immer6": "npm:immer@6", "immer7": "npm:immer@7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9dac7f6..dd38a5d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: immer10: specifier: npm:immer@10 version: immer@10.1.1 + immer10Each: + specifier: file:.yalc/immer + version: immer@file:.yalc/immer immer5: specifier: npm:immer@5 version: immer@5.3.6 @@ -71,6 +74,9 @@ packages: immer@9.0.21: resolution: {integrity: sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==} + immer@file:.yalc/immer: + resolution: {directory: .yalc/immer, type: directory} + isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -127,6 +133,8 @@ snapshots: immer@9.0.21: {} + immer@file:.yalc/immer: {} + isexe@2.0.0: {} mitata@1.0.25: {}