Skip to content

ngtsc support for @Pipes! - #24703

Closed
alxhub wants to merge 6 commits into
angular:masterfrom
alxhub:ngtsc-pipes
Closed

alxhub wants to merge 6 commits into
angular:masterfrom
alxhub:ngtsc-pipes

Conversation

@alxhub

@alxhub alxhub commented Jun 28, 2018

Copy link
Copy Markdown
Member

No description provided.

@mary-poppins

Copy link
Copy Markdown

You can preview 55c2f7e at https://pr24703-55c2f7e.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 9f6a025 at https://pr24703-9f6a025.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 7006416 at https://pr24703-7006416.ngbuilds.io/.

mhevery
mhevery previously requested changes Jul 2, 2018

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Comment thread packages/core/src/render3/jit/pipe.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you use stringify method which already serializes function names?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

@alxhub
alxhub dismissed mhevery’s stale review July 2, 2018 23:21

All comments addressed.

@alxhub alxhub added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release labels Jul 2, 2018
@mary-poppins

Copy link
Copy Markdown

You can preview 0598fd9 at https://pr24703-0598fd9.ngbuilds.io/.

@mhevery

mhevery commented Jul 3, 2018

Copy link
Copy Markdown
Contributor

alxhub added 6 commits July 3, 2018 14:10
This was a bug introduced in a previous commit.
This updates the r3_pipe_compiler to not depend on global analysis,
and to produce ngPipeDef instructions in the same way that the other
compilers do. It's a precursor to JIT and AOT implementations of
@pipe compilation.
Adds support for compiling @pipe in JIT mode, along with tests
to verify that certain aspects of compilation are correct.
This commit adds support to ngtsc for compilation of the @pipe
annotation, including support for pipes in @NgModule scopes.
@mary-poppins

Copy link
Copy Markdown

You can preview b188f8b at https://pr24703-b188f8b.ngbuilds.io/.

@mhevery mhevery closed this in ffbacdf Jul 3, 2018
mhevery pushed a commit that referenced this pull request Jul 3, 2018
This updates the r3_pipe_compiler to not depend on global analysis,
and to produce ngPipeDef instructions in the same way that the other
compilers do. It's a precursor to JIT and AOT implementations of
@pipe compilation.

PR Close #24703
mhevery pushed a commit that referenced this pull request Jul 3, 2018
Adds support for compiling @pipe in JIT mode, along with tests
to verify that certain aspects of compilation are correct.

PR Close #24703
mhevery pushed a commit that referenced this pull request Jul 3, 2018
This commit adds support to ngtsc for compilation of the @pipe
annotation, including support for pipes in @NgModule scopes.

PR Close #24703
}
this.scopeRegistry.registerPipe(clazz, pipeName);

let pure = false;

@cexbrayat cexbrayat Jul 3, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@alxhub Dumb question as I'm probably missing something but shouldn't that be let pure = true by default as it is currently and in Ivy JiT mode?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I opened PR #24750 in case the pipes should indeed by pure by default.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thank you.

@cexbrayat cexbrayat mentioned this pull request Jul 3, 2018
3 tasks done
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 13, 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 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.

5 participants