Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Oct 23, 2025

plugin names:

  • aopModule => teggAop
  • eventbusModule => teggEventbus

plugin names:
- aopModule => teggAop
- eventbusModule => teggEventbus
@fengmk2 fengmk2 requested a review from Copilot October 23, 2025 17:08
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 23, 2025

Important

Review skipped

More than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review.

111 files out of 218 files are above the max files limit of 100. Please upgrade to Pro plan to get higher limits.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch prepare-release-tegg

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 23, 2025

Deploying egg with  Cloudflare Pages  Cloudflare Pages

Latest commit: cea39e4
Status: ✅  Deploy successful!
Preview URL: https://384e4f9e.egg-cci.pages.dev
Branch Preview URL: https://prepare-release-tegg.egg-cci.pages.dev

View logs

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors package naming across the Eggjs tegg ecosystem by removing "tegg-" and "egg-" prefixes from package names, making them more concise while maintaining their @eggjs scope. The changes affect core modules, plugins, documentation, and configuration files throughout the codebase.

Key changes:

  • Package names simplified (e.g., @eggjs/tegg-metadata@eggjs/metadata, @eggjs/tegg-aop-plugin@eggjs/aop-plugin)
  • Plugin names updated: aopModuleteggAop, eventbusModuleteggEventbus
  • All import statements and dependencies updated to reflect new package names

Reviewed Changes

Copilot reviewed 217 out of 219 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tools/egg-bin/test/postinstall.test.ts Updated NODE_DEBUG constant and test formatting; removed wrapper parentheses and enabled debug logging
tools/egg-bin/scripts/postinstall.mjs Changed debug format specifiers from %o to %s with boolean coercion
tools/create-egg/src/templates/tegg/package.json Removed tegg plugin dependencies; updated vitest version from beta to 4
tools/create-egg/src/templates/tegg/config/plugin.ts Removed all tegg plugin configurations (tegg, teggConfig, teggController, teggSchedule, eventbusModule, aopModule)
tegg/standalone/standalone/test/index.test.ts Updated package reference from @eggjs/tegg-ajv-plugin to @eggjs/ajv-plugin; added error stack to assertion
tegg/standalone/standalone/test/fixtures/dal-*-module/package.json Changed dependency from @eggjs/tegg-dal-plugin to @eggjs/dal-plugin
tegg/standalone/standalone/src/*.ts Updated imports from @eggjs/tegg-metadata to @eggjs/metadata and @eggjs/tegg-lifecycle to @eggjs/lifecycle
tegg/standalone/standalone/package.json Changed package name to @eggjs/standalone; updated all tegg-prefixed dependencies
tegg/plugin/*/test/fixtures/apps/*/config/plugin.ts Changed plugin name from aopModule to teggAop, eventbusModule to teggEventbus
tegg/plugin/*/src/**/*.ts Updated all imports to use renamed packages (removed tegg-/egg- prefixes)
tegg/plugin/*/package.json Renamed all plugin packages (removed tegg- prefix); updated dependencies
tegg/plugin/*/README.md Updated documentation to reflect new package names
tegg/core/*/package.json Renamed core packages (removed tegg- prefix from names like metadata, lifecycle, etc.)
tegg/core/*/src/**/*.ts Updated imports throughout core modules to use new package names
packages/egg/src/config/plugin.ts Updated plugin name from aopModule to teggAop; updated all package references
packages/egg/package.json Updated dependencies to use new package names
pnpm-workspace.yaml Updated oxlint versions in catalog
site/docs/zh-CN/basics/aop-middleware.md Updated documentation example from aopModule to teggAop
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment on lines +10 to +12
[snyk-image]: https://snyk.io/test/npm/@eggjs/ajv-plugin/badge.svg?style-square
[snyk-url]: https://snyk.io/test/npm/@eggjs/ajv-plugin
[download-image]: https://img.shields.io/npm/dm/@eggjs/ajv-plugin.svg?style-square
Copy link

Copilot AI Oct 23, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'style-flat-square' to 'style=flat-square' and 'style-square' to 'style=flat-square' (missing '=' and 'flat-').

Suggested change
[snyk-image]: https://snyk.io/test/npm/@eggjs/ajv-plugin/badge.svg?style-square
[snyk-url]: https://snyk.io/test/npm/@eggjs/ajv-plugin
[download-image]: https://img.shields.io/npm/dm/@eggjs/ajv-plugin.svg?style-square
[snyk-image]: https://snyk.io/test/npm/@eggjs/ajv-plugin/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/@eggjs/ajv-plugin
[download-image]: https://img.shields.io/npm/dm/@eggjs/ajv-plugin.svg?style=flat-square

Copilot uses AI. Check for mistakes.
const pkgFile = path.join(npmRunRoot, 'package.json');
const pkgFileExists = await exists(pkgFile);
debug('pkgFile: %o exists: %o', pkgFile, pkgFileExists);
debug('pkgFile: %s exists: %s', pkgFile, !!pkgFileExists);
Copy link

Copilot AI Oct 23, 2025

Choose a reason for hiding this comment

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

The double negation !!pkgFileExists is unnecessary when formatting with %s. The format specifier already converts the value to a string, so the original value can be passed directly. Consider using debug('pkgFile: %s exists: %s', pkgFile, pkgFileExists); for clearer code.

