diff --git a/HISTORY.md b/HISTORY.md index 3919df4d8..1186ff186 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,14 @@ ## in development: +## 10.1.5: +* **Notable Fixes:** + * fixed broadcasting and sending messages with data + +### 2024-09-15 +* threads: fixed broadcasting with data +* prepared v10.1.5 patch + ## 10.1.4: * **Notable Fixes:** * fixed a dictionary lookup glitch for primitive block palettes diff --git a/snap.html b/snap.html index 9f348991d..1f4f7af78 100755 --- a/snap.html +++ b/snap.html @@ -17,10 +17,10 @@ - + - + diff --git a/src/gui.js b/src/gui.js index 126aa6723..aee1efe91 100644 --- a/src/gui.js +++ b/src/gui.js @@ -87,11 +87,11 @@ BlockVisibilityDialogMorph, ThreadManager, isString, SnapExtensions, snapEquals // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2024-October-13'; +modules.gui = '2024-October-15'; // Declarations -var SnapVersion = '10.1.4'; +var SnapVersion = '10.1.5'; var IDE_Morph; var ProjectDialogMorph; diff --git a/src/threads.js b/src/threads.js index 01d294567..b9e5c7ee3 100644 --- a/src/threads.js +++ b/src/threads.js @@ -65,7 +65,7 @@ StagePickerMorph, CustomBlockDefinition, CommentMorph*/ /*jshint esversion: 11, bitwise: false, evil: true*/ -modules.threads = '2024-October-13'; +modules.threads = '2024-October-15'; var ThreadManager; var Process; @@ -1055,8 +1055,11 @@ Process.prototype.evaluateMultiSlot = function (multiSlot, argCount) { } } } - if (inputs.length) { - // format the inputs as 2D table + if (inputs.length && + !['%receive', '%send'].includes(multiSlot.elementSpec) + ) { + // format the inputs as 2D table, unless it's a "built-in" + // group, e.g. for broadcast, scene changes etc. ans = new List(inputs); inputs = this.reportNumbers(1, ans.length()).reshape( new List([0, multiSlot.slotSpec.length]) diff --git a/sw.js b/sw.js index 4d990f471..aa8e97888 100644 --- a/sw.js +++ b/sw.js @@ -1,6 +1,6 @@ /*global self, caches*/ /*jshint esversion: 6*/ -var snapVersion = '10.1.4', +var snapVersion = '10.1.5', cacheName = `snap-pwa-${snapVersion}`, filesToCache = [ 'snap.html',