platform icon indicating copy to clipboard operation
platform copied to clipboard

Dependencies cleanup 🧹

Open timdeschryver opened this issue 7 months ago • 1 comments

Which @ngrx/* package(s) are relevant/related to the feature request?

store

Information

Take a look at dependencies and either update or remove the reference. Examples:

  • update ESLint
  • remove Protractor

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

  • [x] Yes
  • [ ] No

timdeschryver avatar May 29 '25 18:05 timdeschryver

Good idea!

rainerhahnekamp avatar May 29 '25 18:05 rainerhahnekamp

@timdeschryver Have you thought about removing Jasmine? At present, it is mostly used for spies in the tests. There is a jest-marbles library that should be able to replace the jasmine-marbles library. These would be the potential dependencies that could be removed. This should help test speed as well and I know you increased CI time to handle slow tests.

"jasmine": "^3.4.0",
"jasmine-core": "4.2.0",
"jasmine-marbles": "0.9.2",
"jasmine-spec-reporter": "7.0.0",
"jest-jasmine2": "29.7.0"
"karma": "6.4.0",
"karma-chrome-launcher": "3.1.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "2.0.0",
"@types/jasmine": "4.0.3",
"@types/jasminewd2": "^2.0.2",
"protractor": "7.0.0"

jdegand avatar Jul 16 '25 22:07 jdegand

For now I think it's fine to keep it as is. If we migrate, I think it's better to skip jest, and use Vitest.

timdeschryver avatar Jul 17 '25 17:07 timdeschryver

If we migrate, I think it's better to skip jest, and use Vitest.

Fully agree! 💯

rainerhahnekamp avatar Jul 17 '25 18:07 rainerhahnekamp

Migration to Vitest can be done incrementally, project by project. We can create issues for each project.

markostanimirovic avatar Jul 17 '25 19:07 markostanimirovic

One dependency that is a problem is eslint-etc. It hasn't been updated in 2 years so this causes peer dependency issues as the range hasn't been updated. There is a pull that would allow it to work with ESLint 9 but I doubt it will get merged. I don't think it is even being used anywhere so it likely can be safely removed.

jdegand avatar Jul 17 '25 20:07 jdegand