Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18,032 changes: 9,183 additions & 8,849 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^18.1.0",
"@angular/common": "^18.1.0",
"@angular/compiler": "^18.1.0",
"@angular/core": "^18.1.0",
"@angular/forms": "^18.1.0",
"@angular/platform-browser": "^18.1.0",
"@angular/platform-browser-dynamic": "^18.1.0",
"@angular/router": "^18.1.0",
"@sentry/angular": "^8.17.0",
"@angular/animations": "^19.1.3",
"@angular/common": "^19.1.3",
"@angular/compiler": "^19.1.3",
"@angular/core": "^19.1.3",
"@angular/forms": "^19.1.3",
"@angular/platform-browser": "^19.1.3",
"@angular/platform-browser-dynamic": "^19.1.3",
"@angular/router": "^19.1.3",
"@sentry/angular": "^8.51.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.3"
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.1.0",
"@angular/cli": "^18.1.0",
"@angular/compiler-cli": "^18.1.0",
"@angular-devkit/build-angular": "^19.1.4",
"@angular/cli": "^19.1.4",
"@angular/compiler-cli": "^19.1.3",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@ngneat/spectator": "^19.0.0",
Expand All @@ -53,7 +53,7 @@
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "^18.1.0",
"ng-packagr": "^19.1.1",
"prettier": "3.3.2",
"typescript": "~5.5.2"
}
Expand Down
6 changes: 3 additions & 3 deletions projects/ng-error-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "ng-error-handlers",
"version": "1.3.0",
"peerDependencies": {
"@angular/core": "^17.0.0 || ^18.0.0",
"@angular/common": "^17.0.0 || ^18.0.0",
"@sentry/angular": "^8.17.0"
"@angular/core": ">=17.0.0",
"@angular/common": ">=17.0.0",
"@sentry/angular": ">=8.17.0"
},
"license": "MIT",
"keywords": [
Expand Down
12 changes: 4 additions & 8 deletions projects/ng-error-handlers/sentry-handler/with-sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
init,
ErrorHandlerOptions,
} from "@sentry/angular";
import { APP_INITIALIZER } from "@angular/core";
import { provideAppInitializer } from "@angular/core";

/**
* Allows to provide `Sentry` as a `class` based error handler.
Expand All @@ -32,13 +32,9 @@ export function withSentry(
useClass: SentryErrorHandler,
multi: true,
},
{
provide: APP_INITIALIZER,
useFactory: () => () => {
init(options);
},
multi: true,
},
provideAppInitializer(() => {
init(options);
}),
{
provide: "errorHandlerOptions",
useValue: errorHandlerOptions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { Provider } from "@angular/core";
import { EnvironmentProviders, Provider } from "@angular/core";
import { ErrorHandlersFeatureKind } from "../models/error-handlers-feature-kind";
import { ErrorHandlersFeature } from "../models/error-handlers-feature";

export function makeErrorHandlersFeature<
TKind extends ErrorHandlersFeatureKind,
>(kind: TKind, providers: Provider[]): ErrorHandlersFeature<TKind> {
>(
kind: TKind,
providers: (Provider | EnvironmentProviders)[],
): ErrorHandlersFeature<TKind> {
return {
kind,
providers,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
EnvironmentProviders,
ErrorHandler,
makeEnvironmentProviders,
Provider,
Expand All @@ -20,7 +21,7 @@ import { ErrorHandlersFeatureKind } from "../models/error-handlers-feature-kind"
export function provideErrorHandlers(
...features: ErrorHandlersFeature<ErrorHandlersFeatureKind>[]
) {
const providers: Provider[] = [
const providers: (EnvironmentProviders | Provider)[] = [
{
provide: ErrorHandler,
useClass: ErrorHandlersManager,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Provider } from "@angular/core";
import { EnvironmentProviders, Provider } from "@angular/core";
import { ErrorHandlersFeatureKind } from "./error-handlers-feature-kind";

export interface ErrorHandlersFeature<TKind extends ErrorHandlersFeatureKind> {
kind: TKind;
providers: Provider[];
providers: (Provider | EnvironmentProviders)[];
}
3 changes: 0 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { Component } from "@angular/core";
import { RouterOutlet } from "@angular/router";

@Component({
selector: "app-root",
standalone: true,
imports: [RouterOutlet],
templateUrl: "./app.component.html",
styleUrl: "./app.component.scss",
})
Expand Down
Loading