-
-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7540cd
commit 13a1479
Showing
70 changed files
with
569 additions
and
902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { colors } from "@vuepress/utils"; | ||
import { createConverter } from "vuepress-shared/node"; | ||
|
||
import type { AutoCatalogOptions } from "./options.js"; | ||
|
||
/** @deprecated */ | ||
export const convertOptions = ( | ||
options: AutoCatalogOptions & Record<string, unknown>, | ||
): void => { | ||
const { deprecatedLogger, droppedLogger } = createConverter("auto-catalog"); | ||
|
||
deprecatedLogger({ | ||
options, | ||
old: "getTitle", | ||
new: "titleGetter", | ||
}); | ||
deprecatedLogger({ | ||
options, | ||
old: "getIcon", | ||
new: "iconGetter", | ||
}); | ||
deprecatedLogger({ | ||
options, | ||
old: "getOrder", | ||
new: "orderGetter", | ||
}); | ||
deprecatedLogger({ | ||
options, | ||
old: "getIndex", | ||
new: "shouldIndex", | ||
}); | ||
|
||
droppedLogger({ | ||
options, | ||
old: "iconComponent", | ||
msg: `please use ${colors.magenta( | ||
"defineAutoCatalogIconComponent", | ||
)} in client config file.`, | ||
}); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
import { colors } from "@vuepress/utils"; | ||
import { createConverter } from "vuepress-shared/node"; | ||
|
||
import type { BlogOptions } from "./options.js"; | ||
import { logger } from "./utils.js"; | ||
|
||
/** @deprecated */ | ||
export const convertOptions = ( | ||
options: BlogOptions & { | ||
/** @deprecated */ | ||
customElement?: (tagName: string) => boolean; | ||
}, | ||
options: BlogOptions & Record<string, unknown>, | ||
): void => { | ||
// v2 changes | ||
if ("customElement" in options) { | ||
logger.warn( | ||
`${colors.magenta( | ||
"customElement", | ||
)} is deprecated, please use ${colors.magenta("isCustomElement")}.`, | ||
); | ||
const { deprecatedLogger } = createConverter("blog2"); | ||
|
||
options["isCustomElement"] = options["customElement"]; | ||
} | ||
deprecatedLogger({ | ||
options, | ||
old: "customElements", | ||
new: "isCustomElement", | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.