https://github.com/angular/angular

sort by:
Revision Author Date Message Commit Date
46e8982 build: invalidate circleci cache to prune unused nested node modules (#47240) Yarn 1.x has a bug where it keeps nested unused node modules and doesn't delete them automatically. This throws off Bazel in some scenarios when the lock file is updated. This commit invalidates the cache to get a fresh clean node modules cache without any unused nested directories. PR Close #47240 24 August 2022, 18:04:18 UTC
09834f9 docs: add Angular & JavaScript Master Podcast to resources list (#47227) PR Close #47227 23 August 2022, 23:20:44 UTC
16855bd build: update io_bazel_rules_sass digest to 6802532 (#47104) See associated pull request for more information. PR Close #47104 23 August 2022, 16:24:56 UTC
9a8352f ci: do not match dev-infra group for pullapprove owner changes (#47216) Back when we fixed the pullapprove verify command and our config to properly include dot-prefixed files, we accidentally started matching the pullapprove file in the dev-infra group. This commit fixes this so that dev-infra is not triggered for basic code owner config changes. PR Close #47216 23 August 2022, 16:22:42 UTC
eaaa294 docs: update peek-a-boo example (#47219) The peek-a-boo example image does not exactly reflect what happens. This updates the hook table and the image of the peek-a-boo output. Closes #40138 PR Close #47219 22 August 2022, 23:03:18 UTC
474eec7 docs: add Angular Master website to resources list (#47129) PR Close #47129 22 August 2022, 23:02:19 UTC
791fa9a Revert "fix(animations): fix stagger timing not handling params (#47208)" (#47222) This reverts commit 05f5e8ad8657fb26ed871b1d1d191529bd5e0765. Reason: breaks internal g3 tests PR Close #47222 22 August 2022, 21:53:20 UTC
baaf1d1 refactor(compiler): Add a new helper method `getOwningNgModule`. (#47166) This helper accepts a class for an Angular trait, and returns the NgModule which owns that trait. This will be useful for the language service import project, which needs to edit import arrays on the module. PR Close #47166 22 August 2022, 17:57:48 UTC
ae9f165 fix(animations): fix stagger timing not handling params (#47208) prior to this change the stagger timing was being built during the ast building instead of dynamically when visiting the stagger animation, thus it could not handle params correctly, this change makes it so that during ast building a timing ast is built instead and that ast is used dynammically to build animations which can handle params correctly resolves #19786 PR Close #47208 22 August 2022, 17:51:29 UTC
46c67e9 refactor(language-service): Create helper methods for manipulating object and array ASTs. (#47181) Create three new helper methods: `addElementToArrayLiteral`, `objectPropertyAssignmentForKey`, and `updateObjectValueForKey`. These methods make interacting with array and object literals easier. These will be useful for the standalone imports feature, which will need to add new terms to import arrays in Component and NgModule decorators. PR Close #47181 22 August 2022, 17:44:22 UTC
44d8c36 refactor(compiler): Add a new helper method `getPrimaryAngularDecorator`. (#47180) This helper accepts a class, and returns the primary Angular Decorator associated with that trait (e.g. the Component, Pipe, Directive, or NgModule decorator). This will be useful for the language service import project, which needs to edit import arrays inside the decorator. PR Close #47180 22 August 2022, 17:39:42 UTC
43bb409 docs: Add Bob Watson as a member of the Angular team (#47217) PR Close #47217 22 August 2022, 17:28:05 UTC
107d094 fix(docs-infra): avoid distorting contributor images (#47215) Ensure contributor images are not distorted. This was accidentally broken in #46347. PR Close #47215 22 August 2022, 13:05:17 UTC
9b0fd07 refactor(core): remove obsolete `data:` url validation (#45860) Validation for `data:` urls is obsolete now that modern browsers ([Firefox as of v57+](https://blog.mozilla.org/security/2017/10/04/treating-data-urls-unique-origins-firefox-57)) don't treat `data:` urls as same-origin resources. Googlers can see internal change cl/363609175 for additional context. PR Close #45860 18 August 2022, 20:41:43 UTC
1096ad2 build(docs-infra): upgrade cli command docs sources to 67ac90a75 (#47183) Updating [angular#14.1.x](https://github.com/angular/angular/tree/14.1.x) from [cli-builds#14.2.x](https://github.com/angular/cli-builds/tree/14.2.x). ## Relevant changes in [commit range](https://github.com/angular/cli-builds/compare/07471d230...67ac90a75): **Modified** - help/cache.json PR Close #47183 18 August 2022, 19:24:48 UTC
5a5813b refactor(compiler): /a/.exec() returns RegExpExecArray (#47169) Fix compilation issue with TypeScript nightly. TypeScript added a field `0` to `RegExpMatchArray` in https://github.com/microsoft/TypeScript/commit/3b80ddca212959ae5dcf2f48704be627283c6468. Before that, `RegExpMatchArray` and `RegExpExecArray` were identical. In one place Angular incorrectly expects `RegExpMatchArray` as the result of a RegExp#exec() call. This assignment fails on TypeScript nightly with the error: Property '0' is missing in type 'RegExpExecArray' but required in type 'RegExpMatchArray'. Fix the issue by using the type `RegExpExecArray` instead. This also works for older TypeScript versions. PR Close #47169 18 August 2022, 19:22:45 UTC
fcf369f fix(service-worker): update golden `index.md` (#47044) Missing updated on golden `index.md` Updated with api-extractor PR Close #47044 18 August 2022, 19:09:11 UTC
7306fc7 refactor(service-worker): formatting of index.ts (#47044) Fixed formatting of index.ts. PR Close #47044 18 August 2022, 19:09:11 UTC
f839e01 fix(service-worker): export NoNewVersionDetectedEvent (#47044) NoNewVersionDetectedEvent is marked as @publicApi but not exported. PR Close #47044 18 August 2022, 19:09:10 UTC
dacac7e release: cut the v14.1.3 release 17 August 2022, 14:55:45 UTC
0583227 fix(compiler): infinite loop in parser assignment expression with invalid left-hand expression (#47151) In #39004 some logic was introduced that tries to recover invalid expressions by treating the `=` token as a recovery point. It works by skipping ahead to the next recovery point inside the `skip` method which is called whenever an error is reported. This can lead to an infinite loop inside the `parseChain` method which assumes that reporting an error would've skipped over the token, but that won't happen since the `=` token is a recovery point. These changes resolve the infinite loop by breaking the loop if `error` didn't skip to a different token after the error was reported. Fixes #47131. PR Close #47151 17 August 2022, 07:33:32 UTC
3d9455e build(docs-infra): upgrade cli command docs sources to 07471d230 (#47149) Updating [angular#14.1.x](https://github.com/angular/angular/tree/14.1.x) from [cli-builds#14.1.x](https://github.com/angular/cli-builds/tree/14.1.x). ## Relevant changes in [commit range](https://github.com/angular/cli-builds/compare/a764b37fa...07471d230): **Modified** - help/cache.json PR Close #47149 15 August 2022, 15:18:00 UTC
970e68a docs: remove duplicated styles (#47143) PR Close #47143 12 August 2022, 18:18:20 UTC
5ffc882 docs: fix code samples formatting in tutorial (#47144) PR Close #47144 12 August 2022, 18:17:27 UTC
a5ca049 refactor(router): Provide easily patchable file for assigning relativeLinkResolution (#47136) For context on the migration plan, see b/241955063 PR Close #47136 12 August 2022, 16:11:34 UTC
bb465e1 docs: set titles to sentence case (#47083) * update overview and reviewing topics to accommodate new ToC * incorporate edits from peer reviews PR Close #47083 12 August 2022, 16:04:26 UTC
5547ce0 refactor(router): Update error message when Router is provided twice (#47130) The current error message is absolute in that it thinks there is only one possible way to provide Router twice. In fact, you can get a new instance of the Router in several ways so the error message should indicate the exact failure case with a _potential_ cause. Based on findings in thread https://github.com/angular/angular/commit/0cbbd6aeecda8ea994f1086727e580b813a53d79#commitcomment-80900192 PR Close #47130 12 August 2022, 13:27:50 UTC
09d5753 docs: clarify use of unsubscribe with HttpClient (#47127) fix: #46542 PR Close #47127 12 August 2022, 09:58:05 UTC
063035f docs: fix embedded view description issue (#46957) createEmbeddedView method instantiates an embedded view based on this template and take your templateRef as argument and would render the passed templateRef in your ViewContainerRef. resolves angular#46955 PR Close #46957 11 August 2022, 18:07:39 UTC
0a99130 docs: add NG Poland 2022 and JS Poland 2022 to events (#47128) PR Close #47128 11 August 2022, 17:03:07 UTC
6a94157 docs: Moving a div down in tutorial toh-pt6.md (#47095) PR Close #47095 11 August 2022, 16:09:51 UTC
bb40a08 docs: rename duplicate header (#47110) PR Close #47110 11 August 2022, 16:08:38 UTC
c365cfa docs: remove duplicated sentence (#47126) PR Close #47126 11 August 2022, 16:04:16 UTC
b31f5dd release: cut the v14.1.2 release 10 August 2022, 18:07:49 UTC
2548712 build: add atscott to unavailable users (#47102) PR Close #47102 10 August 2022, 17:45:38 UTC
f4fa4af docs: clarify providers' injection in lazy loaded modules (#47094) Addresses https://github.com/angular/angular/issues/47059 I try to keep the edit as concise as possible because adding any further explanation would bring to much deeper info compared to the topic of the page Removed some convoluted info and replaced with a link to a page that should focus on the specific aspect of the matter. Conditional is obliged because IMHO that page should have a dedicated paragraph explaining various ways of populating different injectors with providers, and maybe integrating the interesting parts from the recent created page about standalone app. PR Close #47094 10 August 2022, 17:45:04 UTC
439d77e fix(router): Fix route recognition behavior with some versions of rxjs (#47098) (#47112) Some versions of rxjs cause the algorithm used in the Router to not recognize Route configs correctly. This commit updates the algorithm to be compatible in the same way as other code locations internally. Context: https://github.com/angular/angular/commit/1160b8194f78141b40d1d4885ec182d033ff2659 fixes #47089 Note: This does not have a test because I was unable to identify the version of rxjs that would cause a failure here. PR Close #47098 PR Close #47112 10 August 2022, 17:43:50 UTC
036f740 build: update github/codeql-action action to v2.1.18 (#47015) See associated pull request for more information. PR Close #47015 09 August 2022, 17:56:00 UTC
e10aa88 docs: add antoniocardenas to GDE resources (#47033) PR Close #47033 09 August 2022, 17:02:12 UTC
38d23af docs: change "zone" to "ngZone" in an example (#47079) Change requesting "this.zone" to "this.ngZone" in the Plotly example, as it corresponds to the name declared in the constructor. PR Close #47079 09 August 2022, 17:01:27 UTC
923a744 build: update eslint dependencies to v5.33.0 (#47087) See associated pull request for more information. PR Close #47087 09 August 2022, 17:00:11 UTC
874d78b docs: add more documentation about lint messages (#47019) Adds suggestions for how to resolve the most common messages produced by the documentation linter. Adds links to the Proselint and other style tests to the new documentation. Updates pullapprove and navigation. PR Close #47019 08 August 2022, 18:34:56 UTC
8d18969 docs: updated reference link to NativeScript/Angular documentation (#47063) PR Close #47063 08 August 2022, 18:34:21 UTC
2106b74 refactor: improve disabled attribute warning (#47041) Users using the "disabled" property binding on reactive form controls would want to know how to dynamically update the disabled state of a form control when they get a console warning. PR Close #47041 08 August 2022, 18:33:53 UTC
5ff715c fix(core): check if transplanted views are attached to change detector (#46974) Prevents change detection on views transplanted in OnPush components that have been detached from change detection. PR Close #46974 08 August 2022, 18:33:29 UTC
30c9e80 docs: fix dependecy injection documentation page typos (#47057) PR Close #47057 08 August 2022, 18:33:05 UTC
0392feb fix(docs-infra): fix nav css on tutorial tour of heroes (#47064) Fix the navigation button to work properly by the css style applied when the button is active, on tutorial Tour of Heroes. PR Close #47064 08 August 2022, 18:32:40 UTC
6d215d3 refactor(core): remove unused module tracking (#47066) We used to track all modules in a top-level constant called `autoRegisterModuleById` which was used by `getRegisteredNgModuleType`. As of #45024 the constant isn't being used anymore so we can remove it. PR Close #47066 08 August 2022, 18:32:17 UTC
e46972a docs: fix text formatting for paragraph in Hierarchical injectors (#47067) Paragraph of text is not wrapped into `p` tag due to missing empty line after the `div` block. The fix is just add an empty line. PR Close #47067 08 August 2022, 18:31:44 UTC
2e42bb9 docs: update link to the TypeScript handbook (#47075) Closes #47070 PR Close #47075 08 August 2022, 18:31:19 UTC
d14235c ci: invalidate circleci caches to prune nested `node_modules` (#46707) Yarn 1.x. is known to not prune nested unused node modules. This throws off Bazel when the dependency tree changes but there are leftover unused nested node module folders. This causes CI failures currently after the dependency tree updates. Invalidating the cache fixes this issue. Long-term a switch to Yarn 2.x+, pnpm will fix this. PR Close #46707 08 August 2022, 16:23:56 UTC
befd650 build: update all non-major dependencies (#46707) See associated pull request for more information. PR Close #46707 08 August 2022, 16:23:56 UTC
fd2abeb docs: fix link in dependency injection guide (#47055) PR Close #47055 08 August 2022, 16:23:06 UTC
387f4a7 docs: update dependency injection content (#44466) Refactored the DI section to improve doc quality, reduce cognitive load and drive consistency. - Added an overview with prerequisites and doc cards that point to rest of the DI content - Added introduction topic with topic purpose, value proposition and "fail fast" - Broke apart complex concepts into simpler tasks - Unified tone and language for each topic - Added new content based on SME feedback - Deleted obsolete content PR Close #44466 05 August 2022, 17:06:14 UTC
8f32c09 build: update io_bazel_rules_sass digest to 697e5a0 (#47046) See associated pull request for more information. PR Close #47046 05 August 2022, 16:57:45 UTC
04b3497 build: update `ngsw-config.json` after redirect changes (#47048) Looks like the `ngsw-config.json` file needs to be updated after a new redirect being added in: https://github.com/angular/angular/pull/46820. PR Close #47048 05 August 2022, 16:56:57 UTC
d0e3ad5 refactor(docs-infra): update `safevalues` and account for API changes (#47048) Updates `safevalues` to unblock https://github.com/angular/angular/pull/46707. As part of this commit the necessary refactorings due to API changes are also made. PR Close #47048 05 August 2022, 16:56:57 UTC
c7fed38 refactor(router): Cherry-pick Router services to be providedIn: 'root' (#47052) Recent refactoring in the Router made services available via `providedIn: 'root'`. However, some of these changes were not merged to the patch branch. This commit updates the remaining services needed to create the `Router` without `RouterModule` and adds a test to ensure it works. PR Close #47052 05 August 2022, 16:36:11 UTC
1d39ab6 build: update io_bazel_rules_sass digest to 70ffe01 (#47023) See associated pull request for more information. PR Close #47023 04 August 2022, 20:08:42 UTC
fce4ea1 docs: add yarn build fail workaround on windows (#47037) PR Close #47037 04 August 2022, 20:08:19 UTC
2a833e6 ci: fix Renovate post-upgrade task command (#47040) Since Renovate runs from the project directory, it cannot find the `sync-deps` yarn script inside `aio/tools/examples/shared/`: [example failure][1] Update the post-upgrade task command to run inside that directory instead of the project root. [1]: https://github.com/angular/angular/pull/46707#issuecomment-1203335639 PR Close #47040 04 August 2022, 20:07:56 UTC
d0f4f1d docs: update Vale installation instructions (#47031) This update includes: * installation directions for the current version of the Vale VSCode extension (v. 0.15.0) * a workaround for if the current version of the extension doesn't work. PR Close #47031 04 August 2022, 00:35:31 UTC
3ee883e fix(docs-infra): do not require `@ngModule` tag on standalone types (#47024) This commit updates docs extraction logic to avoid requiring the `@ngModule` tag on standalone types, since they don't have to be present in any NgModule. PR Close #47024 03 August 2022, 18:04:56 UTC
b868f1c release: cut the v14.1.1 release 03 August 2022, 17:48:18 UTC
efb8e3e docs(core): Update inject error documentation (#47020) The inject function is also available when using EnvironmentInjector.runInContext. PR Close #47020 03 August 2022, 01:06:55 UTC
8085fe3 build: update eslint dependencies to v5.32.0 (#47016) See associated pull request for more information. PR Close #47016 02 August 2022, 18:59:42 UTC
9edfe4a build(docs-infra): ensure all boilerplate dependencies are in sync (#47009) All docs examples share the same `node_modules/` (symlinked into each example from `aio/tools/examples/shared/node_modules/`). However, each example type has a different `package.json`, which comes from `aio/tools/examples/shared/boilerplate/*`). In order to ensure that the dependencies in each example's `package.json` are the same as the ones in the symlinked `node_modules/` (i.e. the ones that CI tests are run with), we have a script (`yarn run sync-deps`) that can sync dependencies from `shared/package.json` into the boilerplate `package.json` files. Previously, this script had to be run manually, which was easy to forget/not know about and resulted in the boilerplate dependencies often being out-of-sync with the ones in `shared/package.json` (and by extension, the ones that were actually installed in `node_modules/`). This commit helps keep the boilerplate dependencies up-to-date in the following ways: - Adds the `sync-deps` script to the `postinstall` scripts. This ensures that dependencies remain in sync whenever someone manually updates dependencies in `shared/package.json`. - Runs the `sync-deps` script as a Renovate post-upgrade task. This ensures that the depenencies remain in sync whenever Renovate updates dependencies in `shared/package.json`. For more info on configuring post-upgrade tasks in Renovate, see: - [postUpgradeTasks][1] - [allowedPostUpgradeCommands][2] - [allowPostUpgradeCommandTemplating][3] NOTE: For the Renovate change to take effect, the [global config][4] in `angular/dev-infra` also needs to be updated. This will be done in a separate PR. [1]: https://docs.renovatebot.com/configuration-options/#postupgradetasks [2]: https://docs.renovatebot.com/self-hosted-configuration/#allowedpostupgradecommands [3]: https://docs.renovatebot.com/self-hosted-configuration/#allowpostupgradecommandtemplating [4]: https://github.com/angular/dev-infra/blob/22d3067021130271afcfd02d063828c5bdd9c2d7/.github/ng-renovate/runner-config.js PR Close #47009 02 August 2022, 18:58:51 UTC
79825d3 fix(router): Do not call preload method when not necessary (#47007) In Angular 14, we introduced the `loadComponent` API for a `Route` to allow lazy loading of a routed component in addition to the existing `loadChildren` which allows lazy loading of child routes. As a result, the `preload` method of the `PreloadingStrategy` needs to sometimes be called even when there is a `canLoad` guard on the `Route`. `CanLoad` guards block loading of child routes but _do not_ block loading of the component. This change updates the conditional checks in the internal preloader to skip calling the `PreloadingStrategy.preload` when there is only a `loadChildren` callback with a `canLoad` guard an no `loadComponent`. In this case, the callback passed to the `preload` method is already effectively a no-op so it's not necessary to call it at all. resolves #47003 PR Close #47007 02 August 2022, 16:38:28 UTC
4e9492c build: update dev-infra packages and account for build-tooling split from `ng-dev` (#46976) The dev-infra build tooling is now decoupled from `ng-dev`. This will make it easier to update `ng-dev` without necessarily needing to upgrade the whole build system, Bazel etc. This is useful when e.g. new release tool features have been added and should also be ported to active LTS branches. PR Close #46976 02 August 2022, 16:37:38 UTC
3f162f5 refactor(common): Align PathLocationStrategy constructor with default factory (#46929) When using the Angular Router, one of `APP_BASE_HREF` or a `<base>` in the header must be provided. When _not_ using the `RouterModule`, injecting the `LocationStrategy` will result in the `PathLocationStrategy` being provided with a default value used in place of `APP_BASE_HREF` that is `document?.location?.origin ?? ''`. It can be quite surprising and annoying that once you add `RouterModule` to the application, suddenly the `APP_BASE_HREF` must be specifically provide something new when it could use a sensible default instead. The current behavior (before this commit) is as follows: * When `RouterModule` is not provided (or the dev doesn't specifically provide `PathLocationStrategy`): use `DOCUMENT.location?.origin ?? ''`. Note that the base href in the dom and `APP_BASE_HREF` are not used. * When `RouterModule` _is_ provided: 1. APP_BASE_HREF if defined 2. Get base href from DOM 3. throw if neither of the two above are defined This commit updates this behavior to be aligned regardless of `RouterModule` usage. The order (by default) is now: 1. Developer provided `APP_BASE_HREF` 2. base href from the DOM 3. `location.origin` 4. If none of the above exist, use `''` This is slightly different than the behavior before. However, I believe it is more appropriate. For the case without `RouterModule`, it would likely be surprising that `APP_BASE_HREF` and the base href from the DOM are ignored by default. For the case with `RouterModule`, we now have a more sensible fallback/default when neither `APP_BASE_HREF` nor `<base>` are defined (instead of just throwing an error). PR Close #46929 01 August 2022, 21:21:14 UTC
b6445c4 docs: fix link to live example (#47011) Fixes #46975 PR Close #47011 01 August 2022, 21:20:37 UTC
d05d05e docs: fix link in routing (#46988) PR Close #46988 01 August 2022, 20:00:25 UTC
7a7452d build: update bazel setup to v5.5.3 (#47000) See associated pull request for more information. PR Close #47000 01 August 2022, 19:55:44 UTC
05f3f74 fix(router): Use correct return type for provideRoutes function (#46941) The provideRoutes function of the Router returns a Provider array and should not be typed as 'any' PR Close #46941 01 August 2022, 18:20:50 UTC
6307f35 refactor(router): Remove unused ANALYZE_FOR_ENTRY_COMPONENTS (#46942) `entryComponents` is a feature that is not used or necessary in Angular anymore. PR Close #46942 01 August 2022, 18:18:10 UTC
ce6ad5a docs: fix selector in Component Interaction guide (#46995) The selector for the `CountdownTimerComponent` is `app-countdown-timer` not `countdown-timer`. PR Close #46995 01 August 2022, 18:16:31 UTC
cbfd91b docs: fixed typos (#47008) Used my script: https://github.com/Uziel302/websites-spell-checker/blob/master/mdnversion PR Close #47008 01 August 2022, 18:15:55 UTC
8cd95d4 refactor(zone.js): remove leftover debugging code using `Error.stack` (#46989) Pull request #46672 added some debugging code to trace down the root cause of its bug, but parts of the debugging code has never been cleaned up and ended up landing as part of the PR. This commit removes the code as it might cause unexpected issues. Likely when e.g. `Error` is patched and would perform XHRs in testing, unveiling e.g. CORS issues. See #46989. PR Close #46989 01 August 2022, 16:52:30 UTC
ec00075 refactor(compiler-cli): remove unused error codes (#46847) A few codes were unused, or no longer used. PR Close #46847 01 August 2022, 16:50:12 UTC
a0a6353 fix(bazel): allow extendedDiagnostics option to be passed in through tsconfig (#46953) Adds the `extendedDiagnostics` field to the list of allowed options so that it is picked up from the user's tsconfig. PR Close #46953 01 August 2022, 16:49:14 UTC
8dcd3cd build: update eslint dependencies to v5.31.0 (#46968) See associated pull request for more information. PR Close #46968 01 August 2022, 16:46:41 UTC
677fe6a build: update io_bazel_rules_sass digest to 030f696 (#46947) See associated pull request for more information. PR Close #46947 01 August 2022, 16:40:03 UTC
5d8394c build: update dependency google-closure-compiler to v20220719 (#46926) See associated pull request for more information. PR Close #46926 01 August 2022, 16:39:26 UTC
acdb28d build: update cross-repo angular dependencies to 6d9c069 (#46905) See associated pull request for more information. PR Close #46905 01 August 2022, 16:38:35 UTC
c5a5165 docs: modify callout in TOH part 2 (#46964) PR Close #46964 01 August 2022, 16:30:04 UTC
71831c6 docs: fix typo in guide/structural-directives page (#46961) Fix typo [missing plural marker "element_s_"] on https://angular.io/guide/structural-directives. Original: >Structural directives are directives which change the DOM layout by adding and removing DOM element. Fix: >Structural directives are directives which change the DOM layout by adding and removing DOM element**s**. PR Close #46961 01 August 2022, 16:29:40 UTC
3511373 docs: initial upload of styles used by doc linter (#46897) Add the configuration and style files to support documentation linting. The `README.md` file includes instructions for installation and use of the lint tool. PR Close #46897 01 August 2022, 16:29:06 UTC
ff7c716 build: update doc approvers (#46939) Remove: TMDavis, who is no longer at Google Add: bob-watson who is now on the team PR Close #46939 22 July 2022, 15:39:34 UTC
6b779b1 docs: add missing period to the Security guide (#46900) PR Close #46900 22 July 2022, 15:37:30 UTC
1eb77a2 docs: add simona cotin to contributors (#46922) PR Close #46922 22 July 2022, 08:27:08 UTC
929d69e docs(router): remove incorrect deprecation text in `InitialNavigation` (#46916) Remove left over deprecation note. PR Close #46916 22 July 2022, 08:26:25 UTC
f5d764d refactor(router): Update internal INITIAL_NAVIGATION token to use an enum (#46925) This updates the internal use of INITIAL_NAVIGATION to do two things: 1. Explicitly provide `Enabled` as the default for the token factory 2. Use an enum instead of a string to reduce bundle size PR Close #46925 22 July 2022, 08:25:37 UTC
55f485b refactor(platform-server): include TransferState providers into ServerModule (#46899) This commit updates the code to include the TransferState providers (used for serialization) into the `ServerModule` instead of having the need to import the `ServerTransferStateModule` separately. The list of providers in the `ServerTransferStateModule` is now empty and importing it is a noop. This is not a breaking change, since the `ServerModule` must be included anyways to make server rendering work correctly. PR Close #46899 21 July 2022, 12:17:43 UTC
3606917 fix(core): improve the missing control flow directive message (#46903) Similarly to what has been done in #46846 for the extended diagnostics about missing control flow directive that was only mentioning that the `CommonModule` should be imported, this commit improves the validation done by the JiT compiler. Now that the control flow directives are available as standalone, the message mentions that directive itself can be imported. The message now also mentions which import should be used for the directive (as it can be tricky to figure out that `NgForOf` is the directive corresponding to `*ngFor`). PR Close #46903 21 July 2022, 08:27:32 UTC
0cbbd6a refactor(router): Update Router to be `providedIn: 'root'` (#46914) This commit updates the Router itself to be `providedIn: 'root'` with a factory function rather than provided in the `RouterModule`. PR Close #46914 20 July 2022, 19:21:05 UTC
a8e9247 refactor(platform-server): make `TransferState` standalone-friendly (#46879) This commit updates the `TransferState` to make it `providedIn: 'root'`. This makes the entire `BrowserTransferStateModule` module unnecessary, so it got deprecated as well. The `ServerTransferStateModule` is still retained, but the `renderApplication` function now also includes the necessary tokens to serialize the `TransferState` automatically, so when using the `renderApplication` function, there is no need to include `ServerTransferStateModule` as well. This change is a part of the ongoing efforts to update the shape of the FW APIs to make them standalone-friendly (so there is no need to import any NgModules). PR Close #46879 20 July 2022, 18:05:08 UTC
793326d release: cut the v14.1.0 release 20 July 2022, 17:44:59 UTC
10d46b4 refactor(bazel): remove `experimental_extended_template_diagnostics` flag (#46898) Extended diagnostics are enabled by default now and this flag doesn't do anything anymore but I missed it in a previous cleanup. PR Close #46898 20 July 2022, 15:50:45 UTC
b744bf6 refactor(compiler-cli): improve error for non-exported non-standalone (#46114) improve the error message for non-standalone components which are not exported from their module, and that are also imported directly as if they were standalone this change simply adds the suggestion to the developer to import the ngModule instead resolves #46004 PR Close #46114 20 July 2022, 15:50:01 UTC
2e5bd88 refactor(core): NgModuleRef should not implement EnvironmentInjector interface (#46896) This commit refactors the `NgModuleRef` implementation to drop functions required by the `EnvironmentInjector` interface. Previously the idea was that the `NgModuleRef` can act as an Injector to facilitate easier transition to standalone. However, from the mental model perspective, the `NgModuleRef` has the `injector` field, which is the correct injector reference and can be used is needed as an `EnvironmentInjector`. PR Close #46896 20 July 2022, 15:49:15 UTC
back to top