Skip to content

chore(release): align next with beta.24 release#6033

Merged
elrrrrrrr merged 12 commits into
nextfrom
codex/release-beta24-patchless
Jul 13, 2026
Merged

chore(release): align next with beta.24 release#6033
elrrrrrrr merged 12 commits into
nextfrom
codex/release-beta24-patchless

Conversation

@elrrrrrrr

@elrrrrrrr elrrrrrrr commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

What

Bring the branch that was used to publish v4.1.2-beta.24 back into next so the source baseline matches the npm beta release.

This supersedes #6032 because another manual release has already published beta.24 from codex/release-beta24-patchless.

This includes:

  • the beta.21, beta.22, beta.23, and beta.24 release version commits
  • the beta.23 tegg vitest and dal fixes
  • the beta.24 tegg loader and dal-runtime fixes

Why

The old manual release workflow allows selecting an arbitrary branch input. The beta.24 run published from codex/release-beta24-patchless, not from next. npm beta now points to egg@4.1.2-beta.24, while next still contains 4.1.2-beta.20 in package manifests.

Merging this PR first realigns next with the already-published beta line before moving future releases to the GitHub Release page flow.

Validation

  • Confirmed refs/tags/v4.1.2-beta.24 and refs/heads/codex/release-beta24-patchless both point to 1e9757ea
  • Confirmed egg@4.1.2-beta.24 is published on npm and the beta dist-tag points to it
  • Confirmed Git can auto-merge origin/next with origin/codex/release-beta24-patchless using git merge-tree --write-tree

Summary by CodeRabbit

  • New Features
    • Vitest now supports automatic setup and dynamic loading across ESM and CommonJS modules.
    • Templates are included automatically in built packages.
  • Bug Fixes
    • Improved transaction handling when no datasource is configured.
    • Loader discovery now excludes declaration files and Vitest configuration files.
  • Release
    • Updated package versions to the latest beta releases, including beta.24 updates across the ecosystem.

