blockly

The web-based visual programming editor.

APACHE-2.0 License

Downloads
139.9K
Stars
12.4K
Committers
233

Bot releases are hidden (Show)

blockly - blockly-v10.1.0

Published by ericblackmonGoogle about 1 year ago

What's Changed

Deprecations 🧹 - APIs that may be removed in future releases

New features ✨

Bug fixes 🐛

New Contributors

Full Changelog: https://github.com/google/blockly/compare/blockly-v10.0.1...blockly-v10.1.0

blockly - blockly-v10.0.2

Published by ericblackmonGoogle over 1 year ago

What's Changed

Bug fixes 🐛

Full Changelog: https://github.com/google/blockly/compare/blockly-v10.0.1...blockly-v10.0.2

blockly - blockly-v10.0.1

Published by ericblackmonGoogle over 1 year ago

What's Changed

Deprecations 🧹 - APIs that may be removed in future releases

Full Changelog: https://github.com/google/blockly/compare/blockly-v10.0.0...blockly-v10.0.1

blockly - blockly-v10.0.0

Published by maribethb over 1 year 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

New features ✨

Bug fixes 🐛

Cleanup ♻️

Other changes

New Contributors

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.3.3...blockly-v10.0.0

blockly - v9.3.3

Published by BeksOmega over 1 year ago

  • fix: icons not having their locations updated (#7012)
  • fix: insertion markers firing move events (#7005)
  • fix: offset location of connection ripple (#6973)
blockly - v9.3.2

Published by BeksOmega over 1 year ago

What's Changed

Other changes

  • fix: remove forced rerender from mutator (#6918)
  • fix: disposing during dragging (#6954)

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.3.1...blockly-v9.3.2

blockly - v9.3.1

Published by BeksOmega over 1 year ago

What's Changed

Other changes

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.3.0...blockly-v9.3.1

blockly - v9.3.0

Published by maribethb over 1 year ago

Overview

Greetings, Block Builders! This release brings some exciting new features and important bug fixes.

  • New procedure blocks that enable sharing procedures between workspaces. The new blocks are being published as a plugin, so the old procedure blocks will continue to work as expected. Learn more here and check out the plugin here.
  • The JSON serializer now serializes movable, editable, and deletable properties. If you were previously relying on the serialize-disabled-interactions plugin to do so, see the README for next steps.
  • Performance improvements during rendering and collapsing blocks
  • Fixes problem with dropdowns on mobile devices (if you're on v9.2.0, this is an important fix!)

What's Changed

Deprecating changes 🚧

These are not breaking changes yet, but deprecate something that will be removed in the next major release

  • Blockly.Xml.textToDom has been renamed to Blockly.utils.xml.textToDom in #6818

New features ✨

Bug fixes 🐛

Cleanup ♻️

New Contributors 👋

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.2.1...blockly-v9.3.0

blockly - v9.2.1

Published by gonfunko over 1 year ago

What's Changed

Bug fixes 🐛

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.2.0...blockly-v9.2.1

blockly - v9.2.0

Published by cpcallen almost 2 years ago

What's Changed

New features ✨

Bug fixes 🐛

Cleanup ♻️

Other changes

New Contributors

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.1.1...blockly-v9.2.0

blockly - v9.1.1

Published by maribethb almost 2 years ago

What's Changed

Bug fixes

  • fix: Rename Mutator#workspace back to workspace_ for compatibility with library blocks (#6634)

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.1.0...blockly-v9.1.1

blockly - v9.1.0

Published by cpcallen almost 2 years ago

What's Changed

New Features

Bug fixes

Cleanup ♻️

Other Changes

New Contributors

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.0.1...blockly-v9.1.0

blockly - Q3 2022 Patch 1

Published by cpcallen almost 2 years ago

What's Changed

Bug fixes

Cleanup ♻️

Other Changes

Full Changelog: https://github.com/google/blockly/compare/blockly-v9.0.0...blockly-v9.0.1

blockly - Q3 2022 Release (v9.0.0)

Published by maribethb about 2 years ago

Highlights

  • Blockly core is now in TypeScript! If you use TypeScript, you should notice better type declarations for Blockly. There may still be some rough edges; please tell us about them or submit a fix.
  • Blockly is transpiled to ES2015, no longer ES5. ES2015 is supported by all major browsers.
  • Blockly is no longer guaranteed to be compatible with Internet Explorer, and some IE workarounds have been removed.
  • If you're using modules, the way you import generators has changed. See the generators documentation for more information.

Migration

To help deal with breaking changes from this release:

  1. Run npx @blockly/migrate rename --from <your version> <./path/to/my/files*>
  2. Run npx @blockly/migrate fix-imports --from <your version> <./path/to/my/files*>

These commands will automatically modify your files so that they are compatible with version 9. The first command will automatically rename properties that have been renamed. And the second command will add/fix imports for blocks/generators that have been moved.

Some problems may still exist after running the migration scripts, but the majority of them should be fixed!

What's Changed

⚠ BREAKING CHANGES

Most are removing deprecated, unused, or outdated APIs. Each of the PRs listed below has information about what to do if you are affected by the change.

  • Update deprecations for the new release. (#6470)
  • remove unused functions in style.ts (#6386)
  • Removed backwards compatibility for getDeveloperVars(). (#6385)
  • remove checks for IE and EdgeHTML in core (#6336)
  • allow blocks to receive their own delete events (#6337)
  • build: compile to ES2015 instead of ES5 (#6335)
  • Move backwards-compatibility hacks to main.js (#6260)
  • Remove remaining use of goog.module.declareLegacyNamespace. (#6254)
  • properly add the removal of utils.global to the renamings file. (#6204)
  • fix or silence type errors (#6105)
  • Correctly handle multiple highlighted RenderedConnections (#6416)

Deprecating Changes

These are changes which deprecate an API but do not remove it. APIs in this category will be removed at a future time. Each of the following PRs should provide guidance on an alternative.

  • Fix blocks with mutators (#6440)
  • stop using is3dSupported (#6400)
  • remove some IE-specific code in dom and style (#6396)
  • deprecate functions in object.ts (#6387)
  • remove AnyDuringMigration from the block drag surface (#6302)

Features

Bug Fixes

  • add compose and decompose to block (#6102) (619ee66)
  • add timeouts to delay expensive mutation operations (#6149) (91b570a)
  • adding and removing css classes that contained spaces (#6455) (8530e6d)
  • build: Fix sourcemaps (#6352) (e10bf99)
  • build: Have prepare task signal async completion (#6356) (079699b)
  • Check for empty array in thrasos.RenderInfo.addElemSpacing_ (#6211) (16b5ccd)
  • component id should be on the prototype (#6104) (172a8ce)
  • context menu not working (#6399) (79051a6)
  • Deep copy options used by dropdown fields (#6425) (05b221b)
  • deprecate functions in object.ts (#6387) (9775b51)
  • disposing of a workspace that has overwritten shadows (#6424) (f2e408b)
  • dragging fails for collapsed blocks with Icons, which have been … (#6081) (5240301)
  • field defaults not being defined correctly (#6453) (eb1b786)
  • Fix blocks with mutators. (#6440) (ab03c65)
  • Fix compilation errors under Closure's strict mode (#6073) (edc2a5c)
  • fix message loading from script tags (#6060) (44edbb8)
  • fix or silence type errors (#6105) (daf78af)
  • generator type declarations (#6412) (b2fa356)
  • improve types in touch code (#6099) (7c7cfbe)
  • Increases the speed of deleting blocks (#6128) (71e8356)
  • inject function options dictionary has wrong type definition (#6231) (233cce8)
  • JSON deserialization fails (bug #6091) (collapsed procedure call… (#6103) (45c36f8)
  • json hooks for lists blocks not needing extra state (#6177) (8b69b61)
  • json serialize lists_getIndex with json extraState (#6136) (#6170) (0afff23)
  • loading messages from script tags. (#6184) (2a7d6b0)
  • Made workspace non-nullable. (#6300) (83a3e74)
  • make eventUtils throw if event type not registered (#6381) (60bc01a)
  • Make generator types and BlockDefinition less restrictive (#6185) (2ff4f88)
  • Make message files work in unpackaged mode, and rebuild msg files (4b1bb8c)
  • message types being incorrect (#6414) (9c81e75)
  • Modifying size update handling for multiline field in parent block. (#6461) (2a2cbb4)
  • Move backwards-compatibility hacks to main.js (#6260) (aaafbc2)
  • mutators disconnecting from children instead of moving them (#6047) (493444c)
  • options parser should add trailing slash to 'media' if not present. (#6263) (#6264) (bf1a40c)
  • packaging .d.ts files (#6327) (c8dd01a)
  • path object not checking theme props (#6451) (893787b)
  • provide initial values to reduce functions in generated js (#6178) (706c2bf)
  • remove calls to removeClass and hasClass (#6413) (5f11f34)
  • remove checks for IE and EdgeHTML in core (#6336) (ffe6d55)
  • Remove float() coercion in Python loops (#6259) (5612e13)
  • remove some IE-specific code in dom and style (#6396) (a785ab8)
  • remove unused functions in style.ts (#6386) (856e74d)
  • remove unused or obsolete useragent checks (#6355) (aff21b9)
  • remove vestigial dependency (#6219) (334956b)
  • replace object.mixin with Object.assign (#6138) (df41c23)
  • reuse the 'bumpObjects' module in inject.js (#6121) (df8349c)
  • Silence Closure errors when modifying tooltips. (#6098) (29b6b87)
  • some AnyDuringMigration (#6430) (c2cbed1)
  • stop using is3dSupported (#6400) (55ea12b)
  • tests: Fix race condition causing flakiness in PHP generator test (#6213) (d7ab815)
  • tests: revert change in marker_svg to keep keyboard nav tests working (#6457) (dd0d0f6)
  • theme types (#6423) (abad51f)
  • Theme.name does not match registered name (#6186) (#6226) (9797943)
  • TS errors on dependent projects with certain tsconfig settings (#6360) (#6361) (e58cf77)
  • type error in uneditable bubbles (#6092) (7353c61)
  • Update deprecations for the new release. (#6470) (d3447ea)
  • update extraState property in serializer typedefs (#6057) (55cae6e)
  • update prettify url (#6459) (852e48a)
  • Update readme and remove travis build badge (e65835c)
  • Update typescript definition files for core, blocks, and generators (#6174) (87aa4c0)

Miscellaneous Chores

  • build: compile to ES2015 instead of ES5 (#6335) (f032151)
  • properly add the removal of utils.global to the renamings file. (#6204) (2f734f7)

Code Refactoring

  • Remove remaining use of goog.module.declareLegacyNamespace. (#6254) (f947b3f)
  • Removed backwards compatibility for getDeveloperVars(). (#6385) (3bc42c5)

New Contributors

Full Changelog: https://github.com/google/blockly/compare/blockly-v8.0.5...blockly-v9.0.0

blockly - Q1 2022 Patch 5

Published by maribethb about 2 years ago

This patch fixes additional message loading problems. Message loading now works as expected in these scenarios:

  • Loading Blockly and messages with a module loader
  • Loading the wrapped message files via a script tag (e.g. the message files published on npm and unpkg)
  • Loading the unwrapped message files via a script tag (e.g. the message files present in Blockly's GitHub repo without additional processing). Note that this approach is not recommended going forward, but this patch does allow this scenario to work as expected.

Included in this release:

  • #6329
blockly - Q1 2022 Patch 4

Published by maribethb about 2 years ago

This patch fixes some problems related to message loading. Previously, when loading message files from script tags, translations appeared broken. If using a module loader, things worked correctly. Now, both cases should work correctly.

In this patch: https://github.com/google/blockly/pull/6289
Fixes: https://github.com/google/blockly/issues/6123

Note: This does not fix all of the issues reported in https://github.com/google/blockly/issues/4369 (namely, issues related to lazy loading or code splitting) but it may address some of the issues reported there that overlapped with #6123.

blockly - Q1 2022 Patch 3

Published by maribethb over 2 years ago

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.

Full Changelog: https://github.com/google/blockly/compare/blockly-v8.0.2...blockly-v8.0.3

blockly - Q1 2022 Patch 2

Published by BeksOmega over 2 years ago

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.

blockly - Q1 2022 Patch 1

Published by BeksOmega over 2 years ago