mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Updated redirects todo to be a deprecation notice
- When we have todos related to deprecations, we should use @deprecated instead - @deprecated notices should say when a feature was deprecated, not when it was removed
This commit is contained in:
parent
352b4ad537
commit
6741f139d5
1 changed files with 1 additions and 3 deletions
|
@ -12,9 +12,7 @@ module.exports = {
|
||||||
value() {
|
value() {
|
||||||
return redirects.api.getRedirectsFilePath()
|
return redirects.api.getRedirectsFilePath()
|
||||||
.then((filePath) => {
|
.then((filePath) => {
|
||||||
// TODO: Default file type is .json for backward compatibility.
|
// @deprecated: .json was deprecated in v4.0 but is still the default for backwards compat
|
||||||
// When .yaml becomes default or .json is removed at v4,
|
|
||||||
// This part should be changed.
|
|
||||||
return filePath === null || path.extname(filePath) === '.json'
|
return filePath === null || path.extname(filePath) === '.json'
|
||||||
? 'redirects.json'
|
? 'redirects.json'
|
||||||
: 'redirects.yaml';
|
: 'redirects.yaml';
|
||||||
|
|
Loading…
Add table
Reference in a new issue