Skip to content

Releases: google/blockly

blockly-v12.0.0-beta.1

10 Jan 18:57
Compare
Choose a tag to compare
Pre-release

What's Changed

Breaking changes 🛠

  • refactor!: Use JSON instead of XML for defining dynamic toolbox categories. by @gonfunko in #8658

New features ✨

  • feat: Warn if a variable category is loaded without variable blocks. by @gonfunko in #8704
  • feat: Add a generator for all fields on a block. by @gonfunko in #8667
  • feat: Add a BlockSvg.getStyle() method. by @gonfunko in #8722

Bug fixes 🐛

  • fix: treat media files as binary while packaging them by @jfedor2 in #8706
  • fix: Fix unsafe cast in Input.setVisible(). by @gonfunko in #8695
  • fix: Fix serialization of the lists_split block. by @gonfunko in #8702
  • fix: Paste blocks copied from a mutator into the mutator. by @gonfunko in #8719
  • fix: Disallow adding comments to mutator workspaces. by @gonfunko in #8720
  • fix: Reposition the trashcan's flyout in response to workspace changes. by @gonfunko in #8721
  • fix: Don't create intermediate variables when renaming a procedure argument. by @gonfunko in #8723
  • fix: Fix bug that prevented keyboard navigation in flyouts. by @gonfunko in #8687
  • fix: Fix bug that preventing scrolling menu items into view. by @gonfunko in #8726

Cleanup ♻️

  • refactor: Reenable workspace resizing after reflowing flyouts. by @gonfunko in #8683
  • refactor: Convert renderer typecheck methods to typeguards. by @gonfunko in #8656

Other changes

New Contributors

Full Changelog: blockly-v12.0.0-beta.0...blockly-v12.0.0-beta.1

blockly-v11.2.0

17 Dec 21:09
00fec12
Compare
Choose a tag to compare

What's Changed

New features ✨

Bug fixes 🐛

  • fix: change which element keydown is bound to from document to injection div by @mark-friedman in #8188
  • fix: statement input blocks disappearing by @BeksOmega in #8203
  • fix(dev-tools): only initSvg on rendered blocks by @maribethb in #8215
  • fix: Drag and Resize events for workspace comments by @johnnesky in #8217
  • fix: correctly report the pre-resize-drag size to workspace comment size change listeners by @gonfunko in #8240
  • fix: export the layer constants. by @gonfunko in #8256
  • fix: use the correct with in getBoundingRectangleWithoutChildren(). by @gonfunko in #8298
  • fix: added id to rendered ws comments; made getCommentById public; ad… by @changminbark in #8358
  • fix: Enable blocks if user can't manually enable them. by @johnnesky in #8354
  • fix: drag strategy only clear group id set by us by @HollowMan6 in #8355
  • fix: Codify component weights with toolbox in front of flyouts. by @johnnesky in #8432
  • fix: comments and bubbles on click by @UCYT5040 in #8451
  • fix: Update dev-tools, remove toolbox category tests Colour and Angles by @johnnesky in #8457
  • fix(touch): prevent infinite loop on multi-touch drag by @AbhinavKRN in #8470
  • fix: Let workspace comment have delete cursor over trash. by @johnnesky in #8477
  • fix: Detect if deleting shadow block affects selection highlight by @johnnesky in #8533
  • fix(events): Simplify filter function, add new enqueueEvent function by @cpcallen in #8539
  • fix(comments): added workspace comments and comment drag strategy isDeadOrDying() checks (for multiselect plugin) by @changminbark in #8532
  • fix: Ensure immovable blocks are considered during workspace tidying by @BenHenning in #8550
  • fix: Factor out workspace drag methods into utils. by @johnnesky in #8566
  • fix: Simplify list and text WHERE validation by @johnnesky in #8575
  • fix: Group field validator changes with field value changes. by @johnnesky in #8589
  • fix: Let old block factory overwrite user defined blocks. by @johnnesky in #8605
  • fix: bump initiator group in an orthogonal direction from neighboring group by @johnnesky in #8613
  • fix: clear touch identifier on comment icon down by @riknoll in #8627
  • fix: Use a readonly textarea for non-editable comments. by @gonfunko in #8632
  • fix: Fix crash when resizing page while editing a field. by @gonfunko in #8646
  • fix: Fix bug that caused comments to be incorrectly positioned. by @gonfunko in #8668
  • fix: Disable newly created function call blocks when the corresponding definition is disabled. by @gonfunko in #8665
  • fix: Fix bug that caused text to be selected when long-pressing in the workspace on a touch device. by @gonfunko in #8670
  • fix: typo in comment by @winnchen in #8685
  • fix: workspace shifts when deleting a block by @mateusslezinsky in #8666