Suggested change
debug('pkgFile: %s exists: %s', pkgFile, !!pkgFileExists);
debug('pkgFile: %s exists: %s', pkgFile, pkgFileExists);

Copilot uses AI. Check for mistakes.
import path from 'node:path';
import { mock } from 'node:test';

import { describe, beforeEach, afterEach, it } from 'vitest';
Copy link

Copilot AI Oct 23, 2025

Choose a reason for hiding this comment

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

[nitpick] Two consecutive blank lines were introduced between imports. The project typically uses a single blank line to separate import groups. Consider using only one blank line for consistency with the existing codebase style.

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.51%. Comparing base (707b247) to head (cea39e4).
⚠️ Report is 3 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #5642   +/-   ##
=======================================
  Coverage   87.51%   87.51%           
=======================================
  Files         565      565           
  Lines       11007    11007           
  Branches     1243     1243           
=======================================
  Hits         9633     9633           
  Misses       1292     1292           
  Partials       82       82           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 23, 2025

Deploying egg-v3 with  Cloudflare Pages  Cloudflare Pages

Latest commit: cea39e4
Status: ✅  Deploy successful!
Preview URL: https://cb85fa82.egg-v3.pages.dev
Branch Preview URL: https://prepare-release-tegg.egg-v3.pages.dev

View logs

@gemini-code-assist
Copy link

Summary of Changes

Hello @fengmk2, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request undertakes a comprehensive refactoring initiative to standardize the naming conventions within the @eggjs ecosystem. The primary objective is to eliminate redundant "tegg-" and "egg-" prefixes from package names and their internal references, resulting in a cleaner, more intuitive, and consistent module structure. This change affects a wide array of files, including package.json dependencies, plugin configurations, import statements, and documentation, ensuring a unified naming scheme throughout the project. Additionally, several development dependencies have been updated to their latest versions.

Highlights

  • Standardized Package Naming: Removed redundant "tegg-" and "egg-" prefixes from numerous @eggjs scoped packages (e.g., @eggjs/tegg-ajv-plugin is now @eggjs/ajv-plugin), leading to a cleaner and more consistent module structure.
  • Updated Plugin Configurations: Renamed plugin keys in config/plugin.js and config/plugin.ts files (e.g., aopModule to teggAop, eventbusModule to teggEventbus) to align with the new naming convention.
  • Internal Codebase Alignment: Modified import paths, references, and descriptions across the tegg core and plugin modules to reflect the updated package names, ensuring consistency throughout the project.
  • Dependency Version Bumps: Updated development dependencies such as oxlint, oxlint-tsgolint, and get-tsconfig to newer versions, and adjusted vitest and @vitest/coverage-v8 in tools/create-egg.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request is a large-scale refactoring that renames many packages within the @eggjs scope by removing the tegg- and egg- prefixes. This change is applied consistently across package.json files, import statements, configuration files, and documentation. The changes also include some minor dependency updates and test file improvements. Overall, the refactoring is well-executed. I have a few minor suggestions for improving consistency in documentation and configuration, and for cleaning up test code.

Comment on lines +10 to +13
[snyk-image]: https://snyk.io/test/npm/@eggjs/ajv-plugin/badge.svg?style-square
[snyk-url]: https://snyk.io/test/npm/@eggjs/ajv-plugin
[download-image]: https://img.shields.io/npm/dm/@eggjs/ajv-plugin.svg?style-square
[download-url]: https://npmjs.org/package/@eggjs/ajv-plugin

Choose a reason for hiding this comment

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

medium

The badge styles for snyk and download were changed to square, but the npm version badge remains flat-square. This is inconsistent with other README files in this PR which use flat-square for all badges. For consistency, it would be better to use flat-square for all badges.

Suggested change
[snyk-image]: https://snyk.io/test/npm/@eggjs/ajv-plugin/badge.svg?style-square
[snyk-url]: https://snyk.io/test/npm/@eggjs/ajv-plugin
[download-image]: https://img.shields.io/npm/dm/@eggjs/ajv-plugin.svg?style-square
[download-url]: https://npmjs.org/package/@eggjs/ajv-plugin
[snyk-image]: https://snyk.io/test/npm/@eggjs/ajv-plugin/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/@eggjs/ajv-plugin
[download-image]: https://img.shields.io/npm/dm/@eggjs/ajv-plugin.svg?style=flat-square
[download-url]: https://npmjs.org/package/@eggjs/ajv-plugin

Comment on lines +5 to 8
"name": "teggEventbus",
"dependencies": [
"tegg"
]

Choose a reason for hiding this comment

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

medium

The strict: false property was removed from the eggPlugin configuration. Other tegg plugins like ajv, controller, and dal still have this property. Was this removal intentional? If not, it should be added back for consistency.

"name": "teggEventbus",
"strict": false,
"dependencies": [
  "tegg"
]

@socket-security
Copy link

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
[email protected] has Obfuscated code.

Confidence: 0.94

Location: Package overview

From: ?npm/[email protected]

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@fengmk2 fengmk2 merged commit 281775f into next Oct 23, 2025
49 of 51 checks passed
@fengmk2 fengmk2 deleted the prepare-release-tegg branch October 23, 2025 17:36
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