-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(front_matter): cleanup deprecation-related code (#3932)
- Loading branch information
Showing
12 changed files
with
62 additions
and
62 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
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. | ||
|
||
import { createExtractor, Parser } from "./create_extractor.ts"; | ||
import { Format } from "./_formats.ts"; | ||
import { test as _test } from "./test.ts"; | ||
import { parse } from "../toml/parse.ts"; | ||
|
||
export { Format } from "./_formats.ts"; | ||
|
||
/** @deprecated (will be removed after 0.210.0) Import from {@link https://deno.land/std/front_matter/toml.ts} and use `test(str, ["toml"])` instead. */ | ||
export function test(str: string): boolean { | ||
return _test(str, [Format.TOML]); | ||
return _test(str, ["toml"]); | ||
} | ||
|
||
export const extract = createExtractor({ [Format.TOML]: parse as Parser }); | ||
export const extract = createExtractor({ ["toml"]: parse as Parser }); | ||
/** @deprecated (will be removed after 0.210.0) Import {@linkcode extract} as a named import instead. */ | ||
export default extract; |
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,17 +1,16 @@ | ||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. | ||
|
||
import { createExtractor, Parser } from "./create_extractor.ts"; | ||
import { Format } from "./_formats.ts"; | ||
import { test as _test } from "./test.ts"; | ||
import { parse } from "../yaml/parse.ts"; | ||
|
||
export { Format } from "./_formats.ts"; | ||
|
||
/** @deprecated (will be removed after 0.210.0) Import {@link https://deno.land/std/front_matter/yaml.ts} and use `test(str, ["yaml"])` instead. */ | ||
export function test(str: string): boolean { | ||
return _test(str, [Format.YAML]); | ||
return _test(str, ["yaml"]); | ||
} | ||
|
||
export const extract = createExtractor({ [Format.YAML]: parse as Parser }); | ||
export const extract = createExtractor({ ["yaml"]: parse as Parser }); | ||
/** @deprecated (will be removed after 0.210.0) Import {@linkcode extract} as a named import instead. */ | ||
export default extract; |
Oops, something went wrong.