elrrrrrrr and others added 11 commits July 12, 2026 01:34
- @eggjs/cluster@4.0.2-beta.21
- @eggjs/cookies@4.0.2-beta.21
- @eggjs/core@7.0.2-beta.21
- egg@4.1.2-beta.21
- @eggjs/errors@3.0.2-beta.21
- @eggjs/extend2@5.0.2-beta.21
- @eggjs/koa@3.1.2-beta.21
- @eggjs/koa-static-cache@7.0.2-beta.21
- @eggjs/loader-fs@1.0.0-beta.21
- @eggjs/logger@4.0.2-beta.21
- @eggjs/path-matching@3.0.2-beta.21
- @eggjs/router@4.0.2-beta.21
- @eggjs/skills@4.1.2-beta.21
- @eggjs/supertest@9.0.2-beta.21
- @eggjs/tsconfig@3.1.2-beta.21
- @eggjs/typings@4.1.2-beta.21
- @eggjs/utils@5.0.2-beta.21
- @eggjs/development@5.0.2-beta.21
- @eggjs/i18n@4.0.2-beta.21
- @eggjs/jsonp@4.0.2-beta.21
- @eggjs/logrotator@5.0.2-beta.21
- @eggjs/mock@7.0.2-beta.21
- @eggjs/multipart@5.0.2-beta.21
- @eggjs/onerror@4.0.2-beta.21
- @eggjs/redis@4.0.2-beta.21
- @eggjs/schedule@6.0.2-beta.21
- @eggjs/security@5.0.2-beta.21
- @eggjs/session@5.0.2-beta.21
- @eggjs/static@4.0.2-beta.21
- @eggjs/tracer@4.0.2-beta.21
- @eggjs/typebox-validate@4.0.2-beta.21
- @eggjs/view@4.0.2-beta.21
- @eggjs/view-nunjucks@3.0.2-beta.21
- @eggjs/watcher@5.0.2-beta.21
- create-egg@4.1.2-beta.21
- @eggjs/bin@8.0.2-beta.21
- @eggjs/egg-bundler@0.0.1-beta.11
- @eggjs/scripts@5.0.2-beta.21
- @eggjs/agent-runtime@4.0.2-beta.21
- @eggjs/ajv-decorator@4.0.2-beta.21
- @eggjs/aop-decorator@4.0.2-beta.21
- @eggjs/aop-runtime@4.0.2-beta.21
- @eggjs/background-task@4.0.2-beta.21
- @eggjs/tegg-common-util@4.0.2-beta.21
- @eggjs/controller-decorator@4.0.2-beta.21
- @eggjs/core-decorator@4.0.2-beta.21
- @eggjs/dal-decorator@4.0.2-beta.21
- @eggjs/dal-runtime@4.0.2-beta.21
- @eggjs/dynamic-inject@4.0.2-beta.21
- @eggjs/dynamic-inject-runtime@4.0.2-beta.21
- @eggjs/eventbus-decorator@4.0.2-beta.21
- @eggjs/eventbus-runtime@4.0.2-beta.21
- @eggjs/langchain-decorator@4.0.2-beta.21
- @eggjs/lifecycle@4.0.2-beta.21
- @eggjs/tegg-loader@4.0.2-beta.21
- @eggjs/mcp-client@4.0.2-beta.21
- @eggjs/metadata@4.0.2-beta.21
- @eggjs/orm-decorator@4.0.2-beta.21
- @eggjs/tegg-runtime@4.0.2-beta.21
- @eggjs/schedule-decorator@4.0.2-beta.21
- @eggjs/standalone-decorator@4.0.2-beta.21
- @eggjs/tegg@4.0.2-beta.21
- @eggjs/transaction-decorator@4.0.2-beta.21
- @eggjs/tegg-types@4.0.2-beta.21
- @eggjs/tegg-vitest@4.0.2-beta.21
- @eggjs/ajv-plugin@4.0.2-beta.21
- @eggjs/aop-plugin@4.0.2-beta.21
- @eggjs/module-common@4.0.2-beta.21
- @eggjs/tegg-config@4.0.2-beta.21
- @eggjs/controller-plugin@4.0.2-beta.21
- @eggjs/dal-plugin@4.0.2-beta.21
- @eggjs/dns-cache-plugin@4.0.2-beta.21
- @eggjs/eventbus-plugin@4.0.2-beta.21
- @eggjs/langchain-plugin@4.0.2-beta.21
- @eggjs/mcp-client-plugin@4.0.2-beta.21
- @eggjs/mcp-proxy-plugin@4.0.2-beta.21
- @eggjs/orm-plugin@4.0.2-beta.21
- @eggjs/schedule-plugin@4.0.2-beta.21
- @eggjs/tegg-plugin@4.0.2-beta.21
- @eggjs/standalone@4.0.2-beta.21
- @eggjs/cluster@4.0.2-beta.22
- @eggjs/cookies@4.0.2-beta.22
- @eggjs/core@7.0.2-beta.22
- egg@4.1.2-beta.22
- @eggjs/errors@3.0.2-beta.22
- @eggjs/extend2@5.0.2-beta.22
- @eggjs/koa@3.1.2-beta.22
- @eggjs/koa-static-cache@7.0.2-beta.22
- @eggjs/loader-fs@1.0.0-beta.22
- @eggjs/logger@4.0.2-beta.22
- @eggjs/path-matching@3.0.2-beta.22
- @eggjs/router@4.0.2-beta.22
- @eggjs/skills@4.1.2-beta.22
- @eggjs/supertest@9.0.2-beta.22
- @eggjs/tsconfig@3.1.2-beta.22
- @eggjs/typings@4.1.2-beta.22
- @eggjs/utils@5.0.2-beta.22
- @eggjs/development@5.0.2-beta.22
- @eggjs/i18n@4.0.2-beta.22
- @eggjs/jsonp@4.0.2-beta.22
- @eggjs/logrotator@5.0.2-beta.22
- @eggjs/mock@7.0.2-beta.22
- @eggjs/multipart@5.0.2-beta.22
- @eggjs/onerror@4.0.2-beta.22
- @eggjs/redis@4.0.2-beta.22
- @eggjs/schedule@6.0.2-beta.22
- @eggjs/security@5.0.2-beta.22
- @eggjs/session@5.0.2-beta.22
- @eggjs/static@4.0.2-beta.22
- @eggjs/tracer@4.0.2-beta.22
- @eggjs/typebox-validate@4.0.2-beta.22
- @eggjs/view@4.0.2-beta.22
- @eggjs/view-nunjucks@3.0.2-beta.22
- @eggjs/watcher@5.0.2-beta.22
- create-egg@4.1.2-beta.22
- @eggjs/bin@8.0.2-beta.22
- @eggjs/egg-bundler@0.0.1-beta.12
- @eggjs/scripts@5.0.2-beta.22
- @eggjs/agent-runtime@4.0.2-beta.22
- @eggjs/ajv-decorator@4.0.2-beta.22
- @eggjs/aop-decorator@4.0.2-beta.22
- @eggjs/aop-runtime@4.0.2-beta.22
- @eggjs/background-task@4.0.2-beta.22
- @eggjs/tegg-common-util@4.0.2-beta.22
- @eggjs/controller-decorator@4.0.2-beta.22
- @eggjs/core-decorator@4.0.2-beta.22
- @eggjs/dal-decorator@4.0.2-beta.22
- @eggjs/dal-runtime@4.0.2-beta.22
- @eggjs/dynamic-inject@4.0.2-beta.22
- @eggjs/dynamic-inject-runtime@4.0.2-beta.22
- @eggjs/eventbus-decorator@4.0.2-beta.22
- @eggjs/eventbus-runtime@4.0.2-beta.22
- @eggjs/langchain-decorator@4.0.2-beta.22
- @eggjs/lifecycle@4.0.2-beta.22
- @eggjs/tegg-loader@4.0.2-beta.22
- @eggjs/mcp-client@4.0.2-beta.22
- @eggjs/metadata@4.0.2-beta.22
- @eggjs/orm-decorator@4.0.2-beta.22
- @eggjs/tegg-runtime@4.0.2-beta.22
- @eggjs/schedule-decorator@4.0.2-beta.22
- @eggjs/standalone-decorator@4.0.2-beta.22
- @eggjs/tegg@4.0.2-beta.22
- @eggjs/transaction-decorator@4.0.2-beta.22
- @eggjs/tegg-types@4.0.2-beta.22
- @eggjs/tegg-vitest@4.0.2-beta.22
- @eggjs/ajv-plugin@4.0.2-beta.22
- @eggjs/aop-plugin@4.0.2-beta.22
- @eggjs/module-common@4.0.2-beta.22
- @eggjs/tegg-config@4.0.2-beta.22
- @eggjs/controller-plugin@4.0.2-beta.22
- @eggjs/dal-plugin@4.0.2-beta.22
- @eggjs/dns-cache-plugin@4.0.2-beta.22
- @eggjs/eventbus-plugin@4.0.2-beta.22
- @eggjs/langchain-plugin@4.0.2-beta.22
- @eggjs/mcp-client-plugin@4.0.2-beta.22
- @eggjs/mcp-proxy-plugin@4.0.2-beta.22
- @eggjs/orm-plugin@4.0.2-beta.22
- @eggjs/schedule-plugin@4.0.2-beta.22
- @eggjs/tegg-plugin@4.0.2-beta.22
- @eggjs/standalone@4.0.2-beta.22
- @eggjs/cluster@4.0.2-beta.23
- @eggjs/cookies@4.0.2-beta.23
- @eggjs/core@7.0.2-beta.23
- egg@4.1.2-beta.23
- @eggjs/errors@3.0.2-beta.23
- @eggjs/extend2@5.0.2-beta.23
- @eggjs/koa@3.1.2-beta.23
- @eggjs/koa-static-cache@7.0.2-beta.23
- @eggjs/loader-fs@1.0.0-beta.23
- @eggjs/logger@4.0.2-beta.23
- @eggjs/path-matching@3.0.2-beta.23
- @eggjs/router@4.0.2-beta.23
- @eggjs/skills@4.1.2-beta.23
- @eggjs/supertest@9.0.2-beta.23
- @eggjs/tsconfig@3.1.2-beta.23
- @eggjs/typings@4.1.2-beta.23
- @eggjs/utils@5.0.2-beta.23
- @eggjs/development@5.0.2-beta.23
- @eggjs/i18n@4.0.2-beta.23
- @eggjs/jsonp@4.0.2-beta.23
- @eggjs/logrotator@5.0.2-beta.23
- @eggjs/mock@7.0.2-beta.23
- @eggjs/multipart@5.0.2-beta.23
- @eggjs/onerror@4.0.2-beta.23
- @eggjs/redis@4.0.2-beta.23
- @eggjs/schedule@6.0.2-beta.23
- @eggjs/security@5.0.2-beta.23
- @eggjs/session@5.0.2-beta.23
- @eggjs/static@4.0.2-beta.23
- @eggjs/tracer@4.0.2-beta.23
- @eggjs/typebox-validate@4.0.2-beta.23
- @eggjs/view@4.0.2-beta.23
- @eggjs/view-nunjucks@3.0.2-beta.23
- @eggjs/watcher@5.0.2-beta.23
- create-egg@4.1.2-beta.23
- @eggjs/bin@8.0.2-beta.23
- @eggjs/egg-bundler@0.0.1-beta.13
- @eggjs/scripts@5.0.2-beta.23
- @eggjs/agent-runtime@4.0.2-beta.23
- @eggjs/ajv-decorator@4.0.2-beta.23
- @eggjs/aop-decorator@4.0.2-beta.23
- @eggjs/aop-runtime@4.0.2-beta.23
- @eggjs/background-task@4.0.2-beta.23
- @eggjs/tegg-common-util@4.0.2-beta.23
- @eggjs/controller-decorator@4.0.2-beta.23
- @eggjs/core-decorator@4.0.2-beta.23
- @eggjs/dal-decorator@4.0.2-beta.23
- @eggjs/dal-runtime@4.0.2-beta.23
- @eggjs/dynamic-inject@4.0.2-beta.23
- @eggjs/dynamic-inject-runtime@4.0.2-beta.23
- @eggjs/eventbus-decorator@4.0.2-beta.23
- @eggjs/eventbus-runtime@4.0.2-beta.23
- @eggjs/langchain-decorator@4.0.2-beta.23
- @eggjs/lifecycle@4.0.2-beta.23
- @eggjs/tegg-loader@4.0.2-beta.23
- @eggjs/mcp-client@4.0.2-beta.23
- @eggjs/metadata@4.0.2-beta.23
- @eggjs/orm-decorator@4.0.2-beta.23
- @eggjs/tegg-runtime@4.0.2-beta.23
- @eggjs/schedule-decorator@4.0.2-beta.23
- @eggjs/standalone-decorator@4.0.2-beta.23
- @eggjs/tegg@4.0.2-beta.23
- @eggjs/transaction-decorator@4.0.2-beta.23
- @eggjs/tegg-types@4.0.2-beta.23
- @eggjs/tegg-vitest@4.0.2-beta.23
- @eggjs/ajv-plugin@4.0.2-beta.23
- @eggjs/aop-plugin@4.0.2-beta.23
- @eggjs/module-common@4.0.2-beta.23
- @eggjs/tegg-config@4.0.2-beta.23
- @eggjs/controller-plugin@4.0.2-beta.23
- @eggjs/dal-plugin@4.0.2-beta.23
- @eggjs/dns-cache-plugin@4.0.2-beta.23
- @eggjs/eventbus-plugin@4.0.2-beta.23
- @eggjs/langchain-plugin@4.0.2-beta.23
- @eggjs/mcp-client-plugin@4.0.2-beta.23
- @eggjs/mcp-proxy-plugin@4.0.2-beta.23
- @eggjs/orm-plugin@4.0.2-beta.23
- @eggjs/schedule-plugin@4.0.2-beta.23
- @eggjs/tegg-plugin@4.0.2-beta.23
- @eggjs/standalone@4.0.2-beta.23
- @eggjs/cluster@4.0.2-beta.24
- @eggjs/cookies@4.0.2-beta.24
- @eggjs/core@7.0.2-beta.24
- egg@4.1.2-beta.24
- @eggjs/errors@3.0.2-beta.24
- @eggjs/extend2@5.0.2-beta.24
- @eggjs/koa@3.1.2-beta.24
- @eggjs/koa-static-cache@7.0.2-beta.24
- @eggjs/loader-fs@1.0.0-beta.24
- @eggjs/logger@4.0.2-beta.24
- @eggjs/path-matching@3.0.2-beta.24
- @eggjs/router@4.0.2-beta.24
- @eggjs/skills@4.1.2-beta.24
- @eggjs/supertest@9.0.2-beta.24
- @eggjs/tsconfig@3.1.2-beta.24
- @eggjs/typings@4.1.2-beta.24
- @eggjs/utils@5.0.2-beta.24
- @eggjs/development@5.0.2-beta.24
- @eggjs/i18n@4.0.2-beta.24
- @eggjs/jsonp@4.0.2-beta.24
- @eggjs/logrotator@5.0.2-beta.24
- @eggjs/mock@7.0.2-beta.24
- @eggjs/multipart@5.0.2-beta.24
- @eggjs/onerror@4.0.2-beta.24
- @eggjs/redis@4.0.2-beta.24
- @eggjs/schedule@6.0.2-beta.24
- @eggjs/security@5.0.2-beta.24
- @eggjs/session@5.0.2-beta.24
- @eggjs/static@4.0.2-beta.24
- @eggjs/tracer@4.0.2-beta.24
- @eggjs/typebox-validate@4.0.2-beta.24
- @eggjs/view@4.0.2-beta.24
- @eggjs/view-nunjucks@3.0.2-beta.24
- @eggjs/watcher@5.0.2-beta.24
- create-egg@4.1.2-beta.24
- @eggjs/bin@8.0.2-beta.24
- @eggjs/egg-bundler@0.0.1-beta.14
- @eggjs/scripts@5.0.2-beta.24
- @eggjs/agent-runtime@4.0.2-beta.24
- @eggjs/ajv-decorator@4.0.2-beta.24
- @eggjs/aop-decorator@4.0.2-beta.24
- @eggjs/aop-runtime@4.0.2-beta.24
- @eggjs/background-task@4.0.2-beta.24
- @eggjs/tegg-common-util@4.0.2-beta.24
- @eggjs/controller-decorator@4.0.2-beta.24
- @eggjs/core-decorator@4.0.2-beta.24
- @eggjs/dal-decorator@4.0.2-beta.24
- @eggjs/dal-runtime@4.0.2-beta.24
- @eggjs/dynamic-inject@4.0.2-beta.24
- @eggjs/dynamic-inject-runtime@4.0.2-beta.24
- @eggjs/eventbus-decorator@4.0.2-beta.24
- @eggjs/eventbus-runtime@4.0.2-beta.24
- @eggjs/langchain-decorator@4.0.2-beta.24
- @eggjs/lifecycle@4.0.2-beta.24
- @eggjs/tegg-loader@4.0.2-beta.24
- @eggjs/mcp-client@4.0.2-beta.24
- @eggjs/metadata@4.0.2-beta.24
- @eggjs/orm-decorator@4.0.2-beta.24
- @eggjs/tegg-runtime@4.0.2-beta.24
- @eggjs/schedule-decorator@4.0.2-beta.24
- @eggjs/standalone-decorator@4.0.2-beta.24
- @eggjs/tegg@4.0.2-beta.24
- @eggjs/transaction-decorator@4.0.2-beta.24
- @eggjs/tegg-types@4.0.2-beta.24
- @eggjs/tegg-vitest@4.0.2-beta.24
- @eggjs/ajv-plugin@4.0.2-beta.24
- @eggjs/aop-plugin@4.0.2-beta.24
- @eggjs/module-common@4.0.2-beta.24
- @eggjs/tegg-config@4.0.2-beta.24
- @eggjs/controller-plugin@4.0.2-beta.24
- @eggjs/dal-plugin@4.0.2-beta.24
- @eggjs/dns-cache-plugin@4.0.2-beta.24
- @eggjs/eventbus-plugin@4.0.2-beta.24
- @eggjs/langchain-plugin@4.0.2-beta.24
- @eggjs/mcp-client-plugin@4.0.2-beta.24
- @eggjs/mcp-proxy-plugin@4.0.2-beta.24
- @eggjs/orm-plugin@4.0.2-beta.24
- @eggjs/schedule-plugin@4.0.2-beta.24
- @eggjs/tegg-plugin@4.0.2-beta.24
- @eggjs/standalone@4.0.2-beta.24
Copilot AI review requested due to automatic review settings July 12, 2026 14:50
@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

