Skip to content

Upgrade React ecosystem dependencies to v19 #3247

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
wants to merge 16 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@
"phaser": "~3.90.0",
"query-string": "^9.0.0",
"re-resizable": "^6.9.9",
"react": "^18.3.1",
"react": "^19.1.0",
"react-ace": "^14.0.0",
"react-copy-to-clipboard": "^5.1.0",
"react-debounce-render": "^8.0.2",
"react-dom": "^18.3.1",
"react-dom": "^19.1.0",
"react-drag-drop-files": "^3.0.0",
"react-draggable": "^4.4.5",
"react-dropzone": "^14.2.3",
"react-i18next": "^15.0.0",
"react-konva": "^18.2.10",
"react-konva": "^19.0.7",
"react-latex-next": "^3.0.0",
"react-mde": "^11.5.0",
"react-papaparse": "^4.0.2",
Expand Down Expand Up @@ -138,12 +138,11 @@
"@types/js-cookie": "^3.0.6",
"@types/js-yaml": "^4.0.5",
"@types/lodash": "^4.14.195",
"@types/react": "^18.3.3",
"@types/react": "^19.1.8",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^18.3.0",
"@types/react-dom": "^19.1.6",
"@types/react-redux": "^7.1.24",
"@types/react-syntax-highlighter": "^15.5.7",
"@types/react-test-renderer": "^18.0.0",
"@types/redux-mock-store": "^1.0.3",
"@types/showdown": "^2.0.1",
"@types/xml2js": "^0.4.11",
Expand Down Expand Up @@ -171,10 +170,10 @@
"prettier": "^3.3.3",
"process": "^0.11.10",
"react-error-overlay": "^6.0.11",
"react-test-renderer": "^18.2.0",
"redux-saga-test-plan": "^4.0.6",
"resize-observer-polyfill": "^1.5.1",
"sass": "^1.63.6",
"shallow-react-snapshot": "^0.2.2",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"timers-browserify": "^2.0.12",
Expand Down
18 changes: 10 additions & 8 deletions src/commons/__tests__/__snapshots__/ContentDisplay.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ContentDisplay page renders correctly 1`] = `
<div
className="ContentDisplay row center-xs"
>
<DocumentFragment>
<div
className="col-md-10 col-xs-11 contentdisplay-content-parent"
class="ContentDisplay row center-xs"
>
<div
className="contentdisplay-content bp5-card bp5-elevation-3"
class="col-md-10 col-xs-11 contentdisplay-content-parent"
>
<div>
Test Content
<div
class="contentdisplay-content bp5-card bp5-elevation-3"
>
<div>
Test Content
</div>
</div>
</div>
</div>
</div>
</DocumentFragment>
`;
83 changes: 71 additions & 12 deletions src/commons/__tests__/__snapshots__/Markdown.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,16 +1,75 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Markdown page renders correctly 1`] = `
<div
className="md bp5-running-text"
dangerouslySetInnerHTML={
{
"__html": "<p>Welcome to the Source Academy playground!</p>
<p>The book <a href="https://sourceacademy.org/sicpjs/" rel="noopener noreferrer" target="_blank"><em>Structure and Interpretation of Computer Programs, JavaScript Edition</em></a>
uses JavaScript sublanguages that we call <a href="https://docs.sourceacademy.org/" rel="noopener noreferrer" target="_blank"><em>Source</em></a>. You have chosen the sublanguage <a href="https://docs.sourceacademy.org/source_1/" rel="noopener noreferrer" target="_blank"><em>Source §1</em></a>.</p>
<p>In the editor on the left, you can use the <a href="https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts" rel="noopener noreferrer" target="_blank"><em>Ace keyboard shortcuts</em></a>
and also the <a href="https://github.com/source-academy/frontend/wiki/Source-Academy-Keyboard-Shortcuts" rel="noopener noreferrer" target="_blank"><em>Source Academy keyboard shortcuts</em></a>.</p>",
}
}
/>
<DocumentFragment>
<div
class="md bp5-running-text"
>
<p>
Welcome to the Source Academy playground!
</p>


<p>
The book
<a
href="https://sourceacademy.org/sicpjs/"
rel="noopener noreferrer"
target="_blank"
>
<em>
Structure and Interpretation of Computer Programs, JavaScript Edition
</em>
</a>

uses JavaScript sublanguages that we call
<a
href="https://docs.sourceacademy.org/"
rel="noopener noreferrer"
target="_blank"
>
<em>
Source
</em>
</a>
. You have chosen the sublanguage
<a
href="https://docs.sourceacademy.org/source_1/"
rel="noopener noreferrer"
target="_blank"
>
<em>
Source §1
</em>
</a>
.
</p>


<p>
In the editor on the left, you can use the
<a
href="https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts"
rel="noopener noreferrer"
target="_blank"
>
<em>
Ace keyboard shortcuts
</em>
</a>

and also the
<a
href="https://github.com/source-academy/frontend/wiki/Source-Academy-Keyboard-Shortcuts"
rel="noopener noreferrer"
target="_blank"
>
<em>
Source Academy keyboard shortcuts
</em>
</a>
.
</p>
</div>
</DocumentFragment>
`;
30 changes: 0 additions & 30 deletions src/commons/application/__tests__/Application.tsx

This file was deleted.

This file was deleted.

Loading