Skip to content

Commit

Permalink
8798abb744 refactor(core): implement runtime logic to compute compone…
Browse files Browse the repository at this point in the history
…nt dependencies in local compilation mode (#51377)
  • Loading branch information
AndrewKushnir committed Aug 17, 2023
1 parent fb27814 commit 5131cc3
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions BUILD_INFO
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Thu 17 Aug 2023 09:15:45 PM UTC
0b901a814bbac82ea12b6ff612d4fd5c1e403ea9
Thu 17 Aug 2023 09:16:11 PM UTC
8798abb744ffac34dc4a68d5b2c15befdc26f816
2 changes: 1 addition & 1 deletion esm2022/src/common/src/version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ import { Version } from '@angular/core';
/**
* @publicApi
*/
export const VERSION = new Version('17.0.0-next.0+sha-0b901a8');
export const VERSION = new Version('17.0.0-next.0+sha-8798abb');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3VwZ3JhZGUvc3JjL2NvbW1vbi9zcmMvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSDs7OztHQUlHO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV0Qzs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSB1cGdyYWRlIHBhY2thZ2UuXG4gKi9cblxuaW1wb3J0IHtWZXJzaW9ufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBAcHVibGljQXBpXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gbmV3IFZlcnNpb24oJzAuMC4wLVBMQUNFSE9MREVSJyk7XG4iXX0=
6 changes: 3 additions & 3 deletions esm2022/src/dynamic/src/upgrade_ng1_adapter.mjs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions esm2022/static/src/upgrade_component.mjs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions esm2022/static/src/upgrade_module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ export class UpgradeModule {
}
return returnValue;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeModule, deps: [{ token: i0.Injector }, { token: i0.NgZone }, { token: i0.PlatformRef }], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeModule, providers: [angular1Providers] }); }
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeModule, deps: [{ token: i0.Injector }, { token: i0.NgZone }, { token: i0.PlatformRef }], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeModule, providers: [angular1Providers] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeModule, decorators: [{
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeModule, decorators: [{
type: NgModule,
args: [{ providers: [angular1Providers] }]
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.NgZone }, { type: i0.PlatformRef }]; } });
Expand Down
8 changes: 4 additions & 4 deletions esm2022/static/testing/src/create_angular_testing_module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export class AngularTestingModule {
constructor(i) {
injector = i;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: AngularTestingModule, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: AngularTestingModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: AngularTestingModule, providers: [{ provide: $INJECTOR, useFactory: $injectorFactory }] }); }
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: AngularTestingModule, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: AngularTestingModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: AngularTestingModule, providers: [{ provide: $INJECTOR, useFactory: $injectorFactory }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: AngularTestingModule, decorators: [{
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: AngularTestingModule, decorators: [{
type: NgModule,
args: [{ providers: [{ provide: $INJECTOR, useFactory: $injectorFactory }] }]
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
Expand Down
18 changes: 9 additions & 9 deletions fesm2022/static.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Angular v17.0.0-next.0+sha-0b901a8
* @license Angular v17.0.0-next.0+sha-8798abb
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
Expand Down Expand Up @@ -851,7 +851,7 @@ function downgradeInjectable(token, downgradedModule = '') {
/**
* @publicApi
*/
const VERSION = new Version('17.0.0-next.0+sha-0b901a8');
const VERSION = new Version('17.0.0-next.0+sha-8798abb');

// We have to do a little dance to get the ng1 injector into the module injector.
// We store the ng1 injector so that the provider in the module injector can access it
Expand Down Expand Up @@ -1546,10 +1546,10 @@ class UpgradeComponent {
bindingDestination.$onChanges(changes);
}
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-0b901a8", type: UpgradeComponent, usesOnChanges: true, ngImport: i0 }); }
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-8798abb", type: UpgradeComponent, usesOnChanges: true, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeComponent, decorators: [{
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeComponent, decorators: [{
type: Directive
}], ctorParameters: function () { return [{ type: undefined }, { type: i0.ElementRef }, { type: i0.Injector }]; } });

Expand Down Expand Up @@ -1822,11 +1822,11 @@ class UpgradeModule {
}
return returnValue;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeModule, deps: [{ token: i0.Injector }, { token: i0.NgZone }, { token: i0.PlatformRef }], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeModule, providers: [angular1Providers] }); }
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeModule, deps: [{ token: i0.Injector }, { token: i0.NgZone }, { token: i0.PlatformRef }], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeModule, providers: [angular1Providers] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeModule, decorators: [{
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeModule, decorators: [{
type: NgModule,
args: [{ providers: [angular1Providers] }]
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.NgZone }, { type: i0.PlatformRef }]; } });
Expand Down
2 changes: 1 addition & 1 deletion fesm2022/static.mjs.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions fesm2022/static/testing.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Angular v17.0.0-next.0+sha-0b901a8
* @license Angular v17.0.0-next.0+sha-8798abb
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
Expand Down Expand Up @@ -109,11 +109,11 @@ class AngularTestingModule {
constructor(i) {
injector = i;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: AngularTestingModule, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: AngularTestingModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: AngularTestingModule, providers: [{ provide: $INJECTOR, useFactory: $injectorFactory }] }); }
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: AngularTestingModule, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: AngularTestingModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: AngularTestingModule, providers: [{ provide: $INJECTOR, useFactory: $injectorFactory }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: AngularTestingModule, decorators: [{
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: AngularTestingModule, decorators: [{
type: NgModule,
args: [{ providers: [{ provide: $INJECTOR, useFactory: $injectorFactory }] }]
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
Expand Down
10 changes: 5 additions & 5 deletions fesm2022/upgrade.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Angular v17.0.0-next.0+sha-0b901a8
* @license Angular v17.0.0-next.0+sha-8798abb
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
Expand All @@ -17,7 +17,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
/**
* @publicApi
*/
const VERSION = new Version('17.0.0-next.0+sha-0b901a8');
const VERSION = new Version('17.0.0-next.0+sha-8798abb');

function noNg() {
throw new Error('AngularJS v1.x is not loaded!');
Expand Down Expand Up @@ -1288,10 +1288,10 @@ class UpgradeNg1ComponentAdapter {
setComponentProperty(name, value) {
this.destinationObj[this.propertyMap[name]] = value;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeNg1ComponentAdapter, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-0b901a8", type: UpgradeNg1ComponentAdapter, usesOnChanges: true, ngImport: i0 }); }
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeNg1ComponentAdapter, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.0+sha-8798abb", type: UpgradeNg1ComponentAdapter, usesOnChanges: true, ngImport: i0 }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-0b901a8", ngImport: i0, type: UpgradeNg1ComponentAdapter, decorators: [{
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0+sha-8798abb", ngImport: i0, type: UpgradeNg1ComponentAdapter, decorators: [{
type: Directive
}], ctorParameters: function () { return [{ type: UpgradeHelper }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }]; } });

Expand Down
2 changes: 1 addition & 1 deletion fesm2022/upgrade.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Angular v17.0.0-next.0+sha-0b901a8
* @license Angular v17.0.0-next.0+sha-8798abb
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@angular/upgrade",
"version": "17.0.0-next.0+sha-0b901a8",
"version": "17.0.0-next.0+sha-8798abb",
"description": "Angular - the library for easing update from v1 to v2",
"author": "angular",
"license": "MIT",
Expand All @@ -11,10 +11,10 @@
"tslib": "^2.3.0"
},
"peerDependencies": {
"@angular/core": "17.0.0-next.0+sha-0b901a8",
"@angular/compiler": "17.0.0-next.0+sha-0b901a8",
"@angular/platform-browser": "17.0.0-next.0+sha-0b901a8",
"@angular/platform-browser-dynamic": "17.0.0-next.0+sha-0b901a8"
"@angular/core": "17.0.0-next.0+sha-8798abb",
"@angular/compiler": "17.0.0-next.0+sha-8798abb",
"@angular/platform-browser": "17.0.0-next.0+sha-8798abb",
"@angular/platform-browser-dynamic": "17.0.0-next.0+sha-8798abb"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion static/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Angular v17.0.0-next.0+sha-0b901a8
* @license Angular v17.0.0-next.0+sha-8798abb
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion static/testing/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Angular v17.0.0-next.0+sha-0b901a8
* @license Angular v17.0.0-next.0+sha-8798abb
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
Expand Down

0 comments on commit 5131cc3

Please sign in to comment.