mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 23:40:04 +00:00

* feat: upgrade tool refactor for updated specs (v5) * chore: format code (prettier) * chore: remove debug comments * feat: upgrade the strapi dependencies in project's package.json * feat: install dependencies during the upgrade process * chore: fix lint issue * chore: rephrase requirement sentence's sentiment * feat: add a --yes option for the upgrade CLI * enh: make properties readonly to avoid mutations * chore: adding better logs to the upgrade CLI * chore: remove unused import * feat: add minor and patch commands * fix: use major and minor instead of premajor and preminor * fix: re-add type casting * fix: make major requirements required * chore: revert sentiment update on GIT_CLEAN requirement * fix: make promisify working by mocking the entire file-system * fix: yarn.lock update * feat: Select and run codemods only (#19083) * chore: add unit tests for upgrader tasks * fix: rename tests * chore: Update packages/utils/upgrade/src/tasks/__tests__/upgrade.test.ts * chore: Add unit tests for upgrade tool (#19056) * chore: move example codemods (#19156) * chore: fix yarn.lock * fix: sync glob versions * chore: add comment * chore: update docs --------- Co-authored-by: Convly <jean-sebastien.herbaux@epitech.eu> Co-authored-by: Bassel Kanso <basselkanso82@gmail.com> Co-authored-by: Christian <christian.capeans.perez@strapi.io> Co-authored-by: Christian Capeans <christiancp100@gmail.com>
103 lines
2.5 KiB
TypeScript
103 lines
2.5 KiB
TypeScript
/**
|
|
* Export shared utilities
|
|
*/
|
|
import { parseMultipartData } from './parse-multipart';
|
|
import parseType from './parse-type';
|
|
import * as policy from './policy';
|
|
import { templateConfiguration } from './template-configuration';
|
|
import { handleYupError, validateYupSchema, validateYupSchemaSync } from './validators';
|
|
import * as yup from './yup';
|
|
|
|
import * as errors from './errors';
|
|
import {
|
|
nameToSlug,
|
|
nameToCollectionName,
|
|
getCommonBeginning,
|
|
escapeQuery,
|
|
stringIncludes,
|
|
stringEquals,
|
|
isKebabCase,
|
|
isCamelCase,
|
|
toRegressedEnumValue,
|
|
startsWithANumber,
|
|
joinBy,
|
|
toKebabCase,
|
|
} from './string-formatting';
|
|
import { removeUndefined, keysDeep } from './object-formatting';
|
|
import { getConfigUrls, getAbsoluteAdminUrl, getAbsoluteServerUrl } from './config';
|
|
import { generateTimestampCode } from './code-generator';
|
|
import * as contentTypes from './content-types';
|
|
import env from './env-helper';
|
|
import * as relations from './relations';
|
|
import setCreatorFields from './set-creator-fields';
|
|
import * as hooks from './hooks';
|
|
import providerFactory from './provider-factory';
|
|
import * as pagination from './pagination';
|
|
import sanitize from './sanitize';
|
|
import validate from './validate';
|
|
import traverseEntity from './traverse-entity';
|
|
import { pipeAsync, mapAsync, reduceAsync, forEachAsync } from './async';
|
|
import convertQueryParams from './convert-query-params';
|
|
import importDefault from './import-default';
|
|
import * as template from './template';
|
|
import * as file from './file';
|
|
import * as traverse from './traverse';
|
|
import webhook from './webhook';
|
|
import { isOperator, isOperatorOfType } from './operators';
|
|
import * as packageManager from './package-manager';
|
|
import machineID from './machine-id';
|
|
|
|
export {
|
|
machineID,
|
|
parseMultipartData,
|
|
parseType,
|
|
policy,
|
|
templateConfiguration,
|
|
yup,
|
|
handleYupError,
|
|
validateYupSchema,
|
|
validateYupSchemaSync,
|
|
errors,
|
|
nameToSlug,
|
|
nameToCollectionName,
|
|
getCommonBeginning,
|
|
escapeQuery,
|
|
stringIncludes,
|
|
stringEquals,
|
|
isKebabCase,
|
|
isCamelCase,
|
|
toRegressedEnumValue,
|
|
startsWithANumber,
|
|
joinBy,
|
|
toKebabCase,
|
|
removeUndefined,
|
|
keysDeep,
|
|
getConfigUrls,
|
|
getAbsoluteAdminUrl,
|
|
getAbsoluteServerUrl,
|
|
generateTimestampCode,
|
|
contentTypes,
|
|
env,
|
|
relations,
|
|
setCreatorFields,
|
|
hooks,
|
|
providerFactory,
|
|
pagination,
|
|
sanitize,
|
|
validate,
|
|
traverseEntity,
|
|
pipeAsync,
|
|
mapAsync,
|
|
reduceAsync,
|
|
forEachAsync,
|
|
convertQueryParams,
|
|
importDefault,
|
|
template,
|
|
file,
|
|
traverse,
|
|
webhook,
|
|
isOperator,
|
|
isOperatorOfType,
|
|
packageManager,
|
|
};
|