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

feat: use egg-logger@3 and sdk-base@4 #167

Merged
merged 4 commits into from
Jun 2, 2024
Merged

feat: use egg-logger@3 and sdk-base@4 #167

merged 4 commits into from
Jun 2, 2024

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented May 11, 2024

Summary by CodeRabbit

  • Chores
    • Updated Node.js version to include the latest release.
    • Upgraded various dependencies to enhance performance and compatibility.

Copy link

coderabbitai bot commented May 11, 2024

Warning

Rate limit exceeded

@fengmk2 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 24 minutes and 2 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 045fc72 and d864a8f.

Walkthrough

The recent changes involve upgrading Node.js to include version 22 and updating key package dependencies like egg-logger, sdk-base, @types/node, tsd, and typescript for enhanced functionality and compatibility.

Changes

Files Summary of Changes
.github/workflows/... Updated Node.js version list to include '22'.
package.json Upgraded versions for egg-logger, sdk-base, @types/node, tsd, and typescript.

🐇✨
Oh, hark! New versions in sight,
A leap to greater heights tonight.
Code hops along, ever so bright,
With updates bold, in the moonlight.
Cheers, my devs, to this delightful flight!
🎉🌟


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

socket-security bot commented May 11, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/node@20.13.0 None +1 2.16 MB types
npm/tsd@0.31.0 Transitive: environment, filesystem +93 49.5 MB sindresorhus

🚮 Removed packages: npm/@types/node@18.19.33, npm/egg-logger@2.9.1, npm/tsd@0.24.1, npm/typescript@4.9.5

View full report↗︎

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between c09d858 and a6b9b7e.
Files selected for processing (2)
  • .github/workflows/nodejs.yml (2 hunks)
  • package.json (4 hunks)
Files skipped from review due to trivial changes (1)
  • .github/workflows/nodejs.yml
Additional comments not posted (5)
package.json (5)

35-35: Update to egg-logger version ^3.5.0 approved.

Verification successful

Update to egg-logger version ^3.5.0 is compatible with the current usage of EggConsoleLogger and Transport in the codebase. No breaking changes or deprecations affecting these components were found in the changelog.

  • Files using EggConsoleLogger:
    • lib/parallel/util.js
    • lib/app.js
  • Files using Transport:
    • app/extend/application.js
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify compatibility of `egg-logger@3` with the current codebase.

# Test: Search for `egg-logger` usage in the codebase. Expect: No deprecated methods are used.
rg --type js 'egg-logger'

Length of output: 357



Script:

#!/bin/bash
# Description: Check for changes in `EggConsoleLogger` and `Transport` in `egg-logger` version `^3.5.0`.

# Test: Search for `EggConsoleLogger` and `Transport` in the `egg-logger` repository.
ast-grep --lang javascript --pattern $'class $_ { $$$ EggConsoleLogger($$$) { $$$ } $$$ }' --repo https://github.com/eggjs/egg-logger
ast-grep --lang javascript --pattern $'class $_ { $$$ Transport($$$) { $$$ } $$$ }' --repo https://github.com/eggjs/egg-logger

# Test: Check the validity of the documentation link.
curl -o /dev/null --silent --head --write-out '%{http_code}' https://github.com/eggjs/egg-logger/blob/master/lib/logger.js#L64

Length of output: 783



Script:

#!/bin/bash
# Description: Correctly check for changes in `EggConsoleLogger` and `Transport` in `egg-logger` version `^3.5.0`.

# Test: Search for `EggConsoleLogger` and `Transport` in the local repository.
ast-grep --lang javascript --pattern $'class $_ { $$$ EggConsoleLogger($$$) { $$$ } $$$ }'
ast-grep --lang javascript --pattern $'class $_ { $$$ Transport($$$) { $$$ } $$$ }'

Length of output: 176



Script:

#!/bin/bash
# Description: Broaden the search to verify the presence and usage of `EggConsoleLogger` and `Transport` in the local repository.

# Test: Search for any usage of `EggConsoleLogger` and `Transport` without assuming they are defined as classes.
rg --type js 'EggConsoleLogger'
rg --type js 'Transport'

Length of output: 368



Script:

#!/bin/bash
# Description: Check the official documentation or changelog of `egg-logger` to verify if `EggConsoleLogger` and `Transport` are still supported in version `^3.5.0`.

# Test: Fetch the changelog or relevant documentation sections from the `egg-logger` GitHub repository.
curl -s https://raw.githubusercontent.com/eggjs/egg-logger/master/CHANGELOG.md

Length of output: 12308


44-44: Update to sdk-base version ^4.2.1 approved.


59-59: Update to @types/node version 20 approved.


69-69: Update to tsd version ^0.31.1 approved.


70-70: Update to typescript version 5 approved.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between a6b9b7e and 045fc72.
Files selected for processing (1)
  • package.json (4 hunks)
Files skipped from review as they are similar to previous changes (1)
  • package.json

Copy link

codecov bot commented Jun 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.50%. Comparing base (370e42d) to head (d864a8f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #167      +/-   ##
==========================================
- Coverage   85.65%   85.50%   -0.16%     
==========================================
  Files          27       27              
  Lines        2607     2607              
  Branches      476      470       -6     
==========================================
- Hits         2233     2229       -4     
- Misses        374      378       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fengmk2 fengmk2 merged commit e02e72e into master Jun 2, 2024
10 of 11 checks passed
@fengmk2 fengmk2 deleted the update-deps-v2 branch June 2, 2024 15:11
fengmk2 pushed a commit that referenced this pull request Jun 2, 2024
[skip ci]

## [5.11.0](v5.10.9...v5.11.0) (2024-06-02)

### Features

* use egg-logger@3 and sdk-base@4 ([#167](#167)) ([e02e72e](e02e72e))
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.

1 participant