Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eggjs/core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.1.0
Choose a base ref
...
head repository: eggjs/core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.2.0
Choose a head ref
  • 2 commits
  • 15 files changed
  • 2 contributors

Commits on Dec 18, 2024

  1. feat: support file returning async functions when loading it (#272)

    Use Case:
    
    dynamically load mysql connection configuration from a remote config
    center to keep it secure.
    
    ```ts
    // config.default.ts
    
    export default async function() {
      return {
        mysql: {
          ...(await nacos.get('mysqlConfig'))
        }
      };
    }
    ```
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    ## Summary by CodeRabbit
    
    - **New Features**
    - Enhanced asynchronous file loading capabilities, including support for
    both CommonJS and ES modules.
    - Introduction of new modules that return promises with configuration
    data.
    
    - **Bug Fixes**
    	- Improved handling of promises in the file loading process.
    
    - **Tests**
    - Added multiple test cases to verify the functionality of loading
    various types of modules, including asynchronous functions and
    promise-based exports.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    AntiMoron authored Dec 18, 2024
    Configuration menu
    Copy the full SHA
    cb48d0e View commit details
    Browse the repository at this point in the history
  2. Release 6.2.0

    [skip ci]
    
    ## [6.2.0](v6.1.0...v6.2.0) (2024-12-18)
    
    ### Features
    
    * support file returning async functions when loading it ([#272](#272)) ([cb48d0e](cb48d0e))
    semantic-release-bot committed Dec 18, 2024
    Configuration menu
    Copy the full SHA
    7a4f340 View commit details
    Browse the repository at this point in the history
Loading