From b43ed0880dd4dc562aa8db18b9a8a87f7db4e015 Mon Sep 17 00:00:00 2001 From: Tomi Turtiainen <10324676+tomi@users.noreply.github.com> Date: Fri, 26 Jun 2026 11:45:02 +0300 Subject: [PATCH] refactor: Rename @n8n/utils files to kebab-case and enforce with ESLint (PR 1a) (#33028) --- packages/@n8n/utils/eslint.config.mjs | 1 + ...eue.test.ts => create-event-queue.test.ts} | 2 +- .../{event-queue.ts => create-event-queue.ts} | 0 ...h.test.ts => is-windows-file-path.test.ts} | 2 +- .../{path.ts => is-windows-file-path.ts} | 0 ...tize.test.ts => sanitize-filename.test.ts} | 2 +- .../{sanitize.ts => sanitize-filename.ts} | 0 .../{workflowId.ts => generate-nano-id.ts} | 0 .../{jwt.test.ts => get-jwt-expiry.test.ts} | 2 +- .../utils/src/{jwt.ts => get-jwt-expiry.ts} | 0 packages/@n8n/utils/src/index.ts | 20 +++++++++---------- .../utils/src/{validation.ts => is-record.ts} | 0 ...tDecimal.test.ts => smart-decimal.test.ts} | 2 +- .../{smartDecimal.ts => smart-decimal.ts} | 0 ...test.ts => re-rank-search-results.test.ts} | 4 ++-- ...chResults.ts => re-rank-search-results.ts} | 0 ...eSearch.test.ts => sublime-search.test.ts} | 4 ++-- .../{sublimeSearch.ts => sublime-search.ts} | 0 ...perty.test.ts => sort-by-property.test.ts} | 2 +- ...{sortByProperty.ts => sort-by-property.ts} | 0 .../src/directives/n8n-smart-decimal.ts | 2 +- .../composables/useGlobalEntityCreation.ts | 2 +- .../usePushConnection/usePushConnection.ts | 2 +- .../components/AppSelectionGrid.vue | 2 +- .../execution/insights/chartjs.utils.ts | 2 +- .../insights/components/InsightsSummary.vue | 2 +- .../charts/InsightsChartAverageRuntime.vue | 2 +- .../components/charts/InsightsChartFailed.vue | 2 +- .../charts/InsightsChartFailureRate.vue | 2 +- .../tables/InsightsTableWorkflows.vue | 2 +- .../components/WorkerCard.vue | 2 +- .../shared/nodeCreator/nodeCreator.utils.ts | 4 ++-- 32 files changed, 34 insertions(+), 33 deletions(-) rename packages/@n8n/utils/src/{event-queue.test.ts => create-event-queue.test.ts} (98%) rename packages/@n8n/utils/src/{event-queue.ts => create-event-queue.ts} (100%) rename packages/@n8n/utils/src/files/{path.test.ts => is-windows-file-path.test.ts} (97%) rename packages/@n8n/utils/src/files/{path.ts => is-windows-file-path.ts} (100%) rename packages/@n8n/utils/src/files/{sanitize.test.ts => sanitize-filename.test.ts} (98%) rename packages/@n8n/utils/src/files/{sanitize.ts => sanitize-filename.ts} (100%) rename packages/@n8n/utils/src/{workflowId.ts => generate-nano-id.ts} (100%) rename packages/@n8n/utils/src/{jwt.test.ts => get-jwt-expiry.test.ts} (95%) rename packages/@n8n/utils/src/{jwt.ts => get-jwt-expiry.ts} (100%) rename packages/@n8n/utils/src/{validation.ts => is-record.ts} (100%) rename packages/@n8n/utils/src/number/{smartDecimal.test.ts => smart-decimal.test.ts} (95%) rename packages/@n8n/utils/src/number/{smartDecimal.ts => smart-decimal.ts} (100%) rename packages/@n8n/utils/src/search/{reRankSearchResults.test.ts => re-rank-search-results.test.ts} (97%) rename packages/@n8n/utils/src/search/{reRankSearchResults.ts => re-rank-search-results.ts} (100%) rename packages/@n8n/utils/src/search/{sublimeSearch.test.ts => sublime-search.test.ts} (95%) rename packages/@n8n/utils/src/search/{sublimeSearch.ts => sublime-search.ts} (100%) rename packages/@n8n/utils/src/sort/{sortByProperty.test.ts => sort-by-property.test.ts} (96%) rename packages/@n8n/utils/src/sort/{sortByProperty.ts => sort-by-property.ts} (100%) diff --git a/packages/@n8n/utils/eslint.config.mjs b/packages/@n8n/utils/eslint.config.mjs index efa83e043bb..7dad85a9766 100644 --- a/packages/@n8n/utils/eslint.config.mjs +++ b/packages/@n8n/utils/eslint.config.mjs @@ -6,5 +6,6 @@ export default defineConfig(nodeConfig, { // TODO: Remove this 'no-prototype-builtins': 'warn', '@typescript-eslint/require-await': 'warn', + 'unicorn/filename-case': ['error', { case: 'kebabCase' }], }, }); diff --git a/packages/@n8n/utils/src/event-queue.test.ts b/packages/@n8n/utils/src/create-event-queue.test.ts similarity index 98% rename from packages/@n8n/utils/src/event-queue.test.ts rename to packages/@n8n/utils/src/create-event-queue.test.ts index a7c351a74f7..45b5ffba30e 100644 --- a/packages/@n8n/utils/src/event-queue.test.ts +++ b/packages/@n8n/utils/src/create-event-queue.test.ts @@ -1,4 +1,4 @@ -import { createEventQueue } from './event-queue'; +import { createEventQueue } from './create-event-queue'; describe('createEventQueue', () => { beforeEach(() => { diff --git a/packages/@n8n/utils/src/event-queue.ts b/packages/@n8n/utils/src/create-event-queue.ts similarity index 100% rename from packages/@n8n/utils/src/event-queue.ts rename to packages/@n8n/utils/src/create-event-queue.ts diff --git a/packages/@n8n/utils/src/files/path.test.ts b/packages/@n8n/utils/src/files/is-windows-file-path.test.ts similarity index 97% rename from packages/@n8n/utils/src/files/path.test.ts rename to packages/@n8n/utils/src/files/is-windows-file-path.test.ts index ecfc6a7fb98..5210a5eb877 100644 --- a/packages/@n8n/utils/src/files/path.test.ts +++ b/packages/@n8n/utils/src/files/is-windows-file-path.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect } from 'vitest'; -import { isWindowsFilePath } from './path'; +import { isWindowsFilePath } from './is-windows-file-path'; describe('isWindowsFilePath', () => { describe('valid Windows paths', () => { diff --git a/packages/@n8n/utils/src/files/path.ts b/packages/@n8n/utils/src/files/is-windows-file-path.ts similarity index 100% rename from packages/@n8n/utils/src/files/path.ts rename to packages/@n8n/utils/src/files/is-windows-file-path.ts diff --git a/packages/@n8n/utils/src/files/sanitize.test.ts b/packages/@n8n/utils/src/files/sanitize-filename.test.ts similarity index 98% rename from packages/@n8n/utils/src/files/sanitize.test.ts rename to packages/@n8n/utils/src/files/sanitize-filename.test.ts index dd7ac3f26cc..c7e7e33b3c3 100644 --- a/packages/@n8n/utils/src/files/sanitize.test.ts +++ b/packages/@n8n/utils/src/files/sanitize-filename.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect } from 'vitest'; -import { sanitizeFilename } from './sanitize'; +import { sanitizeFilename } from './sanitize-filename'; describe('sanitizeFilename', () => { it('should return normal filenames unchanged', () => { diff --git a/packages/@n8n/utils/src/files/sanitize.ts b/packages/@n8n/utils/src/files/sanitize-filename.ts similarity index 100% rename from packages/@n8n/utils/src/files/sanitize.ts rename to packages/@n8n/utils/src/files/sanitize-filename.ts diff --git a/packages/@n8n/utils/src/workflowId.ts b/packages/@n8n/utils/src/generate-nano-id.ts similarity index 100% rename from packages/@n8n/utils/src/workflowId.ts rename to packages/@n8n/utils/src/generate-nano-id.ts diff --git a/packages/@n8n/utils/src/jwt.test.ts b/packages/@n8n/utils/src/get-jwt-expiry.test.ts similarity index 95% rename from packages/@n8n/utils/src/jwt.test.ts rename to packages/@n8n/utils/src/get-jwt-expiry.test.ts index d61adb597f2..2d851553d38 100644 --- a/packages/@n8n/utils/src/jwt.test.ts +++ b/packages/@n8n/utils/src/get-jwt-expiry.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { getJwtExpiry } from './jwt'; +import { getJwtExpiry } from './get-jwt-expiry'; function base64url(input: string): string { return Buffer.from(input, 'utf8').toString('base64url'); diff --git a/packages/@n8n/utils/src/jwt.ts b/packages/@n8n/utils/src/get-jwt-expiry.ts similarity index 100% rename from packages/@n8n/utils/src/jwt.ts rename to packages/@n8n/utils/src/get-jwt-expiry.ts diff --git a/packages/@n8n/utils/src/index.ts b/packages/@n8n/utils/src/index.ts index d241eb195a4..72ccc6d45af 100644 --- a/packages/@n8n/utils/src/index.ts +++ b/packages/@n8n/utils/src/index.ts @@ -1,17 +1,17 @@ export * from './assert'; export * from './event-bus'; -export * from './event-queue'; +export * from './create-event-queue'; export * from './retry'; -export * from './workflowId'; -export * from './number/smartDecimal'; -export * from './search/reRankSearchResults'; -export * from './search/sublimeSearch'; -export * from './sort/sortByProperty'; +export * from './generate-nano-id'; +export * from './number/smart-decimal'; +export * from './search/re-rank-search-results'; +export * from './search/sublime-search'; +export * from './sort/sort-by-property'; export * from './string/truncate'; -export * from './files/sanitize'; -export * from './files/path'; +export * from './files/sanitize-filename'; +export * from './files/is-windows-file-path'; export * from './placeholder'; -export * from './jwt'; +export * from './get-jwt-expiry'; export * from './scrub-secrets'; export type * from './types'; -export * from './validation'; +export * from './is-record'; diff --git a/packages/@n8n/utils/src/validation.ts b/packages/@n8n/utils/src/is-record.ts similarity index 100% rename from packages/@n8n/utils/src/validation.ts rename to packages/@n8n/utils/src/is-record.ts diff --git a/packages/@n8n/utils/src/number/smartDecimal.test.ts b/packages/@n8n/utils/src/number/smart-decimal.test.ts similarity index 95% rename from packages/@n8n/utils/src/number/smartDecimal.test.ts rename to packages/@n8n/utils/src/number/smart-decimal.test.ts index 5a6e1cde444..07360cd7572 100644 --- a/packages/@n8n/utils/src/number/smartDecimal.test.ts +++ b/packages/@n8n/utils/src/number/smart-decimal.test.ts @@ -1,4 +1,4 @@ -import { smartDecimal } from './smartDecimal'; +import { smartDecimal } from './smart-decimal'; describe('smartDecimal', () => { it('should return the same value if it is an integer', () => { diff --git a/packages/@n8n/utils/src/number/smartDecimal.ts b/packages/@n8n/utils/src/number/smart-decimal.ts similarity index 100% rename from packages/@n8n/utils/src/number/smartDecimal.ts rename to packages/@n8n/utils/src/number/smart-decimal.ts diff --git a/packages/@n8n/utils/src/search/reRankSearchResults.test.ts b/packages/@n8n/utils/src/search/re-rank-search-results.test.ts similarity index 97% rename from packages/@n8n/utils/src/search/reRankSearchResults.test.ts rename to packages/@n8n/utils/src/search/re-rank-search-results.test.ts index b1b32a3e908..6adf7e90099 100644 --- a/packages/@n8n/utils/src/search/reRankSearchResults.test.ts +++ b/packages/@n8n/utils/src/search/re-rank-search-results.test.ts @@ -1,6 +1,6 @@ -import { reRankSearchResults } from './reRankSearchResults'; +import { reRankSearchResults } from './re-rank-search-results'; import topLevel from './snapshots/toplevel.snapshot.json'; -import { sublimeSearch } from './sublimeSearch'; +import { sublimeSearch } from './sublime-search'; describe('reRankSearchResults', () => { describe('should re-rank search results based on additional factors', () => { diff --git a/packages/@n8n/utils/src/search/reRankSearchResults.ts b/packages/@n8n/utils/src/search/re-rank-search-results.ts similarity index 100% rename from packages/@n8n/utils/src/search/reRankSearchResults.ts rename to packages/@n8n/utils/src/search/re-rank-search-results.ts diff --git a/packages/@n8n/utils/src/search/sublimeSearch.test.ts b/packages/@n8n/utils/src/search/sublime-search.test.ts similarity index 95% rename from packages/@n8n/utils/src/search/sublimeSearch.test.ts rename to packages/@n8n/utils/src/search/sublime-search.test.ts index 70b5db43e52..c64bc123191 100644 --- a/packages/@n8n/utils/src/search/sublimeSearch.test.ts +++ b/packages/@n8n/utils/src/search/sublime-search.test.ts @@ -1,6 +1,6 @@ -import { reRankSearchResults } from './reRankSearchResults'; +import { reRankSearchResults } from './re-rank-search-results'; import topLevel from './snapshots/toplevel.snapshot.json'; -import { sublimeSearch } from './sublimeSearch'; +import { sublimeSearch } from './sublime-search'; // Mirrors packages/frontend/editor-ui/data/node-popularity.json scaled by the factor // applied in useViewStacks.ts. Only the nodes asserted below are included. diff --git a/packages/@n8n/utils/src/search/sublimeSearch.ts b/packages/@n8n/utils/src/search/sublime-search.ts similarity index 100% rename from packages/@n8n/utils/src/search/sublimeSearch.ts rename to packages/@n8n/utils/src/search/sublime-search.ts diff --git a/packages/@n8n/utils/src/sort/sortByProperty.test.ts b/packages/@n8n/utils/src/sort/sort-by-property.test.ts similarity index 96% rename from packages/@n8n/utils/src/sort/sortByProperty.test.ts rename to packages/@n8n/utils/src/sort/sort-by-property.test.ts index 97c903b053e..51113011b4c 100644 --- a/packages/@n8n/utils/src/sort/sortByProperty.test.ts +++ b/packages/@n8n/utils/src/sort/sort-by-property.test.ts @@ -1,4 +1,4 @@ -import { sortByProperty } from './sortByProperty'; +import { sortByProperty } from './sort-by-property'; const arrayOfObjects = [ { name: 'Álvaro', age: 30 }, diff --git a/packages/@n8n/utils/src/sort/sortByProperty.ts b/packages/@n8n/utils/src/sort/sort-by-property.ts similarity index 100% rename from packages/@n8n/utils/src/sort/sortByProperty.ts rename to packages/@n8n/utils/src/sort/sort-by-property.ts diff --git a/packages/frontend/@n8n/design-system/src/directives/n8n-smart-decimal.ts b/packages/frontend/@n8n/design-system/src/directives/n8n-smart-decimal.ts index 93d33de77ad..a1fe3e12c90 100644 --- a/packages/frontend/@n8n/design-system/src/directives/n8n-smart-decimal.ts +++ b/packages/frontend/@n8n/design-system/src/directives/n8n-smart-decimal.ts @@ -1,4 +1,4 @@ -import { smartDecimal } from '@n8n/utils/number/smartDecimal'; +import { smartDecimal } from '@n8n/utils/number/smart-decimal'; import type { DirectiveBinding, FunctionDirective } from 'vue'; /** diff --git a/packages/frontend/editor-ui/src/app/composables/useGlobalEntityCreation.ts b/packages/frontend/editor-ui/src/app/composables/useGlobalEntityCreation.ts index 0e4fe896098..af72c75f483 100644 --- a/packages/frontend/editor-ui/src/app/composables/useGlobalEntityCreation.ts +++ b/packages/frontend/editor-ui/src/app/composables/useGlobalEntityCreation.ts @@ -4,7 +4,7 @@ import { AGENTS_MODULE_NAME, NEW_AGENT_VIEW } from '@/features/agents/constants' import { INSTANCE_AI_VIEW } from '@/features/ai/instanceAi/constants'; import { useRouter } from 'vue-router'; import { useI18n } from '@n8n/i18n'; -import { sortByProperty } from '@n8n/utils/sort/sortByProperty'; +import { sortByProperty } from '@n8n/utils/sort/sort-by-property'; import { useToast } from '@/app/composables/useToast'; import { useProjectsStore } from '@/features/collaboration/projects/projects.store'; import { useSettingsStore } from '@/app/stores/settings.store'; diff --git a/packages/frontend/editor-ui/src/app/composables/usePushConnection/usePushConnection.ts b/packages/frontend/editor-ui/src/app/composables/usePushConnection/usePushConnection.ts index 277979b24a6..c37cc9dcce1 100644 --- a/packages/frontend/editor-ui/src/app/composables/usePushConnection/usePushConnection.ts +++ b/packages/frontend/editor-ui/src/app/composables/usePushConnection/usePushConnection.ts @@ -27,7 +27,7 @@ import { import type { PushHandlerOptions } from '@/app/composables/usePushConnection/handlers/types'; import { injectWorkflowDocumentStore } from '@/app/stores/workflowDocument.store'; import { useEditorContext } from '@/app/composables/useEditorContext'; -import { createEventQueue } from '@n8n/utils/event-queue'; +import { createEventQueue } from '@n8n/utils/create-event-queue'; import type { useRouter } from 'vue-router'; export function usePushConnection({ router }: { router: ReturnType }) { diff --git a/packages/frontend/editor-ui/src/experiments/credentialsAppSelection/components/AppSelectionGrid.vue b/packages/frontend/editor-ui/src/experiments/credentialsAppSelection/components/AppSelectionGrid.vue index 02dd342be95..5e8ad05c335 100644 --- a/packages/frontend/editor-ui/src/experiments/credentialsAppSelection/components/AppSelectionGrid.vue +++ b/packages/frontend/editor-ui/src/experiments/credentialsAppSelection/components/AppSelectionGrid.vue @@ -2,7 +2,7 @@ import { computed, ref, watch } from 'vue'; import { N8nText } from '@n8n/design-system'; import { useI18n } from '@n8n/i18n'; -import { sublimeSearch } from '@n8n/utils/search/sublimeSearch'; +import { sublimeSearch } from '@n8n/utils/search/sublime-search'; import { useCredentialsStore } from '@/features/credentials/credentials.store'; import { useNodeTypesStore } from '@/app/stores/nodeTypes.store'; import { removePreviewToken } from '@/features/shared/nodeCreator/nodeCreator.utils'; diff --git a/packages/frontend/editor-ui/src/features/execution/insights/chartjs.utils.ts b/packages/frontend/editor-ui/src/features/execution/insights/chartjs.utils.ts index c32c26ac9e4..61838827c18 100644 --- a/packages/frontend/editor-ui/src/features/execution/insights/chartjs.utils.ts +++ b/packages/frontend/editor-ui/src/features/execution/insights/chartjs.utils.ts @@ -1,7 +1,7 @@ import merge from 'lodash/merge'; import { type ChartOptions, type ScriptableContext } from 'chart.js'; import { useCssVar } from '@vueuse/core'; -import { smartDecimal } from '@n8n/utils/number/smartDecimal'; +import { smartDecimal } from '@n8n/utils/number/smart-decimal'; /** * diff --git a/packages/frontend/editor-ui/src/features/execution/insights/components/InsightsSummary.vue b/packages/frontend/editor-ui/src/features/execution/insights/components/InsightsSummary.vue index ddce6cb6d88..1d72aeaf699 100644 --- a/packages/frontend/editor-ui/src/features/execution/insights/components/InsightsSummary.vue +++ b/packages/frontend/editor-ui/src/features/execution/insights/components/InsightsSummary.vue @@ -10,7 +10,7 @@ import type { DateValue } from '@internationalized/date'; import type { InsightsSummary } from '@n8n/api-types'; import { N8nIcon, N8nTooltip } from '@n8n/design-system'; import { useI18n } from '@n8n/i18n'; -import { smartDecimal } from '@n8n/utils/number/smartDecimal'; +import { smartDecimal } from '@n8n/utils/number/smart-decimal'; import { computed, useCssModule } from 'vue'; import { I18nT } from 'vue-i18n'; import { useRoute } from 'vue-router'; diff --git a/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartAverageRuntime.vue b/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartAverageRuntime.vue index 4e6434d0188..04ba2567cbe 100644 --- a/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartAverageRuntime.vue +++ b/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartAverageRuntime.vue @@ -9,7 +9,7 @@ import { INSIGHTS_UNIT_MAPPING, } from '@/features/execution/insights/insights.constants'; import { transformInsightsAverageRunTime } from '@/features/execution/insights/insights.utils'; -import { smartDecimal } from '@n8n/utils/number/smartDecimal'; +import { smartDecimal } from '@n8n/utils/number/smart-decimal'; import { type ChartData, Filler, type ScriptableContext } from 'chart.js'; import { computed } from 'vue'; import { Line } from 'vue-chartjs'; diff --git a/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartFailed.vue b/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartFailed.vue index fc01fbbb3a7..c1d83af8ca6 100644 --- a/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartFailed.vue +++ b/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartFailed.vue @@ -2,7 +2,7 @@ import { useI18n } from '@n8n/i18n'; import { generateBarChartOptions } from '@/features/execution/insights/chartjs.utils'; import { GRANULARITY_DATE_FORMAT_MASK } from '@/features/execution/insights/insights.constants'; -import { smartDecimal } from '@n8n/utils/number/smartDecimal'; +import { smartDecimal } from '@n8n/utils/number/smart-decimal'; import { useCssVar } from '@vueuse/core'; import type { ChartData } from 'chart.js'; import { computed } from 'vue'; diff --git a/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartFailureRate.vue b/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartFailureRate.vue index 00a4576d4ac..c35e3cb3dc4 100644 --- a/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartFailureRate.vue +++ b/packages/frontend/editor-ui/src/features/execution/insights/components/charts/InsightsChartFailureRate.vue @@ -6,7 +6,7 @@ import { INSIGHTS_UNIT_MAPPING, } from '@/features/execution/insights/insights.constants'; import { transformInsightsFailureRate } from '@/features/execution/insights/insights.utils'; -import { smartDecimal } from '@n8n/utils/number/smartDecimal'; +import { smartDecimal } from '@n8n/utils/number/smart-decimal'; import { useCssVar } from '@vueuse/core'; import type { ChartData } from 'chart.js'; import { computed } from 'vue'; diff --git a/packages/frontend/editor-ui/src/features/execution/insights/components/tables/InsightsTableWorkflows.vue b/packages/frontend/editor-ui/src/features/execution/insights/components/tables/InsightsTableWorkflows.vue index 0ebd7b576b1..c618ec8f3a8 100644 --- a/packages/frontend/editor-ui/src/features/execution/insights/components/tables/InsightsTableWorkflows.vue +++ b/packages/frontend/editor-ui/src/features/execution/insights/components/tables/InsightsTableWorkflows.vue @@ -8,7 +8,7 @@ import { } from '@/features/execution/insights/insights.utils'; import type { InsightsByWorkflow } from '@n8n/api-types'; import type { TableHeader } from '@n8n/design-system/components/N8nDataTableServer'; -import { smartDecimal } from '@n8n/utils/number/smartDecimal'; +import { smartDecimal } from '@n8n/utils/number/smart-decimal'; import { useTelemetry } from '@/app/composables/useTelemetry'; import { VIEWS } from '@/app/constants'; import { computed, defineAsyncComponent, ref, watch } from 'vue'; diff --git a/packages/frontend/editor-ui/src/features/settings/orchestration.ee/components/WorkerCard.vue b/packages/frontend/editor-ui/src/features/settings/orchestration.ee/components/WorkerCard.vue index cf4b4c88b76..2d7eaca5376 100644 --- a/packages/frontend/editor-ui/src/features/settings/orchestration.ee/components/WorkerCard.vue +++ b/packages/frontend/editor-ui/src/features/settings/orchestration.ee/components/WorkerCard.vue @@ -8,7 +8,7 @@ import WorkerJobAccordion from './WorkerJobAccordion.vue'; import WorkerNetAccordion from './WorkerNetAccordion.vue'; import WorkerChartsAccordion from './WorkerChartsAccordion.vue'; import WorkerMemoryMonitorAccordion from './WorkerMemoryMonitorAccordion.vue'; -import { sortByProperty } from '@n8n/utils/sort/sortByProperty'; +import { sortByProperty } from '@n8n/utils/sort/sort-by-property'; import { useI18n } from '@n8n/i18n'; import { N8nCard, N8nHeading, N8nText } from '@n8n/design-system'; diff --git a/packages/frontend/editor-ui/src/features/shared/nodeCreator/nodeCreator.utils.ts b/packages/frontend/editor-ui/src/features/shared/nodeCreator/nodeCreator.utils.ts index aff3b2b9b01..1a3e2b5a7a0 100644 --- a/packages/frontend/editor-ui/src/features/shared/nodeCreator/nodeCreator.utils.ts +++ b/packages/frontend/editor-ui/src/features/shared/nodeCreator/nodeCreator.utils.ts @@ -32,8 +32,8 @@ import { import { v4 as uuidv4 } from 'uuid'; import { i18n } from '@n8n/i18n'; -import { reRankSearchResults } from '@n8n/utils/search/reRankSearchResults'; -import { sublimeSearch } from '@n8n/utils/search/sublimeSearch'; +import { reRankSearchResults } from '@n8n/utils/search/re-rank-search-results'; +import { sublimeSearch } from '@n8n/utils/search/sublime-search'; import * as changeCase from 'change-case'; import sortBy from 'lodash/sortBy'; import type { NodeViewItemSection } from './views/viewsData';