Skip to content

Commit

Permalink
released v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 11, 2024
1 parent 3e744f5 commit 5e83b58
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ This guide provides the steps to migrate to the latest version of the configurat

**Example:**
```ts
export type LoaderFunc<T> = (filepath: string, content: string, jsOption?: LoadConfOption) => T | Promise<T>;
export type LoaderFunc<T> = (
filepath: string,
content: string,
jsOption?: LoadConfOption
) => T | Promise<T>;
```

2. **`autoConf` Returns a Promise**
Expand All @@ -352,7 +356,10 @@ This guide provides the steps to migrate to the latest version of the configurat

**Example:**
```ts
export declare function autoConf<T>(namespace?: string, option?: AutoConfOption<T>): Promise<{} & T>;
export declare function autoConf<T>(
namespace?: string,
option?: AutoConfOption<T>
): Promise<{} & T>;
```

### Migration Steps
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auto-config-loader",
"version": "1.7.8",
"version": "2.0.0",
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module.",
"main": "./lib/index.js",
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.7.8",
"version": "2.0.0",
"packages": ["core"]
}

0 comments on commit 5e83b58

Please sign in to comment.