Commit Graph

27040 Commits

Author SHA1 Message Date
Angular Robot bd4f64d8d9 docs: update events (#50309)
Generated `events.json` with the latest events retrieved from the Firebase DB.

PR Close #50309
2023-05-15 10:44:07 -07:00
Enea Jahollari bf4a466820 docs: add Enea to GDE contributors list (#50254)
PR Close #50254
2023-05-15 10:43:08 -07:00
Matthieu Riegler 2d87aeecc1 docs: Glossary link to N (#50294)
The shortcut to N was missing resulting in a rendering issue.

PR Close #50294
2023-05-15 09:55:59 -07:00
Matthieu Riegler 37acd37777 docs(docs-infra): Add a deprecated label to APIs (#50287)
This adds a deprecated label next to the other labels on the API pages for methods & properties.

Fixes #44265

PR Close #50287
2023-05-15 09:31:00 -07:00
Matthieu Riegler 9495c8c6eb docs(docs-infra): Remove internal constructors from the doc. (#50282)
Internal constructor should not be exposed in the doc. This removes them.

Related to #50281

PR Close #50282
2023-05-15 09:24:59 -07:00
Matthieu Riegler 7a344542db docs: fix mistake in first-app-lesson-03 (#50278)
The correct filename is `home.component.ts`.

fixes #50277

PR Close #50278
2023-05-15 09:24:06 -07:00
Matthieu Riegler 88da6a518c docs: fix inconsistencies in getting started (#50275)
Fixes #50274

PR Close #50275
2023-05-15 09:23:18 -07:00
Kristiyan Kostadinov fa2ef506e5 refactor(core): remove legacy way of preventing default actions (#50257)
Setting `returnValue = false` to prevent the default action of events hasn't been necessary since IE9.

PR Close #50257
2023-05-15 09:22:34 -07:00
Greg Magolan 4b036128c7 build: don't run saucelabs tests yet on PRs... that will happen in a followup (#49200)
additional test to make linter happy

PR Close #49200
2023-05-15 09:21:48 -07:00
Greg Magolan 62beab793d build: address review feedback; should be ready to land now... additional chars to meet commit msg formatting requirements (#49200)
plus more additional chars here

PR Close #49200
2023-05-15 09:21:47 -07:00
Greg Magolan ebcb766300 build: address review feedback; added scripts/test/run-saucelabs-tests.sh script for local testing (#49200)
more chars to meet the linters requirements

PR Close #49200
2023-05-15 09:21:47 -07:00
Greg Magolan 15b5a7baab build: share Saucelabs browsers between karma test targets using background Saucelabs daemon and custom karma launcher (#49200)
This upgrades the Saucelabs Bazel step on CI to use the more efficient Saucelabs daemon

PR Close #49200
2023-05-15 09:21:47 -07:00
Angular Robot ee081217de build: update all non-major dependencies (#50217)
See associated pull request for more information.

PR Close #50217
2023-05-12 12:56:25 -07:00
Mladen Jakovljević 21199f8086 fix(docs-infra): labels with links should have the same font weight (#50258)
Fix anchor tag styling inside label.api-status-label to match font weight of label styling that does not have anchor tag.

PR Close #50258
2023-05-12 10:20:23 -07:00
Arnel Umandap Jr 81185e0afd docs: add missing "when" (#50262)
PR Close #50262
2023-05-12 10:17:22 -07:00
Angular Robot 14c59d41b4 build: update dependency @rollup/plugin-commonjs to v25 (#50264)
See associated pull request for more information.

PR Close #50264
2023-05-12 10:15:12 -07:00
0b01001110 a3dd3bcfaa docs: fix mistake in tutorial (#50261)
PR Close #50261
2023-05-12 10:14:30 -07:00
Angular Robot 4a7ebf4037 build: lock file maintenance (#49879)
See associated pull request for more information.

PR Close #49879
2023-05-11 14:27:02 -07:00
Tyler Vorpahl 41fdfa5fb7 build: bump in-memory-web-api dependency versions (#50246)
This commit updates in-memory-web-api package versions from v15 -> v16.

PR Close #50246
2023-05-11 14:26:02 -07:00
Matthieu Riegler d5be23efd4 docs: split unsupported versions table in two. (#50243)
To ease the maintenance of this table and keep the same number of columns between active and unsupported versions.

PR Close #50243
2023-05-11 10:17:52 -07:00
Matthieu Riegler 2333947753 docs: fix v13 dependencies versions. (#50243)
Fixing a small mistake.

Fixes #50242

PR Close #50243
2023-05-11 10:17:52 -07:00
gdarnell cc41758b59 fix(core): allow onDestroy unregistration while destroying (#50237)
Ensure that all onDestroy callbacks are called by allowing unregistering of onDestroy hooks while destroying.

Fixes #50221

PR Close #50237
2023-05-11 10:17:07 -07:00
Angular Robot 74099d4554 build: update dependency firebase-tools to v12 (#50223)
See associated pull request for more information.

PR Close #50223
2023-05-10 14:36:00 -07:00
Matthieu Riegler eef9244596 refactor(elements): remove unnecessary polyfill deps (#50115)
`webcomponents/custom-elements` and `document-register-element` are unnecessary now that we support only evergreen browsers.

PR Close #50115
2023-05-10 14:32:37 -07:00
Matthieu Riegler 1f4bc47fae docs: replace absolute links to aio with relative links. (#50213)
This change follows the introduction of the warning message from a transform processor to prevent absolute links to angular.io.

PR Close #50213
2023-05-10 14:29:51 -07:00
Matthieu Riegler ce96503c5f docs(docs-infra): Warning message when using absolute links to aio in the documentation (#50213)
This commit adds a processor to check for absolute links to angular.io. Absolute links to aio should be avoided because they will appear as external links.

PR Close #50213
2023-05-10 14:29:50 -07:00
Pawel Kozlowski 56dcffb8d3 refactor: remove benchpres tests for other frameworks (#50108)
Some of the benchpress tests were written against other UI
frameworks (ex.: incremental DOM, initial version of ivy)
and those frameworks are no longer a valuable comparision target.

PR Close #50108
2023-05-10 14:29:11 -07:00
Pawel Kozlowski c754c488bd refactor: remove unused benchmarks (#50108)
The benchmarks in the 'old' directory are not used / maintained.

PR Close #50108
2023-05-10 14:29:11 -07:00
Alan Agius 9005717b7e build: lock file maintenance (#50227)
See associated pull request for more information.

(cherry picked from commit d5f92bdd64)

PR Close #50227
2023-05-10 11:32:44 -07:00
Alan Agius eea11d5e5f refactor(core): simplify state transfer escaping (#50201)
This commit removes unnecessary transfer state escaping and updates this process to be done by the means of a `replacer` and `reviver` method as this removes the need to export the escaping and unescaping methods.

The only thing that we need to escape is `<script` and `</script` which are done by the browsers, but not Node.js.

PR Close #50201
2023-05-10 11:31:35 -07:00
Andrew Kushnir b9aeb858d5 release: cut the v16.0.1 release 16.0.1 2023-05-10 11:14:11 -07:00
Andrew Kushnir c9657bdb88 refactor(core): avoid using def.signal during component id computation (#50238)
This commit updates the code in 16.0.x branch to avoid using the `def.signals` field on a component, while calculating component id. The `signal` field was introduced later and will be available in 16.1.0.

PR Close #50238
2023-05-10 10:45:36 -07:00
Ambroise BAZIE 868723c084 docs: fix typo on hydration in Preserve Whitespaces Configuration (#50236)
PR Close #50236
2023-05-10 10:35:07 -07:00
Matthieu Riegler bf23404c04 docs(docs-infra): Remove warning for @Annotation. (#50218)
Per #50206, `@Annotation` is needed for tsickle. This commit removes the warning "Invalid tags found" produced by dgeni for the annotation decorator.

PR Close #50218
2023-05-09 14:49:26 -07:00
Angular Robot 351c6317be build: update github/codeql-action action to v2.3.3 (#50216)
See associated pull request for more information.

PR Close #50216
2023-05-09 14:48:54 -07:00
Andrew Kushnir 2abcb74d4b refactor(core): drop next prefix from hydration guide link (#50214)
This commit updates the content of the console log to drop the `next.` prefix from hydration guide link.

PR Close #50214
2023-05-09 14:48:28 -07:00
emartinez 87685914f5 docs: fix typos on first-app tutorial (#50211)
PR Close #50211
2023-05-09 14:47:55 -07:00
Matthieu Riegler 087b08b5fe docs: fix link label. (#50209)
Removing a duplicate https protocol.

PR Close #50209
2023-05-09 14:47:09 -07:00
Alan Agius 52c74d3b4a fix(core): add additional component metadata to component ID generation (#50203)
This commit add `exportAs`, `signals`, `inputs` and `outputs` into account when generating a component ID.

See: https://github.com/angular/angular/issues/50158#issuecomment-1537061939

PR Close #50203
2023-05-09 14:46:42 -07:00
Andrew Kushnir f751ce6445 fix(core): handle projection of hydrated containters into components that skip hydration (#50199)
This commit updates hydration logic to support a scenario where a view container that was hydrated and later on projected to a component that skips hydration. Currently, such projected content is extracted from the DOM (since a component that skips hydration needs to be re-created), but never added back, since the current logic treats such content as "already inserted".

Closes #50175.

PR Close #50199
2023-05-09 14:46:03 -07:00
Matthieu Riegler bb8fb10194 refactor(router): remove private export of withPreloading (#50194)
`withPreloading` is part of the public API.

PR Close #50194
2023-05-09 14:45:30 -07:00
Peter fafcb125ef docs: standalone component preloading config (#50193)
The preloading modules documentation were missing information about how to apply preloading strategies to standalone application  ( `ng new AppName --standalone` ).
Feel free to fix anything not in line with the Angular documentation style guide, as this is my first attempt at contributing :)

- Added example for `app.config.ts` providing info on the `withPreloading(<preloading strategy>)` you can add to the `provideRouter()` RouterFeatures.
- Specified that preloading modules also applies for standalone components.
PR Close #50193
2023-05-09 14:44:55 -07:00
Andrew Kushnir d68796782f fix(core): handle hydration of root components with injected ViewContainerRef (#50136)
This commit fixes an issue where a root component with an injected ViewContainerRef (for ex. `inject(ViewContainerRef)`) was triggering a certain code path during hydration which didn't handle this case correctly.

Resolves #50133.

PR Close #50136
2023-05-09 14:43:45 -07:00
Mark Thompson d0023d9a90 docs: update starter lesson to contain example images from the start (#50212)
We received feedback that the starter lesson should also include the stock images.

PR Close #50212
2023-05-09 14:43:15 -07:00
Jeremy Elbourn d077c44bdc docs: update releases guide for v16 (#50128)
Also clarify that the deprecations guide is for _noteworthy_ deprecations and may not be comprehensive.

PR Close #50128
2023-05-09 14:42:16 -07:00
AleksanderBodurri d73d1b0ab0 build(devtools): target es2020 explicitly (#50086)
We do this because of a bug caused by https://github.com/evanw/esbuild/issues/2950 and a recent change to how angular static properties are attached to class constructors. Targeting esnext or es2022 will cause the static initializer blocks that attach these static properties on class constructors to reference a class constructor variable that they do not have access to.

Because of this we explicitly target es2020 in our Angular DevTools builds.

PR Close #50086
2023-05-09 14:41:49 -07:00
AleksanderBodurri 7031d8ca82 build(devtools): make sure linker runs on fesm2022 bundles (#50086)
Since DevTools' Angular framework dependencies are built from local files, they are always up to date. [Recently](https://github.com/angular/angular/pull/49332) these dependencies started being published as fesm2022 instead of fesm2020. We also have an Angular dependency `ngx-flamegraph` that was built and published as fesm2020.

The easiest fix to make sure all of our Angular based dependencies are processed by the linker would be to update the filterPaths field in that file from `/fesm2020/` to `/fesm2020|fesm2022/`. When v16 releases, we can update ngx-flamegraph and publish it with the new APF, letting us change filterPaths to just `/fesm2022/`.

PR Close #50086
2023-05-09 14:41:49 -07:00
Kristiyan Kostadinov 25756e8b77 refactor(compiler): introduce internal transplanted type (#50104)
Adds a new AST for a `TransplantedType` in the compiler which will be used for some upcoming work. A transplanted type is a type node that is defined in one place in the app, but needs to be copied to a different one (e.g. the generated .d.ts). These changes also include updates to the type translator that will rewrite any type references within the type to point to the new context file.

PR Close #50104
2023-05-09 14:41:16 -07:00
Matthieu Riegler bc65112375 refactor(common): cleanup platformLocation (#50054)
* Drop the usage of @Inject()
* Drop `supportsState` as its supported by evergreen browsers.

PR Close #50054
2023-05-09 14:39:22 -07:00
JiaLiPassion 258de81305 test(zone.js): update zone.js test for jasmine upgrade (#49914)
Update test cases to pass jasmine 6.x update.

PR Close #49914
2023-05-09 14:38:48 -07:00