github google/blockly blockly-v10.0.0

latest releases: blockly-v11.1.1, blockly-v11.1.0, blockly-v11.0.0...
15 months ago

Blockly v10 is here! This quarter we’ve edged closer to 100% TypeScript in the core repo: blocks have been converted and generators are not far behind. We’ve also improved performance in multiple scenarios and added APIs to customize Blockly in new ways.

Here are the highlights for this release:

  • Added ability to use custom Icons. This included some refactoring and breaking changes to the old APIs; read more in the PRs below.
  • Removed the drag surfaces! This greatly improves performance in Chrome. No action needed unless you were doing something special with the drag surfaces (which is rare)
  • Removed the debug renderer, which was previously deprecated and moved to the dev-tools plugin
  • Changes to generators. Most of the changes were backwards compatible, but if you use Blockly through script tags, be aware that we've added new global variables under the names javascript, python, etc. which may conflict with global variables already in your app. Read more in the linked PRs below.
  • Added support for custom inputs
  • Improved rendering performance and added hooks for managing the render lifecycle
  • Improved types for those using TypeScript

What's Changed

Breaking changes 🛠

Deprecations 🧹 - APIs that may be removed in future releases

  • refactor(generators): Introduce JavascriptGenerator class, Order enum by @cpcallen in #7153
  • fix: remove old icon handling code by @BeksOmega in #7141
  • refactor(generators): Introduce DartGenerator class, Order enum by @cpcallen in #7160
  • refactor(generators): Introduce PythonGenerator class, Order enum by @cpcallen in #7163
  • refactor(generators): Introduce PhpGenerator class, Order enum by @cpcallen in #7162
  • refactor(generators): Introduce LuaGenerator class, Order enum by @cpcallen in #7161
  • fix: input exports by @BeksOmega in #7165

New features ✨

Bug fixes 🐛

Cleanup ♻️

  • refactor: Remove some more uses of AnyDuringMigration. by @gonfunko in #6970
  • refactor(blocks): Migrate blocks/lists.js to TypeScript by @cpcallen in #6902
  • refactor(blocks): Migrate blocks/loops.js to TypeScript by @rachel-fenichel in #6957
  • refactor(blocks): Migrate blocks/variables.js and blocks/variables_dynamic.js to TypeScript by @rachel-fenichel in #7001
  • refactor(blocks): Migrate blocks/text.js to TypeScript by @rachel-fenichel in #6958
  • refactor(tests): Update bootstrap.js to better support generator chunks by @cpcallen in #7171
  • refactor(blocks): Migrate blocks/logic.js to TypeScript by @cpcallen in #7003
  • refactor(generators): Restructure generator modules to contain side effects by @cpcallen in #7173
  • refactor(blocks): Migrate blocks/procedures.js to TypeScript by @cpcallen in #7192
  • refactor(blocks): Migrate blocks/blocks.js to TypeScript by @cpcallen in #7193
  • refactor(tests): Migrate mocha tests from goog.require to import by @cpcallen in #7196

Other changes

New Contributors

Full Changelog: blockly-v9.3.3...blockly-v10.0.0

Don't miss a new blockly release

NewReleases is sending notifications on new releases.