diff --git a/CHANGELOG.md b/CHANGELOG.md index 187d5753..b351b9b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.14.1] - 2024-03-01 + +### Fixed + +- `Log: Retrieve Apex Log And Show Analysis` not working ([#490][#490]) + ## [1.14.0] - 2024-02-12 ### Added @@ -326,7 +332,11 @@ Skipped due to adopting odd numbering for pre releases and even number for relea - Add explorer menu item - Provide more information when selecting log to download - + + +[#490]: https://github.com/certinia/debug-log-analyzer/issues/490 + + [#475]: https://github.com/certinia/debug-log-analyzer/issues/475 [#299]: https://github.com/certinia/debug-log-analyzer/issues/299 diff --git a/lana/package.json b/lana/package.json index 00163d99..361a1c2b 100644 --- a/lana/package.json +++ b/lana/package.json @@ -1,7 +1,7 @@ { "name": "lana", "displayName": "Apex Log Analyzer", - "version": "1.14.0", + "version": "1.14.1", "description": "Analyzer for Salesforce debug logs - Visualize code execution via a Flame graph and identify performance and SOQL/DML problems via Method and Database analysis", "keywords": [ "apex", diff --git a/lana/src/salesforce/logs/GetLogFile.ts b/lana/src/salesforce/logs/GetLogFile.ts index d9ae0e1c..06706752 100644 --- a/lana/src/salesforce/logs/GetLogFile.ts +++ b/lana/src/salesforce/logs/GetLogFile.ts @@ -2,16 +2,15 @@ * Copyright (c) 2020 Certinia Inc. All rights reserved. */ +import { AuthHelper } from '@apexdevtools/sfdx-auth-helper'; +import { LogService } from '@salesforce/apex-node'; + export class GetLogFile { static async apply(wsPath: string, logDir: string, logId: string): Promise { - // eslint-disable-next-line @typescript-eslint/naming-convention - const { AuthHelper } = await import('@apexdevtools/sfdx-auth-helper'); const ah = await AuthHelper.instance(wsPath); const connection = await ah.connect(await ah.getDefaultUsername()); if (connection) { - // eslint-disable-next-line @typescript-eslint/naming-convention - const { LogService } = await import('@salesforce/apex-node'); await new LogService(connection).getLogs({ logId: logId, outputDir: logDir }); } return new Promise((resolve) => resolve()); diff --git a/lana/src/salesforce/logs/GetLogFiles.ts b/lana/src/salesforce/logs/GetLogFiles.ts index 96d8cdd6..27640d79 100644 --- a/lana/src/salesforce/logs/GetLogFiles.ts +++ b/lana/src/salesforce/logs/GetLogFiles.ts @@ -1,18 +1,15 @@ /* * Copyright (c) 2020 Certinia Inc. All rights reserved. */ -import { type LogRecord } from '@salesforce/apex-node'; +import { AuthHelper } from '@apexdevtools/sfdx-auth-helper'; +import { LogService, type LogRecord } from '@salesforce/apex-node'; export class GetLogFiles { static async apply(wsPath: string): Promise { - // eslint-disable-next-line @typescript-eslint/naming-convention - const { AuthHelper } = await import('@apexdevtools/sfdx-auth-helper'); const ah = await AuthHelper.instance(wsPath); const connection = await ah.connect(await ah.getDefaultUsername()); if (connection) { - // eslint-disable-next-line @typescript-eslint/naming-convention - const { LogService } = await import('@salesforce/apex-node'); return new LogService(connection).getLogRecords(); } return []; diff --git a/rollup.config.mjs b/rollup.config.mjs index 601c160a..bbad3466 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -20,8 +20,7 @@ export default [ input: './lana/src/Main.ts', output: { format: 'cjs', - dir: './lana/out', - chunkFileNames: '[name].js', + file: './lana/out/Main.js', sourcemap: false, }, external: ['vscode'],