Skip to content

Commit

Permalink
chore: release version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mdy-m committed Sep 16, 2024
1 parent 9c372a0 commit 243fa6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 6 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@ Initial release with the following features:
- **Error Handling**: Improved error handling for missing routes in the configuration file. A clear error message is now thrown if no routes are specified.

### Performance Improvements
- **Module Caching**: Added caching logic to prevent redundant module imports, leading to faster performance when caching is enabled.
- **Module Caching**: Added caching logic to prevent redundant module imports, leading to faster performance when caching is enabled.

## [1.1.1] - 2024.09.16

### fix
- remove console.logs
6 changes: 0 additions & 6 deletions lib/helper/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ export namespace LoadModules {
export async function load(configFilePath: string) {
const configFile = path.resolve(configFilePath);
const fileConfig = await parseConfig(configFile);
console.log('fileConfig', fileConfig);

config = { ...defaultConfig, ...fileConfig };

if (!config.routes.length) {
throw new Error('No routes specified in the configuration file.');
}

const baseDir = path.resolve(config.path);
const files = config.routes.map((route) => path.join(baseDir, route));
const BATCH_SIZE = 10;
Expand Down Expand Up @@ -59,8 +55,6 @@ export namespace LoadModules {
.split('\n')
.map((line) => line.trim())
.filter((line) => line && !line.startsWith('//'));
console.log('configLines', configLines, '\n');

for (const line of configLines) {
if (line.startsWith('path')) {
// Safely evaluate the expression using Function
Expand Down

0 comments on commit 243fa6a

Please sign in to comment.