fix: Deprecation warning logged at server launch for nested Parse Server option even if option is explicitly set (#9934)

This commit is contained in:
Manuel
2025-11-17 19:43:32 +01:00
committed by GitHub
parent 5e15403bc1
commit c22cb0ae58
4 changed files with 103 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import logger from '../logger';
import Deprecations from './Deprecations';
import Utils from '../Utils';
/**
* The deprecator class.
@@ -21,7 +22,7 @@ class Deprecator {
const changeNewDefault = deprecation.changeNewDefault;
// If default will change, only throw a warning if option is not set
if (changeNewDefault != null && options[optionKey] == null) {
if (changeNewDefault != null && Utils.getNestedProperty(options, optionKey) == null) {
Deprecator._logOption({ optionKey, changeNewDefault, solution });
}
}