Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: Patch #3 for Q4 2021 release #5925

Merged
merged 2 commits into from
Feb 11, 2022

Conversation

alschmiedt
Copy link
Contributor

The basics

Patch release with #5900.

The details

Reason for Changes

Documentation

Additional Information

cpcallen and others added 2 commits February 9, 2022 16:21
* refactor(blocks): Make loopTypes a Set

  This is likely to slightly improve performance, especially if there
  are many entries.

* refactor(blocks): Re-export individual block modules from Blockly.blocks.all

* fix!(blocks): Have blocks_compressed.js export Blockly.blocks.all

  Previously the value obtained by

      const blocks = require('blockly/blocks');  // Node.js

  or

      import blocks from 'blockly/blocks.js';  // ES Modules

  would be the block definitions dictionary (Blockly.Blocks).

  Change this so that it is instead the export object from
  Blockly.blocks.all.

  This means you can now access loopTypes via:

      import blocks from 'blockly/blocks.js';
      blocks.loops.loopTypes.add('my_loop_blocktype');

  This is a breaking change for any code which depended on the value
  that was exported by blocks_compressed.js.

BREAKING CHANGE: the exports provided by blocks_compressed.js (and
therefore by `import ... from 'blockly/blocks'`) have changed; see above.
@alschmiedt alschmiedt requested a review from cpcallen February 10, 2022 00:24
@alschmiedt alschmiedt requested a review from a team as a code owner February 10, 2022 00:24
@alschmiedt alschmiedt merged commit caba596 into google:master Feb 11, 2022
@alschmiedt alschmiedt deleted the Q4_2021_patch_4 branch February 11, 2022 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants