Paul Gschwendtner
71e8bd8791
test: support signal library in compliance test fake_core package
...
Compliance tests do not depend on the real typings for
`@angular/core`, but rather a fake core package is used.
We want to be able to write compliance tests using signals, so we should
add some rough types to the fake core package. This will also be useful
in `fake_core` for type checking tests.
2023-07-14 13:12:39 +00:00
Paul Gschwendtner
fcf9edbc78
test: generate partial golden for signal compliance test
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
626d3ab586
test: ensure signal compliance test only runs with template pipeline
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
3a607f51d6
refactor: remove debug print for type check block
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
ccf0dc1884
test: add test to ensure variable bindings work
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
ebf646a9c9
fixup! WIP: generate propertyCreate instructions in template pipeline
...
Fix expression lexical read transforms
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
732e45a730
WIP: prepare tests for failing scenarios discovered during collab
...
* Local refs needs more testing
* Basic variable read failed
* We do not have any tests for listeners? there was some restore view
issue: https://github.com/angular/angular/commit/3acfdf4861d5eeed5b2ad42978547da929cc3567
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
6697d6ba2f
fixup! WIP: setup template pipeline acceptance tests on CI and base setup
...
Only build requested tests
2023-07-14 13:12:38 +00:00
Pawel Kozlowski
399e173d8c
fix(core): properly bind to the same input from multiple views
...
Before this fix bindings to the same input from multiple LViews didn't
work properly as the binding expression was assigned to LView only on
the first create pass (instead of assigning on each durective usage pass).
2023-07-14 13:12:38 +00:00
Alex Rickabaugh
05ecc619fc
wip: allocate vars for PropertyCreateOp
...
This commit adds the `ConsumesVarsTrait` to `PropertyCreateOp` which causes
vars to be counted for use in the virtual instructions it might add. This
allows the DOM test to pass.
2023-07-14 13:12:38 +00:00
Pawel Kozlowski
52f508ab4d
test: failing test case for non-primitive literals in a template
2023-07-14 13:12:38 +00:00
Pawel Kozlowski
2a61fea64b
test: add test veryfing bindings to multiple directives
2023-07-14 13:12:38 +00:00
Pawel Kozlowski
10c1ae5b6e
test: add failing test for dom property bindings
...
The test is skipped as we are not propagating number of vars
based on the bindings found in a template.
2023-07-14 13:12:38 +00:00
Pawel Kozlowski
9208e64e74
test: re-organize tests
2023-07-14 13:12:38 +00:00
JoostK
65d45e4919
test: add test to bind a signal to a signal input
2023-07-14 13:12:38 +00:00
JoostK
080bdfa77f
test: allow signal component test to pass
2023-07-14 13:12:38 +00:00
Alex Rickabaugh
977bd97717
refactor(compiler): only reference a view via a variable if it's not ctx
...
Previously the template pipeline would prefer to use a local variable
definition in favor of ctx. This commit improves the logic to prefer `ctx`
for the root view even if a variable for the context is available.
2023-07-14 13:12:38 +00:00
Alex Rickabaugh
a90dc4310c
wip: bypass pure functions in input computations
2023-07-14 13:12:38 +00:00
Alex Rickabaugh
2426b2e1f1
wip: fix signals test
...
(required and initial values for inputs are mutually incompatible)
2023-07-14 13:12:38 +00:00
Alex Rickabaugh
912c7252f8
wip: switch to the real input() implementation
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
8e64d9e1d8
refactor: fix lint warnings
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
4d7b23e99e
refactor: wire up propertyCreate instruction for JIT generation
2023-07-14 13:12:38 +00:00
Paul Gschwendtner
59d278c07c
WIP: setup template pipeline acceptance tests on CI and base setup
2023-07-14 13:12:38 +00:00
Pawel Kozlowski
7e1de8cb6a
refactor: making CI green-ish
...
Would be great to keep CI green, making changes in this direction.
2023-07-14 13:12:37 +00:00
Alex Rickabaugh
f6bda0eb4d
wip: working signal input and all 3 binding types
2023-07-14 13:12:37 +00:00
Alex Rickabaugh
c7c4b9e390
wip: specialize virtual instructions
...
* splits propertyCreate virtual instructions into DOM vs zone inputs
* integrates with `InputSignal` setting (untested)
* deletes old interfaces/virtual_property impl in favor of Paul's
2023-07-14 13:12:37 +00:00
Alex Rickabaugh
a77924ff38
input signals
2023-07-14 13:12:37 +00:00
Paul Gschwendtner
d04408d67d
fixup! WIP: create new instruction "propertyCreate"
...
More work
2023-07-14 13:12:37 +00:00
Paul Gschwendtner
f556b29d05
fixup! WIP: generate propertyCreate instructions in template pipeline
...
More work
2023-07-14 13:12:37 +00:00
Paul Gschwendtner
a9be2b3628
Fix that signals: true views are never running update mode
2023-07-14 13:12:37 +00:00
Paul Gschwendtner
a34a479ee5
WIP: generate propertyCreate instructions in template pipeline
2023-07-14 13:12:35 +00:00
Paul Gschwendtner
f0c9eeceba
WIP: create new instruction "propertyCreate"
2023-07-14 13:11:53 +00:00
Paul Gschwendtner
e737d45ad0
WIP: setup http server for test app to test runtime
2023-07-14 13:11:53 +00:00
Paul Gschwendtner
c7bede629b
WIP: type checking for signal inputs
2023-07-14 13:11:53 +00:00
Paul Gschwendtner
992f51bc6d
WIP: Discover input class members in directive shared code. No type-chechking yet.
2023-07-14 13:11:53 +00:00
Paul Gschwendtner
f2658e34a2
WIP: implementation of input function signature
2023-07-14 13:11:53 +00:00
Paul Gschwendtner
89813aea70
WIP: initial input function and test app
2023-07-14 13:11:53 +00:00
Alex Rickabaugh
e6e5021eb9
wip: basic proof of concept for virtual instructions
2023-07-14 13:11:53 +00:00
Dylan Hunn
55d412c5b1
release: cut the v16.2.0-next.2 release
16.2.0-next.2
2023-07-13 11:01:59 -07:00
Dylan Hunn
9d06fdf960
docs: release notes for the v16.1.5 release
2023-07-13 10:56:57 -07:00
Matthieu Riegler
b8107b1914
refactor(common): remove supportScrollRestoration ( #50056 )
...
`scrollRestoration` is supported across all everygreen browsers we can remove the testing method.
PR Close #50056
2023-07-13 09:42:05 -07:00
Angular Robot
8f1bbd73ae
build: update dependency prettier to v3 ( #50945 )
...
See associated pull request for more information.
PR Close #50945
2023-07-13 09:38:14 -07:00
Mark Thompson
7f52d471b0
docs: fix image issues by hosting them on aio, refactor content ( #51014 )
...
PR Close #51014
2023-07-13 09:36:55 -07:00
Mark Thompson
1750da3bc2
docs: delete the files from each of the directories. ( #51014 )
...
PR Close #51014
2023-07-13 09:36:55 -07:00
Mark Thompson
6319a9ce45
docs: reformat the first-app tutorial to be less verbose, add image hosting ( #51014 )
...
PR Close #51014
2023-07-13 09:36:55 -07:00
Jared Bada
36c5a57a3c
docs(docs-infra): typo fix in aot-metadata-errors ( #51017 )
...
PR Close #51017
2023-07-13 09:36:24 -07:00
Diogo Teles Sant'Anna
d82c47333a
ci: prevent injection attacks by changing how to use user input ( #51026 )
...
Update the code to not use user input directly on executable code, as it can be used for injection attacks, as detailed [here](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#understanding-the-risk-of-script-injections )
PR Close #51026
2023-07-13 09:35:57 -07:00
Payam Valadkhan
3b78d068ea
refactor(compiler-cli): basic local compilation for components ( #50545 )
...
A minimal change to full compilation mode to work in local mode. Now compiler can compile components without ctor injections, though the compiled code missing the following items which will be added in subsequent commits:
* it does not produce `dependencies` for component definition.
* it fails if component has ctor injection
PR Close #50545
2023-07-13 09:34:53 -07:00
Payam Valadkhan
68fd99fad3
refactor(compiler-cli): Trait compiler workflow for local compilation mode ( #50545 )
...
The compiler will only include analysis and compile phases in local mode. Also a new `compileLocal` method is added to the annotation handler for local compilation.
This commit makes no change to the full/partial compilation code paths.
PR Close #50545
2023-07-13 09:34:53 -07:00
Angular Robot
6cac41f039
build: update github/codeql-action action to v2.20.3 ( #50930 )
...
See associated pull request for more information.
PR Close #50930
2023-07-13 09:33:53 -07:00