https://github.com/angular/angular

sort by:
Revision Author Date Message Commit Date
ffc6843 docs: Add NG8107 entry : Optional chain not nullable extended diagnostic (#49287) PR Close #49287 02 March 2023, 19:56:37 UTC
8f7fbdd refactor: remove duplicate key from component metadata (#49065) `directiveMetadata()` already assigns the `standalone` property to the `R3ComponentMetadataFacade` there is no need to do it twice. PR Close #49065 01 March 2023, 22:36:50 UTC
bca3aed build: remove core-js-bundle from dependencies (#49259) This is no longer needed as Angular is ever green. PR Close #49259 01 March 2023, 19:19:49 UTC
819b9f3 refactor(core): move `APP_BOOTSTRAP_LISTENER` to avoid circular deps (#49273) This commit moves the `APP_BOOTSTRAP_LISTENER` token into the `application_ref.ts` to avoid a risk of circular dependencies. The main problem is that the token refers to the `ComponentRef`, which in turn refers to more symbols, thus making the `application_tokens.ts` file susceptible to circular dependencies. Such a dependency was identified in https://github.com/angular/angular/pull/49271. PR Close #49273 01 March 2023, 19:18:28 UTC
6207d6f fix(migrations): add protractor support if protractor imports are detected (#49274) The new `bootstrapApplication` API doesn't include Protractor support anymore which may cause existing e2e tests to break after the migration. These changes add some logic that will provide Protractor support if any imports to `protractor` or `protractor/*` are detected. PR Close #49274 01 March 2023, 19:13:57 UTC
1749971 release: cut the v15.2.1 release 01 March 2023, 18:53:10 UTC
439b4d3 docs: clarify ActivatedRouter injection location (#49270) The example in the code snippet below this line of text shows `ActivatedRouter` being injected into a component's constructor. When I read instruction to inject A`ActivatedRouter` into **application's** constructor, I assumed this meant the constructor for `app.component.ts`. Editing to clarify/match code example below. PR Close #49270 01 March 2023, 01:13:37 UTC
377d0c9 build: update cross-repo angular dependencies (#49268) See associated pull request for more information. PR Close #49268 28 February 2023, 20:43:42 UTC
d60ea6a fix(core): update zone.js peerDependencies ranges (#49244) This ensures that the latest version of zone.js is supported. PR Close #49244 28 February 2023, 19:55:54 UTC
dafb765 refactor(core): Drop Symbol.iterator shim (#49207) We are targeting evergreen browsers, we can drop the shim. PR Close #49207 28 February 2023, 18:05:42 UTC
44d095a fix(migrations): avoid migrating the same class multiple times in standalone migration (#49245) If a class is declared in multiple modules, the standalone migration may end up generating invalid code. While declaring a class in multiple modules is an error, it can happen with modules in tests. These changes avoid the issue by using a `Set` to track the classes being migrated. PR Close #49245 28 February 2023, 18:04:55 UTC
600fd12 docs: New doc extract from original HTTP doc to be retired. (#48915) PR Close #48915 28 February 2023, 17:32:30 UTC
d100ddf docs: New doc extract from original HTTP doc to be retired. (#48912) PR Close #48912 28 February 2023, 17:31:31 UTC
1aadabb docs: New doc extract from original HTTP doc to be retired. (#48908) PR Close #48908 28 February 2023, 17:30:14 UTC
d252187 docs: New document extracted from the original Communicating with backend services using HTTP document, which is to be retired. (#47971) PR Close #47971 28 February 2023, 17:29:13 UTC
6d6b76c docs(router): Improving linking (#49203) Add links to @see elements and suggest a more explicit alternative for the depreciation of `CanActivate`. PR Close #49203 28 February 2023, 16:24:11 UTC
5f2822c refactor(platform-server): handle #24571 todos (#49233) This commit removes the remaining TODO(issue/24571) in platform-server code base. PR Close #49233 28 February 2023, 16:19:58 UTC
acc87a4 docs: remove TODO from doc example (#49233) This commit removes a TODO(issue/24571) that leaking into the docs examples PR Close #49233 28 February 2023, 16:19:57 UTC
7eec66c refactor(elements): handle #24571 todos (#49233) This commit removes the remaining TODO(issue/24571) in elements code base. PR Close #49233 28 February 2023, 16:19:57 UTC
8fc02f5 build: update eslint dependencies to v5.54.0 (#49243) See associated pull request for more information. PR Close #49243 28 February 2023, 16:19:07 UTC
313760b build: update github/codeql-action action to v2.2.5 (#49242) See associated pull request for more information. PR Close #49242 28 February 2023, 16:18:22 UTC
87252dc docs: improve section title in TOH-pt4 (#49208) fixes #49165 PR Close #49208 28 February 2023, 16:16:39 UTC
785ab81 ci: add several dependencies to renovate ignore list (#49258) Add ignored dependencies in Renovate config. These have been collected from the dependency dashboard (https://github.com/angular/angular/issues/46728) The reason for this change is that Renovate is re-opened dependency updates for ignored PRs. Example: https://github.com/angular/angular/pull/49256 https://github.com/angular/angular/pull/47852 PR Close #49258 28 February 2023, 16:15:05 UTC
19a4cde docs: New document extracted from the original Communicating with backend services using HTTP document, which is to be retired. (#47937) PR Close #47937 27 February 2023, 23:24:41 UTC
3062442 fix(router): add error message when using loadComponent with a NgModule (#49164) Add a more specific error message when defining a lazy-loaded route using `loadComponent` and passing it a NgModule instead of a standalone component, when the user should actually be using `loadChildren`. PR Close #49164 27 February 2023, 18:09:55 UTC
138b493 release: bump DevTools version (#49121) PR Close #49121 27 February 2023, 18:07:54 UTC
af31adb refactor(common): Use isPromise from @angular/core (#49210) This commit removes `isPromise()` from Common as it's a duplicate function that can be imported from `@angular/core`. PR Close #49210 27 February 2023, 18:03:21 UTC
f0e9260 fix(common): make Location.normalize() return the correct path when the base path contains characters that interfere with regex syntax. (#49181) Fix the function stripping the base path from the URL, as the current implementation uses the base path as part of a regex, which wrongly makes paths fails that contain characters such as a parenthesis (example: C:/Users/MyUser(Test)/project). Fixes #49179 PR Close #49181 27 February 2023, 18:02:33 UTC
7ec76de refactor(core): add previous sibling node reference to TNode (#49223) This commit updates the `TNode` to include a reference to the previous sibling node. Currently, TNode has references to the next sibling and parent nodes, but in followup changes we'd need to have access to previous TNodes (to determine position of the current node). PR Close #49223 27 February 2023, 18:00:26 UTC
a852862 build: cleanup unused dependencies (#49227) Cleans up a few more unused dependencies. Related: https://github.com/angular/angular/pull/49226 PR Close #49227 27 February 2023, 16:06:00 UTC
6107d2e docs: change link for Angular Projects book (#49198) PR Close #49198 27 February 2023, 16:05:21 UTC
56f7d1f docs: add new edition of Learning Angular book (#49199) PR Close #49199 27 February 2023, 16:04:35 UTC
6d91296 docs: bump first-app to 15.2 (#49217) The stackblitz demo of the quick-start guide was broken with incompatible dependencies. This commit fixes this. Fixes #49213 PR Close #49217 27 February 2023, 16:03:47 UTC
8542593 refactor(platform-browser): move TransferState init logic into its constructor (#49191) This commit updates the TransferState class to move its init logic from the `useFactory` function to its constructor. The change is needed to make the init behavior consistent across different injection scenarios and tolerate the issue described in https://github.com/angular/angular/issues/49190. PR Close #49191 24 February 2023, 18:41:17 UTC
d0fa598 refactor(core): avoid creating DOM nodes before creating a TNode (#49172) This commit updates the `elementStart` instruction to avoid creating DOM nodes before creating a corresponding TNode. This refactoring is needed to make sure this internal logic is consistent across all instructions. PR Close #49172 24 February 2023, 16:29:06 UTC
04d8b6c fix(compiler-cli): do not persist component analysis if template/styles are missing (#49184) Consider the following scenario: 1. A TS file with a component and templateUrl exists 2. The template file does not exist. 3. First build: ngtsc will properly report the error, via a FatalDiagnosticError 4. The template file is now created 5. Second build: ngtsc still reports the same errror. ngtsc persists the analysis data of the component and never invalidates it when the template/style file becomes available later. This breaks incremental builds and potentially common workflows where resource files are added later after the TS file is created. This did surface as an issue in the Angular CLI yet because Webpack requires users to re-start the process when a new file is added. With ESBuild this will change and this also breaks incremental builds with Bazel/Blaze workers. To fix this, we have a few options: * Invalidate the analysis when e.g. the template file is missing. Never caching it means that it will be re-analyzed on every build iteration. * Add the resource dependency to ngtsc's incremental file graph. ngtsc will then know via `host.getModifiedResources` when the file becomes available- and fresh analysis of component would occur. The first approach is straightforward to implement and was chosen here. The second approach would allow ngtsc to re-use more of the analysis when we know that e.g. the template file still not there, but it increases complexity unnecessarily because there is no **single** obvious resource path for e.g. a `templateUrl`. The URL is attempted to be resolved using multiple strategies, such as TS program root dirs, or there is support for a custom resolution through `host.resourceNameToFileName`. It would be possible to determine some candidate paths and add them to the dependency tracker, but it seems incomplete given possible external resolvers like `resourceNameToFileName` and also would likely not have a sufficient-enough impact given that a broken component decorator is not expected to remain for too long between N incremental build iterations. PR Close #49184 24 February 2023, 16:24:08 UTC
92b0bda fix(migrations): delete barrel exports in standalone migration (#49176) Adds some logic to automatically delete `export * from './foo'` style imports. Previously they weren't being picked up, because finding all the references using the language service doesn't include barrel exports. PR Close #49176 24 February 2023, 16:23:02 UTC
d7835e4 docs(router): fix code block closing ticks (#49185) PR Close #49185 23 February 2023, 18:37:25 UTC
e384c69 docs(core): Improved README.md (#49171) PR Close #49171 23 February 2023, 18:35:42 UTC
aa10532 build: update io_bazel_rules_sass digest to 1f27790 (#49132) See associated pull request for more information. PR Close #49132 23 February 2023, 18:34:43 UTC
7677963 release: cut the v15.2.0 release 22 February 2023, 21:04:10 UTC
03fcb36 fix(migrations): migrate HttpClientModule to provideHttpClient() (#48949) The `standalone-bootstrap` migration now migrates `HttpClientModule` imports to `provideHttpClient(withInterceptorsFromDi())` instead of `importProvidersFrom(HttpClientModule)`. The `withInterceptorsFromDi()` feature is added to make sure class-based interceptors still works if there are any in the application. Fixes #48948 PR Close #48949 22 February 2023, 19:30:01 UTC
2f08560 docs: escape script tag to prevent rendering problems (#49152) un-commented tags are responsible for rendering problem of markdown document. This commit fixes the http make jsonp request guide. fixes #49151 PR Close #49152 22 February 2023, 19:29:33 UTC
7b4d3c0 build: update actions/cache digest to 69d9d44 (#49148) See associated pull request for more information. PR Close #49148 21 February 2023, 21:36:41 UTC
c98c6a8 fix(migrations): don't copy animations modules into the imports of test components (#49147) Since we have less information about how to copy test components, we copy all the `imports` from the `configureTestingModule` call into the component's `imports`. It fixes some tests, but it can cause issues with animations modules, because they throw errors if they're imported multiple times. These changes add an exception for animations modules imported in testing modules. PR Close #49147 21 February 2023, 21:35:43 UTC
6301935 build: update eslint dependencies to v5.53.0 (#49146) See associated pull request for more information. PR Close #49146 21 February 2023, 21:24:16 UTC
cff84d0 docs(router): `canMatch` route guard method signature update (#49140) Very cosmetic, but it might be necessary : I updated the ```canAccess``` method second signature name and type in the provided sample. As it stands, it triggers `TS(2345): Argument of type 'Route' is not assignable to parameter of type 'string'`. PR Close #49140 21 February 2023, 21:23:08 UTC
ba7a757 fix(migrations): return correct alias when conflicting import exists (#49139) Fixes that the `ImportManager` was returning the `propertyName` instead of the `name` when there's an import with a conflicting identifier. PR Close #49139 21 February 2023, 21:17:21 UTC
ecb3091 build: update AIO to TypeScript 4.9 (#49135) Updates AIO to the latest stable version of TypeScript as a prerequisite to drop support for 4.8. PR Close #49135 21 February 2023, 21:16:36 UTC
2fd8194 docs: add NG Poland 2023 and JS Poland 2023 to events (#48972) docs: add NG Poland 2023 and JS Poland 2023 to events PR Close #48972 21 February 2023, 21:16:06 UTC
0950ef6 ci: attempt to fix node windows job flakiness (#49142) Ocasionally Node is randomly not installed in the Windows job. We've been trying to debug this for a while. With the additonal debug information it looks like in some situations the NodeJS folder from NVM is not even present. One idea is to use `nvm on` to ensure NVM is actually enabled. It's unclear why it would be `off` at VM start, but it's worth giving a try. Trying `nvm off` via SSH yields similar issues as we saw in the flaky workflows: https://app.circleci.com/pipelines/github/angular/angular/56160/workflows/2f1b80b3-29c7-4274-804e-cb994c20aff0/jobs/1287228 PR Close #49142 20 February 2023, 15:16:54 UTC
e69ba26 ci: fix rbe initialization failing in windows job (#49142) The RBE init script from dev-infra is using ES2020 but the image NodeJS version does not support e.g. nullish coalescing. PR Close #49142 20 February 2023, 15:16:54 UTC
6187888 build: update to latest remote build execution setup (#49133) Update to the latest RBE setup after key rotation. PR Close #49133 18 February 2023, 02:42:28 UTC
8ed653b ci: update AIO payload size tracking (#49130) This commit updates a golden file to decrease an expected payload size. PR Close #49130 17 February 2023, 19:55:02 UTC
b76b176 refactor(http): simplify HttpClientModule XSRF configuration (#48957) The current configuration of `HttpClientModule` explicitely enables the XSRF configuration, but this XSRF configuration is the one used by default by `provideHttpClient`. See https://github.com/angular/angular/blob/main/packages/common/http/src/provider.ts#L50-L98 PR Close #48957 17 February 2023, 19:17:55 UTC
f8a932a build: update io_bazel_rules_sass digest to a2efcd6 (#49122) See associated pull request for more information. PR Close #49122 17 February 2023, 19:11:01 UTC
d784986 Revert "fix(platform-server): insert transfer state `script` before other `script` tags (#48868)" (#49112) This reverts commit 2fc5b70fcedb8ac35b825b245c0ae394dc125244 as this change is no longer needed since `type=module` script are deferred by default. Which causes the transfer data to be queried after the browser has finished parsing the DOM. PR Close #49112 17 February 2023, 19:09:22 UTC
31a71a0 refactor: remove unnecessary file (#49042) view had a single export from a file located in the same package, no need to keep it. PR Close #49042 17 February 2023, 19:08:34 UTC
3d8efec test: remove `cli-hello-world-ivy-compat` integration test (#49111) This now is the same as `cli-hello-world` since this test does not use View Engine PR Close #49111 17 February 2023, 19:07:28 UTC
345817f docs: New doc HTTP client - Pass metadata to interceptors. (#48918) PR Close #48918 17 February 2023, 19:06:58 UTC
24b6eea docs: New doc HTTP client - Test requests (#48917) PR Close #48917 17 February 2023, 19:06:04 UTC
d457ffc docs: New doc HTTP client - Security: Cross-Site Request Forgery (XSRF) protection (#48916) PR Close #48916 17 February 2023, 19:05:27 UTC
a378267 docs: New doc extract from original HTTP doc to be retired. (#48913) PR Close #48913 17 February 2023, 19:04:51 UTC
11f8f8d docs: new doc extract from original HTTP doc to be retired. (#48911) PR Close #48911 17 February 2023, 19:04:22 UTC
4811850 docs: new doc extract from original HTTP doc which is to be retired. (#48905) PR Close #48905 17 February 2023, 19:03:49 UTC
5d64409 docs: New document extracted from the original Communicating with backend services using HTTP document, which is to be retired. (#47965) PR Close #47965 17 February 2023, 19:03:06 UTC
25e220a fix(platform-server): avoid duplicate TransferState info after renderApplication call (#49094) This commit updates the `renderApplication` function to avoid duplicate serialization of the data from the `TransferState` class. The `renderApplication` function imports providers from the `ServerModule`, which already include the `TransferState` serialization providers, but the same providers were also included inside the `renderApplication` as well, which led to the duplication. PR Close #49094 17 February 2023, 00:00:30 UTC
c95766e refactor: restore tree shaking for a warning message (#49064) `getInheritedInjectableDef` logs a depreciation warning that can be tree shaked in prod. Let's do it. PR Close #49064 16 February 2023, 23:55:44 UTC
43e9301 docs: fixing typo in angular compiler options (#49085) The strictness flags that this "option" instead of "open". Fixes #49078 PR Close #49085 16 February 2023, 23:54:15 UTC
e63fb80 refactor(router): Remove warning for an invalid ActivatedRoute (#49117) This warning was put in place to surface an error when developers use an ActivatedRoute with an invalid structure in tests. However, there isn't a clear path to fixing it and the tests continue to pass (ideally - that's what the recovery code is there for). Rather than surfacing an error that developers would be confused by and likely ignore, it would be better to not warn at all unless there is a clearer action to take to resolve the issue. resolves #49116 PR Close #49117 16 February 2023, 23:53:29 UTC
25bed17 docs: fix typo in toh-pt5.md (#49108) Line 254 - change 'liberate' to 'liberates'. PR Close #49108 16 February 2023, 23:52:33 UTC
117af7d docs: improve sentence in toh-pt5.md (#49109) Line 302 - improve clarity. PR Close #49109 16 February 2023, 23:51:27 UTC
ee7a924 docs: fix typo in router-tutorial-toh.md (#49095) non-existant -> non-existent PR Close #49095 16 February 2023, 23:50:56 UTC
e1607cd docs(core): typo adding missing comma (#49088) PR Close #49088 16 February 2023, 23:49:09 UTC
b06a1d0 docs: add guide for standalone migration (#49044) Adds a guide describing how to use the standalone migration schematic. The new guide is grouped together with the existing standalone guide. PR Close #49044 16 February 2023, 23:33:18 UTC
a814ed1 docs: close the developer survey (#49092) PR Close #49092 16 February 2023, 23:32:45 UTC
1a7444f build: avoid unnecessary re-evaluation of starlark code (#49106) The experimental allow tags propagation flag is a `BuildLanguage` option and causes all Starlark code to be re-invoked. This causes a slow-down when switching between bazel query/ bazel build because the option is not set for `bazel query`. We fix it by applying the option to all commands, using `common`. PR Close #49106 16 February 2023, 23:31:56 UTC
bf4ad38 fix(platform-browser): remove styles from DOM of destroyed components (#48298) Currently style of components using `encapsulation`, `None` or `Emulated` will not be removed from the DOM once the component get destroyed. This change addresses this by keeping track of the number of times a component is rendered, when the component is destroyed the counter is decreased and once this reaches zero the style element is removed from the DOM. Currently, this new behaviour is on opt-in bases, but it will be changed in the next major version. To opt-in, set the `REMOVE_STYLES_ON_COMPONENT_DESTROY` DI token to `true`. Example ```ts @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule ], providers: [ { provide: REMOVE_STYLES_ON_COMPONENT_DESTROY, useValue: true } ], bootstrap: [AppComponent] }) export class AppModule { } ``` Closes #16670 PR Close #48298 16 February 2023, 23:31:24 UTC
86d4016 refactor(compiler): remove remaining usage of getMutableClone (#49070) Uses an alternate approach of preserving default imports that doesn't involve the `getMutableClone` function that is being removed in TypeScript 5.0. The alternate approach was already used in the downlevel transform and it works by patching the EmitResolver of the current transformation context to tell TypeScript to preserve the import. PR Close #49070 16 February 2023, 23:30:53 UTC
440b51b release: cut the v15.2.0-rc.0 release 15 February 2023, 17:45:14 UTC
44f13e2 docs: release notes for the v15.1.5 release 15 February 2023, 17:38:17 UTC
2ca4972 refactor(devtools): consolidate devtools global styles into 1 file (#49001) Previously the DevTools demo app and browser app had duplicated styles in their respective styles.scss files. This commit creates a global styles.scss that is imported with sass @use into the demo and browser app styles.scss files. This will prevent any issues where css changes to one are missed in the other. Also reduces duplication of material css theme definitions by consolidating it inone place. The respective styles.scss files for the demo app and browser app continue to exist incase those need environment specific css. For example the browser app requires that height: 100% is set on a document in order to render properly in a browsers devtools tab. PR Close #49001 14 February 2023, 19:25:23 UTC
7321154 docs: remove former team members from bios (#48999) PR Close #48999 14 February 2023, 17:46:20 UTC
6529ade ci: clean up pull approve file from former team members (#48999) Cleanup pullapprove file PR Close #48999 14 February 2023, 17:46:20 UTC
1f1a312 build: update dependency json5 to v2.2.2 [security] (#48989) See associated pull request for more information. PR Close #48989 14 February 2023, 17:04:01 UTC
a4fdc8f build: update eslint dependencies to v5.52.0 (#49056) See associated pull request for more information. PR Close #49056 14 February 2023, 15:28:01 UTC
7e4c554 docs: fix the broke URL to w3c Trusted Types spec (#49047) PR Close #49047 14 February 2023, 15:25:54 UTC
f874d6e build: update dependency google-closure-compiler to v20230206 (#49028) See associated pull request for more information. PR Close #49028 14 February 2023, 15:24:22 UTC
b98b2b3 build: update cross-repo angular dependencies (#49058) See associated pull request for more information. PR Close #49058 14 February 2023, 15:18:46 UTC
62453bf build: update github/codeql-action action to v2.2.4 (#49055) See associated pull request for more information. PR Close #49055 14 February 2023, 14:02:33 UTC
1c5ae63 refactor(docs-infra): Drop deprecated rxjs multicasting operators (#48969) RxJS has deprecated the `publishReplay` & `publishLast` operators which will be removed in RxJS 8. `connectable()` should be used instead. PR Close #48969 14 February 2023, 13:48:29 UTC
31a2e21 build: update cross-repo angular dependencies (#48929) See associated pull request for more information. PR Close #48929 14 February 2023, 13:46:07 UTC
64f3684 build: update io_bazel_rules_sass digest to b603e6f (#49053) See associated pull request for more information. PR Close #49053 14 February 2023, 13:40:22 UTC
3ec2e2d build: never cache monitoring bazel test target (#49039) We recently switched some of the monitoring e2e tests to Bazel. These tests should never be cached because they rely on an external URL and on network access. The URL itself might stay the same for quite a while, but the underlying site might change based on new deployments. Bazel only sees the URL and caches the test then. We want to avoid this. PR Close #49039 13 February 2023, 19:04:47 UTC
ebae506 fix(migrations): use import remapper in root component (#49046) Fixes that in #49022 the component import remapping function was being passed into the standalone migration. PR Close #49046 13 February 2023, 15:08:18 UTC
0b725a8 build: update dependency eslint-plugin-jsdoc to v40 (#49037) See associated pull request for more information. PR Close #49037 13 February 2023, 15:07:26 UTC
816e76a fix(migrations): automatically prune root module after bootstrap step (#49030) Currently as a part of the bootstrapping API migration we comment out the metadata of the root module and instruct users to re-run the module pruning step which can be cumbersome. These changes run the module pruning automatically. Note that initially I tried to reuse the module pruning logic and to run it against the existing program, but it was problematic, because it was common to have conflicting changes for the same AST nodes. PR Close #49030 13 February 2023, 08:52:07 UTC
b97d591 build: improve debugging of symbol extractor tests (#49000) Always print the path to the JS input file so that its easy to jump to it. PR Close #49000 13 February 2023, 08:12:50 UTC
3c91d7e test: update symbol extractor test goldens to reflect terser updates (#49000) The terser update included various changes, including changes to the inline optimizations. Constants like for the bloom filter are no longer inlined multiple times, but instead the constant is preserved and used with a shortened/mangled name. Note this also applies to other symbols like `SimpleChanges` too. This means that such new variables now show up in the symbols goldens. Concrete examples of inlined & no-longer inlined constants can be seen in the PR description: https://github.com/angular/angular/pull/49000#issue-1576416106 PR Close #49000 13 February 2023, 08:12:50 UTC
3b74be9 build: update dependency terser to 5.16.3 [security] (#49000) See associated pull request for more information. PR Close #49000 13 February 2023, 08:12:50 UTC
back to top