Skip to content

Conversation

tbosch
Copy link
Contributor

@tbosch tbosch commented Oct 20, 2017

…new api

Usages of NgTools_InternalApi_NG_2 from @angular/compiler-cli will now
throw an error.

Adds listLazyRoutes to @angular/compiler-cli/ngtools2.ts for getting
the lazy routes of a ng.Program.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] angular.io application / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@tbosch tbosch requested review from chuckjaz and hansl October 20, 2017 18:36
@@ -28,15 +28,15 @@ export function main(
let {project, rootNames, options, errors: configErrors, watch, emitFlags} =
config || readNgcCommandLineAndConfiguration(args);
if (configErrors.length) {
return reportErrorsAndExit(configErrors, consoleError);
return reportErrorsAndExit(configErrors, undefined, consoleError);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put a /* options */ in front of undefined to indicate what parameter you are skipping.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mary-poppins
Copy link

You can preview a2d6859 at https://pr19836-a2d6859.ngbuilds.io/.

@tbosch
Copy link
Contributor Author

tbosch commented Oct 20, 2017

Fails now on the expected error Error: Please update @angular/cli. Angular 5+ requires at least Angular CLI 1.5+.

@mary-poppins
Copy link

You can preview 2fcfa6c at https://pr19836-2fcfa6c.ngbuilds.io/.

@tbosch tbosch force-pushed the remove_old_api branch 2 times, most recently from 8ee2997 to aa5802d Compare October 20, 2017 21:50
@mary-poppins
Copy link

You can preview 8ee2997 at https://pr19836-8ee2997.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 45fbada at https://pr19836-45fbada.ngbuilds.io/.

hansl added a commit to hansl/angular-cli that referenced this pull request Oct 20, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
hansl added a commit to hansl/angular-cli that referenced this pull request Oct 20, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
@mary-poppins
Copy link

You can preview a54e059 at https://pr19836-a54e059.ngbuilds.io/.

@mary-poppins
Copy link

You can preview f878222 at https://pr19836-f878222.ngbuilds.io/.

@mary-poppins
Copy link

You can preview b1123f6 at https://pr19836-b1123f6.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 8efa16e at https://pr19836-8efa16e.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 4d0161c at https://pr19836-4d0161c.ngbuilds.io/.

@mary-poppins
Copy link

You can preview b164603 at https://pr19836-b164603.ngbuilds.io/.

@tbosch tbosch added area: core Issues related to the framework runtime target: major This PR is targeted for the next major release labels Oct 23, 2017
hansl added a commit to hansl/angular-cli that referenced this pull request Oct 23, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
hansl added a commit to hansl/angular-cli that referenced this pull request Oct 23, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
@tbosch
Copy link
Contributor Author

tbosch commented Oct 23, 2017

Regarding the approval for root: I talked to @IgorMinar about them, so this PR is good to go.

hansl added a commit to hansl/angular-cli that referenced this pull request Oct 23, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
@tbosch
Copy link
Contributor Author

tbosch commented Oct 23, 2017

This is also green in G3.

@tbosch tbosch added action: merge The PR is ready for merge by the caretaker and removed action: merge The PR is ready for merge by the caretaker labels Oct 23, 2017
@tbosch tbosch added the action: merge The PR is ready for merge by the caretaker label Oct 23, 2017
…new api

Usages of `NgTools_InternalApi_NG_2` from `@angular/compiler-cli` will now
throw an error.

Adds `listLazyRoutes` to `@angular/compiler-cli/ngtools2.ts` for getting
the lazy routes of a `ng.Program`.
@mary-poppins
Copy link

You can preview 52a8f2b at https://pr19836-52a8f2b.ngbuilds.io/.

hansl added a commit to hansl/angular-cli that referenced this pull request Oct 23, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
@matsko matsko closed this in 8d45fef Oct 23, 2017
hansl added a commit to hansl/angular-cli that referenced this pull request Oct 23, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
hansl added a commit to angular/angular-cli that referenced this pull request Oct 24, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
hansl added a commit to angular/angular-cli that referenced this pull request Oct 24, 2017
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
@@ -7,7 +7,7 @@
"license": "MIT",
"scripts": {
"aio-use-local": "node tools/ng-packages-installer overwrite . --debug --ignore-packages @angular/service-worker",
"aio-use-npm": "node tools/ng-packages-installer restore .",
"aio-use-npm": "node tools/ng-packages-installer restore . && yarn upgrade @angular/cli@1.3.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change for? Is this supposed to use the same version as currently specified in the lockfile?
Can we remove the changes in aio/package.json once we upgrade to @angular/cli@1.5.0-rc.2 (or higher)?

@IgorMinar
Copy link
Contributor

IgorMinar commented Oct 24, 2017 via email

@tbosch tbosch deleted the remove_old_api branch November 1, 2017 16:16
dond2clouds pushed a commit to d2clouds/speedray-cli that referenced this pull request Apr 23, 2018
Replacing the old API. We keep the old API because we need it for JIT
(with either --aot=false or unittests).

Depends on angular/angular#19836
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants