Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Dec 6, 2024
1 parent 9613a7e commit 39954bf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"dependencies": {
"@types/react-reconciler": "^0.28.8",
"its-fine": "^1.2.5",
"react-reconciler": "0.31.0-beta-73bcdfbae5-20240502",
"scheduler": "0.25.0-beta-73bcdfbae5-20240502"
"react-reconciler": "0.31.0",
"scheduler": "0.25.0"
},
"targets": {
"none": {}
Expand All @@ -45,19 +45,20 @@
"react-dom": ">=19.0.0-beta"
},
"devDependencies": {
"@types/chai": "^4.3.17",
"@types/mocha": "^10.0.7",
"@types/react": "18.3.3",
"chai": "4.3.7",
"konva": "^9.3.14",
"@types/chai": "^5.0.1",
"@types/mocha": "^10.0.10",
"@types/react": "19.0.0",
"assert": "^2.1.0",
"chai": "5.1.2",
"konva": "^9.3.16",
"mocha-headless-chrome": "^4.0.0",
"parcel": "^2.12.0",
"parcel": "^2.13.2",
"process": "^0.11.10",
"react": "19.0.0-beta-73bcdfbae5-20240502",
"react-dom": "19.0.0-beta-73bcdfbae5-20240502",
"sinon": "^15.1.0",
"react": "19.0.0",
"react-dom": "19.0.0",
"sinon": "^19.0.2",
"timers-browserify": "^2.0.12",
"typescript": "^5.1.3",
"typescript": "^5.7.2",
"use-image": "^1.1.1",
"util": "^0.12.5"
},
Expand Down
16 changes: 8 additions & 8 deletions src/ReactKonvaCore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import { useContextBridge, FiberProvider } from 'its-fine';
import { Container } from 'konva/lib/Container.js';

/**
* React 19 introduced a new `ReactFiberReconciler.createContainer` signature
* React 19 introduced a new `ReactFiberReconciler.createContainer` signature
* with more error handling options [1]. The DefinitelyTyped types are also
* out of date because of this [2].
*
*
* 1. https://github.com/facebook/react/commit/a0537160771bafae90c6fd3154eeead2f2c903e7
* 2. https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-reconciler/index.d.ts#L920
*/
Expand Down Expand Up @@ -59,9 +59,9 @@ function usePrevious(value) {
}

const StageWrap = (props) => {
const container = React.useRef();
const stage = React.useRef<any>();
const fiberRef = React.useRef();
const container = React.useRef(null);
const stage = React.useRef<any>(null);
const fiberRef = React.useRef(null);

const oldProps = usePrevious(props);
const Bridge = useContextBridge();
Expand All @@ -87,18 +87,18 @@ const StageWrap = (props) => {

_setRef(stage.current);

// @ts-ignore
// @ts-ignore
fiberRef.current = (KonvaRenderer.createContainer as NewCreateContainer)(
stage.current,
LegacyRoot,
null,
null,
undefined,
undefined,
console.error,
console.error,
console.error,
null,
console.error,
null
);
KonvaRenderer.updateContainer(
React.createElement(Bridge, {}, props.children),
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"jsx": "react",
"skipLibCheck": false
"skipLibCheck": true
},
"include": ["./src/**/*"],
"files": [
Expand Down

0 comments on commit 39954bf

Please sign in to comment.