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

Migrate core/events/block_events.js to goog.module syntax #5320

Merged
merged 6 commits into from
Aug 10, 2021

Conversation

moniika
Copy link
Contributor

@moniika moniika commented Aug 5, 2021

The basics

  • I branched from goog_module
  • My pull request is against goog_module
  • My code follows the style guide
  • My code is presented in the form suggested in the module
    conversion guide
  • I have run npm test locally already.

The details

Resolves

Part of #5026

Proposed Changes

Converts core/events/block_events.js to goog.module syntax.

Removes the following deprecated provides:

  • Blockly.Events.Change (replaced by Blockly.Events.BlockChange)
  • Blockly.Events.Create (replaced by Blockly.Events.BlockCreate)
  • Blockly.Events.Delete (replaced by Blockly.Events.BlockDelete)
  • Blockly.Events.Move (replaced by Blockly.Events.BlockMove)

Updates tests using deprecated provides.

Additional Information

Splits the modules in core/events/block_events.js were into the files:

  • core/events/events_block_base.js
  • core/events/events_block_change.js
  • core/events/events_block_create.js
  • core/events/events_block_delete.js
  • core/events/events_block_move.js

@moniika moniika requested a review from a team as a code owner August 5, 2021 22:48
@moniika moniika requested a review from gonfunko August 5, 2021 22:48
@github-actions github-actions bot added this to the 2021_q3_release milestone Aug 5, 2021
@google-cla google-cla bot added the cla: yes Used by Google's CLA checker. label Aug 5, 2021
@moniika moniika added the breaking change Used to mark a PR or issue that changes our public APIs. label Aug 5, 2021
@github-actions github-actions bot removed breaking change Used to mark a PR or issue that changes our public APIs. cla: yes Used by Google's CLA checker. labels Aug 5, 2021
@google-cla google-cla bot added the cla: yes Used by Google's CLA checker. label Aug 5, 2021
@google-cla
Copy link

google-cla bot commented Aug 5, 2021

☹️ Sorry, but only Googlers may change the label cla: yes.

@moniika moniika added the breaking change Used to mark a PR or issue that changes our public APIs. label Aug 5, 2021
@moniika moniika force-pushed the convert-block_events branch from 29ee359 to 61aca92 Compare August 6, 2021 22:55
Copy link
Contributor

@gonfunko gonfunko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, assuming the deprecations are safe to remove at this point.

@moniika moniika merged commit 2f71d18 into google:goog_module Aug 10, 2021
@moniika moniika deleted the convert-block_events branch August 10, 2021 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Used to mark a PR or issue that changes our public APIs. cla: yes Used by Google's CLA checker. type: cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants