Skip to content

Commit dc3a8bc

Browse files
authored
update codemirror packages (#2956)
closes #2953 ### Fixes # <!-- Mention the issues this PR addresses --> ### Checks - [ ] Ran `yarn test-build` - [ ] Updated relevant documentations - [ ] Updated matching config options in altair-static ### Changes proposed in this pull request: <!-- Describe the changes being introduced in this PR --> ## Summary by Sourcery Update editor dependencies and polish error messaging. Bug Fixes: - Correct a typo in the global error notification message shown to users. Enhancements: - Upgrade CodeMirror and Lezer-related dependencies to newer 6.x/1.x versions in the app package. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated editor and parsing libraries to newer versions for improved stability and compatibility. * **Bug Fixes** * Corrected spelling in an error message ("occured" → "occurred") for clearer user-facing text. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent d71d9c3 commit dc3a8bc

File tree

3 files changed

+139
-127
lines changed

3 files changed

+139
-127
lines changed

packages/altair-app/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919
"@angular/platform-server": "20.3.3",
2020
"@angular/router": "20.3.3",
2121
"@apollo/client": "3.5.6",
22-
"@codemirror/autocomplete": "^6.18.4",
23-
"@codemirror/commands": "^6.7.1",
24-
"@codemirror/lang-javascript": "^6.2.2",
25-
"@codemirror/lang-json": "^6.0.1",
26-
"@codemirror/language": "^6.10.8",
27-
"@codemirror/lint": "^6.8.4",
28-
"@codemirror/search": "^6.5.8",
29-
"@codemirror/state": "^6.5.0",
30-
"@codemirror/view": "^6.36.1",
22+
"@codemirror/autocomplete": "^6.20.0",
23+
"@codemirror/commands": "^6.10.0",
24+
"@codemirror/lang-javascript": "^6.2.4",
25+
"@codemirror/lang-json": "^6.0.2",
26+
"@codemirror/language": "^6.11.3",
27+
"@codemirror/lint": "^6.9.2",
28+
"@codemirror/search": "^6.5.11",
29+
"@codemirror/state": "^6.5.2",
30+
"@codemirror/view": "^6.38.8",
3131
"@emotion/css": "^11.11.2",
3232
"@fontsource/jetbrains-mono": "4.2.2",
33-
"@lezer/common": "1.2.1",
34-
"@lezer/highlight": "1.2.1",
35-
"@lezer/lr": "1.2.0",
33+
"@lezer/common": "1.4.0",
34+
"@lezer/highlight": "1.2.3",
35+
"@lezer/lr": "1.4.4",
3636
"@ngneat/hot-toast": "2.0.1",
3737
"@ngneat/overview": "1.0.0",
3838
"@ngneat/until-destroy": "8.0.1",

packages/altair-app/src/app/modules/altair/error-handler.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { ErrorHandler, Injector, ApplicationRef, Injectable, inject } from '@angular/core';
1+
import {
2+
ErrorHandler,
3+
Injector,
4+
ApplicationRef,
5+
Injectable,
6+
inject,
7+
} from '@angular/core';
28
import { HttpErrorResponse } from '@angular/common/http';
39
import { debug } from './utils/logger';
410
import { NotifyService } from './services';
@@ -20,7 +26,7 @@ export class GlobalErrorHandler implements ErrorHandler {
2026

2127
const issueUrl = getIssueUrl(error);
2228
debug.error('Application error:', error);
23-
notifyService.error(`An error occured: ${this.getErrorMessage(error)}`);
29+
notifyService.error(`An error occurred: ${this.getErrorMessage(error)}`);
2430
notifyService.warning(
2531
`If this happens multiple times, please click here to report this issue.`,
2632
'Altair',

0 commit comments

Comments
 (0)