Skip to content

Commit

Permalink
refactor(core): Remove unused betaFeatures and FrontendConfig (no-cha…
Browse files Browse the repository at this point in the history
…ngelog) (#13346)
  • Loading branch information
netroy authored Feb 18, 2025
1 parent 2238717 commit 9fccafe
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 18 deletions.
2 changes: 0 additions & 2 deletions packages/@n8n/api-types/src/frontend-settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { FrontendBetaFeatures } from '@n8n/config';
import type { ExpressionEvaluatorType, LogLevel, WorkflowSettings } from 'n8n-workflow';

export interface IVersionNotificationSettings {
Expand Down Expand Up @@ -176,7 +175,6 @@ export interface FrontendSettings {
security: {
blockFileAccessToN8nFiles: boolean;
};
betaFeatures: FrontendBetaFeatures[];
easyAIWorkflowOnboarded: boolean;
partialExecution: {
version: 1 | 2;
Expand Down
11 changes: 0 additions & 11 deletions packages/@n8n/config/src/configs/frontend.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/@n8n/config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export { Config, Env, Nested } from './decorators';
export { TaskRunnersConfig } from './configs/runners.config';
export { SecurityConfig } from './configs/security.config';
export { ExecutionsConfig } from './configs/executions.config';
export { FrontendBetaFeatures, FrontendConfig } from './configs/frontend.config';
export { S3Config } from './configs/external-storage.config';
export { LOG_SCOPES } from './configs/logging.config';
export type { LogScope } from './configs/logging.config';
Expand Down
4 changes: 1 addition & 3 deletions packages/cli/src/services/frontend.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FrontendSettings, ITelemetrySettings } from '@n8n/api-types';
import { GlobalConfig, FrontendConfig, SecurityConfig } from '@n8n/config';
import { GlobalConfig, SecurityConfig } from '@n8n/config';
import { Container, Service } from '@n8n/di';
import { createWriteStream } from 'fs';
import { mkdir } from 'fs/promises';
Expand Down Expand Up @@ -44,7 +44,6 @@ export class FrontendService {
private readonly instanceSettings: InstanceSettings,
private readonly urlService: UrlService,
private readonly securityConfig: SecurityConfig,
private readonly frontendConfig: FrontendConfig,
) {
loadNodesAndCredentials.addPostProcessor(async () => await this.generateTypes());
void this.generateTypes();
Expand Down Expand Up @@ -232,7 +231,6 @@ export class FrontendService {
security: {
blockFileAccessToN8nFiles: this.securityConfig.blockFileAccessToN8nFiles,
},
betaFeatures: this.frontendConfig.betaFeatures,
easyAIWorkflowOnboarded: false,
partialExecution: this.globalConfig.partialExecutions,
};
Expand Down
1 change: 0 additions & 1 deletion packages/editor-ui/src/__tests__/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ export const defaultSettings: FrontendSettings = {
enabled: false,
credits: 0,
},
betaFeatures: [],
easyAIWorkflowOnboarded: false,
partialExecution: {
version: 1,
Expand Down

0 comments on commit 9fccafe

Please sign in to comment.