Skip to content

Commit 5e83b58

Browse files
committed
released v2.0.0
1 parent 3e744f5 commit 5e83b58

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

core/README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@ This guide provides the steps to migrate to the latest version of the configurat
343343

344344
**Example:**
345345
```ts
346-
export type LoaderFunc<T> = (filepath: string, content: string, jsOption?: LoadConfOption) => T | Promise<T>;
346+
export type LoaderFunc<T> = (
347+
filepath: string,
348+
content: string,
349+
jsOption?: LoadConfOption
350+
) => T | Promise<T>;
347351
```
348352

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

353357
**Example:**
354358
```ts
355-
export declare function autoConf<T>(namespace?: string, option?: AutoConfOption<T>): Promise<{} & T>;
359+
export declare function autoConf<T>(
360+
namespace?: string,
361+
option?: AutoConfOption<T>
362+
): Promise<{} & T>;
356363
```
357364

358365
### Migration Steps

core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auto-config-loader",
3-
"version": "1.7.8",
3+
"version": "2.0.0",
44
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module.",
55
"main": "./lib/index.js",
66
"type": "commonjs",

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "1.7.8",
2+
"version": "2.0.0",
33
"packages": ["core"]
44
}

0 commit comments

Comments
 (0)