The PR advances monorepo package versions to beta.24, adds DAL template copying, expands loader exclusions, introduces a Vitest global module importer, updates transaction datasource handling, and auto-injects TeGG Vitest setup when available.

Release and runtime integration

Layer / File(s) Summary
Package beta version updates
package.json, packages/*/package.json, plugins/*/package.json, tegg/*/package.json, tools/*/package.json
Package versions are bumped across the monorepo.
DAL template asset packaging
tegg/core/dal-runtime/tsdown.config.ts, tegg/core/dal-runtime/test/CodeGenerator.test.ts
Build configuration copies src/templates to dist/templates, with test coverage.
Loader file filtering
tegg/core/loader/src/LoaderUtil.ts, tegg/core/loader/test/Loader.test.ts
Loader patterns exclude .d.mts, .d.cts, and vitest.config.* files.
Vitest module importer
tegg/core/vitest/package.json, tegg/core/vitest/src/setup.ts, tegg/core/vitest/vitest.config.ts, tegg/core/vitest/test/fixture_app.test.ts
Vitest exposes setup entry points and defines a global importer for ESM and CJS modules.
DAL transaction hook handling
tegg/plugin/dal/src/lib/TransactionPrototypeHook.ts, tegg/plugin/dal/test/TransactionPrototypeHook.test.ts
Datasource configuration is computed once, with early returns for missing or empty configurations.
Vitest setup auto-wiring
tools/egg-bin/src/commands/test.ts
The test command prepends TeGG setup when its runner resolves successfully.

