@angular/core 19.1.6 → 19.1.8
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/fesm2022/core.mjs +723 -692
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +696 -5
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +143 -35
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/{apply_import_manager-61eb7e4a.js → apply_import_manager-0648daae.js} +3 -3
- package/schematics/bundles/{checker-58684f3f.js → checker-2bdbb582.js} +17 -16
- package/schematics/bundles/cleanup-unused-imports.js +5 -5
- package/schematics/bundles/{compiler_host-dff4346e.js → compiler_host-9208f64f.js} +2 -2
- package/schematics/bundles/control-flow-migration.js +3 -3
- package/schematics/bundles/explicit-standalone-flag.js +3 -3
- package/schematics/bundles/imports-31a38653.js +1 -1
- package/schematics/bundles/{index-4bb9c755.js → index-4978a91a.js} +4 -4
- package/schematics/bundles/{index-027c9191.js → index-4f59e07e.js} +4 -4
- package/schematics/bundles/inject-migration.js +3 -3
- package/schematics/bundles/leading_space-6e7a8ec6.js +1 -1
- package/schematics/bundles/{migrate_ts_type_references-f48f6ec0.js → migrate_ts_type_references-8541f425.js} +5 -5
- package/schematics/bundles/nodes-88c2157f.js +1 -1
- package/schematics/bundles/output-migration.js +5 -5
- package/schematics/bundles/pending-tasks.js +3 -3
- package/schematics/bundles/{program-721d697e.js → program-f43dcb10.js} +12 -12
- package/schematics/bundles/project_tsconfig_paths-6c9cde78.js +1 -1
- package/schematics/bundles/provide-initializer.js +3 -3
- package/schematics/bundles/route-lazy-loading.js +3 -3
- package/schematics/bundles/signal-input-migration.js +6 -6
- package/schematics/bundles/signal-queries-migration.js +6 -6
- package/schematics/bundles/signals.js +6 -6
- package/schematics/bundles/standalone-migration.js +5 -5
- package/testing/index.d.ts +297 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.1.
|
|
2
|
+
* @license Angular v19.1.8
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -5647,9 +5647,8 @@ export declare type ImportProvidersSource = Type<unknown> | ModuleWithProviders<
|
|
|
5647
5647
|
*
|
|
5648
5648
|
* Within each sub-array:
|
|
5649
5649
|
*
|
|
5650
|
-
* i+0:
|
|
5651
|
-
* i+1:
|
|
5652
|
-
* i+2: initial value
|
|
5650
|
+
* i+0: public name
|
|
5651
|
+
* i+1: initial value
|
|
5653
5652
|
*
|
|
5654
5653
|
* If a directive on a node does not have any input properties
|
|
5655
5654
|
* that should be set from attributes, its index is set to null
|
|
@@ -5670,7 +5669,7 @@ declare type InitialInputData = (InitialInputs | null)[];
|
|
|
5670
5669
|
*
|
|
5671
5670
|
* e.g. ['role-min', 'minified-input', 'button']
|
|
5672
5671
|
*/
|
|
5673
|
-
declare type InitialInputs =
|
|
5672
|
+
declare type InitialInputs = string[];
|
|
5674
5673
|
|
|
5675
5674
|
/**
|
|
5676
5675
|
* Type of the Inject metadata.
|
|
@@ -7565,6 +7564,35 @@ declare const MULTIPLIER = "x";
|
|
|
7565
7564
|
|
|
7566
7565
|
declare const NATIVE = 7;
|
|
7567
7566
|
|
|
7567
|
+
declare interface NavigateEventInit extends EventInit {
|
|
7568
|
+
navigationType?: ɵNavigationTypeString;
|
|
7569
|
+
canIntercept?: boolean;
|
|
7570
|
+
userInitiated?: boolean;
|
|
7571
|
+
hashChange?: boolean;
|
|
7572
|
+
destination: ɵNavigationDestination;
|
|
7573
|
+
signal: AbortSignal;
|
|
7574
|
+
formData?: FormData | null;
|
|
7575
|
+
downloadRequest?: string | null;
|
|
7576
|
+
info?: unknown;
|
|
7577
|
+
}
|
|
7578
|
+
|
|
7579
|
+
declare interface NavigationCurrentEntryChangeEventInit extends EventInit {
|
|
7580
|
+
navigationType?: ɵNavigationTypeString | null;
|
|
7581
|
+
from: ɵNavigationHistoryEntry;
|
|
7582
|
+
}
|
|
7583
|
+
|
|
7584
|
+
|
|
7585
|
+
declare interface NavigationEventMap {
|
|
7586
|
+
navigate: ɵNavigateEvent;
|
|
7587
|
+
navigatesuccess: Event;
|
|
7588
|
+
navigateerror: ErrorEvent;
|
|
7589
|
+
currententrychange: ɵNavigationCurrentEntryChangeEvent;
|
|
7590
|
+
}
|
|
7591
|
+
|
|
7592
|
+
declare interface NavigationHistoryEntryEventMap {
|
|
7593
|
+
dispose: Event;
|
|
7594
|
+
}
|
|
7595
|
+
|
|
7568
7596
|
declare const NEXT = 4;
|
|
7569
7597
|
|
|
7570
7598
|
declare interface NgGlobalPublishUtils {
|
|
@@ -8115,16 +8143,15 @@ export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
|
|
|
8115
8143
|
*
|
|
8116
8144
|
* i+0: directive instance index
|
|
8117
8145
|
* i+1: privateName
|
|
8118
|
-
* i+2: input flags
|
|
8119
8146
|
*
|
|
8120
8147
|
* e.g.
|
|
8121
8148
|
* ```
|
|
8122
8149
|
* {
|
|
8123
|
-
* "publicName": [0, 'change-minified'
|
|
8150
|
+
* "publicName": [0, 'change-minified']
|
|
8124
8151
|
* }
|
|
8125
8152
|
* ```
|
|
8126
8153
|
*/
|
|
8127
|
-
declare type NodeInputBindings = Record<string, (number | string
|
|
8154
|
+
declare type NodeInputBindings = Record<string, (number | string)[]>;
|
|
8128
8155
|
|
|
8129
8156
|
/**
|
|
8130
8157
|
* Store the runtime output names for all the directives.
|
|
@@ -13382,20 +13409,11 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
13382
13409
|
* A dictionary mapping the inputs' public name to their minified property names
|
|
13383
13410
|
* (along with flags if there are any).
|
|
13384
13411
|
*/
|
|
13385
|
-
readonly inputs:
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
* Note: the private names are used for the keys, rather than the public ones, because public
|
|
13391
|
-
* names can be re-aliased in host directives which would invalidate the lookup.
|
|
13392
|
-
*
|
|
13393
|
-
* Note: Signal inputs will not have transforms captured here. This is because their
|
|
13394
|
-
* transform function is already integrated into the `InputSignal`.
|
|
13395
|
-
*/
|
|
13396
|
-
readonly inputTransforms: {
|
|
13397
|
-
[classPropertyName: string]: InputTransformFunction;
|
|
13398
|
-
} | null;
|
|
13412
|
+
readonly inputs: Record<string, [
|
|
13413
|
+
minifiedName: string,
|
|
13414
|
+
flags: InputFlags,
|
|
13415
|
+
transform: InputTransformFunction | null
|
|
13416
|
+
]>;
|
|
13399
13417
|
/**
|
|
13400
13418
|
* Contains the raw input information produced by the compiler. Can be
|
|
13401
13419
|
* used to do further processing after the `inputs` have been inverted.
|
|
@@ -13413,9 +13431,7 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
13413
13431
|
* are their aliases if any, or their original unminified property names
|
|
13414
13432
|
* (as in `@Output('alias') propertyName: any;`).
|
|
13415
13433
|
*/
|
|
13416
|
-
readonly outputs:
|
|
13417
|
-
[P in keyof T]?: string;
|
|
13418
|
-
};
|
|
13434
|
+
readonly outputs: Record<string, string>;
|
|
13419
13435
|
/**
|
|
13420
13436
|
* Function to create and refresh content queries associated with a given directive.
|
|
13421
13437
|
*/
|
|
@@ -14042,6 +14058,108 @@ export declare class ɵMicrotaskEffectScheduler extends ZoneAwareEffectScheduler
|
|
|
14042
14058
|
static ɵprov: unknown;
|
|
14043
14059
|
}
|
|
14044
14060
|
|
|
14061
|
+
export declare class ɵNavigateEvent extends Event {
|
|
14062
|
+
constructor(type: string, eventInit?: NavigateEventInit);
|
|
14063
|
+
readonly navigationType: ɵNavigationTypeString;
|
|
14064
|
+
readonly canIntercept: boolean;
|
|
14065
|
+
readonly userInitiated: boolean;
|
|
14066
|
+
readonly hashChange: boolean;
|
|
14067
|
+
readonly destination: ɵNavigationDestination;
|
|
14068
|
+
readonly signal: AbortSignal;
|
|
14069
|
+
readonly formData: FormData | null;
|
|
14070
|
+
readonly downloadRequest: string | null;
|
|
14071
|
+
readonly info?: unknown;
|
|
14072
|
+
intercept(options?: ɵNavigationInterceptOptions): void;
|
|
14073
|
+
scroll(): void;
|
|
14074
|
+
}
|
|
14075
|
+
|
|
14076
|
+
export declare class ɵNavigation extends EventTarget {
|
|
14077
|
+
entries(): ɵNavigationHistoryEntry[];
|
|
14078
|
+
readonly currentEntry: ɵNavigationHistoryEntry | null;
|
|
14079
|
+
updateCurrentEntry(options: ɵNavigationUpdateCurrentEntryOptions): void;
|
|
14080
|
+
readonly transition: ɵNavigationTransition | null;
|
|
14081
|
+
readonly canGoBack: boolean;
|
|
14082
|
+
readonly canGoForward: boolean;
|
|
14083
|
+
navigate(url: string, options?: ɵNavigationNavigateOptions): ɵNavigationResult;
|
|
14084
|
+
reload(options?: ɵNavigationReloadOptions): ɵNavigationResult;
|
|
14085
|
+
traverseTo(key: string, options?: ɵNavigationOptions): ɵNavigationResult;
|
|
14086
|
+
back(options?: ɵNavigationOptions): ɵNavigationResult;
|
|
14087
|
+
forward(options?: ɵNavigationOptions): ɵNavigationResult;
|
|
14088
|
+
onnavigate: ((this: ɵNavigation, ev: ɵNavigateEvent) => any) | null;
|
|
14089
|
+
onnavigatesuccess: ((this: ɵNavigation, ev: Event) => any) | null;
|
|
14090
|
+
onnavigateerror: ((this: ɵNavigation, ev: ErrorEvent) => any) | null;
|
|
14091
|
+
oncurrententrychange: ((this: ɵNavigation, ev: ɵNavigationCurrentEntryChangeEvent) => any) | null;
|
|
14092
|
+
addEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: ɵNavigation, ev: NavigationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
14093
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
14094
|
+
removeEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: ɵNavigation, ev: NavigationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
14095
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
14096
|
+
}
|
|
14097
|
+
|
|
14098
|
+
export declare class ɵNavigationCurrentEntryChangeEvent extends Event {
|
|
14099
|
+
constructor(type: string, eventInit?: NavigationCurrentEntryChangeEventInit);
|
|
14100
|
+
readonly navigationType: ɵNavigationTypeString | null;
|
|
14101
|
+
readonly from: ɵNavigationHistoryEntry;
|
|
14102
|
+
}
|
|
14103
|
+
|
|
14104
|
+
export declare class ɵNavigationDestination {
|
|
14105
|
+
readonly url: string;
|
|
14106
|
+
readonly key: string | null;
|
|
14107
|
+
readonly id: string | null;
|
|
14108
|
+
readonly index: number;
|
|
14109
|
+
readonly sameDocument: boolean;
|
|
14110
|
+
getState(): unknown;
|
|
14111
|
+
}
|
|
14112
|
+
|
|
14113
|
+
export declare class ɵNavigationHistoryEntry extends EventTarget {
|
|
14114
|
+
readonly key: string;
|
|
14115
|
+
readonly id: string;
|
|
14116
|
+
readonly url: string | null;
|
|
14117
|
+
readonly index: number;
|
|
14118
|
+
readonly sameDocument: boolean;
|
|
14119
|
+
getState(): unknown;
|
|
14120
|
+
ondispose: ((this: ɵNavigationHistoryEntry, ev: Event) => any) | null;
|
|
14121
|
+
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: ɵNavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
14122
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
14123
|
+
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: ɵNavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
14124
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
14125
|
+
}
|
|
14126
|
+
|
|
14127
|
+
export declare interface ɵNavigationInterceptOptions {
|
|
14128
|
+
handler?: () => Promise<void>;
|
|
14129
|
+
focusReset?: 'after-transition' | 'manual';
|
|
14130
|
+
scroll?: 'after-transition' | 'manual';
|
|
14131
|
+
}
|
|
14132
|
+
|
|
14133
|
+
export declare interface ɵNavigationNavigateOptions extends ɵNavigationOptions {
|
|
14134
|
+
state?: unknown;
|
|
14135
|
+
history?: 'auto' | 'push' | 'replace';
|
|
14136
|
+
}
|
|
14137
|
+
|
|
14138
|
+
export declare interface ɵNavigationOptions {
|
|
14139
|
+
info?: unknown;
|
|
14140
|
+
}
|
|
14141
|
+
|
|
14142
|
+
export declare interface ɵNavigationReloadOptions extends ɵNavigationOptions {
|
|
14143
|
+
state?: unknown;
|
|
14144
|
+
}
|
|
14145
|
+
|
|
14146
|
+
export declare interface ɵNavigationResult {
|
|
14147
|
+
committed: Promise<ɵNavigationHistoryEntry>;
|
|
14148
|
+
finished: Promise<ɵNavigationHistoryEntry>;
|
|
14149
|
+
}
|
|
14150
|
+
|
|
14151
|
+
export declare class ɵNavigationTransition {
|
|
14152
|
+
readonly navigationType: ɵNavigationTypeString;
|
|
14153
|
+
readonly from: ɵNavigationHistoryEntry;
|
|
14154
|
+
readonly finished: Promise<void>;
|
|
14155
|
+
}
|
|
14156
|
+
|
|
14157
|
+
export declare type ɵNavigationTypeString = 'reload' | 'push' | 'replace' | 'traverse';
|
|
14158
|
+
|
|
14159
|
+
export declare interface ɵNavigationUpdateCurrentEntryOptions {
|
|
14160
|
+
state: unknown;
|
|
14161
|
+
}
|
|
14162
|
+
|
|
14045
14163
|
|
|
14046
14164
|
export declare const ɵNG_COMP_DEF: string;
|
|
14047
14165
|
|
|
@@ -16806,16 +16924,6 @@ export declare interface ɵɵInjectorDef<T> {
|
|
|
16806
16924
|
imports: (InjectorType<any> | InjectorTypeWithProviders<any>)[];
|
|
16807
16925
|
}
|
|
16808
16926
|
|
|
16809
|
-
/**
|
|
16810
|
-
* Decorates the directive definition with support for input transform functions.
|
|
16811
|
-
*
|
|
16812
|
-
* If the directive uses inheritance, the feature should be included before the
|
|
16813
|
-
* `InheritDefinitionFeature` to ensure that the `inputTransforms` field is populated.
|
|
16814
|
-
*
|
|
16815
|
-
* @codeGenApi
|
|
16816
|
-
*/
|
|
16817
|
-
export declare function ɵɵInputTransformsFeature<T>(definition: ɵDirectiveDef<T>): void;
|
|
16818
|
-
|
|
16819
16927
|
/**
|
|
16820
16928
|
* Throws an error indicating that a factory function could not be generated by the compiler for a
|
|
16821
16929
|
* particular class.
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
package/schematics/bundles/{apply_import_manager-61eb7e4a.js → apply_import_manager-0648daae.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,8 +10,8 @@ var core = require('@angular-devkit/core');
|
|
|
10
10
|
var posixPath = require('node:path/posix');
|
|
11
11
|
var os = require('os');
|
|
12
12
|
var ts = require('typescript');
|
|
13
|
-
var checker = require('./checker-
|
|
14
|
-
var program = require('./program-
|
|
13
|
+
var checker = require('./checker-2bdbb582.js');
|
|
14
|
+
var program = require('./program-f43dcb10.js');
|
|
15
15
|
require('path');
|
|
16
16
|
|
|
17
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -2915,10 +2915,6 @@ class Identifiers {
|
|
|
2915
2915
|
name: 'ɵɵHostDirectivesFeature',
|
|
2916
2916
|
moduleName: CORE,
|
|
2917
2917
|
};
|
|
2918
|
-
static InputTransformsFeatureFeature = {
|
|
2919
|
-
name: 'ɵɵInputTransformsFeature',
|
|
2920
|
-
moduleName: CORE,
|
|
2921
|
-
};
|
|
2922
2918
|
static ExternalStylesFeature = {
|
|
2923
2919
|
name: 'ɵɵExternalStylesFeature',
|
|
2924
2920
|
moduleName: CORE,
|
|
@@ -28502,7 +28498,6 @@ function addFeatures(definitionMap, meta) {
|
|
|
28502
28498
|
const features = [];
|
|
28503
28499
|
const providers = meta.providers;
|
|
28504
28500
|
const viewProviders = meta.viewProviders;
|
|
28505
|
-
const inputKeys = Object.keys(meta.inputs);
|
|
28506
28501
|
if (providers || viewProviders) {
|
|
28507
28502
|
const args = [providers || new LiteralArrayExpr([])];
|
|
28508
28503
|
if (viewProviders) {
|
|
@@ -28510,12 +28505,6 @@ function addFeatures(definitionMap, meta) {
|
|
|
28510
28505
|
}
|
|
28511
28506
|
features.push(importExpr(Identifiers.ProvidersFeature).callFn(args));
|
|
28512
28507
|
}
|
|
28513
|
-
for (const key of inputKeys) {
|
|
28514
|
-
if (meta.inputs[key].transformFunction !== null) {
|
|
28515
|
-
features.push(importExpr(Identifiers.InputTransformsFeatureFeature));
|
|
28516
|
-
break;
|
|
28517
|
-
}
|
|
28518
|
-
}
|
|
28519
28508
|
// Note: host directives feature needs to be inserted before the
|
|
28520
28509
|
// inheritance feature to ensure the correct execution order.
|
|
28521
28510
|
if (meta.hostDirectives?.length) {
|
|
@@ -30488,7 +30477,7 @@ function publishFacade(global) {
|
|
|
30488
30477
|
* @description
|
|
30489
30478
|
* Entry point for all public APIs of the compiler package.
|
|
30490
30479
|
*/
|
|
30491
|
-
new Version('19.1.
|
|
30480
|
+
new Version('19.1.8');
|
|
30492
30481
|
|
|
30493
30482
|
const _I18N_ATTR = 'i18n';
|
|
30494
30483
|
const _I18N_ATTR_PREFIX = 'i18n-';
|
|
@@ -31896,7 +31885,7 @@ class NodeJSPathManipulation {
|
|
|
31896
31885
|
// G3-ESM-MARKER: G3 uses CommonJS, but externally everything in ESM.
|
|
31897
31886
|
// CommonJS/ESM interop for determining the current file name and containing dir.
|
|
31898
31887
|
const isCommonJS = typeof __filename !== 'undefined';
|
|
31899
|
-
const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('checker-
|
|
31888
|
+
const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('checker-2bdbb582.js', document.baseURI).href));
|
|
31900
31889
|
const currentFileName = isCommonJS ? __filename : url.fileURLToPath(currentFileUrl);
|
|
31901
31890
|
/**
|
|
31902
31891
|
* A wrapper around the Node.js file-system that supports readonly operations and path manipulation.
|
|
@@ -32526,6 +32515,11 @@ const patchedReferencedAliasesSymbol = Symbol('patchedReferencedAliases');
|
|
|
32526
32515
|
* that have been referenced in a value-position by the transform, such the installed patch can
|
|
32527
32516
|
* ensure that those import declarations are not elided.
|
|
32528
32517
|
*
|
|
32518
|
+
* If `null` is returned then the transform operates in an isolated context, i.e. using the
|
|
32519
|
+
* `ts.transform` API. In such scenario there is no information whether an alias declaration
|
|
32520
|
+
* is referenced, so all alias declarations are naturally preserved and explicitly registering
|
|
32521
|
+
* an alias declaration as used isn't necessary.
|
|
32522
|
+
*
|
|
32529
32523
|
* See below. Note that this uses sourcegraph as the TypeScript checker file doesn't display on
|
|
32530
32524
|
* Github.
|
|
32531
32525
|
* https://sourcegraph.com/github.com/microsoft/TypeScript@3eaa7c65f6f076a08a5f7f1946fd0df7c7430259/-/blob/src/compiler/checker.ts#L31219-31257
|
|
@@ -32537,6 +32531,11 @@ function loadIsReferencedAliasDeclarationPatch(context) {
|
|
|
32537
32531
|
throwIncompatibleTransformationContextError();
|
|
32538
32532
|
}
|
|
32539
32533
|
const emitResolver = context.getEmitResolver();
|
|
32534
|
+
if (emitResolver === undefined) {
|
|
32535
|
+
// In isolated `ts.transform` operations no emit resolver is present, return null as `isReferencedAliasDeclaration`
|
|
32536
|
+
// will never be invoked.
|
|
32537
|
+
return null;
|
|
32538
|
+
}
|
|
32540
32539
|
// The emit resolver may have been patched already, in which case we return the set of referenced
|
|
32541
32540
|
// aliases that was created when the patch was first applied.
|
|
32542
32541
|
// See https://github.com/angular/angular/issues/40276.
|
|
@@ -32662,7 +32661,7 @@ class DefaultImportTracker {
|
|
|
32662
32661
|
if (clausesToPreserve === null) {
|
|
32663
32662
|
clausesToPreserve = loadIsReferencedAliasDeclarationPatch(context);
|
|
32664
32663
|
}
|
|
32665
|
-
clausesToPreserve
|
|
32664
|
+
clausesToPreserve?.add(clause);
|
|
32666
32665
|
}
|
|
32667
32666
|
}
|
|
32668
32667
|
return sourceFile;
|
|
@@ -35859,7 +35858,9 @@ function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
|
35859
35858
|
// doesn't drop these thinking they are unused.
|
|
35860
35859
|
if (reusedOriginalAliasDeclarations.size > 0) {
|
|
35861
35860
|
const referencedAliasDeclarations = loadIsReferencedAliasDeclarationPatch(ctx);
|
|
35862
|
-
|
|
35861
|
+
if (referencedAliasDeclarations !== null) {
|
|
35862
|
+
reusedOriginalAliasDeclarations.forEach((aliasDecl) => referencedAliasDeclarations.add(aliasDecl));
|
|
35863
|
+
}
|
|
35863
35864
|
}
|
|
35864
35865
|
// Update the set of affected files to include files that need extra statements to be inserted.
|
|
35865
35866
|
if (extraStatementsForFiles !== undefined) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,13 +10,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var project_tsconfig_paths = require('./project_tsconfig_paths-6c9cde78.js');
|
|
13
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
13
|
+
var apply_import_manager = require('./apply_import_manager-0648daae.js');
|
|
14
14
|
require('os');
|
|
15
15
|
var ts = require('typescript');
|
|
16
|
-
var checker = require('./checker-
|
|
17
|
-
var program = require('./program-
|
|
16
|
+
var checker = require('./checker-2bdbb582.js');
|
|
17
|
+
var program = require('./program-f43dcb10.js');
|
|
18
18
|
require('path');
|
|
19
|
-
require('./index-
|
|
19
|
+
require('./index-4978a91a.js');
|
|
20
20
|
require('@angular-devkit/core');
|
|
21
21
|
require('node:path/posix');
|
|
22
22
|
require('fs');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
|
-
var checker = require('./checker-
|
|
10
|
+
var checker = require('./checker-2bdbb582.js');
|
|
11
11
|
require('os');
|
|
12
12
|
var p = require('path');
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,8 +10,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
|
-
var compiler_host = require('./compiler_host-
|
|
14
|
-
var checker = require('./checker-
|
|
13
|
+
var compiler_host = require('./compiler_host-9208f64f.js');
|
|
14
|
+
var checker = require('./checker-2bdbb582.js');
|
|
15
15
|
var ts = require('typescript');
|
|
16
16
|
require('os');
|
|
17
17
|
require('fs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -11,11 +11,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
13
|
var project_tsconfig_paths = require('./project_tsconfig_paths-6c9cde78.js');
|
|
14
|
-
var compiler_host = require('./compiler_host-
|
|
14
|
+
var compiler_host = require('./compiler_host-9208f64f.js');
|
|
15
15
|
var ts = require('typescript');
|
|
16
16
|
var imports = require('./imports-31a38653.js');
|
|
17
17
|
require('@angular-devkit/core');
|
|
18
|
-
require('./checker-
|
|
18
|
+
require('./checker-2bdbb582.js');
|
|
19
19
|
require('os');
|
|
20
20
|
require('fs');
|
|
21
21
|
require('module');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
require('os');
|
|
10
10
|
require('typescript');
|
|
11
|
-
var checker = require('./checker-
|
|
12
|
-
require('./program-
|
|
11
|
+
var checker = require('./checker-2bdbb582.js');
|
|
12
|
+
require('./program-f43dcb10.js');
|
|
13
13
|
require('path');
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -17,7 +17,7 @@ require('path');
|
|
|
17
17
|
* @description
|
|
18
18
|
* Entry point for all public APIs of the compiler-cli package.
|
|
19
19
|
*/
|
|
20
|
-
new checker.Version('19.1.
|
|
20
|
+
new checker.Version('19.1.8');
|
|
21
21
|
|
|
22
22
|
var LogLevel;
|
|
23
23
|
(function (LogLevel) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
var checker = require('./checker-
|
|
12
|
-
var program = require('./program-
|
|
11
|
+
var checker = require('./checker-2bdbb582.js');
|
|
12
|
+
var program = require('./program-f43dcb10.js');
|
|
13
13
|
require('path');
|
|
14
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
14
|
+
var apply_import_manager = require('./apply_import_manager-0648daae.js');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,12 +10,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
|
-
var compiler_host = require('./compiler_host-
|
|
13
|
+
var compiler_host = require('./compiler_host-9208f64f.js');
|
|
14
14
|
var ts = require('typescript');
|
|
15
15
|
var nodes = require('./nodes-88c2157f.js');
|
|
16
16
|
var imports = require('./imports-31a38653.js');
|
|
17
17
|
var leading_space = require('./leading_space-6e7a8ec6.js');
|
|
18
|
-
require('./checker-
|
|
18
|
+
require('./checker-2bdbb582.js');
|
|
19
19
|
require('os');
|
|
20
20
|
require('fs');
|
|
21
21
|
require('module');
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var checker = require('./checker-
|
|
9
|
+
var checker = require('./checker-2bdbb582.js');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('os');
|
|
12
12
|
var assert = require('assert');
|
|
13
|
-
var index = require('./index-
|
|
14
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
13
|
+
var index = require('./index-4f59e07e.js');
|
|
14
|
+
var apply_import_manager = require('./apply_import_manager-0648daae.js');
|
|
15
15
|
var leading_space = require('./leading_space-6e7a8ec6.js');
|
|
16
|
-
require('./program-
|
|
16
|
+
require('./program-f43dcb10.js');
|
|
17
17
|
require('path');
|
|
18
18
|
|
|
19
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,13 +10,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var project_tsconfig_paths = require('./project_tsconfig_paths-6c9cde78.js');
|
|
13
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
13
|
+
var apply_import_manager = require('./apply_import_manager-0648daae.js');
|
|
14
14
|
require('os');
|
|
15
15
|
var ts = require('typescript');
|
|
16
|
-
var checker = require('./checker-
|
|
17
|
-
var program = require('./program-
|
|
16
|
+
var checker = require('./checker-2bdbb582.js');
|
|
17
|
+
var program = require('./program-f43dcb10.js');
|
|
18
18
|
require('path');
|
|
19
|
-
var index = require('./index-
|
|
19
|
+
var index = require('./index-4f59e07e.js');
|
|
20
20
|
require('@angular-devkit/core');
|
|
21
21
|
require('node:path/posix');
|
|
22
22
|
require('fs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.
|
|
3
|
+
* @license Angular v19.1.8
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -11,11 +11,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
13
|
var project_tsconfig_paths = require('./project_tsconfig_paths-6c9cde78.js');
|
|
14
|
-
var compiler_host = require('./compiler_host-
|
|
14
|
+
var compiler_host = require('./compiler_host-9208f64f.js');
|
|
15
15
|
var ts = require('typescript');
|
|
16
16
|
var imports = require('./imports-31a38653.js');
|
|
17
17
|
require('@angular-devkit/core');
|
|
18
|
-
require('./checker-
|
|
18
|
+
require('./checker-2bdbb582.js');
|
|
19
19
|
require('os');
|
|
20
20
|
require('fs');
|
|
21
21
|
require('module');
|