Skip to content

Commit 1a65c19

Browse files
committed
chore(general): upgrade to react 19
1 parent dd77007 commit 1a65c19

File tree

15 files changed

+1420
-1533
lines changed

15 files changed

+1420
-1533
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ yarn-debug.log*
2121
yarn-error.log*
2222

2323
# documentation
24-
/docs
24+
/docs
25+
26+
.DS_Store

package-lock.json

Lines changed: 594 additions & 962 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
"tsc-files": "^1.1.4",
3838
"typescript": "^5.4.5"
3939
},
40-
"overrides": {
41-
"react-native": "0.76.5"
42-
},
4340
"engines": {
4441
"node": "^22.11.0",
4542
"npm": "^10.9.0"

packages/library/package.json

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"name": "reactylon",
3-
"version": "1.4.4",
3+
"version": "2.0.0-beta.2",
44
"description": "A powerful multiplatform framework built on Babylon.js and React, designed to create interactive and immersive 3D experiences.",
55
"type": "module",
6-
"main": "./build/index.js",
7-
"types": "./build/index.d.ts",
6+
"main": "index.js",
7+
"types": "index.d.ts",
88
"repository": {
99
"url": "https://github.com/simonedevit/reactylon.git"
1010
},
1111
"scripts": {
1212
"init": "npm ci",
13-
"build:local": "webpack --env isLogging=true && bash ../../scripts/copy.sh",
13+
"build:local": "webpack --env isLogging=true",
14+
"build:local:analyze": "webpack --env isLogging=true --env isAnalyzer=true",
1415
"build": "webpack --env environment=PROD",
16+
"build:analyze": "webpack --env environment=PROD --env isAnalyzer=true",
1517
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
1618
"test:debug": "NODE_OPTIONS=--experimental-vm-modules node --inspect-brk ../../node_modules/.bin/jest --runInBand",
17-
"release": "npm run build && commit-and-tag-version --commit-all && git push --follow-tags && bash ../../scripts/publish.sh"
19+
"release": "npm run build && npm run test && commit-and-tag-version --commit-all && git push --follow-tags && bash ../../scripts/publish.sh"
1820
},
1921
"keywords": [],
2022
"commit-and-tag-version": {
@@ -29,17 +31,15 @@
2931
"acorn": "^8.11.3",
3032
"its-fine": "^1.2.5",
3133
"lodash": "^4.17.21",
32-
"react-reconciler": "^0.29.2",
3334
"zustand": "^5.0.3"
3435
},
3536
"peerDependencies": {
3637
"@babylonjs/core": "^7.40.2 ",
3738
"@babylonjs/gui": "^7.40.2 ",
3839
"@babylonjs/react-native": "^1.8.6",
39-
"@types/react": "^18.2.0",
40-
"@types/react-dom": "^18.3.1",
41-
"react": "^18.2.0",
42-
"react-dom": "^18.3.1"
40+
"react": "^18 || ^19",
41+
"react-dom": "^18 || ^19",
42+
"react-reconciler": "0.29.2 || 0.31.0"
4343
},
4444
"peerDependenciesMeta": {
4545
"react-dom": {
@@ -60,20 +60,24 @@
6060
"@types/acorn": "^6.0.0",
6161
"@types/jest": "^29.5.14",
6262
"@types/lodash": "^4.17.13",
63-
"@types/react": "^18.3.12",
64-
"@types/react-dom": "^18.0.7",
65-
"@types/react-reconciler": "^0.28.8",
63+
"@types/react": "^19",
64+
"@types/react-dom": "^19",
65+
"@types/react-reconciler": "0.31.0",
6666
"@types/webpack": "^5.28.5",
67-
"clean-webpack-plugin": "^4.0.0",
67+
"@types/webpack-bundle-analyzer": "^4.7.0",
6868
"commit-and-tag-version": "^12.2.0",
69+
"copy-webpack-plugin": "^13.0.0",
6970
"jest": "^29.7.0",
7071
"jest-environment-jsdom": "^29.7.0",
71-
"react-dom": "^18.3.1",
72+
"react": "^19",
73+
"react-dom": "^19",
74+
"react-reconciler": "0.31.0",
7275
"ts-jest": "^29.2.5",
7376
"ts-loader": "^9.4.1",
7477
"ts-node": "^10.9.2",
7578
"tsconfig-paths-webpack-plugin": "^4.1.0",
7679
"webpack": "^5.91.0",
80+
"webpack-bundle-analyzer": "^4.10.2",
7781
"webpack-cli": "^5.1.4",
7882
"webpack-dev-server": "^5.0.4"
7983
},

packages/library/src/_generated/babylon.core.constructors.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const ConstructorsMap: Record<string, Array<string>> = {
6262
attachToBoxBehavior: ['_ui'],
6363
audioBus: ['name', 'engine'],
6464
audioEngine: ['hostElement', 'audioContext', 'audioDestination'],
65-
audioEngineV2: [],
65+
audioEngineV2: ['options'],
6666
audioSceneComponent: ['scene'],
6767
autoReleaseWorkerPool: ['maxWorkers', 'createWorkerAsync', 'options'],
6868
autoRotationBehavior: [],
@@ -475,6 +475,7 @@ const ConstructorsMap: Record<string, Array<string>> = {
475475
flowGraphCrossBlock: ['config'],
476476
flowGraphCubeRootBlock: ['config'],
477477
flowGraphDataConnection: ['name', 'connectionType', 'ownerBlock', 'richType', '_defaultValue', '_optional'],
478+
flowGraphDataSwitchBlock: ['config'],
478479
flowGraphDebounceBlock: ['config'],
479480
flowGraphDegToRadBlock: ['config'],
480481
flowGraphDeterminantBlock: ['config'],
@@ -600,17 +601,19 @@ const ConstructorsMap: Record<string, Array<string>> = {
600601
fragCoordBlock: ['name'],
601602
fragDepthBlock: ['name'],
602603
fragmentOutputBlock: ['name'],
603-
frameGraph: ['engine', 'debugTextures', 'scene'],
604+
frameGraph: ['scene', 'debugTextures'],
605+
frameGraphAnaglyphTask: ['name', 'frameGraph', 'thinPostProcess'],
604606
frameGraphBlackAndWhiteTask: ['name', 'frameGraph', 'thinPostProcess'],
605-
frameGraphBloomTask: ['name', 'frameGraph', 'engine', 'weight', 'kernel', 'threshold', 'hdr', 'bloomScale'],
607+
frameGraphBloomTask: ['name', 'frameGraph', 'weight', 'kernel', 'threshold', 'hdr', 'bloomScale'],
606608
frameGraphBlurTask: ['name', 'frameGraph', 'thinPostProcess'],
607609
frameGraphCascadedShadowGeneratorTask: [],
610+
frameGraphChromaticAberrationTask: ['name', 'frameGraph', 'thinPostProcess'],
608611
frameGraphCircleOfConfusionTask: ['name', 'frameGraph', 'thinPostProcess'],
609612
frameGraphClearTextureTask: ['name', 'frameGraph'],
610613
frameGraphCopyToTextureTask: ['name', 'frameGraph'],
611614
frameGraphCullObjectsTask: ['name', 'frameGraph', 'scene'],
612615
frameGraphCullPass: ['name', 'parentTask', 'context', 'engine'],
613-
frameGraphDepthOfFieldTask: ['name', 'frameGraph', 'engine', 'blurLevel', 'hdr'],
616+
frameGraphDepthOfFieldTask: ['name', 'frameGraph', 'blurLevel', 'hdr'],
614617
frameGraphExecuteTask: ['name', 'frameGraph'],
615618
frameGraphExtractHighlightsTask: ['name', 'frameGraph', 'thinPostProcess'],
616619
frameGraphGenerateMipMapsTask: ['name', 'frameGraph'],
@@ -625,6 +628,7 @@ const ConstructorsMap: Record<string, Array<string>> = {
625628
frameGraphRenderContext: ['_engine', '_textureManager', '_scene'],
626629
frameGraphRenderPass: ['name', 'parentTask', 'context', 'engine'],
627630
frameGraphRenderTarget: ['name', 'textureManager', 'renderTargets', 'renderTargetDepth'],
631+
frameGraphSSRRenderingPipelineTask: ['name', 'frameGraph', 'textureType'],
628632
frameGraphShadowGeneratorTask: ['name', 'frameGraph', 'scene'],
629633
frameGraphTAAObjectRendererTask: ['name', 'frameGraph', 'scene', 'options'],
630634
frameGraphTask: ['name', 'frameGraph'],
@@ -672,6 +676,7 @@ const ConstructorsMap: Record<string, Array<string>> = {
672676
geometryDesaturateBlock: ['name'],
673677
geometryDistanceBlock: ['name'],
674678
geometryDotBlock: ['name'],
679+
geometryEaseBlock: ['name'],
675680
geometryElbowBlock: ['name'],
676681
geometryInfoBlock: ['name'],
677682
geometryInputBlock: ['name', 'type'],
@@ -904,12 +909,14 @@ const ConstructorsMap: Record<string, Array<string>> = {
904909
nodeMaterialTeleportInBlock: ['name'],
905910
nodeMaterialTeleportOutBlock: ['name'],
906911
nodeRenderGraph: ['name', 'scene', 'options'],
912+
nodeRenderGraphAnaglyphPostProcessBlock: ['name', 'frameGraph', 'scene'],
907913
nodeRenderGraphBlackAndWhitePostProcessBlock: ['name', 'frameGraph', 'scene'],
908914
nodeRenderGraphBlock: ['name', 'frameGraph', 'scene', '_additionalConstructionParameters'],
909915
nodeRenderGraphBloomPostProcessBlock: ['name', 'frameGraph', 'scene', 'hdr', 'bloomScale'],
910916
nodeRenderGraphBlurPostProcessBlock: ['name', 'frameGraph', 'scene'],
911917
nodeRenderGraphBuildState: [],
912918
nodeRenderGraphCascadedShadowGeneratorBlock: ['name', 'frameGraph', 'scene'],
919+
nodeRenderGraphChromaticAberrationPostProcessBlock: ['name', 'frameGraph', 'scene'],
913920
nodeRenderGraphCircleOfConfusionPostProcessBlock: ['name', 'frameGraph', 'scene'],
914921
nodeRenderGraphClearBlock: ['name', 'frameGraph', 'scene'],
915922
nodeRenderGraphConnectionPoint: ['name', 'ownerBlock', 'direction'],
@@ -929,6 +936,7 @@ const ConstructorsMap: Record<string, Array<string>> = {
929936
nodeRenderGraphPassCubePostProcessBlock: ['name', 'frameGraph', 'scene'],
930937
nodeRenderGraphPassPostProcessBlock: ['name', 'frameGraph', 'scene'],
931938
nodeRenderGraphResourceContainerBlock: ['name', 'frameGraph', 'scene'],
939+
nodeRenderGraphSSRPostProcessBlock: ['name', 'frameGraph', 'scene', 'textureType'],
932940
nodeRenderGraphShadowGeneratorBlock: ['name', 'frameGraph', 'scene'],
933941
nodeRenderGraphTAAObjectRendererBlock: ['name', 'frameGraph', 'scene', 'doNotChangeAspectRatio'],
934942
nodeRenderGraphTeleportInBlock: ['name', 'frameGraph', 'scene'],
@@ -1334,9 +1342,11 @@ const ConstructorsMap: Record<string, Array<string>> = {
13341342
texturePacker: ['name', 'meshes', 'options', 'scene'],
13351343
texturePackerFrame: ['id', 'scale', 'offset'],
13361344
textureSampler: [],
1345+
thinAnaglyphPostProcess: ['name', 'engine', 'options'],
13371346
thinBlackAndWhitePostProcess: ['name', 'engine', 'options'],
13381347
thinBloomEffect: ['name', 'engine', 'scale', 'blockCompilation'],
13391348
thinBlurPostProcess: ['name', 'engine', 'direction', 'kernel', 'options'],
1349+
thinChromaticAberrationPostProcess: ['name', 'engine', 'options'],
13401350
thinCircleOfConfusionPostProcess: ['name', 'engine', 'options'],
13411351
thinDepthOfFieldEffect: ['name', 'engine', 'blurLevel', 'depthNotNormalized', 'blockCompilation'],
13421352
thinEffectLayer: ['name', 'scene', 'forceGLSL', 'dontCheckIfReady', '_additionalImportShadersAsync'],
@@ -1499,6 +1509,7 @@ const ConstructorsMap: Record<string, Array<string>> = {
14991509
_GetAudioEngine: ['engine'],
15001510
_GetCompatibleTextureLoader: ['extension', 'mimeType'],
15011511
_HDRTextureLoader: [],
1512+
_HasAudioAnalyzerOptions: ['options'],
15021513
_HasSpatialAudioListenerOptions: ['options'],
15031514
_HasSpatialAudioOptions: ['options'],
15041515
_HasStereoAudioOptions: ['options'],

0 commit comments

Comments
 (0)