Skip to content
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

887 upgrade dependencies of libms #943

Merged

Conversation

nichlaes
Copy link
Collaborator

Updates all dependabots suggestions

@nichlaes nichlaes linked an issue Sep 23, 2024 that may be closed by this pull request
Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5562 lines exceeds the maximum allowed for the inline comments feature.

@prasadtalasila
Copy link
Contributor

@nichlaes I have migrated the eslint config to javascript equivalent of it in this PR. The actual file is here

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5620 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5673 lines exceeds the maximum allowed for the inline comments feature.

@prasadtalasila
Copy link
Contributor

@nichlaes please see the eslint config in PR #945 for another working stack

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5127 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5243 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5301 lines exceeds the maximum allowed for the inline comments feature.

@nichlaes
Copy link
Collaborator Author

nichlaes commented Oct 3, 2024

@prasadtalasila I should have fixed the problem.

I investigated further and found a Github Issue with people having the same problem. Changing the moduleNameMapper in the jest.config.ts seemed to do the trick. It should support relative paths now

Copy link
Contributor

@prasadtalasila prasadtalasila left a comment

Choose a reason for hiding this comment

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

@nichlaes Thanks for the updates. Please see the comments.

servers/lib/package.json Outdated Show resolved Hide resolved
client/yarn.lock Outdated Show resolved Hide resolved
servers/lib/package.json Outdated Show resolved Hide resolved
servers/lib/package.json Outdated Show resolved Hide resolved
servers/lib/package.json Outdated Show resolved Hide resolved
servers/lib/package.json Outdated Show resolved Hide resolved
"start": "node dist/src/main.js",
"start:pm2": "pm2 start pm2.config.js",
"start": "tsc & node dist/src/main.js",
"start:pm2": "pm2 start pm2.config.cjs",
"stop:pm2": "pm2 delete libms",
"syntax": "eslint . --fix",
Copy link
Contributor

Choose a reason for hiding this comment

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

Gives the following error (only on Windows):

$ yarn syntax
yarn run v1.22.19
$ eslint . --fix

Oops! Something went wrong! :(

ESLint: 9.11.1

ConfigError: Config (unnamed): Unexpected key "0" found.
    at rethrowConfigError (C:\Users\user\git\DTaaS\servers\lib\node_modules\@eslint\config-array\dist\cjs\index.cjs:303:8)
    at C:\Users\user\git\DTaaS\servers\lib\node_modules\@eslint\config-array\dist\cjs\index.cjs:1098:5
    at Array.reduce (<anonymous>)
    at FlatConfigArray.getConfigWithStatus (C:\Users\user\git\DTaaS\servers\lib\node_modules\@eslint\config-array\dist\cjs\index.cjs:1091:43)
    at FlatConfigArray.getConfig (C:\Users\user\git\DTaaS\servers\lib\node_modules\@eslint\config-array\dist\cjs\index.cjs:1120:15)
    at C:\Users\user\git\DTaaS\servers\lib\node_modules\eslint\lib\eslint\eslint-helpers.js:354:54
    at C:\Users\user\git\DTaaS\servers\lib\node_modules\eslint\lib\eslint\eslint-helpers.js:296:32
    at Object.isAppliedFilter (C:\Users\user\git\DTaaS\servers\lib\node_modules\@nodelib\fs.walk\out\readers\common.js:12:31)
    at AsyncReader._handleEntry (C:\Users\user\git\DTaaS\servers\lib\node_modules\@nodelib\fs.walk\out\readers\async.js:86:20)
    at C:\Users\user\git\DTaaS\servers\lib\node_modules\@nodelib\fs.walk\out\readers\async.js:65:22
error Command failed with exit code 2.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't get that error

InMemoryCache,
gql,
} from '@apollo/client';
import { ApolloClient, DocumentNode, InMemoryCache, gql} from "@apollo/client/core/core.cjs";
Copy link
Contributor

Choose a reason for hiding this comment

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

can we import esm modules of the library with mjs extension?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to change it, since @apollo client isn't esm yet

servers/lib/tsconfig.json Outdated Show resolved Hide resolved
Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5230 lines exceeds the maximum allowed for the inline comments feature.

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (eaa22d5) to head (65a6182).
Report is 31 commits behind head on feature/distributed-demo.

Current head 65a6182 differs from pull request most recent head 4f8bc11

Please upload reports for the commit 4f8bc11 to get more accurate results.

❗ There is a different number of reports uploaded between BASE (eaa22d5) and HEAD (65a6182). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (eaa22d5) HEAD (65a6182)
client-unit-integration-tests 1 0
Additional details and impacted files
@@                     Coverage Diff                      @@
##           feature/distributed-demo    #943       +/-   ##
============================================================
- Coverage                     66.49%   0.00%   -66.50%     
============================================================
  Files                            31       6       -25     
  Lines                           394      88      -306     
  Branches                         26       3       -23     
============================================================
- Hits                            262       0      -262     
+ Misses                          117      85       -32     
+ Partials                         15       3       -12     
Files with missing lines Coverage Δ
servers/lib/src/cloudcmd/cloudcmd.ts 0.00% <ø> (ø)
servers/lib/src/files/files.module.ts 0.00% <ø> (ø)
servers/lib/src/files/resolvers/files.resolver.ts 0.00% <ø> (ø)
...rs/lib/src/files/services/files-service.factory.ts 0.00% <ø> (ø)
...vers/lib/src/files/services/local-files.service.ts 0.00% <ø> (ø)

... and 31 files with indirect coverage changes

Components Coverage Δ
Website ∅ <ø> (∅)
Lib Microservice 0.00% <ø> (∅)

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5222 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5267 lines exceeds the maximum allowed for the inline comments feature.

@nichlaes
Copy link
Collaborator Author

nichlaes commented Oct 4, 2024

@prasadtalasila Please have a look again. It should be good now.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5272 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5287 lines exceeds the maximum allowed for the inline comments feature.

Copy link

codeclimate bot commented Oct 8, 2024

Code Climate has analyzed commit 4f8bc11 and detected 0 issues on this pull request.

View more on Code Climate.

@prasadtalasila prasadtalasila merged commit 8313de1 into feature/distributed-demo Oct 8, 2024
9 checks passed
@prasadtalasila prasadtalasila deleted the 887-upgrade-dependencies-of-libms branch October 8, 2024 09:56
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.

Upgrade dependencies of libms
2 participants