https://github.com/angular/angular

sort by:
Revision Author Date Message Commit Date
a3de44c release: cut the v14.0.0-next.2 release (#45008) PR Close #45008 08 February 2022, 01:19:17 UTC
64acbc4 refactor(core): drop all `.ngfactory` and `.ngsummary` imports (#44957) This commit updates various places in the repo (mostly tests/examples) to drop all `.ngfactory` and `.ngsummary` imports as they are no longer needed in Ivy. PR Close #44957 07 February 2022, 23:31:49 UTC
d4da832 docs: add Cost-Effective Angular Testing (#44969) to resources PR Close #44969 07 February 2022, 21:17:34 UTC
ebf2fc5 fix(forms): incorrectly keeping track of ngModel with ngFor inside a form (#40459) When an `NgModel` is created within a `form`, it receives an `NgControl` based on its `name`, but the control doesn't get swapped out if the name changes. This can lead to problems if the `NgModel` is part of an `ngFor`, because the name can change based on its position in the list and a new control can be defined with the same name, leading us to having multiple directives pointing to the same control. For example, if we start off with a list like : ``` [0, 1, 2]; -> [NgModel(0), NgModel(1), NgModel(2)] ``` Then we remove the second item: ``` [0, 2]; -> [NgModel(0), NgModel(2)] ``` And finally, if we decide to add an item to the end of the list, we'll already have a control for index 2, causing the list to look like: ``` [0, 2, 3]; -> [NgModel(0), NgModel(2), NgModel(2)] ``` These changes fix the issue by removing the old control when the `name` of the directive changes. Fixes #38465. Fixes #37920. PR Close #40459 07 February 2022, 21:16:10 UTC
b5cce71 build: update dependency @types/chrome to ^0.0.178 (#44982) PR Close #44982 07 February 2022, 20:08:28 UTC
70e29be refactor(forms): update `PatternValidator` to inherit `AbstractValidatorDirective` (#44887) This commit updates the `PatternValidator` class to inherit `AbstractValidatorDirective` to make it conistent with other validators. Closes angular#42267 PR Close #44887 07 February 2022, 20:07:34 UTC
d5719c2 fix(core): input coercion (#42803) BREAKING CHANGE: Forms [email] input coercion Forms [email] input value will be considered as true if it is defined with any value rather than false and 'false'. PR Close #42803 07 February 2022, 18:52:59 UTC
db6cf7e fix(compiler): allow banana-in-a-box bindings to end with non-null assertion (#37809) For two-way-bindings that use the banana-in-a-box syntax, the compiler synthesizes an event assignment expression from the primary expression. It is valid for the primary expression to be terminated by the non-null operator, however naive string substitution is used for the synthesized expression, such that the `!` would immediately precede the `=` token, resulting in the valid `!=` operator token. The expression would still parse correctly but it doesn't implement the proper semantics, resulting in incorrect runtime behavior. Changing the expression substitution to force a space between the primary expression and the assignment avoids this mistake, but it uncovers a new issue. The grammar does not allow for the LHS of an assignment to be the non-null operator, so the synthesized expression would fail to parse. To alleviate this, the synthesized expression is parsed with a special parser flag to allow for this syntax. Fixes #36551 PR Close #37809 07 February 2022, 18:46:52 UTC
638a2d5 ci: group all scorecard action dependencies (#44998) With this change we group all the scorecard action dependencies so that Renovate opens a single PR. PR Close #44998 07 February 2022, 17:46:29 UTC
4708cd0 docs(docs-infra): fix cosidered typo (#44987) fix the "cosidered" typo (which should be "considered") PR Close #44987 07 February 2022, 17:45:21 UTC
33df840 docs(router): clarify execution order for resolvers (#44995) Fixes #44971 PR Close #44995 07 February 2022, 17:44:21 UTC
2cda6cf build: update angular (#44981) PR Close #44981 07 February 2022, 17:21:09 UTC
2839303 perf(http): remove IE special status handling (#44354) revert the condition as dev only PR Close #44354 04 February 2022, 19:45:15 UTC
9917152 refactor(core): cleanup `DebugNode` and `DebugElement` implementations (#44270) This commit updates `DebugNode` and `DebugElement` implementaitons to cleanup ViewEngine removal artifacts. There is no need for a separate interface and implementation class, so we can combine them now. This comment also gets rid of `R3` suffixes (denoting Ivy) in helper methods. PR Close #44270 04 February 2022, 18:43:42 UTC
38c03a2 feat(common): support years greater than 9999 (#43622) Since According to ISO8601 the Year is minimum of 4 digits, we should support years greater than 9999. (This is similar to the change in input.js: https://github.com/LeeAdcock/angular.js/commit/e157d6fa69fecbee766e109c6b452f629bc00c8a) Changed /^(\d{4}) to /^(\d{4,}) PR Close #43622 04 February 2022, 18:43:11 UTC
d183e7d docs: correct typo (#44793) Service worker card contains typo 'us' when it should be 'use.' PR Close #44793 04 February 2022, 18:42:25 UTC
459cbed refactor(dev-infra): convert nullish coalescing operator to plain javascript (#44968) low version nodejs doesn't support nullish coalescing operator very well PR Close #44968 04 February 2022, 18:40:43 UTC
8dd3f82 fix(forms): Correct empty validator to handle objects with a property `length: 0`. (#33729) Form required validator should not reject objects that contain a length attribute set to zero. Fixes #30718. Co-authored-by: Dylan Hunn <dylhunn@gmail.com> BREAKING CHANGE: objects with a length key set to zero will no longer validate as empty. This is technically a breaking change, since objects with a key `length` and value `0` will no longer validate as empty. This is a very minor change, and any reliance on this behavior is probably a bug anyway. PR Close #33729 04 February 2022, 07:15:27 UTC
b32647d fix(platform-browser): Make transfer state key typesafe. (#23020) Make `StateKey` typesafe by narrowing the type. BREAKING CHANGE: This may break invalid calls to `TransferState` methods. This tightens parameter types of `TransferState` usage, and is a minor breaking change which may reveal existing problematic calls. PR Close #23020 04 February 2022, 06:46:50 UTC
64f837d fix(router): Update `Navigation#initialUrl` to match documentation and reality (#43863) BREAKING CHANGE: * The type of `initialUrl` is set to `string|UrlTree` but in reality, the `Router` only sets it to a value that will always be `UrlTree` * `initialUrl` is documented as "The target URL passed into the `Router#navigateByUrl()` call before navigation" but the value actually gets set to something completely different. It's set to the current internal `UrlTree` of the Router at the time navigation occurs. With this change, there is no exact replacement for the old value of `initialUrl` because it was enver intended to be exposed. `Router.url` is likely the best replacement for this. In more specific use-cases, tracking the `finalUrl` between successful navigations can also be used as a replacement. PR Close #43863 04 February 2022, 01:07:01 UTC
e46b379 fix(animations): implement missing transition delay (#44799) fix the transition function accepting a delay in its AnimationOptions input but not acting on it by adding such delay to all the transition's timelines (note: adding the delay to all the transition's timelines is the only way to accomplish this since transitions have their own logic and do not have their own timelines like other animation functions have) resolves #29762 PR Close #44799 03 February 2022, 23:54:16 UTC
6a5f2da build: exclude devtools scope from generated changelogs (#44964) The devtools scoped commits are not included in the repository's CHANGELOG.md file as these commits are not references areas which are included in the primary released artifacts. PR Close #44964 03 February 2022, 23:19:25 UTC
f44fa4b docs: update input-output-diagram.svg (#39900) "deleteRequest" is the *event* (not target) and "crossOffItem" is the *handler* of the event (not "source"). PR Close #39900 03 February 2022, 22:50:59 UTC
f22bb74 build: setup OpenSSF Scorecard (#44960) Set up OpenSSF Scorecard to begin tracking security metrics within the repo. PR Close #44960 03 February 2022, 22:50:22 UTC
76f5528 docs: add po-ui to UI Components resources (#43689) PR Close #43689 03 February 2022, 20:45:39 UTC
0d19be1 refactor(docs-infra): add types to all the aio examples buttons (#44557) add types to all the buttons in the angular.io examples to encourage the best practice of always including a type per button (regardless to whether it is in a form or now) PR Close #44557 03 February 2022, 20:44:47 UTC
e1f15a1 refactor(docs-infra): remove outdated comments regarding CustomEvent (#44557) remove the comments present in aio examples saying that for older browsers such as IE CustomEvent could be necessary (as the the Event constructor could be not available) such comments are no longer necessary/relevant since the Event constructor is available for all the supported browsers PR Close #44557 03 February 2022, 20:44:46 UTC
5498a35 refactor(docs-infra): fix template eslint issues in aio examples (#44557) the aio examples have various eslint issues regarding template rules, those are currently turned off and TODO comments have been added to them in the examples eslintrc, fix such issues and remove the respective TODO comments this also includes examples refactoring to use buttons for better accessibility, this change tries to make the smallest amound of changes to the examples' behaviors and designs/UI PR Close #44557 03 February 2022, 20:44:46 UTC
226fac6 docs: describe your change... (#42899) in the last Lines ViewEncapsulationComponent should be EmulatedEncapsulationComponent as there is no such ViewEncapsulationComponent exists in this example where as ShadowDomEncapsulationComponent contains NoEncapsulationComponent and EmulatedEncapsulationComponent PR Close #42899 03 February 2022, 20:41:36 UTC
f7ea275 docs: improve punctuation in animation sequence summary (#44567) slightly improve the punctuation in the animation sequence summary present in the complex animation sequences guide PR Close #44567 03 February 2022, 20:40:52 UTC
7dcf056 docs(animations): add section about animating reordering list items (#44567) add a section regarding reordering list items in the complex animation sequences guide to help developers rememeber to use a `TrackByFunction` whenever they are animating `*ngFor` list items which change their ordering as suggested here: https://github.com/angular/angular/issues/42750#issuecomment-979127165 relates to issue #28040 and #42750 PR Close #44567 03 February 2022, 20:40:52 UTC
791bd31 feat(router): set stricter type for Route.title (#44939) This commit changes the type of `Route.title` property from `string | unknown` to `string | Type<Resolve<string>>`. Fixes #44936 PR Close #44939 03 February 2022, 20:40:28 UTC
4dbd202 refactor(router): move types from config and interfaces to models (#44939) This commit moves all types from `config.ts` and `interfaces.ts` to `models.ts` to fix circular dependency. PR Close #44939 03 February 2022, 20:40:28 UTC
48d430d docs: remove item from changelog that does not work (#44961) After trying this feature, it turns out the approach does not work and we will be reverting the commits. Note that the feature _never_ worked so it's not a breaking change. PR Close #44961 03 February 2022, 20:40:00 UTC
db27677 build: update pullapprove (#44962) Enable reviews for aleksanderbodurri again now that membership and review assignments have been sorted. PR Close #44962 03 February 2022, 20:39:38 UTC
0072eb4 feat(compiler-cli): initial implementation of standalone components (#44812) This commit implements the first phase of standalone components in the Angular compiler. This mainly includes the scoping rules for standalone components (`@Component({imports})`). Significant functionality from the design is _not_ implemented by this PR, including: * imports of standalone components into NgModules. * the provider aspect of standalone components Future commits will address these issues, as we proceed with the design of this feature. PR Close #44812 03 February 2022, 16:55:25 UTC
3dcfc76 refactor(compiler-cli): extract template scoping logic into a function (#44812) In preparation for standalone components, this commit moves the logic which determines the potential set of components/directives/pipes in a template into a separate function. This is a simple but crucial refactoring that breaks the assumption that all template scopes come from NgModules. PR Close #44812 03 February 2022, 16:55:25 UTC
cc0d73d refactor(compiler-cli): split the 'annotations' package into sub-packages (#44812) Previously each `DecoratorHandler` in the compiler was stored in a single file in the 'annotations' package. The `ComponentDecoratorHandler` in particular was several thousand lines long. Prior to implementing the new standalone functionality for components, this commit refactors 'annotations' to split these large files into their own build targets with multiple separate files. This should make the implementation of standalone significantly cleaner. PR Close #44812 03 February 2022, 16:55:25 UTC
1aae414 docs: remove duplicate closing tags in View Encapsulation file (#44958) PR Close #44958 03 February 2022, 16:53:59 UTC
077593f docs: remove old commits from CHANGELOG.md (#44956) This commit removes old DevTools-related commits that ended up in the CHANGELOG.md since the DevTools repo was merged into angular/angular one. Closes #44953. PR Close #44956 03 February 2022, 01:34:27 UTC
85ba38a refactor(compiler): add `@suppress {msgDescriptions}` if no description is present on an i18n message (#44787) Refs http://b/214103351. This happens if a user writes `<span i18n>Message</span>`. This is accepted as an internationalized message, but without a description. JSCompiler will throw an error in this situation because descriptions are generally required. Now, the Angular compiler will generate a suppression annotation so JSCompiler allows the syntax. This will ease an internal migration to JSCompiler-based i18n. PR Close #44787 02 February 2022, 23:33:44 UTC
bf42877 fix(devtools): change links to the angular repo (#44885) Use proper reporting and source code links in the DevTools UI. PR Close #44885 02 February 2022, 23:33:17 UTC
eb3f06a build: update pullapprove (#44954) Update pullapprove to temporarily remove aleksanderbodurri from pullapprove configuration while we correct the membership and review assignment's for the account. PR Close #44954 02 February 2022, 23:03:25 UTC
202a1a5 fix(upgrade): Do not trigger duplicate navigation events from Angular Router (#43441) This code mimics behavior that Google Analytics has been using to prevent duplicate navigations. They set up their own `HybridRoutingService` location sync to avoid duplicate navigations that came from the Angular router. This would happen because the Angular router would trigger a navigation, which would then get picked up by the `$locationShim`, which would trigger a `$locationChangeStart`, which would then be picked up by the `setUpLocationSync` watcher here, which would again trigger a navigation in the Angular Router. All of this can be prevented by checking if the `navigationId` exists on the history state object. This property is added by the Angular router during navigations. fixes #21610 PR Close #43441 02 February 2022, 19:51:20 UTC
45d37fc test(upgrade): update router upgrade tests to use fewer mocks (#43441) This updates the router upgrade tests to use less mocked behavior. The test upgrade location module is copied from the one that's used in the common package. This update to the tests verifies more real behavior of the upgrade module. PR Close #43441 02 February 2022, 19:51:20 UTC
a01bcb8 fix(platform-browser): do not run change detection when loading Hammer (#44921) The Hammer.JS might be loaded asynchronously if the `HAMMER_LOADER` token is provided. Its loading causes additional change detection cycles when the script `load` event is fired and the `import()` promise resolves. Its loading doesn't have to require Angular running `tick()` since the Hammer instance is created outside of the Angular zone anyway. BREAKING CHANGE: This change may cause a breaking change in unit tests that are implicitly depending on a specific number and sequence of change detections in order for their assertions to pass. PR Close #44921 02 February 2022, 19:50:46 UTC
39b90b4 docs: remove banner after survey expiration (#44949) The survey is now over. We can remove the banner. PR Close #44949 02 February 2022, 19:50:20 UTC
0c36f82 release: cut the v14.0.0-next.1 release (#44951) 02 February 2022, 19:39:30 UTC
38bb2be docs: release notes for the v13.2.1 release (#44950) 02 February 2022, 18:51:13 UTC
c08db20 build(docs-infra): upgrade cli command docs sources to be7c79b5a (#44942) 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](https://github.com/angular/cli-builds/compare/db5e7c82e...be7c79b5a): **Modified** - help/build.json - help/test.json PR Close #44942 02 February 2022, 17:03:32 UTC
cae1e44 fix(forms): Update the typed forms migration to use FormArray<T> instead of FormArray<T[]>. (#44933) Previously, `FormArray` accepted an array generic. Now it accepts the element type, so the migration must be update accordingly. PR Close #44933 02 February 2022, 01:58:18 UTC
1b56437 docs: update the survey expiration date (#44938) Extend with a few more days since the survey is still open. PR Close #44938 02 February 2022, 01:56:40 UTC
d82c957 fix(compiler-cli): ensure casing of logical paths is preserved (#44798) The logical filesystem would store a cached result based on the canonical path, where the cached value contains the physical path that was originally provided. This meant that other physical paths with an identical canonical path would use a cached result derived from another physical path. This inconsistency is not known to result in actual issues but is primarily being made as a performance improvement, as using the provided physical paths as cache key avoids the need to canonicalize the path if its result is already cached. PR Close #44798 02 February 2022, 00:04:37 UTC
b745b8c refactor(compiler-cli): use relative imports into dts files as fallback in type-check files (#44798) The generated imports should normally use module specifiers that are valid for use in production code, where arbitrary relative imports into e.g. node_modules are not allowed. For template type-checking code it is however acceptable to use relative imports, as such files are never emitted to JS code. It is desirable to allow a filesystem relative import as fallback if an import would otherwise fail to be generated, as doing so allows fewer situations from needing an inline type constructor. PR Close #44798 02 February 2022, 00:04:37 UTC
6763967 refactor(compiler): remove ViewEngine identifiers (#44676) This commit removes the leftover `Identifiers` class that was used in the ViewEngine compiler. The remaining usages of the `inlineInterpolate` and `interpolate` instructions were refactored to make use of an `InterpolationExpression` output expression to capture the argument list of an interpolation expression. An attempt was made to refactor this further by converting to the desired interpolation instruction immediately, but some downstream consumers are designed in a way where the argument list itself is needed, e.g. as other arguments need to be prepended/appended. PR Close #44676 02 February 2022, 00:04:13 UTC
fc1c143 docs(router): use Resolve interface for custom title resolver (#44934) PR Close #44934 02 February 2022, 00:03:31 UTC
03ab705 build: fix test for useUnknownInCatch (#44935) CI ran before the change to the tsconfig file PR Close #44935 01 February 2022, 23:40:17 UTC
4b4bf05 docs(router): provide better typing for resolver example (#44932) PR Close #44932 01 February 2022, 22:06:29 UTC
a2cbffc fix(common): include query parameters for open HTTP requests in `verify` (#44917) When `HttpTestingController.verify` is used to verify that there are not open, unexpected requests it would throw an error with the method and URL of all pending requests, excluding the query parameters. This is confusing, as e.g. `expectOne` matches a URL including its query parameters and `expectOne` does include the query parameters when it reports when no request could be matched. This commit changes the error that is reported by `verify` to include the query parameters. Closes #19974 PR Close #44917 01 February 2022, 21:41:43 UTC
d41dedb fix(devtools): highlighter should only show the hovered component's name (#44863) The used children property on a HTMLCollection does not contain text elements. Because of this, the highlighter overlay text never got fully cleared. PR Close #44863 01 February 2022, 21:28:09 UTC
2006f53 docs: update devtools docs, and add to the list of available commit scope list (#44863) PR Close #44863 01 February 2022, 21:28:09 UTC
c89cf63 feat(common): support NgModule as an input to the NgComponentOutlet (#44815) This commit updates the logic of the `NgComponentOutlet` class to allow passing an `NgModule` as an input instead of passing an `NgModule` factory. DEPRECATED: The `ngModuleFactory` input of the `NgComponentOutlet` directive is deprecated in favor of a newly added `ngModule` input. The `ngModule` input accepts references to the NgModule class directly, without the need to resolve module factory first. PR Close #44815 01 February 2022, 20:19:41 UTC
ab003a4 docs: fix incorrect title and tooltip in navigation (#44710) Fixes #44589 In the navigation pane, the title and tooltip for the page, Preparing component for translation, are incorrect. This PR fixes this issue. PR Close #44710 01 February 2022, 19:17:40 UTC
5d7ffd5 docs: correct the demo code of NgZone.run (#44733) `NgZone.run` needs to be within the async closure, not around its registration, refer to: https://github.com/angular/angular/issues/44714 PR Close #44733 01 February 2022, 19:16:16 UTC
9f5edce docs: explain how `ngsw.json` is generated (#44823) Update aio/content/guide/service-worker-devops.md ngsw.json is the manifest file which is generated at build time ( based on ngsw-config.json ). This explains this a bit clearer. At first, I thought that it was a wrongly named filename. Not is it explicitly described. Co-Authored-By: George Kalpakas <kalpakas.g@gmail.com> PR Close #44823 01 February 2022, 18:26:42 UTC
e0a340e refactor(compiler-cli): remove leftover `_extendedTemplateDiagnostics` flag (#44920) This flag is currently a no-op because extended diagnostics are enabled in production. PR Close #44920 01 February 2022, 18:24:10 UTC
6829fc4 docs: add colon before introducing the list of items (#44751) PR Close #44751 01 February 2022, 18:20:47 UTC
fdfcef5 build: enable useUnknownInCatchVariables (#44679) This unblocks the internal migration to turn the option on in g3. PR Close #44679 01 February 2022, 18:17:29 UTC
bc61cc2 refactor(migrations): remove old migrations (#44857) When using `ng update` users cannot update multiple major versions at the same time. Therefore migrations that are not targeting version 14 cannot be run and therefore we are removing them. PR Close #44857 01 February 2022, 03:52:26 UTC
ed1732c refactor(core): the `RuntimeError` class should support more compact syntax (#44783) This commit refactors the `RuntimeError` class to support a short version of providing error messages: ``` throw new RuntimeError( RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED, ngDevMode && 'Injector has already been destroyed.'); ``` In prod mode, the second argument becomes `false` andn this commit extends the typings to support that. This commit also contains a couple places were the `RuntimeError` class is used to demostrate the compact form. PR Close #44783 01 February 2022, 00:15:56 UTC
db05ae1 refactor(compiler): remove parsing support for quote expressions (#44915) So-called "Quote expressions" were added in b6ec2387b31ad1f51b95c8fac8f2a60b2de855f6 to support foreign syntax to be used in Angular templates, requiring a custom template transform to convert them somehow during compilation. Support for template transforms was originally implemented in a43ed79ee7d49ec55a0adea9b587ed67780c870c but has since been dropped. Since the compiler is not public API the quote expressions should not have any usages anymore. Removing support for them can improve error reporting for expressions that contain a `:`, e.g. binding to a URL without quotes: ```html <a [href]="http://google.com">Click me</a> ``` Here, `http` would be parsed as foreign "http" quote expression with `//google.com` as value, later reporting the error "Quotes are not supported for evaluation!" because there was no template transform to convert that code. Closes #40398 PR Close #44915 31 January 2022, 23:31:11 UTC
f0cfa00 refactor(forms): Move FormControl to an overridden exported constructor. (#44316) (#44806) This implementation change was originally proposed as part of Typed Forms, and will have major consequences for that project as described in the design doc. Submitting it separately will greatly simplify the risk of landing Typed Forms. This change should have no visible impact on normal users of FormControl. See the Typed Forms design doc here: https://docs.google.com/document/d/1cWuBE-oo5WLtwkLFxbNTiaVQGNk8ipgbekZcKBeyxxo. PR Close #44316 PR Close #44806 31 January 2022, 22:48:23 UTC
cec158b refactor(compiler-cli): remove unused `canonical-path` dependency (#44918) This package is no longer used within `compiler-cli` so is being removed as a dependency. PR Close #44918 31 January 2022, 21:39:53 UTC
5686f68 fix(core): Add back support for namespace URIs in createElement of dom renderer (#44914) Support for namespace URIs rather than short namespace names was added in https://github.com/angular/angular/commit/2b9cc8503d48173492c29f5a271b61126104fbdb to support how Ivy passed around the namespace URI rather than short name at the time. As a side-effect, this meant that namespace URIs were supported by the default dom renderer as part of the public API (likely unintentionally). It did not, however extend the support to other parts of the system (setAttribute, setAttribute, and the ServerRenderer). In the future we should decide what exactly the semantics for dealing with namespaces should be and make it consistent. fixes #44028 PR Close #44914 31 January 2022, 21:39:29 UTC
9eff890 refactor(core): strict templates type-checking compatibility for perf tests (#44905) This commit updates a type used in the transplanted views perf tests, to make the test compatible with strict template type-checking. Currently, compiling the perf test results in the following TS error: ``` error TS2322: Type 'TemplateRef<{}>' is not assignable to type 'TemplateRef<NgForOfContext<any, any[]>>'. 17 <ng-container *ngFor="let n of views; template: template; trackBy: trackByIndex"></ng-container> ~~~~~~~~ ``` PR Close #44905 31 January 2022, 21:39:04 UTC
889de82 fix(forms): ensure OnPush ancestors are marked dirty when the promise resolves (#44886) Currently, `ngModel` calls` setValue` after the `resolvedPromise` is resolved. The promise is resolved _after_ the child template executes. The change detection is run but `OnPush` views are not updated because they are not marked as dirty. PR Close #44886 31 January 2022, 21:38:39 UTC
39c614c fix(core): flush delayed scoping queue while setting up TestBed (#44814) Previously, some NgModules that were added to the delayed scoping queue, never got removed from the queue before unit test execution. That resulted in some components (declared in those NgModules) missing their scope (which components/directives/pipes were matched). This commit adds the logic to invoke delayed scoping queue flushing before starting a test to avoid missing/incomplete scopes for Components used in a test. PR Close #44814 31 January 2022, 21:37:53 UTC
6642e3c perf(animations): remove no longer needed CssKeyframes classes (#44903) This commit removes CSS keyframes-based code that was used to support animations in old browsers. With IE11 deprecation, all supported browsers have native WebAnimations support, so the old code can be removed. This results in ~7KB decrease of the animations package bundle size, since most of the code was non-tree-shakable. Closes #44520. PR Close #44903 31 January 2022, 21:36:35 UTC
5e099b5 docs: Update deployment docs for Vercel (#44904) PR Close #44904 31 January 2022, 21:32:41 UTC
7155e9e build: fix `update_all_goldens.js` to use ESM. (#44916) Attempting to run as is fails because we have `"type": "module"`. `shelljs` is a CommonJS module however, so we need to do a default import and destructure. ``` $ node packages/compiler-cli/test/compliance/update_all_goldens.js const {exec} = require('shelljs'); ^ ReferenceError: require is not defined in ES module scope, you can use import instead This file is being treated as an ES module because it has a '.js' file extension and '/home/douglasparker/Source/ng/packages/compiler-cli/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension. at file:///home/douglasparker/Source/ng/packages/compiler-cli/test/compliance/update_all_goldens.js:11:16 at ModuleJob.run (node:internal/modules/esm/module_job:183:25) at async Loader.import (node:internal/modules/esm/loader:178:24) at async Object.loadESM (node:internal/process/esm_loader:68:5) at async handleMainPromise (node:internal/modules/run_main:63:12) ``` PR Close #44916 31 January 2022, 21:31:11 UTC
4c83395 build: update all non-major dependencies (#44855) PR Close #44855 31 January 2022, 21:30:10 UTC
53a4a03 build: bump version for `@angular/benchpress` to v0.3.0 (#44893) Bumps the version for Angular benchpress so that another version shipping with APF v13 and strict ESM can be published. PR Close #44893 31 January 2022, 21:27:08 UTC
950cf18 build: switch benchpress NPM output to APF with ESM (#44893) Switches the benchpress NPM package to APF with ESM. This is necessary as benchpress relies on framework APF strict ESM packages. CommonJS packages like benchpress currently are not able to import from strict ESM packages without adding a CJS/ESM interop that complicates code unnecessarily. The best way forward is to just switch the benchpress package from CommonJS to the modern ESM output, matching with the Angular ecosystem. PR Close #44893 31 January 2022, 21:27:08 UTC
366e424 fix(compiler-cli): enable nullish coalescing check only with `strictNullChecks` (#44862) TypeScript configures `strictNullChecks` to be disabled by default, so the nullish coalescing check should follow the same default. The rule actively depends on `strictNullChecks`, as TypeScript doesn't include `null`/`undefined` in its types otherwise so the check wouldn't have a way to differentiate between them. This commit also takes the `strict` flag into account when `strictNullChecks` itself is not configured. PR Close #44862 31 January 2022, 20:31:58 UTC
73c97ae fix(compiler-cli): accept nullish coalescing operator for any and unknown types (#44862) We should not make assumptions about the any and unknown types; using a nullish coalescing operator is acceptable for those. PR Close #44862 31 January 2022, 20:31:58 UTC
f0d572e docs(core): showcase host listener support for specific keys in events (#44833) PR Close #44833 31 January 2022, 20:30:45 UTC
7a81481 perf(animations): Remove generic objects in favor of Maps (#44482) We were using a number of generic objects as if they were maps and relying on delete to remove properties. In order to improve performance, these have been switched to native maps. PR Close #44482 31 January 2022, 20:28:43 UTC
55b1808 docs: update Nx headline (#44910) PR Close #44910 31 January 2022, 19:46:36 UTC
8d9eb99 docs: add code format in content projection guide (#44907) PR Close #44907 31 January 2022, 19:45:47 UTC
3d07d1f fix(docs-infra): make it possible to see whole notification text on smaller screens (#44900) Previously, when the notification text did not fit on the viewport width, it got truncated and it was not possible to see the whole text. This commit fixes this by making the notification scrollable when the text overflows. PR Close #44900 31 January 2022, 19:44:52 UTC
2320025 fix(docs-infra): make it easier to interact with notification on smaller screens (#44900) On smaller screens, the action button in `NotificationComponent` is hidden (due to limited horizontal screen "real estate"). Thus, the only way to perform the action is to click on the notification message, which is typically a link. Previously, the link inside the notification did not take up the whole height of the notification bar. As a result, clicking outside the link would dismiss the notification without following the link. This commit makes it easier to interact with the notification (esp. on smaller screens) by ensuring the link covers the whole notification bar (width and height). PR Close #44900 31 January 2022, 19:44:52 UTC
390a653 build: update dependency d3 to v7 (#44892) PR Close #44892 31 January 2022, 19:43:34 UTC
dea30d4 build: update dependency @types/send to ^0.17.0 (#44890) PR Close #44890 31 January 2022, 19:40:31 UTC
a8686c6 build: update dependency @types/chrome to ^0.0.177 (#44889) PR Close #44889 31 January 2022, 19:35:57 UTC
e62f010 build(docs-infra): upgrade cli command docs sources to db5e7c82e (#44888) 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](https://github.com/angular/cli-builds/compare/9ac3df5d1...db5e7c82e): **Modified** - help/build.json - help/e2e.json - help/extract-i18n.json - help/serve.json - help/test.json - help/update.json PR Close #44888 31 January 2022, 19:33:37 UTC
3f0a2d3 fix(devtools): show date type property value in preview (#44864) Values of Date properties were not shown in the preview. It was formatted to a simple string thus not giving valuable info to the developer. PR Close #44864 31 January 2022, 19:32:47 UTC
b1b4547 refactor(compiler-cli): Update where and how the indexed errors are exposed (#44884) The initial commit e9124b42d5ac8f570b53a86691aff64d9f6c6ee1 stored the errors rather than throwing but did not store them in a place that was accessible to consumers. Instead, the errors should be added to the IndexedComponent so they can be surfaced where the index results are consumed PR Close #44884 31 January 2022, 18:36:55 UTC
10092f2 build: fix formatting in zone.js BUILD file (#44912) Fixes formatting in one of the Zone BUILD files. The lint check on the renovate branch did not check formatting as it seems. Needs more investigation as the PR was green. PR Close #44912 31 January 2022, 17:35:45 UTC
0650066 Revert "fix(docs-infra): content overflow in mobile (#44851)" (#44899) This reverts commit c2e09e09114977fcdc93cd60db57e4c863a12d9a, because it messes up the table layouts on some resolutions/pages. See #44891 for details. Fixes #44891 PR Close #44899 31 January 2022, 17:10:50 UTC
d614a97 build: update legacy saucelabs bundle generation to account for esbuild update (#44830) Previously with ESBuild 0.14.11, when a file had dynamic requires to builtin NodeJS modules like `url`, the resolution completed successfully regardless of `--platform browser`. This seems to be fixed in ESBuild now. This unveiled some resolution errors with our Saucelabs bundle generation because the framework code sometimes switches dynamically to `require('url')` if `window.URL` is not defined. Previously this just didn't matter, but now the `require('url')` is checked and a module resolution error is reported given `url` not being available in the browser as a builtin module. We fix this by marking the module as external. We will not hit this code path anyway in the browser saucelabs code. Similarly we exclude all platform-server files from the bundle. This is not strictly needed after the `url` module being marked as external, but the issue showed that lots of unnecessary code for the server platform is included. This can be omitted (unfortunately not from the TS compilation without over-complicating things significantly more; experimented with that). PR Close #44830 31 January 2022, 17:00:18 UTC
back to top