feat: renames revisions to versions
This commit is contained in:
@@ -11,7 +11,7 @@ type Arguments = {
|
||||
fullOriginalDoc: Record<string, unknown>
|
||||
fullData: Record<string, unknown>
|
||||
flattenLocales: boolean
|
||||
isRevision: boolean
|
||||
isVersion: boolean
|
||||
}
|
||||
|
||||
type ExecuteHookArguments = {
|
||||
|
||||
@@ -23,7 +23,7 @@ type Arguments = {
|
||||
showHiddenFields?: boolean
|
||||
depth?: number
|
||||
currentDepth?: number
|
||||
isRevision?: boolean
|
||||
isVersion?: boolean
|
||||
}
|
||||
|
||||
export default async function performFieldOperations(this: Payload, entityConfig: SanitizedCollectionConfig | SanitizedGlobalConfig, args: Arguments): Promise<any> {
|
||||
@@ -43,7 +43,7 @@ export default async function performFieldOperations(this: Payload, entityConfig
|
||||
flattenLocales,
|
||||
unflattenLocales = false,
|
||||
showHiddenFields = false,
|
||||
isRevision = false,
|
||||
isVersion = false,
|
||||
} = args;
|
||||
|
||||
const fullData = deepCopyObject(data);
|
||||
@@ -103,7 +103,7 @@ export default async function performFieldOperations(this: Payload, entityConfig
|
||||
unflattenLocaleActions,
|
||||
transformActions,
|
||||
docWithLocales,
|
||||
isRevision,
|
||||
isVersion,
|
||||
});
|
||||
|
||||
if (hook === 'afterRead') {
|
||||
|
||||
@@ -36,7 +36,7 @@ type Arguments = {
|
||||
transformActions: (() => void)[]
|
||||
docWithLocales?: Record<string, any>
|
||||
skipValidation?: boolean
|
||||
isRevision: boolean
|
||||
isVersion: boolean
|
||||
}
|
||||
|
||||
const traverseFields = (args: Arguments): void => {
|
||||
@@ -69,7 +69,7 @@ const traverseFields = (args: Arguments): void => {
|
||||
transformActions,
|
||||
docWithLocales = {},
|
||||
skipValidation,
|
||||
isRevision,
|
||||
isVersion,
|
||||
} = args;
|
||||
|
||||
fields.forEach((field) => {
|
||||
@@ -226,7 +226,7 @@ const traverseFields = (args: Arguments): void => {
|
||||
fullOriginalDoc,
|
||||
fullData,
|
||||
flattenLocales,
|
||||
isRevision,
|
||||
isVersion,
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user