@angular/core
Advanced tools
Comparing version 14.3.0 to 16.2.12
{ | ||
"name": "@angular/core", | ||
"version": "14.3.0", | ||
"version": "16.2.12", | ||
"description": "Angular - the core framework", | ||
@@ -8,3 +8,3 @@ "author": "angular", | ||
"engines": { | ||
"node": "^14.15.0 || >=16.10.0" | ||
"node": "^16.14.0 || >=18.10.0" | ||
}, | ||
@@ -20,15 +20,17 @@ "exports": { | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/core.mjs", | ||
"es2020": "./fesm2020/core.mjs", | ||
"es2015": "./fesm2015/core.mjs", | ||
"node": "./fesm2015/core.mjs", | ||
"default": "./fesm2020/core.mjs" | ||
"esm2022": "./esm2022/core.mjs", | ||
"esm": "./esm2022/core.mjs", | ||
"default": "./fesm2022/core.mjs" | ||
}, | ||
"./rxjs-interop": { | ||
"types": "./rxjs-interop/index.d.ts", | ||
"esm2022": "./esm2022/rxjs-interop/rxjs-interop.mjs", | ||
"esm": "./esm2022/rxjs-interop/rxjs-interop.mjs", | ||
"default": "./fesm2022/rxjs-interop.mjs" | ||
}, | ||
"./testing": { | ||
"types": "./testing/index.d.ts", | ||
"esm2020": "./esm2020/testing/testing.mjs", | ||
"es2020": "./fesm2020/testing.mjs", | ||
"es2015": "./fesm2015/testing.mjs", | ||
"node": "./fesm2015/testing.mjs", | ||
"default": "./fesm2020/testing.mjs" | ||
"esm2022": "./esm2022/testing/testing.mjs", | ||
"esm": "./esm2022/testing/testing.mjs", | ||
"default": "./fesm2022/testing.mjs" | ||
} | ||
@@ -41,3 +43,3 @@ }, | ||
"rxjs": "^6.5.3 || ^7.4.0", | ||
"zone.js": "~0.11.4 || ~0.12.0" | ||
"zone.js": "~0.13.0" | ||
}, | ||
@@ -70,10 +72,7 @@ "repository": { | ||
}, | ||
"schematics": "./schematics/collection.json", | ||
"sideEffects": false, | ||
"fesm2020": "./fesm2020/core.mjs", | ||
"fesm2015": "./fesm2015/core.mjs", | ||
"esm2020": "./esm2020/core.mjs", | ||
"module": "./fesm2022/core.mjs", | ||
"typings": "./index.d.ts", | ||
"module": "./fesm2015/core.mjs", | ||
"es2020": "./fesm2020/core.mjs", | ||
"type": "module" | ||
} |
{ | ||
"schematics": { | ||
"migration-entry-components": { | ||
"version": "14.0.0-beta", | ||
"description": "As of Angular version 13, `entryComponents` are no longer necessary.", | ||
"factory": "./migrations/entry-components/index" | ||
"migration-v16-remove-module-id": { | ||
"version": "16.0.0", | ||
"description": "As of Angular v16, the `moduleId` property of `@Component` is deprecated as it no longer has any effect.", | ||
"factory": "./migrations/remove-module-id/bundle" | ||
}, | ||
"migration-v14-typed-forms": { | ||
"version": "14.0.0-beta", | ||
"description": "As of Angular version 14, Forms model classes accept a type parameter, and existing usages must be opted out to preserve backwards-compatibility.", | ||
"factory": "./migrations/typed-forms/index" | ||
}, | ||
"migration-v14-path-match-type": { | ||
"version": "14.0.0-beta", | ||
"description": "In Angular version 14, the `pathMatch` property of `Routes` was updated to be a strict union of the two valid options: `'full'|'prefix'`. `Routes` and `Route` variables need an explicit type so TypeScript does not infer the property as the looser `string`.", | ||
"factory": "./migrations/path-match-type/index" | ||
"migration-v16-guard-and-resolve-interfaces": { | ||
"version": "16.0.0", | ||
"description": "In Angular version 15.2, the guard and resolver interfaces (CanActivate, Resolve, etc) were deprecated. This migration removes imports and 'implements' clauses that contain them.", | ||
"factory": "./migrations/guard-and-resolve-interfaces/bundle" | ||
} | ||
} | ||
} | ||
} |
/** | ||
* @license Angular v14.3.0 | ||
* @license Angular v16.2.12 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -16,2 +16,3 @@ * License: MIT | ||
import { InjectionToken } from '@angular/core'; | ||
import { InjectOptions } from '@angular/core'; | ||
import { NgModule } from '@angular/core'; | ||
@@ -122,3 +123,3 @@ import { NgZone } from '@angular/core'; | ||
*/ | ||
export declare const ComponentFixtureAutoDetect: InjectionToken<boolean[]>; | ||
export declare const ComponentFixtureAutoDetect: InjectionToken<boolean>; | ||
@@ -128,3 +129,3 @@ /** | ||
*/ | ||
export declare const ComponentFixtureNoNgZone: InjectionToken<boolean[]>; | ||
export declare const ComponentFixtureNoNgZone: InjectionToken<boolean>; | ||
@@ -147,3 +148,3 @@ /** | ||
* | ||
* @param fn The function that you want to wrap in the `fakeAysnc` zone. | ||
* @param fn The function that you want to wrap in the `fakeAsync` zone. | ||
* | ||
@@ -285,3 +286,10 @@ * @usageNotes | ||
compileComponents(): Promise<any>; | ||
inject<T>(token: ProviderToken<T>, notFoundValue: undefined, options: InjectOptions & { | ||
optional?: false; | ||
}): T; | ||
inject<T>(token: ProviderToken<T>, notFoundValue: null | undefined, options: InjectOptions): T | null; | ||
inject<T>(token: ProviderToken<T>, notFoundValue?: T, options?: InjectOptions): T; | ||
/** @deprecated use object-based flags (`InjectOptions`) instead. */ | ||
inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T; | ||
/** @deprecated use object-based flags (`InjectOptions`) instead. */ | ||
inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null; | ||
@@ -292,2 +300,8 @@ /** @deprecated from v9.0.0 use TestBed.inject */ | ||
get(token: any, notFoundValue?: any): any; | ||
/** | ||
* Runs the given function in the `EnvironmentInjector` context of `TestBed`. | ||
* | ||
* @see {@link EnvironmentInjector#runInContext} | ||
*/ | ||
runInInjectionContext<T>(fn: () => T): T; | ||
execute(tokens: any[], fn: Function, context?: any): any; | ||
@@ -305,5 +319,7 @@ overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBed; | ||
deps: any[]; | ||
multi?: boolean; | ||
}): TestBed; | ||
overrideProvider(token: any, provider: { | ||
useValue: any; | ||
multi?: boolean; | ||
}): TestBed; | ||
@@ -314,2 +330,3 @@ overrideProvider(token: any, provider: { | ||
deps?: any[]; | ||
multi?: boolean; | ||
}): TestBed; | ||
@@ -362,3 +379,3 @@ overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBed; | ||
* If set to `true`, the error is thrown. | ||
* @see https://angular.io/errors/NG8001 for the description of the error and how to fix it | ||
* @see [NG8001](/errors/NG8001) for the description of the error and how to fix it | ||
*/ | ||
@@ -370,3 +387,3 @@ errorOnUnknownElements?: boolean; | ||
* If set to `true`, the error is thrown. | ||
* @see https://angular.io/errors/NG8002 for the description of the error and how to fix it | ||
* @see [NG8002](/errors/NG8002) for the description of the error and how to fix it | ||
*/ | ||
@@ -389,3 +406,3 @@ errorOnUnknownProperties?: boolean; | ||
* thrown. | ||
* @see https://angular.io/errors/NG8001 for the description of the problem and how to fix it | ||
* @see [NG8001](/errors/NG8001) for the description of the problem and how to fix it | ||
*/ | ||
@@ -397,3 +414,3 @@ errorOnUnknownElements?: boolean; | ||
* If set to `true`, the error is thrown. | ||
* @see https://angular.io/errors/NG8002 for the description of the error and how to fix it | ||
* @see [NG8002](/errors/NG8002) for the description of the error and how to fix it | ||
*/ | ||
@@ -400,0 +417,0 @@ errorOnUnknownProperties?: boolean; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
19117005
2
326
156267