-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
chore(): BREAKING: Remove minore deprecations #10524
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
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
what about also removing |
I left it out because you said you wanted to do it |
ah, sure I will implement the load svg to use fetch and then remove the implementation |
…o remove-deprecated
ok good idea i can remove the export right away |
to be honest also the util namespace in general is kind of wrong. |
yep |
I think so, that was already discussed in the past, but i m not going to touch it now. |
Build Stats
|
src/util/index.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like request is back on the utils?
but got removed in prior commit 40236e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes because old tests are using it and i don't want this pr to address that too.
@@ -4,5 +4,4 @@ | |||
* @param object | |||
* @returns | |||
*/ | |||
export const cloneDeep = <T extends object>(object: T): T => | |||
JSON.parse(JSON.stringify(object)); | |||
export const cloneDeep = (object) => JSON.parse(JSON.stringify(object)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this implementation needed?
there is lodash in the project which should offer this same functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those benchmark are just here for historic memory of why we removed some code with other.
When we found deep performance difference we changed and we left a simple script to document the decision.
That is why i keep a copy of it there. Just in case someone come and wants to use a deep clone logic again instead of a specialized cloning for the data structure
|
I ll merge this. |
Description
Events
The data duplication between pointer/absolutePointer and viewportPoint/scenePoint has been removed.
Now you find only the latter in the events
Canvas
getCenter
method has been removed, use onlygetCenterPoint
_pointer
and_absolutePointer
have been renamed to_viewportPoint
and_scenePoint
preserveObjectStacking
is now default to true, if you want objects to break the stack when selected, set it to falsegetPointer
deprecated method has been removed, is now a protected_getPointerImpl
method.setWidth
andsetHeight
are gone, use onlysetDimensions
Objects
Text
_getSVGLineTopOffset
has been deletedItext
protected _exitEditing
is merged withexitEditingImpl
publicImage
CSS_CANVAS
static property from image is gone also with theclassList.Add
requirementUtils
rotatePoint
is gone, use point.rotate insteadrequest
is gone. We use fetch, node 18 supports fetch. There is no reason to use the old request object and statussetStyle
is gone