From 93f6a53d221c34bafc25086f3cbcc1f03f6068e7 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 10 Jun 2022 15:58:58 +0000 Subject: [PATCH 1/2] chore!: properly add the removal of utils.global to the renamings file. --- scripts/migration/renamings.json5 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/migration/renamings.json5 b/scripts/migration/renamings.json5 index 507d195a308..88550dae93e 100644 --- a/scripts/migration/renamings.json5 +++ b/scripts/migration/renamings.json5 @@ -214,6 +214,11 @@ mouseToSvg: {newModule: 'Blockly.utils.browserEvents'}, }, }, + { + oldName: 'Blockly.utils.global', + newExport: 'globalThis', + newPath: 'Blockly.utils.global', + } { oldName: 'Blockly.utils.IdGenerator', newName: 'Blockly.utils.idGenerator', @@ -1332,5 +1337,10 @@ }, ], - 'develop': [ ], + 'develop': [ + { + 'oldName': 'Blockly.utils.global', + 'newPath': 'globalThis', + } + ], } From 0472c5d14f8f8de07719984504b5c1f16884c822 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 10 Jun 2022 16:35:35 +0000 Subject: [PATCH 2/2] fix: add missing commma --- scripts/migration/renamings.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/migration/renamings.json5 b/scripts/migration/renamings.json5 index 88550dae93e..b1e9ef2088e 100644 --- a/scripts/migration/renamings.json5 +++ b/scripts/migration/renamings.json5 @@ -218,7 +218,7 @@ oldName: 'Blockly.utils.global', newExport: 'globalThis', newPath: 'Blockly.utils.global', - } + }, { oldName: 'Blockly.utils.IdGenerator', newName: 'Blockly.utils.idGenerator',