@rxap/ngx-error 19.2.0 → 19.3.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/compodoc/changelog.html +41 -0
- package/compodoc/dependencies.html +5 -5
- package/compodoc/injectables/RxapErrorHandler.html +30 -6
- package/compodoc/interfaces/ErrorHandlerOptions.html +24 -0
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +419 -419
- package/docs/html/classes/AngularErrorComponent.html +2 -2
- package/docs/html/classes/AngularErrorService.html +2 -2
- package/docs/html/classes/AnyHttpErrorComponent.html +2 -2
- package/docs/html/classes/AnyHttpErrorService.html +2 -2
- package/docs/html/classes/CodeHttpErrorComponent.html +2 -2
- package/docs/html/classes/CodeHttpErrorService.html +2 -2
- package/docs/html/classes/ErrorCaptureDialogService.html +2 -2
- package/docs/html/classes/ErrorCaptureService.html +2 -2
- package/docs/html/classes/ErrorDialogComponent.html +3 -3
- package/docs/html/classes/MessageHttpErrorComponent.html +2 -2
- package/docs/html/classes/MessageHttpErrorService.html +2 -2
- package/docs/html/classes/OpenApiHttpResponseErrorComponent.html +2 -2
- package/docs/html/classes/OpenApiHttpResponseErrorService.html +2 -2
- package/docs/html/classes/RxapErrorHandler.html +3 -3
- package/docs/html/functions/DefaultErrorCodeExtractor.html +1 -1
- package/docs/html/functions/DefaultErrorFilter.html +1 -1
- package/docs/html/functions/ExtractContextFromError.html +1 -1
- package/docs/html/functions/ExtractError.html +1 -1
- package/docs/html/functions/ExtractExtraFromError.html +1 -1
- package/docs/html/functions/ExtractTagsFromError.html +1 -1
- package/docs/html/functions/HttpErrorInterceptor.html +1 -1
- package/docs/html/functions/PrintError.html +1 -1
- package/docs/html/functions/ProvideErrorHandler.html +2 -2
- package/docs/html/functions/SimplifyHttpErrorResponse.html +1 -1
- package/docs/html/functions/provideAutoErrorInterception.html +1 -1
- package/docs/html/functions/withErrorCaptureDialogDisabledIf.html +1 -1
- package/docs/html/functions/withErrorCaptureDialogService.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/AngularErrorDialogData.html +2 -2
- package/docs/html/interfaces/AnyHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/CodeHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/ErrorHandlerOptions.html +2 -2
- package/docs/html/interfaces/ErrorInterceptorOptions.html +2 -2
- package/docs/html/interfaces/IErrorCaptureDialogService.html +2 -2
- package/docs/html/interfaces/IErrorDialogComponent.html +2 -2
- package/docs/html/interfaces/MessageHttpErrorDialogData.html +8 -8
- package/docs/html/interfaces/OpenApiHttpResponseErrorDialogData.html +8 -8
- package/docs/html/interfaces/SimplifiedHttpErrorResponse.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_DATA.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_DISABLED.html +1 -1
- package/docs/html/variables/RXAP_ERROR_DIALOG_ERROR.html +1 -1
- package/docs/html/variables/RXAP_ERROR_HANDLER_OPTIONS.html +1 -1
- package/docs/html/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AngularErrorComponent.md +6 -6
- package/docs/markdown/classes/AngularErrorService.md +5 -5
- package/docs/markdown/classes/AnyHttpErrorComponent.md +4 -4
- package/docs/markdown/classes/AnyHttpErrorService.md +5 -5
- package/docs/markdown/classes/CodeHttpErrorComponent.md +5 -5
- package/docs/markdown/classes/CodeHttpErrorService.md +5 -5
- package/docs/markdown/classes/ErrorCaptureDialogService.md +6 -6
- package/docs/markdown/classes/ErrorCaptureService.md +5 -5
- package/docs/markdown/classes/ErrorDialogComponent.md +10 -10
- package/docs/markdown/classes/MessageHttpErrorComponent.md +5 -5
- package/docs/markdown/classes/MessageHttpErrorService.md +5 -5
- package/docs/markdown/classes/OpenApiHttpResponseErrorComponent.md +4 -4
- package/docs/markdown/classes/OpenApiHttpResponseErrorService.md +5 -5
- package/docs/markdown/classes/RxapErrorHandler.md +7 -7
- package/docs/markdown/functions/DefaultErrorCodeExtractor.md +2 -2
- package/docs/markdown/functions/DefaultErrorFilter.md +2 -2
- package/docs/markdown/functions/ExtractContextFromError.md +2 -2
- package/docs/markdown/functions/ExtractError.md +2 -2
- package/docs/markdown/functions/ExtractExtraFromError.md +2 -2
- package/docs/markdown/functions/ExtractTagsFromError.md +2 -2
- package/docs/markdown/functions/HttpErrorInterceptor.md +2 -2
- package/docs/markdown/functions/PrintError.md +2 -2
- package/docs/markdown/functions/ProvideErrorHandler.md +2 -2
- package/docs/markdown/functions/SimplifyHttpErrorResponse.md +2 -2
- package/docs/markdown/functions/provideAutoErrorInterception.md +2 -2
- package/docs/markdown/functions/withErrorCaptureDialogDisabledIf.md +2 -2
- package/docs/markdown/functions/withErrorCaptureDialogService.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/AngularErrorDialogData.md +8 -8
- package/docs/markdown/interfaces/AnyHttpErrorDialogData.md +15 -15
- package/docs/markdown/interfaces/CodeHttpErrorDialogData.md +16 -16
- package/docs/markdown/interfaces/ErrorHandlerOptions.md +5 -5
- package/docs/markdown/interfaces/ErrorInterceptorOptions.md +4 -4
- package/docs/markdown/interfaces/IErrorCaptureDialogService.md +3 -3
- package/docs/markdown/interfaces/IErrorDialogComponent.md +3 -3
- package/docs/markdown/interfaces/MessageHttpErrorDialogData.md +15 -15
- package/docs/markdown/interfaces/OpenApiHttpResponseErrorDialogData.md +18 -18
- package/docs/markdown/interfaces/SimplifiedHttpErrorResponse.md +12 -12
- package/docs/markdown/variables/RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_DATA.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_DISABLED.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_DIALOG_ERROR.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_HANDLER_OPTIONS.md +2 -2
- package/docs/markdown/variables/RXAP_ERROR_INTERCEPTOR_OPTIONS.md +2 -2
- package/docs/wiki/Class.AngularErrorComponent.md +5 -5
- package/docs/wiki/Class.AngularErrorService.md +4 -4
- package/docs/wiki/Class.AnyHttpErrorComponent.md +3 -3
- package/docs/wiki/Class.AnyHttpErrorService.md +4 -4
- package/docs/wiki/Class.CodeHttpErrorComponent.md +4 -4
- package/docs/wiki/Class.CodeHttpErrorService.md +4 -4
- package/docs/wiki/Class.ErrorCaptureDialogService.md +5 -5
- package/docs/wiki/Class.ErrorCaptureService.md +4 -4
- package/docs/wiki/Class.ErrorDialogComponent.md +9 -9
- package/docs/wiki/Class.MessageHttpErrorComponent.md +4 -4
- package/docs/wiki/Class.MessageHttpErrorService.md +4 -4
- package/docs/wiki/Class.OpenApiHttpResponseErrorComponent.md +3 -3
- package/docs/wiki/Class.OpenApiHttpResponseErrorService.md +4 -4
- package/docs/wiki/Class.RxapErrorHandler.md +6 -6
- package/docs/wiki/Function.DefaultErrorCodeExtractor.md +1 -1
- package/docs/wiki/Function.DefaultErrorFilter.md +1 -1
- package/docs/wiki/Function.ExtractContextFromError.md +1 -1
- package/docs/wiki/Function.ExtractError.md +1 -1
- package/docs/wiki/Function.ExtractExtraFromError.md +1 -1
- package/docs/wiki/Function.ExtractTagsFromError.md +1 -1
- package/docs/wiki/Function.HttpErrorInterceptor.md +1 -1
- package/docs/wiki/Function.PrintError.md +1 -1
- package/docs/wiki/Function.ProvideErrorHandler.md +1 -1
- package/docs/wiki/Function.SimplifyHttpErrorResponse.md +1 -1
- package/docs/wiki/Function.provideAutoErrorInterception.md +1 -1
- package/docs/wiki/Function.withErrorCaptureDialogDisabledIf.md +1 -1
- package/docs/wiki/Function.withErrorCaptureDialogService.md +1 -1
- package/docs/wiki/Interface.AngularErrorDialogData.md +7 -7
- package/docs/wiki/Interface.AnyHttpErrorDialogData.md +14 -14
- package/docs/wiki/Interface.CodeHttpErrorDialogData.md +15 -15
- package/docs/wiki/Interface.ErrorHandlerOptions.md +4 -4
- package/docs/wiki/Interface.ErrorInterceptorOptions.md +3 -3
- package/docs/wiki/Interface.IErrorCaptureDialogService.md +2 -2
- package/docs/wiki/Interface.IErrorDialogComponent.md +2 -2
- package/docs/wiki/Interface.MessageHttpErrorDialogData.md +14 -14
- package/docs/wiki/Interface.OpenApiHttpResponseErrorDialogData.md +17 -17
- package/docs/wiki/Interface.SimplifiedHttpErrorResponse.md +11 -11
- package/docs/wiki/Variable.RXAP_ERROR_CAPTURE_DIALOG_SERVICE.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DATA.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_DISABLED.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_DIALOG_ERROR.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_HANDLER_OPTIONS.md +1 -1
- package/docs/wiki/Variable.RXAP_ERROR_INTERCEPTOR_OPTIONS.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-error.mjs +24 -0
- package/fesm2022/rxap-ngx-error.mjs.map +1 -1
- package/lib/error-handler.d.ts +1 -0
- package/package.json +25 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
## 19.3.0-dev.1 (2026-06-30)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- add chuck loading error capture
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Merzough Münker
|
|
10
|
+
|
|
11
|
+
## 19.3.0-dev.0 (2026-06-19)
|
|
12
|
+
|
|
13
|
+
### 🚀 Features
|
|
14
|
+
|
|
15
|
+
- **error:** provide default value for error dialog disabled token
|
|
16
|
+
- **error:** add conditional provider for error dialog disablement
|
|
17
|
+
- **error:** add dialog disable option for flexible error handling
|
|
18
|
+
- **error-capture:** implement error capture dialog service and refactor error handling
|
|
19
|
+
- add open api http response error handler
|
|
20
|
+
- add angular error dialog
|
|
21
|
+
|
|
22
|
+
### 🩹 Fixes
|
|
23
|
+
|
|
24
|
+
- **generators:** read package.json and node_modules from disk, not the virtual Tree
|
|
25
|
+
- **generators:** match package name with .some() in init devDependency coercion
|
|
26
|
+
- update package groups
|
|
27
|
+
- update package groups
|
|
28
|
+
- update package groups
|
|
29
|
+
- ensure the proper theme color is used
|
|
30
|
+
- update to latest sentry version
|
|
31
|
+
- remove FlexLayout dependency
|
|
32
|
+
- use correct unit
|
|
33
|
+
- support small displaces
|
|
34
|
+
- remove debug log
|
|
35
|
+
- update token description
|
|
36
|
+
- ensure the error object is defined
|
|
37
|
+
- add missing padding
|
|
38
|
+
- peer dependency issue
|
|
39
|
+
|
|
40
|
+
### ❤️ Thank You
|
|
41
|
+
|
|
42
|
+
- Merzough Münker
|
|
43
|
+
|
|
1
44
|
# Change Log
|
|
2
45
|
|
|
3
46
|
All notable changes to this project will be documented in this file.
|
package/compodoc/changelog.html
CHANGED
|
@@ -82,6 +82,47 @@
|
|
|
82
82
|
<div class="content getting-started">
|
|
83
83
|
<div class="content-data">
|
|
84
84
|
|
|
85
|
+
<h2>19.3.0-dev.1 (2026-06-30)</h2>
|
|
86
|
+
<h3>🚀 Features</h3>
|
|
87
|
+
<ul>
|
|
88
|
+
<li>add chuck loading error capture</li>
|
|
89
|
+
</ul>
|
|
90
|
+
<h3>❤️ Thank You</h3>
|
|
91
|
+
<ul>
|
|
92
|
+
<li>Merzough Münker</li>
|
|
93
|
+
</ul>
|
|
94
|
+
<h2>19.3.0-dev.0 (2026-06-19)</h2>
|
|
95
|
+
<h3>🚀 Features</h3>
|
|
96
|
+
<ul>
|
|
97
|
+
<li><strong>error:</strong> provide default value for error dialog disabled token</li>
|
|
98
|
+
<li><strong>error:</strong> add conditional provider for error dialog disablement</li>
|
|
99
|
+
<li><strong>error:</strong> add dialog disable option for flexible error handling</li>
|
|
100
|
+
<li><strong>error-capture:</strong> implement error capture dialog service and refactor error handling</li>
|
|
101
|
+
<li>add open api http response error handler</li>
|
|
102
|
+
<li>add angular error dialog</li>
|
|
103
|
+
</ul>
|
|
104
|
+
<h3>🩹 Fixes</h3>
|
|
105
|
+
<ul>
|
|
106
|
+
<li><strong>generators:</strong> read package.json and node_modules from disk, not the virtual Tree</li>
|
|
107
|
+
<li><strong>generators:</strong> match package name with .some() in init devDependency coercion</li>
|
|
108
|
+
<li>update package groups</li>
|
|
109
|
+
<li>update package groups</li>
|
|
110
|
+
<li>update package groups</li>
|
|
111
|
+
<li>ensure the proper theme color is used</li>
|
|
112
|
+
<li>update to latest sentry version</li>
|
|
113
|
+
<li>remove FlexLayout dependency</li>
|
|
114
|
+
<li>use correct unit</li>
|
|
115
|
+
<li>support small displaces</li>
|
|
116
|
+
<li>remove debug log</li>
|
|
117
|
+
<li>update token description</li>
|
|
118
|
+
<li>ensure the error object is defined</li>
|
|
119
|
+
<li>add missing padding</li>
|
|
120
|
+
<li>peer dependency issue</li>
|
|
121
|
+
</ul>
|
|
122
|
+
<h3>❤️ Thank You</h3>
|
|
123
|
+
<ul>
|
|
124
|
+
<li>Merzough Münker</li>
|
|
125
|
+
</ul>
|
|
85
126
|
<h1>Change Log</h1>
|
|
86
127
|
<p>All notable changes to this project will be documented in this file.
|
|
87
128
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
@@ -119,15 +119,15 @@
|
|
|
119
119
|
<li>
|
|
120
120
|
<b>@angular/core</b> : ^19.2.1</li>
|
|
121
121
|
<li>
|
|
122
|
-
<b>@rxap/components</b> : ^19.
|
|
122
|
+
<b>@rxap/components</b> : ^19.2.0-dev.0</li>
|
|
123
123
|
<li>
|
|
124
|
-
<b>@rxap/config</b> : ^19.
|
|
124
|
+
<b>@rxap/config</b> : ^19.3.0-dev.3</li>
|
|
125
125
|
<li>
|
|
126
|
-
<b>@rxap/data-grid</b> : ^19.0.
|
|
126
|
+
<b>@rxap/data-grid</b> : ^19.1.0-dev.0</li>
|
|
127
127
|
<li>
|
|
128
|
-
<b>@rxap/environment</b> : ^19.
|
|
128
|
+
<b>@rxap/environment</b> : ^19.2.0-dev.0</li>
|
|
129
129
|
<li>
|
|
130
|
-
<b>@rxap/open-api</b> : ^19.
|
|
130
|
+
<b>@rxap/open-api</b> : ^19.3.0-dev.3</li>
|
|
131
131
|
<li>
|
|
132
132
|
<b>@sentry/angular</b> : ^8.18.0</li>
|
|
133
133
|
<li>
|
|
@@ -208,8 +208,8 @@
|
|
|
208
208
|
|
|
209
209
|
<tr>
|
|
210
210
|
<td class="col-md-4">
|
|
211
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
212
|
-
class="link-to-prism">src/lib/error-handler.ts:
|
|
211
|
+
<div class="io-line">Defined in <a href="" data-line="87"
|
|
212
|
+
class="link-to-prism">src/lib/error-handler.ts:87</a></div>
|
|
213
213
|
</td>
|
|
214
214
|
</tr>
|
|
215
215
|
|
|
@@ -275,8 +275,8 @@
|
|
|
275
275
|
|
|
276
276
|
<tr>
|
|
277
277
|
<td class="col-md-4">
|
|
278
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
279
|
-
class="link-to-prism">src/lib/error-handler.ts:
|
|
278
|
+
<div class="io-line">Defined in <a href="" data-line="180"
|
|
279
|
+
class="link-to-prism">src/lib/error-handler.ts:180</a></div>
|
|
280
280
|
</td>
|
|
281
281
|
</tr>
|
|
282
282
|
|
|
@@ -344,8 +344,8 @@
|
|
|
344
344
|
|
|
345
345
|
<tr>
|
|
346
346
|
<td class="col-md-4">
|
|
347
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
348
|
-
class="link-to-prism">src/lib/error-handler.ts:
|
|
347
|
+
<div class="io-line">Defined in <a href="" data-line="174"
|
|
348
|
+
class="link-to-prism">src/lib/error-handler.ts:174</a></div>
|
|
349
349
|
</td>
|
|
350
350
|
</tr>
|
|
351
351
|
|
|
@@ -540,6 +540,25 @@ export class RxapErrorHandler implements ErrorHandler {
|
|
|
540
540
|
|
|
541
541
|
protected readonly injector = inject(INJECTOR);
|
|
542
542
|
|
|
543
|
+
private isLoadChunkError(error: unknown) {
|
|
544
|
+
if (!error) {
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
547
|
+
let message = '';
|
|
548
|
+
if (typeof error === 'string') {
|
|
549
|
+
message = error;
|
|
550
|
+
} else if (typeof error === 'object') {
|
|
551
|
+
if ('name' in error && typeof error.name === 'string' && /ChunkLoadError/i.test(error.name)) {
|
|
552
|
+
return true;
|
|
553
|
+
} else if ('message' in error && typeof error.message === 'string') {
|
|
554
|
+
message = error.message;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return [
|
|
558
|
+
/Loading chunk [\d]+ failed/i,
|
|
559
|
+
].some((regex) => regex.test(message));
|
|
560
|
+
}
|
|
561
|
+
|
|
543
562
|
/**
|
|
544
563
|
* Method called for every value captured through the ErrorHandler
|
|
545
564
|
*/
|
|
@@ -547,6 +566,11 @@ export class RxapErrorHandler implements ErrorHandler {
|
|
|
547
566
|
|
|
548
567
|
let error = errorCandidate;
|
|
549
568
|
|
|
569
|
+
if (this.isLoadChunkError(error)) {
|
|
570
|
+
console.warn('Old application version detected. Reloading the page to update the application.');
|
|
571
|
+
window.location.reload();
|
|
572
|
+
}
|
|
573
|
+
|
|
550
574
|
// Try to unwrap zone.js error.
|
|
551
575
|
// https://github.com/angular/angular/blob/master/packages/core/src/util/errors.ts
|
|
552
576
|
if (error && (error as { ngOriginalError: Error }).ngOriginalError) {
|
|
@@ -355,6 +355,25 @@ export class RxapErrorHandler implements ErrorHandler {
|
|
|
355
355
|
|
|
356
356
|
protected readonly injector = inject(INJECTOR);
|
|
357
357
|
|
|
358
|
+
private isLoadChunkError(error: unknown) {
|
|
359
|
+
if (!error) {
|
|
360
|
+
return false;
|
|
361
|
+
}
|
|
362
|
+
let message = '';
|
|
363
|
+
if (typeof error === 'string') {
|
|
364
|
+
message = error;
|
|
365
|
+
} else if (typeof error === 'object') {
|
|
366
|
+
if ('name' in error && typeof error.name === 'string' && /ChunkLoadError/i.test(error.name)) {
|
|
367
|
+
return true;
|
|
368
|
+
} else if ('message' in error && typeof error.message === 'string') {
|
|
369
|
+
message = error.message;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return [
|
|
373
|
+
/Loading chunk [\d]+ failed/i,
|
|
374
|
+
].some((regex) => regex.test(message));
|
|
375
|
+
}
|
|
376
|
+
|
|
358
377
|
/**
|
|
359
378
|
* Method called for every value captured through the ErrorHandler
|
|
360
379
|
*/
|
|
@@ -362,6 +381,11 @@ export class RxapErrorHandler implements ErrorHandler {
|
|
|
362
381
|
|
|
363
382
|
let error = errorCandidate;
|
|
364
383
|
|
|
384
|
+
if (this.isLoadChunkError(error)) {
|
|
385
|
+
console.warn('Old application version detected. Reloading the page to update the application.');
|
|
386
|
+
window.location.reload();
|
|
387
|
+
}
|
|
388
|
+
|
|
365
389
|
// Try to unwrap zone.js error.
|
|
366
390
|
// https://github.com/angular/angular/blob/master/packages/core/src/util/errors.ts
|
|
367
391
|
if (error && (error as { ngOriginalError: Error }).ngOriginalError) {
|