Estimated code review effort: 2 (Simple) | ~15 minutes

Sequence Diagram(s)

sequenceDiagram
  participant TestCommand
  participant Vitest
  participant EggVitestSetup
  participant FixtureModule
  TestCommand->>Vitest: prepend TeGG setup
  Vitest->>EggVitestSetup: load setup.ts
  EggVitestSetup->>EggVitestSetup: classify module format
  EggVitestSetup->>FixtureModule: import or require module
  FixtureModule-->>Vitest: return loaded module
Loading

Possibly related issues

Possibly related PRs

  • eggjs/egg#5989 — Adds loader-side support for the global module importer used by this PR.
  • eggjs/egg#5992 — Updates utility module loading to consume the same global importer.
  • eggjs/egg#6002 — Formalizes and tests the shared module-importer behavior.

Suggested labels: chore: gitAction

Suggested reviewers: fengmk2, killagu, jerryliang64, gxkl

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the release-version alignment changes and the beta.24 update across the repo.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/release-beta24-patchless

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.

@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.17%. Comparing base (dfd102c) to head (a912ae1).

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #6033   +/-   ##
=======================================
  Coverage   82.17%   82.17%           
=======================================
  Files         678      678           
  Lines       20842    20844    +2     
  Branches     4155     4156    +1     
