| chore(deps): Bump google-github-actions/deploy-appengine (#7814) Bumps [google-github-actions/deploy-appengine](https://github.com/google-github-actions/deploy-appengine) from 2.0.0 to 2.1.0. - [Release notes](https://github.com/google-github-actions/deploy-appengine/releases) - [Changelog](https://github.com/google-github-actions/deploy-appengine/blob/main/CHANGELOG.md) - [Commits](https://github.com/google-github-actions/deploy-appengine/compare/v2.0.0...v2.1.0) --- updated-dependencies: - dependency-name: google-github-actions/deploy-appengine dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2 年前 |
| chore: Clean up variable assignment. (#7962) * chore: Clean up variable assignment. * fix: variable now const as a result of prev commit | 2 年前 |
| fix: Don't record undo events for enable/disable (#8058) There's no need to record and replay these events since the change will happen automatically anyway. Resolves #7951 | 2 年前 |
| chore: tsdoc for generator exceptions (#8214) * chore: tsdoc for generator exceptions * chore: missed a period | 2 年前 |
| fix: only initSvg on rendered blocks (#8215) | 2 年前 |
| chore: merge develop into rc/v11 | 2 年前 |
| fix: Zelos comments shouldn't be bold (#8141) Resolves #8061 | 2 年前 |
| chore: rollup of updates from TranslateWiki (#8162) * chore: rollup of updates from TranslateWiki * chore: Roll up additional translatewiki changes Not sure how these were omitted from PR originally. --------- Co-authored-by: Christopher Allen <cpcallen+git@google.com> | 2 年前 |
| chore: update api-documenter and apply new patch (#7075) | 3 年前 |
| feat(scripts): Create script to help with CJS -> ESM migration (#8197) * feat(scripts): Create script to help with CJS -> ESM migration This is based on js2ts, but considerably simplified since we no longer need to deal with goog.module IDs. * feat(scripts): Add support for module.exports = {...} Support (optionally renaming) assignments to module.exports, in addition to the existing support for simple exports property assignmenets. * fix(scripts): Typo corrections + other improvments for PR #8197 * chore(scripts): Format | 2 年前 |
| chore(deps): Bump chai from 4.3.10 to 5.1.1 (#8092) * chore(deps): Bump chai from 4.3.10 to 5.1.1 Bumps [chai](https://github.com/chaijs/chai) from 4.3.10 to 5.1.1. - [Release notes](https://github.com/chaijs/chai/releases) - [Changelog](https://github.com/chaijs/chai/blob/main/History.md) - [Commits](https://github.com/chaijs/chai/compare/v4.3.10...v5.1.1) --- updated-dependencies: - dependency-name: chai dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix(tests): Migrate all usage of chai to ESM (#8216) * fix(tests): Migrate node tests from CJS to ESM This allows us to import (rather than require) chai, fixing failures caused by that package dropping suppport for CJS in chai v5.0.0. * fix(tests): Have mocha tests directly import chai Previously they relied on obtaining it from the global scope, but it's better if imports are explicit. * fix(tests): Remove broken load of chai as script Chai v5.0.0 no longer supports being loaded as a script, so this did nothing but emit an syntax error message on the console. * fix(tests): Migrate browser tests from CJS to ESM This allows us to import (rather than require) chai, fixing failures caused by chai no longer supporting CJS. * chore(tests): format --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christopher Allen <cpcallen+git@google.com> | 2 年前 |
| feat(build)!: Introduce ESM entrypoints (#8091) * feat(build)!: Introduce ESM entrypoints for chunks Introduce an "import" conditional export for each of the chunk entrypoints (blockly/core, blockly/blocks, blockly/javascript etc.), and point these at wrappers created by build_tasks.js that import the corresponding <chunk>_compressed.js file and export its named exports. BREAKING CHANGE: Importing Blockly via import Blockly from 'blockly/core'; (and similarly for the other chunk entrypoints) has worked until now because most build tools (including Webpack in particular) fuilfil the request for the default export of a CJS module by providing the module.exports object, rather than an explicitly-named default export as they would for an ES module. Since core/blockly.ts (the notional entrypoint for blockly/core) does not provide a default export, the wrappers created by this PR do not either. Code of the above form will therefore break, and should be updated to use a wildcard: import * as Blockly from 'blockly/core'; * feat(build)!: Introduce main package ESM entrypoint Introduce an "import" conditional export for the top-level package entrypoint (blockly), and point it at a wrappers created by build_tasks.js that imports the existing index.js file. BREAKING CHANGE: Importing Blockly via import Blockly from 'blockly'; has worked until now because most build tools (including Webpack in particular) fuilfil the request for the default export of a CJS module by providing the module.exports object, rather than an explicitly-named default export as they would for an ES module. Since core/blockly.ts does not provide a default export, the wrapper created by this PR does not either. Code of the above form will therefore break, and should be updated to use a wildcard: import * as Blockly from 'blockly'; * feat(build)!: Introduce ESM entrypoints for langfiles Introduce an "import" conditional export for each of the langfile entrypoints (msg/en, msg/fr, etc.),, and point them at wrappers created by build_tasks.js that import the existing <lang>.js file. BREAKING CHANGE: Importing languages via import en from 'blockly/msg/en'; has worked until now because most build tools (including Webpack in particular) fuilfil the request for the default export of a CJS module by providing the module.exports object, rather than an explicitly-named default export as they would for an ES module. Code of the above form will therefore break, and should be updated to use a wildcard: import * as en from 'blockly/msg/en'; * fix(typings): Remove bogus .d.ts file. For some reason we had a typings/msg/yue.d.ts that did not correxpond to any msg/json/yue.json. Delete it. | 2 年前 |
| chore: use prettier instead of clang-format (#7014) * chore: add and configure prettier * chore: remove clang-format * chore: remove clang-format config * chore: lint additional ts files * chore: fix lint errors in blocks * chore: add prettier-ignore where needed * chore: ignore js blocks when formatting * chore: fix playground html syntax * chore: fix yaml spacing from merge * chore: convert text blocks to use arrow functions * chore: format everything with prettier * chore: fix lint unused imports in blocks | 3 年前 |
| fix: input exports (#7165) * fix: input exports * chore: fix build * chore: attempt to fix build * chore: attempt to fix build * chore: create new align enum to replace old one * chore: format * fix: Tweak renamings entries It appears that the goal is to map: Blockly.Input.Align -> Blockly.inputs.Align Blockly.Align -> Blockly.inputs.Align Blockly.ALIGN_* -> Blockly.inputs.Align.* I believe this commit achieves that in a more minimal (and correct) way—but if I have misunderstood the intention then this will not be a useful correction. --------- Co-authored-by: Christopher Allen <cpcallen+git@google.com> | 3 年前 |
| fix: Addition of the .gitattributes file to standardize line endings #7191 (#7517) * addition of the .gitattributes file * Update .gitattributes | 2 年前 |
| chore: add api extractor configuration and fix some associated problems (#6388) * chore: add configuration for api extractor * fix: remove extra param names * chore: private to internal * remove unrestricted * chore: remove double backticks * chore: remove fileoverview and export * as * chore: return to returns * chore: fix backslashes and angle brackets in tsdoc * chore: final to sealed * chore: ignore to internal * chore: fix link tags * chore: add api-extractor configuration * chore: add unrecognized tag names * chore: remove tsdoc-metadata * fix: correct index.d.ts * chore: fix connection link | 3 年前 |
| Setting up npm registry for this repo. (#520) | 9 年前 |
| refactor(generators): Migrate JavaScript generators to TypeScript (#7602) * refactor(generators): Migrate javascript_generator.js to TypeScript * refactor(generators): Simplify getAdjusted Slightly simplify the implementation of getAdjusted, in part to make it more readable. Also improve its JSDoc comment. * refactor(generators): Migrate generators/javascript/* to TypeScript First pass doing very mechanistic migration, not attempting to fix all the resulting type errors. * fix(generators): Fix type errors in generator functions This consists almost entirely of adding casts, so the code output by tsc should be as similar as possible to the pre-migration .js source files. * refactor(generators): Migrate generators/javascript.js to TypeScript The way the generator functions are added to javascriptGenerator.forBlock has been modified so that incorrect generator function signatures will cause tsc to generate a type error. * chore(generator): Format One block protected with // prettier-ignore to preserve careful comment formatting. Where there are repeated concatenations prettier has made a pretty mess of things, but the correct fix is probably to use template literals instead (rather than just locally disabling prettier). This has been added to the to-do list in #7600. * fix(generators): Fixes for PR #7602 * fix(generators): Fix syntax error | 2 年前 |
| chore: use prettier instead of clang-format (#7014) * chore: add and configure prettier * chore: remove clang-format * chore: remove clang-format config * chore: lint additional ts files * chore: fix lint errors in blocks * chore: add prettier-ignore where needed * chore: ignore js blocks when formatting * chore: fix playground html syntax * chore: fix yaml spacing from merge * chore: convert text blocks to use arrow functions * chore: format everything with prettier * chore: fix lint unused imports in blocks | 3 年前 |
| chore(develop): release blockly 8.0.0 | 4 年前 |
| Update LICENSE (#2754) Replacing the contents of the LICENSE file with the exact text of https://www.apache.o…nses/LICENSE-2.0.txt including the APPENDIX. | 6 年前 |
| chore: Update README.md (#7404) Remove out of date info from readme. | 2 年前 |
| fix(build): Fix GitHub pages & deployment task (#7186) * fix(build): Include node_modules/@blockly/ in gh-pages branch - Add node_modules/@blockly to the list of files added to the gh-pages branch. - Add a _config.yml file telling Jekyll (which is needed to produce the homepage served at https://google.github.io/blockly/, and hence can't be disabled with a .nojekyll file instead) not to exclude node_modules (which it does by default). * refactor(build): Modernise git_tasks.js - Various style updates: - Use CONSTANT_CASE. - Use /** JSDoc comments */ - Use `template ${literals}`. - Use git switch instead of git checkout. - Try to avoid use of remote names; use URLs where possible. * refactor(build): Look up upstream git remote Since git reset can't take a URL but needs an actual remote name, use git branch -v to look up the remote for github.com/google/blockly and then use that remote name. * chores(build): format | 3 年前 |
| chore: use prettier instead of clang-format (#7014) * chore: add and configure prettier * chore: remove clang-format * chore: remove clang-format config * chore: lint additional ts files * chore: fix lint errors in blocks * chore: add prettier-ignore where needed * chore: ignore js blocks when formatting * chore: fix playground html syntax * chore: fix yaml spacing from merge * chore: convert text blocks to use arrow functions * chore: format everything with prettier * chore: fix lint unused imports in blocks | 3 年前 |
| chore: remove js-green-licenses (#7201) | 3 年前 |
| chore: use prettier instead of clang-format (#7014) * chore: add and configure prettier * chore: remove clang-format * chore: remove clang-format config * chore: lint additional ts files * chore: fix lint errors in blocks * chore: add prettier-ignore where needed * chore: ignore js blocks when formatting * chore: fix playground html syntax * chore: fix yaml spacing from merge * chore: convert text blocks to use arrow functions * chore: format everything with prettier * chore: fix lint unused imports in blocks | 3 年前 |
| chore(deps): bump rimraf from 5.0.5 to 5.0.7 (#8228) Bumps [rimraf](https://github.com/isaacs/rimraf) from 5.0.5 to 5.0.7. - [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/rimraf/compare/v5.0.5...v5.0.7) --- updated-dependencies: - dependency-name: rimraf dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2 年前 |
| chore(build): Cleanup npm scripts, tsc includes (#8226) * chores(build): Remove old scripts aliases Remove deprecated script aliases. * chore(build): Remove obsolete paths from tsconfig include | 2 年前 |
| chore(build): Cleanup npm scripts, tsc includes (#8226) * chores(build): Remove old scripts aliases Remove deprecated script aliases. * chore(build): Remove obsolete paths from tsconfig include | 2 年前 |
| fix: input exports (#7165) * fix: input exports * chore: fix build * chore: attempt to fix build * chore: attempt to fix build * chore: create new align enum to replace old one * chore: format * fix: Tweak renamings entries It appears that the goal is to map: Blockly.Input.Align -> Blockly.inputs.Align Blockly.Align -> Blockly.inputs.Align Blockly.ALIGN_* -> Blockly.inputs.Align.* I believe this commit achieves that in a more minimal (and correct) way—but if I have misunderstood the intention then this will not be a useful correction. --------- Co-authored-by: Christopher Allen <cpcallen+git@google.com> | 3 年前 |