From 3050b4112bfcc821eeaaf8025121f2af3f72487b Mon Sep 17 00:00:00 2001 From: Mark Silverwood Date: Wed, 2 Aug 2023 10:15:30 +0100 Subject: [PATCH 1/2] dont merge array contents --- src/helpers/strict-type-checks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/strict-type-checks.ts b/src/helpers/strict-type-checks.ts index 620657353e..7832fa980a 100644 --- a/src/helpers/strict-type-checks.ts +++ b/src/helpers/strict-type-checks.ts @@ -18,7 +18,7 @@ export function merge(dst: Record, ...sources: Record[ continue; } - if ('object' !== typeof src[i] || dst[i] === undefined) { + if ('object' !== typeof src[i] || dst[i] === undefined || Array.isArray(src[i])) { dst[i] = src[i]; } else { // eslint-disable-next-line @typescript-eslint/no-unsafe-argument From 65b8fe1f14f8283cd44566f23b83ea93b9ddfac0 Mon Sep 17 00:00:00 2001 From: Mark Silverwood Date: Wed, 16 Aug 2023 14:56:20 +0100 Subject: [PATCH 2/2] update size-limit after master merge Size limit exceeded by 4 B --- .size-limit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.size-limit.js b/.size-limit.js index 91cdcda788..5b8e3fa6a4 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -4,21 +4,21 @@ module.exports = [ { name: 'CJS', path: 'dist/lightweight-charts.production.cjs', - limit: '47.58 KB', + limit: '47.59 KB', }, { name: 'ESM', path: 'dist/lightweight-charts.production.mjs', - limit: '47.53 KB', + limit: '47.54 KB', }, { name: 'Standalone-ESM', path: 'dist/lightweight-charts.standalone.production.mjs', - limit: '49.25 KB', + limit: '49.26 KB', }, { name: 'Standalone', path: 'dist/lightweight-charts.standalone.production.js', - limit: '49.3 KB', + limit: '49.31 KB', }, ];