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

Draft: update nodejs from 14 to 18 #28

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

hrajchert
Copy link
Collaborator

@hrajchert hrajchert commented May 5, 2023

This PR updates nodejs and other dependencies to avoid hanging for a long time while doing npm ci.
It is a Draft until the following issues are fixed:

  • The blockly toolbar helper is broken. Whenever a block is selected, the toolbar should change to show the types of the holes in the block.
  • Fix converting from Marlowe to Blockly and viceversa
  • Remove any deprecated Blockly code
  • Fix package.json to nix
  • Make a deep test. I've tried (and fixed) numerous things, including loading and saving from Gists, but a deep check should be made.

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Relevant tickets are mentioned in commit messages
    • Formatting, materialized Nix files, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

@@ -17,15 +17,14 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^5.10.2",
"@popperjs/core": "^2.9.2",
"big-integer": "^1.6.50",
"bignumber": "^1.1.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we should eventually remove the bignumber library as there is a Browser default since 2020. This would require modifications in several places though.

"monaco-editor": "^0.22.3",
"monaco-emacs": "^0.2.2",
"monaco-vim": "^0.1.7",
"monaco-editor": "^0.38.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Monaco editor didn't bring too much trouble that I could tell, just some codeAction changes

"bignumber": "^1.1.0",
"blockly": "^4.20201217.0",
"blockly": "^9.3.3",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Blockly has been heavily refactored since the 4th quarter 2020 release. Among other it is undergoing a TypeScript migration https://github.com/google/blockly/releases

Comment on lines +26 to +27
"monaco-emacs": "^0.3.0",
"monaco-vim": "^0.3.5",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we should remove these in the future and the Editor mode selector... it is confusing, and something more in line with a "full IDE"... better to use vim, emacs, or vscode directly

@@ -17,15 +17,14 @@
"dependencies": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Most of these changes were required to eliminate the npm audit warnings or even to allow npm install to work

@@ -0,0 +1,23 @@
import { BlockBase, BlockCreate, BlockChange } from "blockly/core/events/events";
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a helper file for the Blockly types, as we are importing Blockly dynamically. We should revisit this approach

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.

1 participant