@angular/upgrade 18.2.1 → 18.2.3
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/esm2022/src/common/src/security/trusted_types.mjs +48 -0
- package/esm2022/src/common/src/security/trusted_types_defs.mjs +9 -0
- package/esm2022/src/common/src/upgrade_helper.mjs +5 -4
- package/esm2022/src/common/src/version.mjs +1 -1
- package/esm2022/src/dynamic/src/upgrade_ng1_adapter.mjs +6 -5
- package/esm2022/static/src/upgrade_component.mjs +3 -3
- package/esm2022/static/src/upgrade_module.mjs +4 -4
- package/esm2022/static/testing/src/create_angular_testing_module.mjs +4 -4
- package/fesm2022/static/testing.mjs +5 -5
- package/fesm2022/static.mjs +53 -12
- package/fesm2022/static.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +50 -9
- package/fesm2022/upgrade.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +5 -5
- package/static/index.d.ts +27 -3
- package/static/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/upgrade",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.3",
|
|
4
4
|
"description": "Angular - the library for easing update from v1 to v2",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "18.2.
|
|
15
|
-
"@angular/compiler": "18.2.
|
|
16
|
-
"@angular/platform-browser": "18.2.
|
|
17
|
-
"@angular/platform-browser-dynamic": "18.2.
|
|
14
|
+
"@angular/core": "18.2.3",
|
|
15
|
+
"@angular/compiler": "18.2.3",
|
|
16
|
+
"@angular/platform-browser": "18.2.3",
|
|
17
|
+
"@angular/platform-browser-dynamic": "18.2.3"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
package/static/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.2.
|
|
2
|
+
* @license Angular v18.2.3
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -812,6 +812,30 @@ declare type SingleOrListOrMap<T> = T | T[] | {
|
|
|
812
812
|
*/
|
|
813
813
|
declare function strictEquals(val1: any, val2: any): boolean;
|
|
814
814
|
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* @fileoverview
|
|
818
|
+
* While Angular only uses Trusted Types internally for the time being,
|
|
819
|
+
* references to Trusted Types could leak into our public API, which would force
|
|
820
|
+
* anyone compiling against @angular/upgrade to provide the @types/trusted-types
|
|
821
|
+
* package in their compilation unit.
|
|
822
|
+
*
|
|
823
|
+
* Until https://github.com/microsoft/TypeScript/issues/30024 is resolved, we
|
|
824
|
+
* will keep Angular's public API surface free of references to Trusted Types.
|
|
825
|
+
* For internal and semi-private APIs that need to reference Trusted Types, the
|
|
826
|
+
* minimal type definitions for the Trusted Types API provided by this module
|
|
827
|
+
* should be used instead. They are marked as "declare" to prevent them from
|
|
828
|
+
* being renamed by compiler optimization.
|
|
829
|
+
*
|
|
830
|
+
* Adapted from
|
|
831
|
+
* https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/trusted-types/index.d.ts
|
|
832
|
+
* but restricted to the API surface used within Angular, mimicking the approach
|
|
833
|
+
* in packages/core/src/util/security/trusted_type_defs.ts.
|
|
834
|
+
*/
|
|
835
|
+
declare type TrustedHTML = string & {
|
|
836
|
+
__brand__: 'TrustedHTML';
|
|
837
|
+
};
|
|
838
|
+
|
|
815
839
|
declare const UPGRADE_APP_TYPE_KEY = "$$angularUpgradeAppType";
|
|
816
840
|
|
|
817
841
|
declare const UPGRADE_MODULE_NAME = "$$UpgradeModule";
|
|
@@ -911,9 +935,9 @@ declare class UpgradeHelper {
|
|
|
911
935
|
private readonly $controller;
|
|
912
936
|
constructor(injector: Injector, name: string, elementRef: ElementRef, directive?: IDirective);
|
|
913
937
|
static getDirective($injector: IInjectorService, name: string): IDirective;
|
|
914
|
-
static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | Promise<string>;
|
|
938
|
+
static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | TrustedHTML | Promise<string | TrustedHTML>;
|
|
915
939
|
buildController(controllerType: IController, $scope: IScope): any;
|
|
916
|
-
compileTemplate(template?: string): ILinkFn;
|
|
940
|
+
compileTemplate(template?: string | TrustedHTML): ILinkFn;
|
|
917
941
|
onDestroy($scope: IScope, controllerInstance?: any): void;
|
|
918
942
|
prepareTransclusion(): ILinkFn | undefined;
|
|
919
943
|
resolveAndBindRequiredControllers(controllerInstance: IControllerInstance | null): SingleOrListOrMap<IControllerInstance> | null;
|