Cleanup ♻️

  • docs(blocks): block.ts and blocks/* JSDoc / formatting / etc. cleanup by @cpcallen in #8431
  • refactor(events): introduce EventType enum in separate module by @cpcallen in #8530
  • refactor(events): Don't filter events before undo by @cpcallen in #8537
  • refactor(events): Introduce and use event type predicates by @cpcallen in #8538
  • refactor: Use arrow functions when calling Array.prototype.filter by @cpcallen in #8557
  • refactor: Omit unused exception arguments from catch blocks by @cpcallen in #8559
  • refactor(shortcuts): Improve shortcut registry documentation & style by @cpcallen in #8598
  • refactor: Move functions into FieldDropdown. by @gonfunko in #8634

Other changes

New Contributors

Full Changelog: blockly-v11.1.1...blockly-v11.2.0

blockly-v12.0.0-beta.0

04 Dec 21:11
Compare
Choose a tag to compare
Pre-release

What's Changed

Breaking changes 🛠

New features ✨

Bug fixes 🐛

  • fix: Remove references to getFastTextWidth (#8277) by @ga-fleury in #8307
  • fix: improve prompting when deleting variables by @gonfunko in #8529
  • fix: display the correct variable reference count when deleting a variable. by @gonfunko in #8549
  • fix: improve flyout performance by @gonfunko in #8571
  • fix: size text with computed styles even when hidden by @gonfunko in #8572
  • fix: include potential variables in variable dropdowns in the flyout by @gonfunko in #8574
  • fix: Fix bug that prevented dismissing the widgetdiv in a mutator workspace. by @gonfunko in #8600
  • fix: Fix bug that caused fields in the flyout to use the main workspace's scale. by @gonfunko in #8607
  • fix: Correctly calculate the bounds of hat blocks. by @gonfunko in #8616
  • fix: Take the flyout into account when positioning the workspace after a toolbox change. by @gonfunko in #8617
  • fix: Fix exception when disposing of a workspace with a variable block obscuring a shadow block. by @gonfunko in #8619
  • fix: improve typings and export additional types by @gonfunko in #8631
  • fix: Create CSS vars for SVG patterns. by @johnnesky in #8671

Cleanup ♻️

  • refactor: field_checkbox dom.addClass params by @ishon19 in #8309
  • refactor: Add addClass and removeClass methods to blockSvg by @ishon19 in #8337
  • refactor: make VariableModel implement IVariableModel. by @gonfunko in #8381
  • refactor: update the variable interfaces. by @gonfunko in #8388
  • refactor: make VariableMap implement IVariableMap. by @gonfunko in #8395
  • refactor: Use IVariableModel instead of VariableModel. by @gonfunko in #8400
  • refactor: clean up VariableModel. by @gonfunko in #8416
  • refactor: deprecate and clean up variable-related methods. by @gonfunko in #8415
  • refactor: use getters for flyout width and height. by @gonfunko in #8564
  • refactor: remove redundant flyout positioning. by @gonfunko in #8573

Other changes

  • Added blocklyImageField CSS class to image fields by @vexora-0 in #8439

New Contributors

Read more

blockly-v11.2.0-beta.2

04 Dec 21:08
Compare
Choose a tag to compare
Pre-release

What's Changed

Bug fixes 🐛

  • fix: Fix bug that caused comments to be incorrectly positioned. by @gonfunko in #8668
  • fix: Disable newly created function call blocks when the corresponding definition is disabled. by @gonfunko in #8665
  • fix: Fix bug that caused text to be selected when long-pressing in the workspace on a touch device. by @gonfunko in #8670
  • fix: typo in comment by @winnchen in #8685
  • fix: workspace shifts when deleting a block by @mateusslezinsky in #8666

New Contributors

Full Changelog: blockly-v11.2.0-beta.1...blockly-v11.2.0-beta.2

blockly-v11.2.0-beta.1

11 Nov 19:02
Compare
Choose a tag to compare
Pre-release

What's Changed

Bug fixes 🐛

  • fix: Ensure immovable blocks are considered during workspace tidying by @BenHenning in #8550
  • fix: Factor out workspace drag methods into utils. by @johnnesky in #8566
  • fix: Simplify list and text WHERE validation by @johnnesky in #8575
  • fix: Group field validator changes with field value changes. by @johnnesky in #8589
  • fix: Let old block factory overwrite user defined blocks. by @johnnesky in #8605
  • fix: bump initiator group in an orthogonal direction from neighboring group by @johnnesky in #8613
  • fix: clear touch identifier on comment icon down by @riknoll in #8627
  • fix: Use a readonly textarea for non-editable comments. by @gonfunko in #8632
  • fix: Fix crash when resizing page while editing a field. by @gonfunko in #8646

Cleanup ♻️

  • refactor(shortcuts): Improve shortcut registry documentation & style by @cpcallen in #8598
  • refactor: Move functions into FieldDropdown. by @gonfunko in #8634

New Contributors

Full Changelog: blockly-v11.2.0-beta.0...blockly-v11.2.0-beta.1

blockly-v11.2.0-beta.0

11 Nov 18:44
Compare
Choose a tag to compare
Pre-release

What's Changed

New features ✨

Bug fixes 🐛

  • fix: change which element keydown is bound to from document to injection div by @mark-friedman in #8188
  • fix: statement input blocks disappearing by @BeksOmega in #8203
  • fix(dev-tools): only initSvg on rendered blocks by @maribethb in #8215
  • fix: Drag and Resize events for workspace comments by @johnnesky in #8217
  • fix: correctly report the pre-resize-drag size to workspace comment size change listeners by @gonfunko in #8240
  • fix: export the layer constants. by @gonfunko in #8256
  • fix: use the correct with in getBoundingRectangleWithoutChildren(). by @gonfunko in #8298
  • fix: added id to rendered ws comments; made getCommentById public; ad… by @changminbark in #8358
  • fix: Enable blocks if user can't manually enable them. by @johnnesky in #8354
  • fix: drag strategy only clear group id set by us by @HollowMan6 in #8355
  • fix: Codify component weights with toolbox in front of flyouts. by @johnnesky in #8432
  • fix: comments and bubbles on click by @UCYT5040 in #8451
  • fix: Update dev-tools, remove toolbox category tests Colour and Angles by @johnnesky in #8457
  • fix(touch): prevent infinite loop on multi-touch drag by @AbhinavKRN in #8470
  • fix: Let workspace comment have delete cursor over trash. by @johnnesky in #8477
  • fix: Detect if deleting shadow block affects selection highlight by @johnnesky in #8533
  • fix(events): Simplify filter function, add new enqueueEvent function by @cpcallen in #8539
  • fix(comments): added workspace comments and comment drag strategy isDeadOrDying() checks (for multiselect plugin) by @changminbark in #8532

Cleanup ♻️

  • docs(blocks): block.ts and blocks/* JSDoc / formatting / etc. cleanup by @cpcallen in #8431
  • refactor(events): introduce EventType enum in separate module by @cpcallen in #8530
  • refactor(events): Don't filter events before undo by @cpcallen in #8537
  • refactor(events): Introduce and use event type predicates by @cpcallen in #8538
  • refactor: Use arrow functions when calling Array.prototype.filter by @cpcallen in #8557
  • refactor: Omit unused exception arguments from catch blocks by @cpcallen in #8559

Other changes

New Contributors

Full Changelog: blockly-v11.1.1...blockly-v11.2.0-beta.0

blockly-v11.1.1

12 Jun 17:43
7a154ea
Compare
Choose a tag to compare

What's Changed

Bug Fixes

  • fix: statement input blocks disappearing #8203

Full Changelog: blockly-v11.1.0...blockly-v11.1.1

blockly-v11.1.0

30 May 19:01
e03d526
Compare
Choose a tag to compare

What's Changed

New features ✨

Bug fixes 🐛

Reverted changes ⎌

  • revert: "chore(deps): update webdriverio to 8.16 and stop using seleni… by @maribethb in #7520

Other changes

New Contributors

Full Changelog: blockly-v11.0.0...blockly-v11.1.0

blockly-v11.0.0

20 May 20:37
9519333
Compare
Choose a tag to compare

Blockly v11 is here and it includes many new features and bug fixes!

For the full list of breaking changes, see the release notes below. You can click on each PR to learn why it's a breaking change, how to tell if you will be affected by it, and what to do if you are. There are a few major changes to be aware of:

  • The colour, multiline input, and angle fields and their associated blocks have been removed from core. They are now available as plugins. If you use these blocks or fields, follow the instructions in the plugin READMEs to install them.
  • If you install Blockly through npm, we now provide an exports clause to explicitly declare what you can import from our package.
    • Your build tooling may now throw an error if you deep import from our package such as import 'blockly/core/some/file/name.js', which has never been supported by Blockly but may have been made possible by your build tools.
  • We now provide Blockly as an esmodule if you use Blockly through import statements in JS.
    • import Blockly from 'blockly/core' has never been supported by Blockly, but your build tool may have "helpfully" made this work previously. Due to this change, your build tooling may no longer behave that way.
    • You should import * as Blockly from 'blockly/core' instead, as described in our documentation.
    • Note that <script type="module"> in HTML files is not yet a supported method to load Blockly.
  • Calling statementToCode or valueToCode on inputs that don't exist will now throw an error instead of returning an empty string.
    • This will make it easier to spot errors due to incorrect input names in block-code generator functions, but may expose previously silent issues with existing code.

This release also comes with many new features and bug fixes! A few notable ones include:

What's Changed

Breaking changes 🛠

New features ✨

Bug fixes 🐛

Read more

blockly-v11.0.0-beta.6

21 Mar 17:38
Compare
Choose a tag to compare
Pre-release

This is the fourth fifth in an ongoing series of beta releases for the future v11 of Blockly. See information about the Blockly v11 Beta Program.

Due to errors in the publication process, the contents of the [email protected] package were not as intended (and did not correspond with the release notes), and that version has been withdrawn. This version, -beta.6, supersedes it.

Highlights in v11.0.0-beta.6 (was beta.5)

This release was created to publish the fix in PR #7955 for issue #7952, which caused errors when importing langfiles (e.g. blockly/msg/en) in TypeScript modules. Thanks to @clementcontet for reporting this issue in -beta.4 so promptly—and sorry that we didn't catch it despite the extensive testing carried out on the offending PR, #7822!

It also contains unrelated ongoing work on refactoring workspace comments.

What's Changed

New features ✨

  • feat: rendered workspace comment by @BeksOmega in #7918
  • feat: have RenderedWorkspaceComment implement IBoundedElement and IRenderedElement by @BeksOmega in #7919
  • feat: add JSON serialization for workspace comments by @BeksOmega in #7927

Bug fixes 🐛

  • fix: comment have XML save and load new workspace comments classes by @BeksOmega in #7931
  • fix(typings): Restore inadvertently-deleted typings/msg/msg.d.ts; add TS import test by @cpcallen in #7955

Full Changelog: blockly-v11.0.0-beta.4...blockly-v11.0.0.-beta.6