🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@angular/core

Package Overview
Dependencies
Maintainers
2
Versions
1082
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/core - npm Package Compare versions

Comparing version
22.0.5
to
22.0.6
+1
-1
fesm2022/_attribute-chunk.mjs
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

{
"name": "@angular/core",
"version": "22.0.5",
"version": "22.0.6",
"description": "Angular - the core framework",

@@ -53,3 +53,3 @@ "author": "angular",

"peerDependencies": {
"@angular/compiler": "22.0.5",
"@angular/compiler": "22.0.6",
"rxjs": "^6.5.3 || ^7.4.0",

@@ -56,0 +56,0 @@ "zone.js": "~0.15.0 || ~0.16.0"

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -34,5 +34,6 @@ * License: MIT

const importManager = new migrations.ImportManager();
const migratedModelReferences = new Set();
const visit = (node) => {
if (ts.isClassDeclaration(node)) {
this.analyzeClass(node, info.program.getTypeChecker(), importManager, replacements, sourceFile, info);
this.analyzeClass(node, info.program.getTypeChecker(), importManager, replacements, sourceFile, info, migratedModelReferences);
}

@@ -42,2 +43,6 @@ ts.forEachChild(node, visit);

visit(sourceFile);
if (migratedModelReferences.size > 0 &&
this.canRemoveModelImport(sourceFile, info.program.getTypeChecker(), migratedModelReferences)) {
importManager.removeImport(sourceFile, 'model', '@angular/core');
}
apply_import_manager.applyImportManagerChanges(importManager, replacements, [sourceFile], info);

@@ -49,3 +54,3 @@ }

}
analyzeClass(classNode, typeChecker, importManager, replacements, sourceFile, info) {
analyzeClass(classNode, typeChecker, importManager, replacements, sourceFile, info, migratedModelReferences) {
const modelProperties = [];

@@ -73,19 +78,3 @@ const outputProperties = new Map();

const call = member.initializer;
let identifier = null;
if (ts.isIdentifier(call.expression)) {
identifier = call.expression;
}
else if (ts.isPropertyAccessExpression(call.expression)) {
let current = call.expression;
while (ts.isPropertyAccessExpression(current)) {
if (ts.isIdentifier(current.name) && current.name.text === 'model') {
identifier = current.name;
break;
}
current = current.expression;
}
if (!identifier && ts.isIdentifier(current) && current.text === 'model') {
identifier = current;
}
}
const identifier = this.getModelIdentifier(call);
if (!identifier)

@@ -110,5 +99,48 @@ continue;

replacements.push(new project_paths.Replacement(project_paths.projectFile(sourceFile, info), update));
const modelIdentifier = this.getModelIdentifier(modelProp.initializer);
if (modelIdentifier !== null) {
migratedModelReferences.add(modelIdentifier);
}
}
}
}
canRemoveModelImport(sourceFile, typeChecker, migratedModelReferences) {
let canRemove = true;
const visit = (node) => {
if (!canRemove) {
return;
}
if (ts.isImportDeclaration(node)) {
return;
}
if (ts.isIdentifier(node)) {
const imp = imports.getImportOfIdentifier(typeChecker, node);
if (imp?.importModule === '@angular/core' && imp.name === 'model') {
canRemove = migratedModelReferences.has(node);
return;
}
}
ts.forEachChild(node, visit);
};
visit(sourceFile);
return canRemove;
}
getModelIdentifier(call) {
if (ts.isIdentifier(call.expression)) {
return call.expression;
}
else if (ts.isPropertyAccessExpression(call.expression)) {
let current = call.expression;
while (ts.isPropertyAccessExpression(current)) {
if (ts.isIdentifier(current.name) && current.name.text === 'model') {
return current.name;
}
current = current.expression;
}
if (ts.isIdentifier(current) && current.text === 'model') {
return current;
}
}
return null;
}
migrateModelProperty(modelProp, importManager, sourceFile) {

@@ -115,0 +147,0 @@ const modelName = modelProp.name.text;

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

'use strict';
/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -5,0 +5,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -121,4 +121,4 @@ * License: MIT

* Chains the current params off of the value of another resource, returning the value
* of the other resource if it is available, or propagating the status to the current resource by
* throwing the appropriate status code if the value is not available.
* of the other resource only when its status is `resolved` or `local`, or propagating status to
* the current resource by throwing the appropriate status code when the value is not available.
*/

@@ -125,0 +125,0 @@ readonly chain: <T>(resource: Resource<T>) => T;

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -275,3 +275,3 @@ * License: MIT

* Configures the `Injector` to return a value for a token.
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -321,3 +321,3 @@ * @usageNotes

* Configures the `Injector` to return an instance of `useClass` for a token.
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -352,3 +352,3 @@ * @usageNotes

*
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -373,3 +373,3 @@ * @usageNotes

*
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -401,3 +401,3 @@ * @usageNotes

* @see {@link ExistingProvider}
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -415,3 +415,3 @@ * @publicApi

*
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -443,3 +443,3 @@ * @usageNotes

* @see {@link FactoryProvider}
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -462,3 +462,3 @@ * @publicApi

* Configures the `Injector` to return a value by invoking a `useFactory` function.
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -495,3 +495,3 @@ * @usageNotes

* @see {@link Injector.create()}
* @see [Dependency Injection Guide](guide/di/dependency-injection-providers).
* @see [Dependency Injection Guide](guide/di/defining-dependency-providers).
*

@@ -507,3 +507,3 @@ * @publicApi

*
* For more details, see the ["Dependency Injection Guide"](guide/di/dependency-injection.
* For more details, see the ["Dependency Injection Guide"](guide/di).
*

@@ -522,3 +522,3 @@ * @usageNotes

*
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -535,3 +535,3 @@ * @publicApi

* Configures the `Injector` to return an instance of `useClass` for a token.
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -565,3 +565,3 @@ * @usageNotes

* Describes how the `Injector` should be configured.
* @see [Dependency Injection Guide](guide/di/dependency-injection)
* @see [Dependency Injection Guide](guide/di)
*

@@ -684,6 +684,6 @@ * @see {@link StaticProvider}

* Concrete injectors implement this interface. Injectors are configured
* with [providers](guide/di/dependency-injection-providers) that associate
* dependencies of various types with [injection tokens](guide/di/dependency-injection-providers).
* with [providers](guide/di/defining-dependency-providers) that associate
* dependencies of various types with [injection tokens](guide/di/defining-dependency-providers).
*
* @see [DI Providers](guide/di/dependency-injection-providers).
* @see [DI Providers](guide/di/defining-dependency-providers).
* @see {@link StaticProvider}

@@ -690,0 +690,0 @@ *

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.5
* @license Angular v22.0.6
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display