Skip to content

Update NPM dependencies to latest (OSOE-954) #116

@Piedone

Description

@Piedone

The project's NPM dependencies are outdated, and Renovate updated them. But, due to breaking changes, manual fixes are necessary; if you update all packages even to at most minor versions, you'll be greeted with the following warnings and errors in VS, necessitating fixes in other projects too:

{1088AF12-D788-4E39-A827-9F5611B20D45}

  • Open an issue branch from the branch of Update All packages #114 and once you're done with that, merge the branch of Update All packages (major) #115 too.
  • Check all updated dependencies: Are they actually all needed?
  • Fix any compatibility issues, including in other OSOCE projects, like the Base Theme as seen in the above screenshot.
    • To fix any "require() of ES Module ... not supported" type error, you can use await import() inside an asynchronous method, like here.
    • When upgrading ESLint to the latest v9.x then configurations have to be migrated, see here.
    • When upgrading StyleLint "The CommonJS Node.js API is deprecated."
  • Should we pin the PNPM version in every project's "packageManager" property? It seems like a safe way to take dependency on a given PNPM version, which can also be auto-updated by Renovate. If indeed, then corepack prepare pnpm can be removed from NodeJsExtensionsNpmPackage.targets, the enable-corepack action, and documented (and ideally automatically enforced somehow) that this property should be always added.
  • Remove the temporary "All packages" group from renovate.json5 here and "ESLint" group from Lombiq.VueJs.

After merging the issue branch, both renovate PRs should close itself.

Jira issue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions