Commit graph

29561 commits

Author SHA1 Message Date
Enea Jahollari
48c7529d3d docs: enhance spacings in content projection section examples (#43241)
PR Close #43241
2021-09-02 16:45:09 +00:00
Enea Jahollari
50c522bd90 docs: enhance spacings in inputs outputs section examples (#43241)
PR Close #43241
2021-09-02 16:45:09 +00:00
Enea Jahollari
3610002d36 docs: enhance spacings in component interaction section examples (#43241)
PR Close #43241
2021-09-02 16:45:09 +00:00
Enea Jahollari
672777c7e0 docs: enhance spacings in component lifecycle section examples (#43241)
PR Close #43241
2021-09-02 16:45:08 +00:00
Enea Jahollari
1952bf0961 docs: enhance spacings in component overview section examples (#43241)
PR Close #43241
2021-09-02 16:45:08 +00:00
Enea Jahollari
9f4cbac612 docs: enhance spacings in try it section examples (#43241)
PR Close #43241
2021-09-02 16:45:08 +00:00
Enea Jahollari
316b19cf33 docs: enhance what is angular section spacing (#43241)
PR Close #43241
2021-09-02 16:45:08 +00:00
Pete Bacon Darwin
3c863c5c4e build(docs-infra): update dgeni-packages to improve checkLinks messages (#43317)
This update should make the list of files with broken links more readable.

Fixes #43214

PR Close #43317
2021-09-02 16:44:46 +00:00
Alan Agius
95f3aecc29 fix(router): add more context to Unhandled Navigation Error (#43291)
Previously, the error message was not added to `Unhandled Navigation Error`

Before
```
main.js:1 Unhandled Navigation Errors:
```

After
```
main.js:1 Unhandled Navigation Errors: SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost:4200/' cannot be created in a document with origin 'http://127.0.0.1:8080' and URL 'http://127.0.0.1:8080/'.
```

PR Close #43291
2021-09-01 21:15:00 +00:00
Jessica Janiuk
478131c519
release: cut the v13.0.0-next.4 release (#43312) 2021-09-01 14:09:35 -05:00
Jessica Janiuk
8fdda0b52a
docs: release notes for the v12.2.4 release (#43310) 2021-09-01 13:36:39 -05:00
anandtiwary
faf9f5a3bc feat(router): new output that would notify when link is activated (#43280)
This commit adds a new output to `routerLinkActive` directive.
Whenever, the associated link becomes active or inactive, an
event will be fired on this out with the correct status

PR Close #37284

PR Close #43280
2021-09-01 08:23:15 -07:00
renovate[bot]
c7d09bff9d build(devtools): update angular-framework to 3849283 (rangle/angular-devtools#913)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-31 08:43:18 -07:00
George Kalpakas
dcfabf08af docs: add step to declare ProductAlertsComponent in tutorial (#43229)
The getting-started tutorial at angular.io/start instructs users to
generate a `ProductAlertsComponent` using the "Angular generator"
feature in [StackBlitz](https://stackblitz.com/). However, unlike the
Angular CLI, generating a component in StackBlitz does not automatically
declare it in `AppModule`, which is a requirement for the component to
be used in the application. This resulted in a compile error when
following the tutorial instructions.

This commit fixes this by adding a step to manually import and declare
the newly generated component in `app.module.ts`.

Fixes #43020
Closes #43212

PR Close #43229
2021-08-30 13:37:45 -07:00
renovate[bot]
484051d5c9 build(devtools): update dependency @types/jasmine to ~3.8.0 (rangle/angular-devtools#882)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-30 12:17:19 -07:00
Joey Perrott
f3c8408b25 ci: update pullapprove config to reflect kyliau's departure (#43230)
Update pullapprove configuration to remove kyliau from groups.

PR Close #43230
2021-08-30 08:23:40 -07:00
Joey Perrott
84ecb9116d docs: remove recent departures from contributors page (#43230)
PR Close #43230
2021-08-30 08:23:40 -07:00
renovate[bot]
a0bf25915c build(devtools): update dependency @types/chrome to ^0.0.154 (rangle/angular-devtools#900)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-29 13:05:57 -07:00
renovate[bot]
a337498e6d build(devtools): update angular-framework to 854ecbc (rangle/angular-devtools#912)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-28 20:07:23 -07:00
renovate[bot]
277435f31e build(devtools): update dependency jasmine-core to ~3.9.0 (rangle/angular-devtools#876)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-27 16:05:26 -07:00
Daniel Trevino
95cfd0b0e1 test(compiler-cli): add tests for NullishCoalescingNotNullableCheck (#43232)
Add tests to make sure the nullish coalescing check is generating the
correct diagnostics.

Refs #42966

PR Close #43232
2021-08-26 16:36:32 -07:00
Daniel Trevino
0802b59a7b refactor(compiler-cli): add NullishCoalescingNotNullableCheck (#43232)
Add a template check that returns diagnostics if the left side of a
nullish coalescing operation is not nullable.

Refs #42966

PR Close #43232
2021-08-26 16:36:32 -07:00
Daniel Trevino
fc85fa85ba refactor(compiler-cli): use TemplateCheckWithVisitor in InvalidBananaInBoxCheck (#43232)
Modify the existing template check to use the new abstract class. This
makes template checks easier to read and understand.

Refs #42966

PR Close #43232
2021-08-26 16:36:32 -07:00
Daniel Trevino
46e68df2cd refactor(compiler-cli): add abstract TemplateCheckWithVisitor class (#43232)
Add an abstract class that has a default implementation of the run
function and visits all nodes. Authors of template checks can extend
this class and override the `visitNode` method to return diagnostics.

Refs #42966

PR Close #43232
2021-08-26 16:36:32 -07:00
Daniel Trevino
dee04bd96e refactor(compiler-cli): move component out of TemplateContext (#43232)
Move `component` out of the `TemplateContext` so the context can be
reused for multiple components.

Refs #42966

PR Close #43232
2021-08-26 16:36:31 -07:00
Daniel Trevino
50249827f1 refactor(compiler-cli): change checks folder structure (#43232)
Change template checks into `extended/checks` instead of
`extended/src/template_checks`.

Refs #42966

PR Close #43232
2021-08-26 16:36:31 -07:00
Daniel Trevino
98a648d33d refactor(compiler-cli): remove whitespace (#43232)
Remove extra whitespace introduced in a previous PR.

PR Close #43232
2021-08-26 16:36:31 -07:00
Joey Perrott
c33ba8d4de build: update issue template to include core package (#43272)
Update the dropdown list to include core in the list of packages.

PR Close #43272
2021-08-26 19:43:14 +00:00
Andrew Scott
78690ee354 docs(router): Fix incorrect name for url match options (#43268)
fixes #43123

PR Close #43268
2021-08-26 10:07:23 -07:00
Kristiyan Kostadinov
c3968047b6 refactor(forms): make error messages easier to tree shake (#43223)
Currently the error message functions are defined as static methods on a class which means that as soon as one of them is used somewhere, all of them have to be retained. This isn't a problem at the moment, because all of them are behind `ngDevMode` checks, but it's error prone and it's easy to fix.

These changes move them out into functions so that they can be imported individually. It also has the advantage of allowing Webpack to minify the function names.

PR Close #43223
2021-08-26 10:05:36 -07:00
Alan Agius
05089dffbc build: remove no longer needed dependencies (#43264)
These were used for the dev-infra package which has now been moved into a seperate repo.

PR Close #43264
2021-08-26 10:04:05 -07:00
JoostK
030ff0d7a1 test(ngcc): use @angular npm packages in integration test (#43234)
In anticipation of the removal of the View Engine npm package output,
the integration tests of ngcc are switched to use @angular packages for
from npm. The version 12 packages are guaranteed to always be View
Engine format which makes them suitable to be processed in the ngcc
integration tests.

PR Close #43234
2021-08-26 09:45:43 -07:00
segunb
d4a8a66fb7 docs: Close #View tag to avoid confusion (#43256)
PR Close #43256
2021-08-26 09:44:08 -07:00
Renovate Bot
298d8a4481 build: update all non-major dependencies (#43263)
PR Close #43263
2021-08-26 09:18:37 -07:00
nickreid
ac59b990fc refactor(zone.js): Rename class ZoneDelegate to _ZoneDelegate to differentiate it from the ZoneDelgate interface (#43019)
The current naming causes tsickle to emit `/** @implements {ZoneDelegate} */ class ZoneDelegate ...`, which is a cyclic definition error in Closure Compiler. Additionally, the name shadowing is also confusing to humans.

PR Close angular#43019

PR Close #43019
2021-08-25 15:12:00 -07:00
nickreid
4341a5f4cb fix(compiler-cli): Emit type annotations for synthesized decorator fields (#43021)
Previously, the decorator transformer was annotating the synthesized properties with TS type annotations. However, because it ran after the JSDoc transformer, the TS types were just dropped from the emitted JS. Attempting to move the decorator transformer before the JSDoc transformer causes tsickle crashes because synthetic AST fragments are not attached to a SourceFile node.

PR Close #43021
2021-08-25 15:05:28 -07:00
Alex Rickabaugh
49766d2d0a release: cut the v13.0.0-next.3 release (#43259)
PR Close #43259
2021-08-25 14:51:37 -07:00
Alex Rickabaugh
86feec6030 docs: release notes for the v12.2.3 release (#43258)
PR Close #43258
2021-08-25 14:35:44 -07:00
George Kalpakas
a39c68940a build(docs-infra): upgrade cli command docs sources to 2621e1d39 (#43238)
Updating [angular#master](https://github.com/angular/angular/tree/master) from
[cli-builds#master](https://github.com/angular/cli-builds/tree/master).

##
Relevant changes in
[commit range](81ba264f9...2621e1d39):

**Modified**
- help/lint.json

PR Close #43238
2021-08-25 10:45:21 -07:00
Renovate Bot
073b20b540 build: update all non-major dependencies (#43201)
PR Close #43201
2021-08-25 10:44:10 -07:00
Daniel Trevino
00aad59047 test(language-service): add test for extended diagnostics (#43134)
Add a test to make sure extended template diagnostics are being correctly
generated in the language service for non-ts files.

Refs #42966

PR Close #43134
2021-08-25 10:43:01 -07:00
Daniel Trevino
b34a9a1eb2 refactor(compiler-cli): integrate extended diagnostics with the language service (#43134)
Add the call to get the extended template diagnostics in
the compiler's `getDiagnosticsForComponent`. This makes showing
extended diagnostics in non-ts files posible.

Refs #42966

PR Close #43134
2021-08-25 10:43:01 -07:00
Daniel Trevino
de215a4b21 refactor(compiler-cli): rename ExtendedTemplateChecker get diagnostics fucntion (#43134)
Rename `getExtendedTemplateDiagnosticsForComponent` to
`getDiagnosticsForComponent` since it's implied they are extended
diagnostics.

Refs #42966

PR Close #43134
2021-08-25 10:43:01 -07:00
Daniel Trevino
68bb13ea0f refactor(compiler-cli): move getDiagnosticsForComponent to compiler (#43134)
Change the language service to call `getDiagnosticsForComponent` from
the compiler instead of the `TemplateTypeChecker`.

Refs #42966

PR Close #43134
2021-08-25 10:43:00 -07:00
Daniel Trevino
6af6de7328 refactor(compiler-cli): move ExtendedTemplateChecker to LazyCompilationState (#43134)
Create the `ExtendedTemplateChecker` during `makeCompilation`, that way
it's avaiblable in the whole compiler.

Refs #42966

PR Close #43134
2021-08-25 10:43:00 -07:00
Daniel Trevino
2d8fc4a7ce refactor(compiler-cli): use TemplateDiagnostic in extended package (#43134)
Return `TemplateDiagnostic` instead of `ts.Diagnostic` when getting the
extended template diagnostics. This makes the integration with the
language service easier. This also fixes the error code and now uses the
`ngErrorCode` for extended template diagnostics.

Refs #42966

PR Close #43134
2021-08-25 10:43:00 -07:00
renovate[bot]
1e689603e9 build(devtools): update angular-components to ~12.2.0 (rangle/angular-devtools#902)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-25 10:37:04 -07:00
renovate[bot]
984bbd8267 build(devtools): update dependency ts-node to ~10.2.0 (rangle/angular-devtools#903)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-25 10:36:35 -07:00
renovate[bot]
e0b6fec42a build(devtools): update angular-framework to b372e0c (rangle/angular-devtools#911)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-24 10:10:09 -07:00
dario-piotrowicz
27fdd52fb9 refactor(common): fix emiting typos (#43221)
fix some of the aio examples which log strings containing "emiting" instead of "emitting"

PR Close #43221
2021-08-23 13:30:29 -07:00