Skip to content

Conversation

Smrtnyk
Copy link
Contributor

@Smrtnyk Smrtnyk commented Apr 7, 2025

Did some dependencies maintenance like updating lint related ones.
There were some new prettier issues which are fixed now and also eslint ones regarding exporting of types which are also fixed now.
Also updated micromatch because it reported security vulnerability.
included playwright setup file in lint now as well so it is properly linted.
Removed few deps that I think are unused but lets see what CI says.

I tried to analyse what is babel doing in playwright setup file, seems like there is some kind of a watcher built into playwright tests, but I can't see where is the watch used at all?
is it when tests are failing so it is triggered again on changes?
Is that watch mechanism needed at all for playwright?
Seems like a lot of acrobatics and overhead but maybe I misinterpreted it

Copy link

codesandbox bot commented Apr 7, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@@ -81,32 +81,30 @@
"@types/fs-extra": "^9.0.13",
"@types/jsdom": "^20.0.1",
"@types/lodash": "^4.14.180",
"@types/mocha": "^10.0.1",
"@types/micromatch": "^4.0.9",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these types were missing

import match from 'micromatch';
import path from 'path';
import { makeRe } from 'micromatch';
import * as path from 'node:path';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these were lint errors now that this file is properly linted

@@ -43,8 +43,8 @@ export type SerializedLayoutManager = {
};

export class LayoutManager {
private declare _prevLayoutStrategy?: LayoutStrategy;
protected declare _subscriptions: Map<FabricObject, VoidFunction[]>;
declare private _prevLayoutStrategy?: LayoutStrategy;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are from newer prettier just reordering these

@@ -3,4 +3,4 @@ export * from './LayoutStrategies/ClipPathLayout';
export * from './LayoutStrategies/FitContentLayout';
export * from './LayoutStrategies/FixedLayout';
export * from './LayoutStrategies/LayoutStrategy';
export * from './types';
export type * from './types';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newer eslint prefers that type only exports are marked as such

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that is good anyway for rollup to know and any builder

@Smrtnyk Smrtnyk force-pushed the chore()-remove-unused-dependencies branch from 6fd63a1 to 3520faa Compare April 12, 2025 09:29
@asturur asturur merged commit 89d67f4 into fabricjs:master Apr 12, 2025
20 of 22 checks passed
@Smrtnyk Smrtnyk deleted the chore()-remove-unused-dependencies branch April 13, 2025 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants