From f940d31bb6268fe856808f469757bfa47d2afe8c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 21:11:34 +0000 Subject: [PATCH 1/3] Initial plan From 4c2992e2cf96fb6f1427fcd42825c02b3bc98c60 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 21:14:07 +0000 Subject: [PATCH 2/3] feat(math): add deprecation warning to sum function in favor of Math.sumPrecise Agent-Logs-Url: https://github.com/edouardmisset/utils/sessions/8033044a-0e9d-49fd-a415-598c379d5dc5 Co-authored-by: edouardmisset <63284636+edouardmisset@users.noreply.github.com> --- math/sum.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/math/sum.ts b/math/sum.ts index 0347958..76330c0 100644 --- a/math/sum.ts +++ b/math/sum.ts @@ -2,6 +2,19 @@ * This function calculates the sum of all numbers provided as arguments. * It accepts either a single array of numbers or multiple number arguments. * + * @deprecated Deprecated and scheduled for removal in v6, native + * `Math.sumPrecise` should be preferred. + * + * Migration (native): + * ```typescript + * import { assertEquals } from '@std/assert' + * + * assertEquals(Math.sumPrecise([1, 2, 3]), 6) + * ``` + * + * API availability: + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sumPrecise#browser_compatibility + * * @param {...(number[] | number)[]} number_ - The numbers to sum. * @returns {number} The sum of all numbers. * From a900d9c20f9c57d12f2ac3bcaa704adbdaadf5f5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 1 May 2026 10:42:19 +0000 Subject: [PATCH 3/3] fix(math): mark Math.sumPrecise migration example as typescript ignore Agent-Logs-Url: https://github.com/edouardmisset/utils/sessions/7e59bbbf-5fb2-4fa1-a08d-c8c4b30499d9 Co-authored-by: edouardmisset <63284636+edouardmisset@users.noreply.github.com> --- math/sum.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/sum.ts b/math/sum.ts index 76330c0..87842f7 100644 --- a/math/sum.ts +++ b/math/sum.ts @@ -6,7 +6,7 @@ * `Math.sumPrecise` should be preferred. * * Migration (native): - * ```typescript + * ```typescript ignore * import { assertEquals } from '@std/assert' * * assertEquals(Math.sumPrecise([1, 2, 3]), 6)