From 2257b1da19f562fe427606f5e8793ab76cc34f25 Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Tue, 15 Nov 2022 16:56:00 +0000 Subject: [PATCH] fix(renamings): Small correction to renaming of Blockly.utils.global (#6599) It doesn't make any difference in practice to the behaviour of the renamings script, but this entry in renamings.json5 was slightly mis-specified, and only works properly because this former module had only a singe export. Also remove some unnecessary quoting of keywords. --- scripts/migration/renamings.json5 | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/migration/renamings.json5 b/scripts/migration/renamings.json5 index 540fd08e5..f5d0e858e 100644 --- a/scripts/migration/renamings.json5 +++ b/scripts/migration/renamings.json5 @@ -1339,8 +1339,13 @@ '9.0.0': [ { - 'oldName': 'Blockly.utils.global', - 'newPath': 'globalThis', + oldName: 'Blockly.utils.global', + exports: { + globalThis: { + oldPath: 'Blockly.utils.global', + newPath: 'globalThis', + } + } }, { oldName: 'Blockly.Dart', @@ -1366,7 +1371,7 @@ oldName: 'Blockly.Python', newExport: 'pythonGenerator', newPath: 'Blockly.Python', - 'oldName': 'Blockly.ContextMenuRegistry', + oldName: 'Blockly.ContextMenuRegistry', exports: { 'ContextMenuRegistry.ScopeType': { oldPath: 'Blockly.ContextMenuRegistry.ScopeType', @@ -1396,7 +1401,7 @@ }, }, { - 'oldName': 'Blockly.Input', + oldName: 'Blockly.Input', exports: { 'Input.Align': { oldPath: 'Blockly.Input.Align', @@ -1406,7 +1411,7 @@ }, }, { - 'oldName': 'Blockly.Names', + oldName: 'Blockly.Names', exports: { 'Names.NameType': { oldPath: 'Blockly.Names.NameType',