Deprecations: Client-side removal of v17 deprecated code (#20294)
* Webhooks: Removal of client-side deprecations for v17 * User: Removal of client-side deprecations for v17 * UFM: Removal of client-side deprecations for v17 * Tiptap: Removal of client-side deprecations for v17 * Templating: Removal of client-side deprecations for v17 * RTE: Removal of client-side deprecations for v17 * Relations: Removal of client-side deprecations for v17 * Search: Removal of client-side deprecations for v17 * Property Editors: Removal of client-side deprecations for v17 * URL Picker: Removal of client-side deprecations for v17 * Members: Removal of client-side deprecations for v17 * Media: Removal of client-side deprecations for v17 * Extension Insights: Removal of client-side deprecations for v17 * Documents: Removal of client-side deprecations for v17 * Media: Removal of client-side deprecations for v17 (part 2) * Data Types: Removal of client-side deprecations for v17 * Core: Removal of client-side deprecations for v17 * Content: Removal of client-side deprecations for v17 * Clipboard: Removal of client-side deprecations for v17 * Blocks: Removal of client-side deprecations for v17 * Mocks: Removal of client-side deprecations for v17 * Libs: Removal of client-side deprecations for v17 * Apps: Removal of client-side deprecations for v17 * DevOps: Removal of client-side deprecations for v17 * Document Publishing Workspace: Removal of client-side deprecations for v17 Refactored to use `UmbDocumentPublishingWorkspaceContext` * Reverted/modified some of my TODO comments * Updated TODO comment * Code cleanup sweep of TODO comments and tweaks * Updated OpenApi.json, re-gen TS client Tried to fix up mock data. * Refactored the document variant name/fields * Implemented co-pilot suggestions --------- Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,7 @@ module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description:
|
||||
'Ensures that any API resources from the `@umbraco-cms/backoffice/external/backend-api` module are not used directly. Instead you should use the `tryExecuteAndNotify` function from the `@umbraco-cms/backoffice/resources` module.',
|
||||
'Ensures that any API resources from the `@umbraco-cms/backoffice/external/backend-api` module are not used directly. Instead you should use the `tryExecute` function from the `@umbraco-cms/backoffice/resources` module.',
|
||||
category: 'Best Practices',
|
||||
recommended: true,
|
||||
},
|
||||
|
||||
@@ -52,7 +52,6 @@ const collectDictionaryIcons = async () => {
|
||||
|
||||
const icon = {
|
||||
name: iconDef.name,
|
||||
legacy: iconDef.legacy, // TODO: Deprecated, remove in v.17.
|
||||
hidden: iconDef.legacy ?? iconDef.internal,
|
||||
fileName: iconFileName,
|
||||
svg,
|
||||
@@ -147,10 +146,8 @@ const collectDiskIcons = async (icons) => {
|
||||
|
||||
// Only append not already defined icons:
|
||||
if (!icons.find((x) => x.name === iconName)) {
|
||||
// remove legacy for v.17 (Deprecated)
|
||||
const icon = {
|
||||
name: iconName,
|
||||
legacy: true,
|
||||
hidden: true,
|
||||
fileName: iconFileName,
|
||||
svg,
|
||||
@@ -184,11 +181,8 @@ const generateJS = (icons) => {
|
||||
const JSPath = `${moduleDirectory}/icons.ts`;
|
||||
|
||||
const iconDescriptors = icons.map((icon) => {
|
||||
// remove legacy for v.17 (Deprecated)
|
||||
// Notice how legacy also makes an icon hidden. Legacy will be removed in v.17, but still used in the dictionary for legacy icons. But outward they are both hidden. [NL]
|
||||
return `{
|
||||
name: "${icon.name}",
|
||||
${icon.legacy ? 'legacy: true,' : ''}
|
||||
${icon.hidden || icon.legacy ? 'hidden: true,' : ''}
|
||||
path: () => import("./icons/${icon.fileName}.js"),
|
||||
}`
|
||||
|
||||
Reference in New Issue
Block a user