Releases: google/blockly
Q1 2022 Patch 3
What's Changed
This patch releases fixes certain errors with TypeScript declaration files. In v8.0.0-8.0.2, you might have seen a TypeScript error such as: node_modules/blockly/blocks.d.ts:14:26 - error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
This was due to an error in our declaration files. After this patch, this error should be resolved. You may still have TypeScript type errors even after this patch, as our declarations don't exactly match reality; in such cases you will have to silence the compiler or cast the problematic types to any
.
- fix: Fix errors in TS declarations with blocks and generators by @maribethb in #6200
Full Changelog: blockly-v8.0.2...blockly-v8.0.3
Q1 2022 Patch 2
The v8.0.1 patch to NPM did not have the correct files. So we must create a new patch to fix this.
This contains all of the same code as v8.0.1, it just bumps the version number.
Q1 2022 Patch 1
Q4 2021 Patch 5
Backport of https://github.com/google/blockly/releases/tag/blockly-v8.0.1 for v7
Contains:
Q1 2022 Release (v8.0.0)
New Contributors
- @ChrisJaunes made their first contribution in #5833
- @AndrewWyer-Dover made their first contribution in #5890
- @RichDoherty made their first contribution in #5685
- @gpfernandezflorio made their first contribution in #5974
- @markfinn made their first contribution in #5997
- @yamadayutaka made their first contribution in #6011
What's Changed
⚠ BREAKING CHANGES
- change paste to return the pasted thing to support keyboard nav (#5996)
- blocks: ...and rename Blockly.blocks.all (blocks/all.js) to Blockly.libraryBlocks (blocks/blocks.js
-
- refactor(blocks): Make loopTypes a Set
- allows previously internal constants to be configurable (#5897)
-
- refactor(blocks): Make loopTypes a Set
- remove unused constants from internalConstants (#5889)
Features
- add mocha failure messages to console output (#5984) (7d250fa)
- Allow developers to set a custom tooltip rendering function. (#5956) (6841ccc)
- blocks: Export block definitions (#5908) (ffb8907)
- make mocha fail if it encounters 0 tests (#5981) (0b2bf3a)
- tests: Add a test to validate
scripts/migration/renamings.js
(#5980) (3c723f0) - tests: Use official semver.org RegExp (#5990) (afc4088)
Bug Fixes
- Adds check for changedTouches (#5869) (3f4f505)
- advanced playground and playground to work when hosted (#6021) (364bf14)
- always rename caller to legal name (#6014) (c430800)
- blocks: correct the callType_ of procedures_defreturn (#5974) (b34db5b)
- build: Correctly handle deep export paths in UMD wrapper (#5945) (71ab146)
- bumping a block after duplicate breaking undo (#5844) (5204569)
- change getCandidate_ and showInsertionMarker_ to be more dynamic (#5722) (68d8113)
- change paste to return the pasted thing to support keyboard nav (#5996) (20f1475)
- Change the truthy tests of width and height in WorkspaceSvg.setCachedParentSvgSize to actual comparisons with null so that zero value can be saved into the cache (#5997) (fec44d9)
- comments not being restored when dragging (#6011) (85ce3b8)
- convert the common renderer to an ES6 class (#5978) (c1004be)
- convert the Workspace class to an ES6 class (#5977) (e2eaebe)
- custom block context menus (#5976) (8058df2)
- Don't throw if drag surface is empty. (#5695) (769a25f)
- export Blockly.Names.NameType and Blockly.Input.Align correctly (#6030) (2c15d00)
- Export loopTypes from Blockly.blocks.loops (#5900) (4f74210)
- Export loopTypes from Blockly.blocks.loops (#5900) (74ef1cb)
- Fix bug where workspace comments could not be created. (#6024) (2cf8eb8)
- Fix downloading screenshots on the playground. (#6025) (ca6e590)
- fix keycodes type (#5805) (0a96543)
- Fixed the label closure on demo/blockfactory (#5833) (e8ea2e9)
- generators: Fix an operator precedence issue in the math_number_property generators to remove extra parentheses (#5685) (a31003f)
- incorrect module for event data in renamings database (#6012) (e502eaa)
- Move @alias onto classes instead of constructors (#6003) (1647a32)
- move test helpers from samples into core (#5969) (2edd228)
- move the dropdown div to a namespace instead of a class with only static properties (#5979) (543cb8e)
- msg imports in type definitions (#5858) (07a75de)
- opening/closing the mutators (#6000) (243fc52)
- playground access to Blockly (9e1cda8)
- playground test blocks, text area listeners, and show/hide buttons (#6015) (7abf3de)
- procedure param edits breaking undo (#5845) (8a71f87)
- re-expose HSV_VALUE and HSV_SATURATION as settable properties on Blockly (#5821) (0e5f3ce)
- re-expose HSV_VALUE and HSV_SATURATION as settable properties on Blockly (#5821) (6fc3316)
- revert "Delete events should animate when played (#5919)" (#6031) (c4a25eb)
- revert converting test helpers to es modules (#5982) (01d4597)
- setting null for a font style on a theme (#5831) (835fb02)
- tests: Enable --debug for test:compile:advanced; fix some errors (#5959) ([88334be](88334bea8...
Q4 2021 Patch 4
Q4 2021 Patch 3
Q4 2021 Patch 2
Q4 2021 Patch 1
Q4 2021
The Q4 2021 Blockly release is here, and it’s a big one. Over the past two quarters we overhauled the core codebase and changed every file in core to use ES6 syntax and Closure modules. The migration touched every file in core but left our external-facing APIs mostly unchanged.
New Contributors
- @hpnrep6 made their first contribution in #5020
- @Apoorvgarg-creator made their first contribution in #5430
- @himanshujaidka made their first contribution in #5407
- @aaimio made their first contribution in #5500
- @Devesh21700Kumar made their first contribution in #5629
- @yyyang1996 made their first contribution in #5649
- @timgates42 made their first contribution in #5655
- @mark-friedman made their first contribution in #5702
What's Changed
Breaking Changes 🛠
- Migrate core/renderers/common/marker_svg.js to goog.module syntax by @moniika in #5255
- Migrate core/events/block_events.js to goog.module syntax by @moniika in #5320
- Migrate core/procedures.js to goog.module syntax by @gonfunko in #5265
- Changes Css.register API to accept string param by @DubeySandeep in #5472
- fix!(blocks): Rename
Blockly.Blocks.*
modules toBlockly.blocks.*
by @cpcallen in #5696 - chore!: Add deprecation notices to values in blockly.js by @maribethb in #5555
Bug fixes
- fix: Fix mutators when compiled with renames. by @NeilFraser in #5644
- fix: isPrime block should cast str as num by @NeilFraser in #5680
- fix: Don't try to set text fields to null on cancel by @NeilFraser in #5690
- fix: Don't try to set text fields to null on cancel (for master) by @NeilFraser in #5692
- fix: Quote Msg prop name to survive compile by @NeilFraser in #5703
- fix: Prevent error when maxTrashcanContents is 0 by @NeilFraser in #5739
- fix: procedure callers now remove inputs properly by @alschmiedt in #5751
- fix: multi-playground should use goog.require to get blocks by @rachel-fenichel in #5797
Cleanup ♻️
- chore: update dependabot messages and labels by @rachel-fenichel in #5618
- chore: create release.yml by @rachel-fenichel in #5588
- chore: auto-fix violations of comma-dangle rule by @rachel-fenichel in #5625
- chore: replace var with const and let in blocks directory by @rachel-fenichel in #5626
- chore: Update deps.js with modified
lang
values by @cpcallen in #5636 - chore: replace more uses of var with const and let by @rachel-fenichel in #5628
- chore: replace var with let and const in mocha tests by @rachel-fenichel in #5638
- chore: update generators/dart.js to const and let by @rachel-fenichel in #5646
- chore: update language generators to const and let by @rachel-fenichel in #5647
- chore: Fix permissions for Assign requested reviewers workflow by @cpcallen in #5666
- chore: Normalize ++x to x++. by @NeilFraser in #5660
- chore: Update dependabot labelling config by @cpcallen in #5664
- fix: Don't crash when unable to post comment to PR by @cpcallen in #5669
- chore: Create separate report_clang_format workflow in master branch by @cpcallen in #5670
- chore: Remove spurious extra
on
clause in report_clang_format.yml by @cpcallen in #5671 - chore: More spelunking in GitHub Action data by @cpcallen in #5673
- chore: applies fixes to clang format by @alschmiedt in #5677
- chore: apply prefer-const rule fixes in mocha tests by @rachel-fenichel in #5682
- chore: remove references to JSON extraction by @rachel-fenichel in #5683
- chore: revert github action by @alschmiedt in #5675
- chore: fix more lint by @rachel-fenichel in #5676
- chore: add command to launch mocha tests by @rachel-fenichel in #5679
- chore: update
deps.js
,deps.mocha.js
by @cpcallen in #5698 - chore: fix more lint by @rachel-fenichel in #5700
- chore: fix dependabot labels by @rachel-fenichel in #5705
- refactor: Update uncompiled-mode dependency loading for playground, tests by @cpcallen in #5715
- chore(build): Use chunked compilation by @cpcallen in #5721
- refactor: Rename
ALIGN
toAlign
and move fromconstants.js
toinput.js
by @cpcallen in #5742 - chore: Migrate
blocks/colour.js
to goog.module syntax by @cpcallen in #5738 - chore(build): Update compiler & linter input language to ES2020 by @cpcallen in #5745
- refactor: Migrate
blocks/procedures.js
to goog.module syntax by @cpcallen in #5736 - refactor: Migrate
blocks/lists.js
togoog.module
syntax by @cpcallen in #5746 - chore: fix missing requires in generators by @rachel-fenichel in #5744
- feat: clarify variable and procedure constants by @rachel-fenichel in #5743
- refactor: Migrate
blocks/logic.js
togoog.module
syntax by @cpcallen in #5748 - refactor: migrate
generators/dart.js
togoog.module
syntax by @rachel-fenichel in #5749 - refactor: convert some js block generators to goog.module by @rachel-fenichel in #5750
- refactor: Migrate
blocks/loops.js
togoog.module
syntax by @cpcallen in #5755 - refactor: convert generators/javascript/procedures.js to goog.module by @rachel-fenichel in #5754
- refactor: convert some js block generators to goog.module by @rachel-fenichel in #5756
- refactor: convert generators/javascript/loops.js to goog.module by @rachel-fenichel in #5758
- refactor: Migrate
blocks/math.js
togoog.module
syntax by @cpcallen in #5765 - refactor: convert some block generators to goog.module by @rachel-fenichel in #5769
- refactor: convert some block generators to goog.module by @rachel-fenichel in #5770
- refactor: convert python block generators to goog.module by @rachel-fenichel in #5771
- refactor: Migrate
blocks/text.js
togoog.module
syntax by @cpcallen in #5766 - refactor:
core/msg.js
: use named export, removedeclareLegacyNamespace
by @cpcallen in #5768 - refactor: Migrate
blocks/variables.js
togoog.module
syntax by @cpcallen in #5774 - chore: Simplify NPM package wrappers, improve chunk wrapper generator by @cpcallen in #5777
- refactor: Migrate
blocks/variables_dynamic.js
togoog.module
syntax by @cpcallen in #5779 - chore: Fix inadvertent block migration inconsistencies by @cpcallen in #5780
- fix(tests): Fix & reenable the advanced compilation test by @cpcallen in #5781
- chore(deps): remove dependency on typescript-closure-tools by @rachel-fenichel in #5776
- chore: Remove
core/requires.js
by @cpcallen in #5718
Other Changes
- Merge master into develop. July 2021 Release by @BeksOmega in #4981
- Reflow flyouts when zoom level changes to keep block zoom level in sync. by @gonfunko in #4938
- Work around WebKit bug that prevents scrolling/zooming the workspace. by @gonfunko in #4969
- Added @google/blockly-eng as the owner of the entire repo by @gonfunko in #5003
- Initial commit for appengine deploy action by @rachel-fenichel in #4998
- Appengine deploy workflow on master for testing by @rachel-fenichel in #5005
- Get deploy files from the correc...