Skip to content

Conversation

@cpcallen
Copy link
Collaborator

@cpcallen cpcallen commented Sep 8, 2021

The basics

  • I branched from goog_module
  • My pull request is against goog_module
  • My code follows the style guide
  • I have run npm test.

(Tests will fail until the dev-tools package from blockly-samples is published.)

The details

Resolves

Part of #5026

Proposed Changes

  • Rename the Blockly.utils.IdGenerator module to Blockly.utils.idGenerator (because does not have a class as its default export).
  • Move genUid from Blockly.utils to Blockly.utils.idGenerator, and provide a mechanism to allow it to be stubbed for tests in a way that should continue to work despite ongoing module migration work.

Test Coverage

Awaiting push of dev-tools package from blockly-samples. Tests will fail until then.

Additional Information

See also RaspberryPiFoundation/blockly-samples#876.

@cpcallen cpcallen added this to the 2021_q3_release milestone Sep 8, 2021
@cpcallen cpcallen requested a review from a team as a code owner September 8, 2021 18:44
@google-cla google-cla bot added the cla: yes Used by Google's CLA checker. label Sep 8, 2021
Tests will fail until RaspberryPiFoundation/blockly-samples#876 is merged and
published (as 2.6.0 or later), due to code in the dev-tools
package attempting to stub genUid in its previous location.
@cpcallen cpcallen merged commit a6471c4 into RaspberryPiFoundation:goog_module Sep 9, 2021
@cpcallen cpcallen deleted the idGenerator branch September 9, 2021 16:08
cpcallen added a commit that referenced this pull request Sep 10, 2021
Running `npm run build:deps` makes a change to tests/deps.js that
appears to have been inadvertently omitted from PR #5441.

This commits that change.
cpcallen added a commit that referenced this pull request Sep 10, 2021
Running npm run build:deps in goog_module makes a change to tests/deps.js that was previously committed by PR #5441 but which appears to have been inadvertently undone by #5222.
alschmiedt pushed a commit to RaspberryPiFoundation/blockly-samples that referenced this pull request Feb 15, 2022
* fix: Blockly.utils.genUid was deprecated

fix: The following warning occurred while using backpack.
Blockly.utils.genUid was deprecated on September 2021 and will be deleted on September 2022. Use Blockly.utils.idGenerator.genUid instead.

The version of blockly has been upgraded to Q4 2021.
Perhaps the following changes are involved:
RaspberryPiFoundation/blockly#5441

* fix: Change required version
alschmiedt pushed a commit to RaspberryPiFoundation/blockly-samples that referenced this pull request Feb 18, 2022
* fix: Blockly.utils.genUid was deprecated

fix: The following warning occurred while using backpack.
Blockly.utils.genUid was deprecated on September 2021 and will be deleted on September 2022. Use Blockly.utils.idGenerator.genUid instead.

The version of blockly has been upgraded to Q4 2021.
Perhaps the following changes are involved:
RaspberryPiFoundation/blockly#5441

* fix: Change required version

* fix: update homepage url

* fix: added #readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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