@angular/core 20.2.3 → 20.3.0-rc.0
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/api.d.d.ts +1 -1
- package/chrome_dev_tools_performance.d.d.ts +1 -1
- package/discovery.d.d.ts +1 -1
- package/effect.d.d.ts +1 -1
- package/event_dispatcher.d.d.ts +1 -1
- package/fesm2022/attribute.mjs +1 -1
- package/fesm2022/attribute.mjs.map +1 -1
- package/fesm2022/core.mjs +35 -26
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +2 -2
- package/fesm2022/debug_node.mjs.map +1 -1
- package/fesm2022/effect.mjs +1 -1
- package/fesm2022/effect.mjs.map +1 -1
- package/fesm2022/not_found.mjs +1 -1
- package/fesm2022/not_found.mjs.map +1 -1
- package/fesm2022/primitives/di.mjs +1 -1
- package/fesm2022/primitives/di.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/resource.mjs +1 -1
- package/fesm2022/resource.mjs.map +1 -1
- package/fesm2022/root_effect_scheduler.mjs +1 -1
- package/fesm2022/root_effect_scheduler.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/signal.mjs +1 -1
- package/fesm2022/signal.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/weak_ref.mjs +1 -1
- package/fesm2022/weak_ref.mjs.map +1 -1
- package/graph.d.d.ts +1 -1
- package/index.d.ts +7 -8
- package/package.json +2 -2
- package/primitives/di/index.d.ts +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/add-bootstrap-context-to-server-main.cjs +135 -0
- package/schematics/bundles/{apply_import_manager-BTXb3nRr.cjs → apply_import_manager-CeOmw2t5.cjs} +3 -3
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/{compiler_host-Btt7nH4b.cjs → compiler_host-CXabxf2P.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +3 -3
- package/schematics/bundles/document-core.cjs +5 -5
- package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
- package/schematics/bundles/{index-rL7rOVXa.cjs → index-CKtFJ_6n.cjs} +4 -4
- package/schematics/bundles/{index-CAfBb4YL.cjs → index-CLpTl6rd.cjs} +33 -12
- package/schematics/bundles/inject-flags.cjs +5 -5
- package/schematics/bundles/inject-migration.cjs +142 -47
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Dyjkgb1x.cjs → migrate_ts_type_references-CjIN7lkE.cjs} +5 -5
- package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/{project_paths-BUuKobrE.cjs → project_paths-CGqaSutM.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-x7xrmbI9.cjs → project_tsconfig_paths-RAvhwg8f.cjs} +11 -3
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/router-current-navigation.cjs +4 -4
- package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
- package/schematics/bundles/signal-input-migration.cjs +7 -7
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +4 -4
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/bundles/test-bed-get.cjs +4 -4
- package/schematics/migrations.json +5 -0
- package/testing/index.d.ts +1 -1
- package/weak_ref.d.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
var schematics = require('@angular-devkit/schematics');
|
|
10
10
|
var p = require('path');
|
|
11
|
-
var compiler_host = require('./compiler_host-
|
|
11
|
+
var compiler_host = require('./compiler_host-CXabxf2P.cjs');
|
|
12
12
|
var ts = require('typescript');
|
|
13
13
|
var ng_decorators = require('./ng_decorators-B5HCqr20.cjs');
|
|
14
14
|
var imports = require('./imports-CIX-JgAN.cjs');
|
|
15
15
|
var nodes = require('./nodes-B16H9JUd.cjs');
|
|
16
16
|
var leading_space = require('./leading_space-D9nQ8UQC.cjs');
|
|
17
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
17
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
18
18
|
require('os');
|
|
19
19
|
require('fs');
|
|
20
20
|
require('module');
|
|
@@ -820,67 +820,162 @@ function migrateClass(node, constructor, superCall, options, memberIndentation,
|
|
|
820
820
|
* @param afterSuper Statements to be added after the `super` call.
|
|
821
821
|
*/
|
|
822
822
|
function migrateParameter(node, options, localTypeChecker, printer, tracker, superCall, usedInSuper, usedInConstructor, usesOtherParams, memberIndentation, innerIndentation, prependToConstructor, propsToAdd, afterSuper) {
|
|
823
|
-
|
|
823
|
+
const context = {
|
|
824
|
+
node,
|
|
825
|
+
options,
|
|
826
|
+
localTypeChecker,
|
|
827
|
+
printer,
|
|
828
|
+
tracker,
|
|
829
|
+
superCall,
|
|
830
|
+
usedInSuper,
|
|
831
|
+
usedInConstructor,
|
|
832
|
+
usesOtherParams,
|
|
833
|
+
memberIndentation,
|
|
834
|
+
innerIndentation,
|
|
835
|
+
prependToConstructor,
|
|
836
|
+
propsToAdd,
|
|
837
|
+
afterSuper,
|
|
838
|
+
};
|
|
839
|
+
if (ts.isIdentifier(node.name)) {
|
|
840
|
+
migrateIdentifierParameter(context, node.name);
|
|
841
|
+
}
|
|
842
|
+
else if (ts.isObjectBindingPattern(node.name)) {
|
|
843
|
+
migrateObjectBindingParameter(context, node.name);
|
|
844
|
+
}
|
|
845
|
+
else {
|
|
824
846
|
return;
|
|
825
847
|
}
|
|
826
|
-
|
|
848
|
+
}
|
|
849
|
+
function migrateIdentifierParameter(context, name) {
|
|
850
|
+
const { node, options, localTypeChecker, printer, tracker, usedInConstructor, usesOtherParams } = context;
|
|
827
851
|
const replacementCall = createInjectReplacementCall(node, options, localTypeChecker, printer, tracker);
|
|
828
852
|
const declaresProp = parameterDeclaresProperty(node);
|
|
829
853
|
// If the parameter declares a property, we need to declare it (e.g. `private foo: Foo`).
|
|
830
854
|
if (declaresProp) {
|
|
831
|
-
|
|
832
|
-
// other parameters. See the logic further below for the initialization.
|
|
833
|
-
const canInitialize = !usedInSuper && !usesOtherParams;
|
|
834
|
-
const prop = ts.factory.createPropertyDeclaration(cloneModifiers(node.modifiers?.filter((modifier) => {
|
|
835
|
-
// Strip out the DI decorators, as well as `public` which is redundant.
|
|
836
|
-
return !ts.isDecorator(modifier) && modifier.kind !== ts.SyntaxKind.PublicKeyword;
|
|
837
|
-
})), name,
|
|
838
|
-
// Don't add the question token to private properties since it won't affect interface implementation.
|
|
839
|
-
node.modifiers?.some((modifier) => modifier.kind === ts.SyntaxKind.PrivateKeyword)
|
|
840
|
-
? undefined
|
|
841
|
-
: node.questionToken, canInitialize ? undefined : node.type, canInitialize ? ts.factory.createIdentifier(PLACEHOLDER) : undefined);
|
|
842
|
-
propsToAdd.push(memberIndentation +
|
|
843
|
-
replaceNodePlaceholder(node.getSourceFile(), prop, replacementCall, printer));
|
|
855
|
+
handlePropertyDeclaration(context, name, replacementCall);
|
|
844
856
|
}
|
|
845
857
|
// If the parameter is referenced within the constructor, we need to declare it as a variable.
|
|
846
858
|
if (usedInConstructor) {
|
|
847
|
-
|
|
848
|
-
// Usages of `this` aren't allowed before `super` calls so we need to
|
|
849
|
-
// create a variable which calls `inject()` directly instead...
|
|
850
|
-
prependToConstructor.push(`${innerIndentation}const ${name} = ${replacementCall};`);
|
|
851
|
-
// ...then we can initialize the property after the `super` call.
|
|
852
|
-
if (declaresProp) {
|
|
853
|
-
afterSuper.push(`${innerIndentation}this.${name} = ${name};`);
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
else if (declaresProp) {
|
|
857
|
-
// If the parameter declares a property (`private foo: foo`) and is used inside the class
|
|
858
|
-
// at the same time, we need to ensure that it's initialized to the value from the variable
|
|
859
|
-
// and that we only reference `this` after the `super` call.
|
|
860
|
-
const initializer = `${innerIndentation}const ${name} = this.${name};`;
|
|
861
|
-
if (superCall === null) {
|
|
862
|
-
prependToConstructor.push(initializer);
|
|
863
|
-
}
|
|
864
|
-
else {
|
|
865
|
-
afterSuper.push(initializer);
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
else {
|
|
869
|
-
// If the parameter is only referenced in the constructor, we
|
|
870
|
-
// don't need to declare any new properties.
|
|
871
|
-
prependToConstructor.push(`${innerIndentation}const ${name} = ${replacementCall};`);
|
|
872
|
-
}
|
|
859
|
+
handleConstructorUsage(context, name.text, replacementCall, declaresProp);
|
|
873
860
|
}
|
|
874
861
|
else if (usesOtherParams && declaresProp) {
|
|
875
|
-
|
|
862
|
+
handleParameterWithDependencies(context, name.text, replacementCall);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
function handlePropertyDeclaration(context, name, replacementCall) {
|
|
866
|
+
const { node, memberIndentation, propsToAdd } = context;
|
|
867
|
+
const canInitialize = !context.usedInSuper && !context.usesOtherParams;
|
|
868
|
+
const prop = ts.factory.createPropertyDeclaration(cloneModifiers(node.modifiers?.filter((modifier) => {
|
|
869
|
+
return !ts.isDecorator(modifier) && modifier.kind !== ts.SyntaxKind.PublicKeyword;
|
|
870
|
+
})), name, node.modifiers?.some((modifier) => modifier.kind === ts.SyntaxKind.PrivateKeyword)
|
|
871
|
+
? undefined
|
|
872
|
+
: node.questionToken, canInitialize ? undefined : node.type, canInitialize ? ts.factory.createIdentifier(PLACEHOLDER) : undefined);
|
|
873
|
+
propsToAdd.push(memberIndentation +
|
|
874
|
+
replaceNodePlaceholder(node.getSourceFile(), prop, replacementCall, context.printer));
|
|
875
|
+
}
|
|
876
|
+
function handleConstructorUsage(context, name, replacementCall, declaresProp) {
|
|
877
|
+
const { innerIndentation, prependToConstructor, afterSuper, superCall } = context;
|
|
878
|
+
if (context.usedInSuper) {
|
|
879
|
+
// Usages of `this` aren't allowed before `super` calls so we need to
|
|
880
|
+
// create a variable which calls `inject()` directly instead...
|
|
881
|
+
prependToConstructor.push(`${innerIndentation}const ${name} = ${replacementCall};`);
|
|
882
|
+
if (declaresProp) {
|
|
883
|
+
afterSuper.push(`${innerIndentation}this.${name} = ${name};`);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
else if (declaresProp) {
|
|
887
|
+
// If the parameter declares a property (`private foo: foo`) and is used inside the class
|
|
888
|
+
// at the same time, we need to ensure that it's initialized to the value from the variable
|
|
889
|
+
// and that we only reference `this` after the `super` call.
|
|
890
|
+
const initializer = `${innerIndentation}const ${name} = this.${name};`;
|
|
876
891
|
if (superCall === null) {
|
|
877
|
-
prependToConstructor.push(
|
|
892
|
+
prependToConstructor.push(initializer);
|
|
878
893
|
}
|
|
879
894
|
else {
|
|
880
|
-
afterSuper.push(
|
|
895
|
+
afterSuper.push(initializer);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
else {
|
|
899
|
+
// If the parameter is only referenced in the constructor, we
|
|
900
|
+
// don't need to declare any new properties.
|
|
901
|
+
prependToConstructor.push(`${innerIndentation}const ${name} = ${replacementCall};`);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
function handleParameterWithDependencies(context, name, replacementCall) {
|
|
905
|
+
const { innerIndentation, prependToConstructor, afterSuper, superCall } = context;
|
|
906
|
+
const toAdd = `${innerIndentation}this.${name} = ${replacementCall};`;
|
|
907
|
+
if (superCall === null) {
|
|
908
|
+
prependToConstructor.push(toAdd);
|
|
909
|
+
}
|
|
910
|
+
else {
|
|
911
|
+
afterSuper.push(toAdd);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
function migrateObjectBindingParameter(context, bindingPattern) {
|
|
915
|
+
const { node, options, localTypeChecker, printer, tracker } = context;
|
|
916
|
+
const replacementCall = createInjectReplacementCall(node, options, localTypeChecker, printer, tracker);
|
|
917
|
+
for (const element of bindingPattern.elements) {
|
|
918
|
+
if (ts.isBindingElement(element) && ts.isIdentifier(element.name)) {
|
|
919
|
+
migrateBindingElement(context, element, element.name, replacementCall);
|
|
881
920
|
}
|
|
882
921
|
}
|
|
883
922
|
}
|
|
923
|
+
function migrateBindingElement(context, element, elementName, replacementCall) {
|
|
924
|
+
const propertyName = elementName.text;
|
|
925
|
+
// Determines how to access the property
|
|
926
|
+
const propertyAccess = element.propertyName
|
|
927
|
+
? `${replacementCall}.${element.propertyName.getText()}`
|
|
928
|
+
: `${replacementCall}.${propertyName}`;
|
|
929
|
+
createPropertyForBindingElement(context, propertyName, propertyAccess);
|
|
930
|
+
if (context.usedInConstructor) {
|
|
931
|
+
handleConstructorUsageBindingElement(context, element, propertyName);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
function handleConstructorUsageBindingElement(context, element, propertyName) {
|
|
935
|
+
const { tracker, localTypeChecker, node: paramNode } = context;
|
|
936
|
+
const constructorDecl = paramNode.parent;
|
|
937
|
+
// Check in constructor or exist body content
|
|
938
|
+
if (!ts.isConstructorDeclaration(constructorDecl) || !constructorDecl.body) {
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
// Get the unique "symbol" for our unstructured property.
|
|
942
|
+
const symbol = localTypeChecker.getSymbolAtLocation(element.name);
|
|
943
|
+
if (!symbol) {
|
|
944
|
+
return;
|
|
945
|
+
}
|
|
946
|
+
// Visit recursive function navigate constructor
|
|
947
|
+
const visit = (node) => {
|
|
948
|
+
// Check if current node is identifier (variable)
|
|
949
|
+
if (ts.isIdentifier(node)) {
|
|
950
|
+
// Using the type checker, verify that this identifier refers
|
|
951
|
+
// exactly to our destructured parameter and is not the node of the original declaration.
|
|
952
|
+
if (localTypeChecker.getSymbolAtLocation(node) === symbol && node !== element.name) {
|
|
953
|
+
// If the identifier is used as a shorthand property in an object literal (e.g., { myVar }),
|
|
954
|
+
// must replace the entire `ShorthandPropertyAssignment` node
|
|
955
|
+
// with a `PropertyAssignment` (e.g., myVar: this.myVar).
|
|
956
|
+
if (ts.isShorthandPropertyAssignment(node.parent)) {
|
|
957
|
+
tracker.replaceNode(node.parent, ts.factory.createPropertyAssignment(node, ts.factory.createPropertyAccessExpression(ts.factory.createThis(), propertyName)));
|
|
958
|
+
}
|
|
959
|
+
else {
|
|
960
|
+
// Otherwise, replace the identifier with `this.propertyName`.
|
|
961
|
+
tracker.replaceNode(node, ts.factory.createPropertyAccessExpression(ts.factory.createThis(), propertyName));
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
ts.forEachChild(node, visit);
|
|
966
|
+
};
|
|
967
|
+
visit(constructorDecl.body);
|
|
968
|
+
}
|
|
969
|
+
function createPropertyForBindingElement(context, propertyName, propertyAccess) {
|
|
970
|
+
const { node, memberIndentation, propsToAdd } = context;
|
|
971
|
+
const prop = ts.factory.createPropertyDeclaration(cloneModifiers(node.modifiers?.filter((modifier) => {
|
|
972
|
+
return !ts.isDecorator(modifier) && modifier.kind !== ts.SyntaxKind.PublicKeyword;
|
|
973
|
+
})), propertyName, node.modifiers?.some((modifier) => modifier.kind === ts.SyntaxKind.PrivateKeyword)
|
|
974
|
+
? undefined
|
|
975
|
+
: node.questionToken, undefined, ts.factory.createIdentifier(PLACEHOLDER));
|
|
976
|
+
propsToAdd.push(memberIndentation +
|
|
977
|
+
replaceNodePlaceholder(node.getSourceFile(), prop, propertyAccess, context.printer));
|
|
978
|
+
}
|
|
884
979
|
/**
|
|
885
980
|
* Creates a replacement `inject` call from a function parameter.
|
|
886
981
|
* @param param Parameter for which to generate the `inject` call.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
9
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('os');
|
|
12
12
|
var assert = require('assert');
|
|
13
|
-
var index = require('./index-
|
|
14
|
-
var project_paths = require('./project_paths-
|
|
13
|
+
var index = require('./index-CKtFJ_6n.cjs');
|
|
14
|
+
var project_paths = require('./project_paths-CGqaSutM.cjs');
|
|
15
15
|
var leading_space = require('./leading_space-D9nQ8UQC.cjs');
|
|
16
|
-
require('./index-
|
|
16
|
+
require('./index-CLpTl6rd.cjs');
|
|
17
17
|
require('path');
|
|
18
18
|
require('node:path');
|
|
19
19
|
var assert$1 = require('node:assert');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
12
|
-
var index$1 = require('./index-
|
|
11
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
12
|
+
var index$1 = require('./index-CLpTl6rd.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
16
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
17
|
-
var index = require('./index-
|
|
15
|
+
var project_paths = require('./project_paths-CGqaSutM.cjs');
|
|
16
|
+
var apply_import_manager = require('./apply_import_manager-CeOmw2t5.cjs');
|
|
17
|
+
var index = require('./index-CKtFJ_6n.cjs');
|
|
18
18
|
require('@angular-devkit/core');
|
|
19
19
|
require('node:path/posix');
|
|
20
20
|
require('fs');
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var index = require('./index-
|
|
9
|
+
var index = require('./index-CLpTl6rd.cjs');
|
|
10
10
|
var schematics = require('@angular-devkit/schematics');
|
|
11
11
|
var core = require('@angular-devkit/core');
|
|
12
12
|
var posixPath = require('node:path/posix');
|
|
13
13
|
var os = require('os');
|
|
14
14
|
var ts = require('typescript');
|
|
15
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
15
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
16
16
|
require('path');
|
|
17
17
|
var path = require('node:path');
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -32838,7 +32838,7 @@ function isAttrNode(ast) {
|
|
|
32838
32838
|
* @description
|
|
32839
32839
|
* Entry point for all public APIs of the compiler package.
|
|
32840
32840
|
*/
|
|
32841
|
-
new Version('20.
|
|
32841
|
+
new Version('20.3.0-rc.0');
|
|
32842
32842
|
|
|
32843
32843
|
//////////////////////////////////////
|
|
32844
32844
|
// THIS FILE HAS GLOBAL SIDE EFFECT //
|
|
@@ -33873,7 +33873,7 @@ class NodeJSPathManipulation {
|
|
|
33873
33873
|
// G3-ESM-MARKER: G3 uses CommonJS, but externally everything in ESM.
|
|
33874
33874
|
// CommonJS/ESM interop for determining the current file name and containing dir.
|
|
33875
33875
|
const isCommonJS = typeof __filename !== 'undefined';
|
|
33876
|
-
const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('project_tsconfig_paths-
|
|
33876
|
+
const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('project_tsconfig_paths-RAvhwg8f.cjs', document.baseURI).href));
|
|
33877
33877
|
// Note, when this code loads in the browser, `url` may be an empty `{}` due to the Closure shims.
|
|
33878
33878
|
const currentFileName = isCommonJS
|
|
33879
33879
|
? __filename
|
|
@@ -42938,12 +42938,18 @@ class MagicString {
|
|
|
42938
42938
|
if (this.byStart[index] || this.byEnd[index]) return;
|
|
42939
42939
|
|
|
42940
42940
|
let chunk = this.lastSearchedChunk;
|
|
42941
|
+
let previousChunk = chunk;
|
|
42941
42942
|
const searchForward = index > chunk.end;
|
|
42942
42943
|
|
|
42943
42944
|
while (chunk) {
|
|
42944
42945
|
if (chunk.contains(index)) return this._splitChunk(chunk, index);
|
|
42945
42946
|
|
|
42946
42947
|
chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
|
|
42948
|
+
|
|
42949
|
+
// Prevent infinite loop (e.g. via empty chunks, where start === end)
|
|
42950
|
+
if (chunk === previousChunk) return;
|
|
42951
|
+
|
|
42952
|
+
previousChunk = chunk;
|
|
42947
42953
|
}
|
|
42948
42954
|
}
|
|
42949
42955
|
|
|
@@ -50872,6 +50878,7 @@ exports.INPUT_INITIALIZER_FN = INPUT_INITIALIZER_FN;
|
|
|
50872
50878
|
exports.Icu = Icu;
|
|
50873
50879
|
exports.IcuPlaceholder = IcuPlaceholder;
|
|
50874
50880
|
exports.Identifiers = Identifiers;
|
|
50881
|
+
exports.IfBlock = IfBlock;
|
|
50875
50882
|
exports.ImplicitReceiver = ImplicitReceiver;
|
|
50876
50883
|
exports.ImportManager = ImportManager;
|
|
50877
50884
|
exports.Interpolation = Interpolation$1;
|
|
@@ -50918,6 +50925,7 @@ exports.SafePropertyRead = SafePropertyRead;
|
|
|
50918
50925
|
exports.SelectorMatcher = SelectorMatcher;
|
|
50919
50926
|
exports.SelectorlessMatcher = SelectorlessMatcher;
|
|
50920
50927
|
exports.Serializer = Serializer;
|
|
50928
|
+
exports.SwitchBlock = SwitchBlock;
|
|
50921
50929
|
exports.Tag = Tag;
|
|
50922
50930
|
exports.TagPlaceholder = TagPlaceholder;
|
|
50923
50931
|
exports.Template = Template;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
var schematics = require('@angular-devkit/schematics');
|
|
10
10
|
var fs = require('fs');
|
|
11
11
|
var p = require('path');
|
|
12
|
-
var compiler_host = require('./compiler_host-
|
|
13
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
12
|
+
var compiler_host = require('./compiler_host-CXabxf2P.cjs');
|
|
13
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
14
14
|
var ts = require('typescript');
|
|
15
15
|
var property_name = require('./property_name-BBwFuqMe.cjs');
|
|
16
16
|
require('os');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
require('./project_tsconfig_paths-
|
|
12
|
-
require('./index-
|
|
11
|
+
require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
12
|
+
require('./index-CLpTl6rd.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
15
|
+
var project_paths = require('./project_paths-CGqaSutM.cjs');
|
|
16
16
|
var imports = require('./imports-CIX-JgAN.cjs');
|
|
17
17
|
var symbol = require('./symbol-VPWguRxr.cjs');
|
|
18
18
|
require('@angular-devkit/core');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
12
|
-
require('./index-
|
|
11
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
12
|
+
require('./index-CLpTl6rd.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
15
|
+
var project_paths = require('./project_paths-CGqaSutM.cjs');
|
|
16
16
|
var ng_decorators = require('./ng_decorators-B5HCqr20.cjs');
|
|
17
17
|
var property_name = require('./property_name-BBwFuqMe.cjs');
|
|
18
18
|
require('@angular-devkit/core');
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
9
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-CjIN7lkE.cjs');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('os');
|
|
12
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
13
|
-
var index$1 = require('./index-
|
|
12
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
13
|
+
var index$1 = require('./index-CLpTl6rd.cjs');
|
|
14
14
|
require('path');
|
|
15
15
|
require('node:path');
|
|
16
|
-
var project_paths = require('./project_paths-
|
|
17
|
-
var index = require('./index-
|
|
16
|
+
var project_paths = require('./project_paths-CGqaSutM.cjs');
|
|
17
|
+
var index = require('./index-CKtFJ_6n.cjs');
|
|
18
18
|
var assert$1 = require('assert');
|
|
19
19
|
var assert = require('node:assert');
|
|
20
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
20
|
+
var apply_import_manager = require('./apply_import_manager-CeOmw2t5.cjs');
|
|
21
21
|
require('@angular-devkit/core');
|
|
22
22
|
require('node:path/posix');
|
|
23
23
|
require('./leading_space-D9nQ8UQC.cjs');
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
9
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('os');
|
|
12
|
-
var index$1 = require('./index-
|
|
12
|
+
var index$1 = require('./index-CLpTl6rd.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
16
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
17
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
15
|
+
var project_paths = require('./project_paths-CGqaSutM.cjs');
|
|
16
|
+
var apply_import_manager = require('./apply_import_manager-CeOmw2t5.cjs');
|
|
17
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-CjIN7lkE.cjs');
|
|
18
18
|
var assert = require('assert');
|
|
19
19
|
require('node:assert');
|
|
20
|
-
var index = require('./index-
|
|
20
|
+
var index = require('./index-CKtFJ_6n.cjs');
|
|
21
21
|
require('@angular-devkit/core');
|
|
22
22
|
require('node:path/posix');
|
|
23
23
|
require('fs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,7 +10,7 @@ var schematics = require('@angular-devkit/schematics');
|
|
|
10
10
|
var signalQueriesMigration = require('./signal-queries-migration.cjs');
|
|
11
11
|
var signalInputMigration = require('./signal-input-migration.cjs');
|
|
12
12
|
var outputMigration = require('./output-migration.cjs');
|
|
13
|
-
require('./project_tsconfig_paths-
|
|
13
|
+
require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
14
14
|
require('typescript');
|
|
15
15
|
require('os');
|
|
16
16
|
require('fs');
|
|
@@ -18,14 +18,14 @@ require('module');
|
|
|
18
18
|
require('path');
|
|
19
19
|
require('url');
|
|
20
20
|
require('@angular-devkit/core');
|
|
21
|
-
require('./index-
|
|
21
|
+
require('./index-CLpTl6rd.cjs');
|
|
22
22
|
require('node:path');
|
|
23
|
-
require('./project_paths-
|
|
23
|
+
require('./project_paths-CGqaSutM.cjs');
|
|
24
24
|
require('node:path/posix');
|
|
25
|
-
require('./apply_import_manager-
|
|
26
|
-
require('./migrate_ts_type_references-
|
|
25
|
+
require('./apply_import_manager-CeOmw2t5.cjs');
|
|
26
|
+
require('./migrate_ts_type_references-CjIN7lkE.cjs');
|
|
27
27
|
require('assert');
|
|
28
|
-
require('./index-
|
|
28
|
+
require('./index-CKtFJ_6n.cjs');
|
|
29
29
|
require('./leading_space-D9nQ8UQC.cjs');
|
|
30
30
|
require('node:assert');
|
|
31
31
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
var schematics = require('@angular-devkit/schematics');
|
|
10
|
-
var index = require('./index-
|
|
10
|
+
var index = require('./index-CLpTl6rd.cjs');
|
|
11
11
|
var fs = require('fs');
|
|
12
12
|
var p = require('path');
|
|
13
13
|
var ts = require('typescript');
|
|
14
|
-
var compiler_host = require('./compiler_host-
|
|
15
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
14
|
+
var compiler_host = require('./compiler_host-CXabxf2P.cjs');
|
|
15
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
16
16
|
var ng_decorators = require('./ng_decorators-B5HCqr20.cjs');
|
|
17
17
|
var nodes = require('./nodes-B16H9JUd.cjs');
|
|
18
18
|
var symbol = require('./symbol-VPWguRxr.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.
|
|
3
|
+
* @license Angular v20.3.0-rc.0
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
require('./project_tsconfig_paths-
|
|
12
|
-
require('./index-
|
|
11
|
+
require('./project_tsconfig_paths-RAvhwg8f.cjs');
|
|
12
|
+
require('./index-CLpTl6rd.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
15
|
+
var project_paths = require('./project_paths-CGqaSutM.cjs');
|
|
16
16
|
var imports = require('./imports-CIX-JgAN.cjs');
|
|
17
17
|
var symbol = require('./symbol-VPWguRxr.cjs');
|
|
18
18
|
require('@angular-devkit/core');
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"description": "Replaces usages of the deprecated Router.getCurrentNavigation method with the Router.currentNavigation signal",
|
|
27
27
|
"factory": "./bundles/router-current-navigation.cjs#migrate",
|
|
28
28
|
"optional": true
|
|
29
|
+
},
|
|
30
|
+
"add-bootstrap-context-to-server-main": {
|
|
31
|
+
"version": "20.3.0",
|
|
32
|
+
"description": "Adds `BootstrapContext` to `bootstrapApplication` calls in `main.server.ts` to support server rendering.",
|
|
33
|
+
"factory": "./bundles/add-bootstrap-context-to-server-main.cjs#migrate"
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
}
|
package/testing/index.d.ts
CHANGED