New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-konva

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-konva - npm Package Compare versions

Comparing version

to
19.0.3

18

es/ReactKonvaHostConfig.js

@@ -6,3 +6,3 @@ import Konva from 'konva/lib/Core.js';

// NoEventPriority,
DefaultEventPriority, } from 'react-reconciler/constants.js';
DefaultEventPriority, DiscreteEventPriority, } from 'react-reconciler/constants.js';
const NO_CONTEXT = {};

@@ -85,2 +85,12 @@ const UPDATE_SIGNAL = {};

export const cancelTimeout = clearTimeout;
export const supportsMicrotasks = true;
// use this to schedule microtasks
// I don't know if we should do this in react-konva
// better to run schedule in sync mode
// so setState will call render imidiatly
// it may be not optimal
// but working in sync mode is simpler.
export const scheduleMicrotask = (fn) => {
fn();
};
export const noTimeout = -1;

@@ -94,3 +104,3 @@ // export const schedulePassiveEffects = scheduleDeferredCallback;

export const isPrimaryRenderer = false;
export const warnsIfNotActing = true;
export const warnsIfNotActing = false;
export const supportsMutation = true;

@@ -168,3 +178,3 @@ export const supportsPersistence = false;

export function getCurrentEventPriority() {
return currentUpdatePriority;
return DefaultEventPriority;
}

@@ -182,3 +192,3 @@ export function prepareScopeUpdate() { }

export function resolveUpdatePriority() {
return currentUpdatePriority || DefaultEventPriority;
return DiscreteEventPriority;
}

@@ -185,0 +195,0 @@ export function shouldAttemptEagerTransition() {

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.NotPendingTransition = exports.supportsHydration = exports.supportsPersistence = exports.supportsMutation = exports.warnsIfNotActing = exports.isPrimaryRenderer = exports.noTimeout = exports.cancelTimeout = exports.scheduleTimeout = exports.run = exports.idlePriority = exports.now = void 0;
exports.NotPendingTransition = exports.supportsHydration = exports.supportsPersistence = exports.supportsMutation = exports.warnsIfNotActing = exports.isPrimaryRenderer = exports.noTimeout = exports.scheduleMicrotask = exports.supportsMicrotasks = exports.cancelTimeout = exports.scheduleTimeout = exports.run = exports.idlePriority = exports.now = void 0;
exports.appendInitialChild = appendInitialChild;

@@ -135,2 +135,13 @@ exports.createInstance = createInstance;

exports.cancelTimeout = clearTimeout;
exports.supportsMicrotasks = true;
// use this to schedule microtasks
// I don't know if we should do this in react-konva
// better to run schedule in sync mode
// so setState will call render imidiatly
// it may be not optimal
// but working in sync mode is simpler.
const scheduleMicrotask = (fn) => {
fn();
};
exports.scheduleMicrotask = scheduleMicrotask;
exports.noTimeout = -1;

@@ -144,3 +155,3 @@ // export const schedulePassiveEffects = scheduleDeferredCallback;

exports.isPrimaryRenderer = false;
exports.warnsIfNotActing = true;
exports.warnsIfNotActing = false;
exports.supportsMutation = true;

@@ -218,3 +229,3 @@ exports.supportsPersistence = false;

function getCurrentEventPriority() {
return currentUpdatePriority;
return constants_js_1.DefaultEventPriority;
}

@@ -232,3 +243,3 @@ function prepareScopeUpdate() { }

function resolveUpdatePriority() {
return currentUpdatePriority || constants_js_1.DefaultEventPriority;
return constants_js_1.DiscreteEventPriority;
}

@@ -235,0 +246,0 @@ function shouldAttemptEagerTransition() {

@@ -5,3 +5,3 @@ {

"description": "React binding to canvas element via Konva framework",
"version": "19.0.2",
"version": "19.0.3",
"keywords": [

@@ -21,4 +21,4 @@ "react",

"dependencies": {
"@types/react-reconciler": "^0.28.8",
"its-fine": "^1.2.5",
"@types/react-reconciler": "^0.28.9",
"its-fine": "^2.0.0",
"scheduler": "0.25.0",

@@ -52,8 +52,8 @@ "react-reconciler": "0.31.0"

"@types/mocha": "^10.0.10",
"@types/react": "19.0.1",
"@types/react": "19.0.10",
"assert": "^2.1.0",
"chai": "5.1.2",
"konva": "^9.3.16",
"chai": "5.2.0",
"konva": "^9.3.18",
"mocha-headless-chrome": "^4.0.0",
"parcel": "^2.13.2",
"parcel": "^2.13.3",
"process": "^0.11.10",

@@ -64,3 +64,3 @@ "react": "^19.0.0",

"timers-browserify": "^2.0.12",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"use-image": "^1.1.1",

@@ -67,0 +67,0 @@ "util": "^0.12.5"