=======================================
+ Hits        17127    17129    +2     
  Misses       3207     3207           
  Partials      508      508           

☔ View full report in Codecov by Harness.
📢 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

cloudflare-workers-and-pages Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploying egg with  Cloudflare Pages  Cloudflare Pages

Latest commit: a912ae1
Status: ✅  Deploy successful!
Preview URL: https://55616c3d.egg-cci.pages.dev
Branch Preview URL: https://codex-release-beta24-patchle.egg-cci.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploying egg-v3 with  Cloudflare Pages  Cloudflare Pages

Latest commit: a912ae1
Status: ✅  Deploy successful!
Preview URL: https://eb9b85d6.egg-v3.pages.dev
Branch Preview URL: https://codex-release-beta24-patchle.egg-v3.pages.dev

View logs

@socket-security

socket-security Bot commented Jul 12, 2026

Copy link
Copy Markdown

Dependency limit exceeded — report not shown.

This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report.

Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard.

Socket is always free for open source. If this is a non-commercial open source project, contact us to request a free Team account.

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

Copy link
Copy Markdown
Contributor

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 bumps package versions across the monorepo and introduces several enhancements, including copying templates as build assets in dal-runtime, excluding declaration files and test runner configurations from the loader, and adding a new setup script in tegg-vitest to handle ESM and CJS module imports during Vitest runs. Additionally, the TransactionPrototypeHook in the DAL plugin is optimized to skip transaction hooks early when no data sources are configured. Feedback on these changes suggests wrapping the auto-resolved @eggjs/tegg-vitest/setup in a try-catch block to prevent crashes on older versions, and resolving file paths to absolute paths in the setup script to ensure directory traversal works correctly for relative paths.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tools/egg-bin/src/commands/test.ts
Comment thread tegg/core/vitest/src/setup.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tegg/plugin/dal/test/TransactionPrototypeHook.test.ts`:
- Line 4: Update the TransactionPrototypeHook import specifier in
TransactionPrototypeHook.test.ts to use the .js extension, preserving the
existing ESM import and referenced module.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: cc9b774f-fd4f-4ae3-b0cf-652ebaef66a5

📥 Commits

Reviewing files that changed from the base of the PR and between dfd102c and 1e9757e.

📒 Files selected for processing (91)
  • package.json
  • packages/cluster/package.json
  • packages/cookies/package.json
  • packages/core/package.json
  • packages/egg/package.json
  • packages/errors/package.json
  • packages/extend2/package.json
  • packages/koa-static-cache/package.json
  • packages/koa/package.json
  • packages/loader-fs/package.json
  • packages/logger/package.json
  • packages/path-matching/package.json
  • packages/router/package.json
  • packages/skills/package.json
  • packages/supertest/package.json
  • packages/tsconfig/package.json
  • packages/typings/package.json
  • packages/utils/package.json
  • plugins/development/package.json
  • plugins/i18n/package.json
  • plugins/jsonp/package.json
  • plugins/logrotator/package.json
  • plugins/mock/package.json
  • plugins/multipart/package.json
  • plugins/onerror/package.json
  • plugins/redis/package.json
  • plugins/schedule/package.json
  • plugins/security/package.json
  • plugins/session/package.json
  • plugins/static/package.json
  • plugins/tracer/package.json
  • plugins/typebox-validate/package.json
  • plugins/view-nunjucks/package.json
  • plugins/view/package.json
  • plugins/watcher/package.json
  • tegg/core/agent-runtime/package.json
  • tegg/core/ajv-decorator/package.json
  • tegg/core/aop-decorator/package.json
  • tegg/core/aop-runtime/package.json
  • tegg/core/background-task/package.json
  • tegg/core/common-util/package.json
  • tegg/core/controller-decorator/package.json
  • tegg/core/core-decorator/package.json
  • tegg/core/dal-decorator/package.json
  • tegg/core/dal-runtime/package.json
  • tegg/core/dal-runtime/test/CodeGenerator.test.ts
  • tegg/core/dal-runtime/tsdown.config.ts
  • tegg/core/dynamic-inject-runtime/package.json
  • tegg/core/dynamic-inject/package.json
  • tegg/core/eventbus-decorator/package.json
  • tegg/core/eventbus-runtime/package.json
  • tegg/core/langchain-decorator/package.json
  • tegg/core/lifecycle/package.json
  • tegg/core/loader/package.json
  • tegg/core/loader/src/LoaderUtil.ts
  • tegg/core/loader/test/Loader.test.ts
  • tegg/core/mcp-client/package.json
  • tegg/core/metadata/package.json
  • tegg/core/orm-decorator/package.json
  • tegg/core/runtime/package.json
  • tegg/core/schedule-decorator/package.json
  • tegg/core/standalone-decorator/package.json
  • tegg/core/tegg/package.json
  • tegg/core/transaction-decorator/package.json
  • tegg/core/types/package.json
  • tegg/core/vitest/package.json
  • tegg/core/vitest/src/setup.ts
  • tegg/core/vitest/test/fixture_app.test.ts
  • tegg/core/vitest/vitest.config.ts
  • tegg/plugin/ajv/package.json
  • tegg/plugin/aop/package.json
  • tegg/plugin/common/package.json
  • tegg/plugin/config/package.json
  • tegg/plugin/controller/package.json
  • tegg/plugin/dal/package.json
  • tegg/plugin/dal/src/lib/TransactionPrototypeHook.ts
  • tegg/plugin/dal/test/TransactionPrototypeHook.test.ts
  • tegg/plugin/dns-cache/package.json
  • tegg/plugin/eventbus/package.json
  • tegg/plugin/langchain/package.json
  • tegg/plugin/mcp-client/package.json
  • tegg/plugin/mcp-proxy/package.json
  • tegg/plugin/orm/package.json
  • tegg/plugin/schedule/package.json
  • tegg/plugin/tegg/package.json
  • tegg/standalone/standalone/package.json
  • tools/create-egg/package.json
  • tools/egg-bin/package.json
  • tools/egg-bin/src/commands/test.ts
  • tools/egg-bundler/package.json
  • tools/scripts/package.json

Comment thread tegg/plugin/dal/test/TransactionPrototypeHook.test.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR realigns the next branch source baseline with the already-published v4.1.2-beta.24 line by bringing version bumps and the associated tegg/vitest, loader, and dal fixes into next.

Changes:

  • Bump package/tool versions across the monorepo from beta.20 (or earlier) to beta.24 (and align egg-bundler to 0.0.1-beta.14).
  • Improve tegg Vitest integration by exporting a new @eggjs/tegg-vitest/setup module and auto-injecting it from egg-bin when the tegg Vitest runner is detected.
  • Harden tegg loader / dal behaviors: exclude declaration + vitest config files from module discovery; skip dal transaction hook when no datasource config exists; ensure dal-runtime templates are included as build assets.

Reviewed changes

Copilot reviewed 91 out of 91 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
package.json Bump root version to 4.1.2-beta.24.
packages/cluster/package.json Bump package version to 4.0.2-beta.24.
packages/cookies/package.json Bump package version to 4.0.2-beta.24.
packages/core/package.json Bump package version to 7.0.2-beta.24.
packages/egg/package.json Bump package version to 4.1.2-beta.24.
packages/errors/package.json Bump package version to 3.0.2-beta.24.
packages/extend2/package.json Bump package version to 5.0.2-beta.24.
packages/koa-static-cache/package.json Bump package version to 7.0.2-beta.24.
packages/koa/package.json Bump package version to 3.1.2-beta.24.
packages/loader-fs/package.json Bump package version to 1.0.0-beta.24.
packages/logger/package.json Bump package version to 4.0.2-beta.24.
packages/path-matching/package.json Bump package version to 3.0.2-beta.24.
packages/router/package.json Bump package version to 4.0.2-beta.24.
packages/skills/package.json Bump package version to 4.1.2-beta.24.
packages/supertest/package.json Bump package version to 9.0.2-beta.24.
packages/tsconfig/package.json Bump package version to 3.1.2-beta.24.
packages/typings/package.json Bump package version to 4.1.2-beta.24.
packages/utils/package.json Bump package version to 5.0.2-beta.24.
plugins/development/package.json Bump package version to 5.0.2-beta.24.
plugins/i18n/package.json Bump package version to 4.0.2-beta.24.
plugins/jsonp/package.json Bump package version to 4.0.2-beta.24.
plugins/logrotator/package.json Bump package version to 5.0.2-beta.24.
plugins/mock/package.json Bump package version to 7.0.2-beta.24.
plugins/multipart/package.json Bump package version to 5.0.2-beta.24.
plugins/onerror/package.json Bump package version to 4.0.2-beta.24.
plugins/redis/package.json Bump package version to 4.0.2-beta.24.
plugins/schedule/package.json Bump package version to 6.0.2-beta.24.
plugins/security/package.json Bump package version to 5.0.2-beta.24.
plugins/session/package.json Bump package version to 5.0.2-beta.24.
plugins/static/package.json Bump package version to 4.0.2-beta.24.
plugins/tracer/package.json Bump package version to 4.0.2-beta.24.
plugins/typebox-validate/package.json Bump package version to 4.0.2-beta.24.
plugins/view-nunjucks/package.json Bump package version to 3.0.2-beta.24.
plugins/view/package.json Bump package version to 4.0.2-beta.24.
plugins/watcher/package.json Bump package version to 5.0.2-beta.24.
tegg/core/agent-runtime/package.json Bump package version to 4.0.2-beta.24.
tegg/core/ajv-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/aop-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/aop-runtime/package.json Bump package version to 4.0.2-beta.24.
tegg/core/background-task/package.json Bump package version to 4.0.2-beta.24.
tegg/core/common-util/package.json Bump package version to 4.0.2-beta.24.
tegg/core/controller-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/core-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/dal-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/dal-runtime/package.json Bump package version to 4.0.2-beta.24.
tegg/core/dal-runtime/test/CodeGenerator.test.ts Add regression coverage for tsdown.copy templates asset config.
tegg/core/dal-runtime/tsdown.config.ts Copy src/templates into dist/templates during build.
tegg/core/dynamic-inject-runtime/package.json Bump package version to 4.0.2-beta.24.
tegg/core/dynamic-inject/package.json Bump package version to 4.0.2-beta.24.
tegg/core/eventbus-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/eventbus-runtime/package.json Bump package version to 4.0.2-beta.24.
tegg/core/langchain-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/lifecycle/package.json Bump package version to 4.0.2-beta.24.
tegg/core/loader/package.json Bump package version to 4.0.2-beta.24.
tegg/core/loader/src/LoaderUtil.ts Exclude .d.mts/.d.cts and vitest.config.* from module discovery patterns.
tegg/core/loader/test/Loader.test.ts Add test asserting new module discovery excludes.
tegg/core/mcp-client/package.json Bump package version to 4.0.2-beta.24.
tegg/core/metadata/package.json Bump package version to 4.0.2-beta.24.
tegg/core/orm-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/runtime/package.json Bump package version to 4.0.2-beta.24.
tegg/core/schedule-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/standalone-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/tegg/package.json Bump package version to 4.0.2-beta.24.
tegg/core/transaction-decorator/package.json Bump package version to 4.0.2-beta.24.
tegg/core/types/package.json Bump package version to 4.0.2-beta.24.
tegg/core/vitest/package.json Bump version and export new ./setup entrypoint.
tegg/core/vitest/src/setup.ts Add Vitest setup to provide ESM/CJS-aware __EGG_MODULE_IMPORTER__.
tegg/core/vitest/test/fixture_app.test.ts Add assertion that __EGG_MODULE_IMPORTER__ can load module consistently.
tegg/core/vitest/vitest.config.ts Register ./src/setup.ts as an additional Vitest setup file.
tegg/plugin/ajv/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/aop/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/common/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/config/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/controller/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/dal/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/dal/src/lib/TransactionPrototypeHook.ts Skip transaction hook when module has no datasource config.
tegg/plugin/dal/test/TransactionPrototypeHook.test.ts Add regression tests for the new datasource guard behavior.
tegg/plugin/dns-cache/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/eventbus/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/langchain/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/mcp-client/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/mcp-proxy/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/orm/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/schedule/package.json Bump package version to 4.0.2-beta.24.
tegg/plugin/tegg/package.json Bump package version to 4.0.2-beta.24.
tegg/standalone/standalone/package.json Bump package version to 4.0.2-beta.24.
tools/create-egg/package.json Bump tool version to 4.1.2-beta.24.
tools/egg-bin/package.json Bump tool version to 8.0.2-beta.24.
tools/egg-bin/src/commands/test.ts Auto-inject @eggjs/tegg-vitest/setup when tegg Vitest runner is available.
tools/egg-bundler/package.json Bump tool version to 0.0.1-beta.14.
tools/scripts/package.json Bump tool version to 5.0.2-beta.24.

Comment thread tools/egg-bin/src/commands/test.ts
Comment thread tegg/core/vitest/src/setup.ts
Comment thread tegg/core/vitest/package.json
@elrrrrrrr elrrrrrrr requested a review from killagu July 13, 2026 07:29

@killagu killagu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@elrrrrrrr elrrrrrrr enabled auto-merge July 13, 2026 08:04
@elrrrrrrr elrrrrrrr disabled auto-merge July 13, 2026 08:07
@elrrrrrrr elrrrrrrr enabled auto-merge July 13, 2026 08:08
@elrrrrrrr elrrrrrrr disabled auto-merge July 13, 2026 08:09
@elrrrrrrr elrrrrrrr merged commit d0558dc into next Jul 13, 2026
26 of 27 checks passed
@elrrrrrrr elrrrrrrr deleted the codex/release-beta24-patchless branch July 13, 2026 08:09
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.

4 participants