22818 Commits

Author SHA1 Message Date
Teri Glover 353cad283d docs: Edits to remove jargon (#43000)
PR Close #43000
2021-09-27 10:44:21 -07:00
Alex Rickabaugh 22eebbafbc release: cut the v13.0.0-next.8 release (#43613)
PR Close #43613
13.0.0-next.8
2021-09-27 10:27:54 -07:00
George Kalpakas 9d290bd012 ci: correctly handle commit message with carriage returns in payload-size.sh (#43569)
Previously, if a commit message contained a carriage return in its
header, the `payload-size.sh` script would fail to upload the payload
size data to Firebase, because the JSON payload would be messed up when
trying to concatenate the commit message headers. See an example
[here][1].

This commit avoids this problem by replacing carriage returns before
concatenating the commit message headers with the JSON payload string.

[1]: https://app.circleci.com/pipelines/github/angular/angular/37437/workflows/d0fa4adf-43bb-464e-a2fd-d87da15226dd

PR Close #43569
2021-09-24 10:56:41 -07:00
George Kalpakas d02c8da7bd fix(docs-infra): display deprecation notes for properties (#43566)
Previously, deprecation notes for deprecated class/interface properties
were not shown in the API docs. This commit fixes it by ensuring that
deprecation notes are shown for properites (similar to how it works for
methods).

PR Close #43566
2021-09-24 10:56:05 -07:00
George Kalpakas e131540f71 fix(service-worker): do not unassign clients from a broken version (#43518)
Previously, when a version was found to be broken, any clients assigned
to that version were unassigned (and either assigned to the latest
version or to none if the latest version was the broken one). A version
could be considered broken for several reasons, but most often it is a
response for a hashed asset that eiher does not exist or contains
different content than the SW expects. See
https://github.com/angular/angular/issues/28114#issuecomment-923122967
for more details.

However, assigning a client to a different version (or the network) in
the middle of a session, turned out to be more risky than keeping it on
the same version. For angular.io, for example, it has led to #28114.

This commit avoids making things worse when identifying a broken version
by keeping existing clients to their assigned version (but ensuring that
no new clients are assigned to the broken version).

NOTE:
Reloading the page generates a new client ID, so it is like a new client
for the SW, even if the tab and URL are the same.

PR Close #43518
2021-09-24 10:54:21 -07:00
George Kalpakas f1497245fb test(service-worker): use correct assertion in tests (#43518)
Previously, a ServiceWorker test was using the
`MockServerState#sawRequestFor()` method. This method, however, only
returns a boolean indicating whether a request had been seen, but would
not throw an error in either case.

Since the intention was to assert that a specific request was made, this
commit switches to the correct `MockServerState#assertSawRequestFor()`
method.

PR Close #43518
2021-09-24 10:54:21 -07:00
Virginia Dooley 67ff93d33a docs: reviewed tag added (#43472)
PR Close #43472
2021-09-24 10:51:39 -07:00
Virginia Dooley 28a3c0c0ec docs: review tag added (#43469)
PR Close #43469
2021-09-24 10:50:20 -07:00
Alan Agius c231849f72 test: update localize-extract source paths (#43417)
As a result of dropping differential loading, In version 13 the Angular CLI no longer generates files prefixed with the ECMA version.

PR Close #43417
2021-09-24 10:49:39 -07:00
Alan Agius 6f30ebbefd test: update integration payload size checks golden file (#43417)
With this change we update the integration payload size checks golden file to reflect the file names in version 13.

Some considering about the increased in file sizes
- The increase in runtime is caused by inrtroduction of Trusted Types in CLI 12.1 which causes addition bytes to be included in the file
- Other increase/decreases are caused by changes of the minifier. Since the CLI now uses ESbuild as primary minifier instead of terser.

PR Close #43417
2021-09-24 10:49:39 -07:00
Alan Agius dcacf3a09b test: update remove deprecated builder options from Angular workspace (#43417)
`extractCss` option has been removed without replacement.

PR Close #43417
2021-09-24 10:49:39 -07:00
Alan Agius eb50266b3a test: update browserslist configuration to replace Angular CLI projects (#43417)
With this change we update various browserslist configuration file to match newly generated projects. https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/application/files/.browserslistrc.template

PR Close #43417
2021-09-24 10:49:39 -07:00
Alan Agius 880f021d96 build: update Angular tooling packages to 13.0.0-next.6 (#43417)
This is a followup on #43343

PR Close #43417
2021-09-24 10:49:39 -07:00
iRealNirmal d9d8f950e9 feat(forms): allow disabling min/max validators dynamically (by setting the value to null) (#42978)
This commit updates the logic of the `min` and `max` validators to allow
disabling them dynamically in case `null` is provided as a value. For example: `<input
type="number" [min]="minValue">`, when `minValue` might be set to `null` in a
component class. This should allow `min` and `max` validators to be used for dynamic forms.

Note: similar support was added to the `minLength` and `maxLength`
validators earlier (see #42565).

PR Close #42978
2021-09-24 10:35:31 -07:00
Joe Martin (Crowdstaffing) fe69193509 docs: update review date (#43245)
docs: Update review date for last content update.

PR Close #43245
2021-09-23 15:40:34 -07:00
Joe Martin (Crowdstaffing) 3497f48ed0 docs: add subtopics for internationalization (#43245)
Add subtopics for internationalization guide.

PR Close #43245
2021-09-23 15:40:34 -07:00
Joe Martin (Crowdstaffing) 617bf1cf0f docs: update content (#43245)
Update content per review.

PR Close #43245
2021-09-23 15:40:34 -07:00
Joe Martin (Crowdstaffing) 29790d6f8a docs: update punctuation (#43245)
Update punctuation per review.

Co-authored-by: TeriGlover <teriglover@google.com>
PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) 46cabfb0c9 docs: update content (#43245)
Update content per review.

Co-authored-by: TeriGlover <teriglover@google.com>
PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) a0eeffd6d2 docs: update link (#43245)
Update link per review.

PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) 8ac8b47388 docs: update content (#43245)
Update content per review.

PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) a879d9fbd1 docs: update punctuation (#43245)
Update punctuation per review.

Co-authored-by: TeriGlover <teriglover@google.com>
PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) 407490adc7 docs: update grammar (#43245)
Update grammar per review.

Co-authored-by: TeriGlover <teriglover@google.com>
PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) be1f686531 docs: update content (#43245)
Update content per review.

PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) 0b3d6a1188 docs: update spelling (#43245)
Update spelling per review.

Co-authored-by: TeriGlover <teriglover@google.com>
PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) 0cf515e332 docs: add new internationalization links (#43245)
Update link for subtopics of internationalization guide.

PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) 3f3adc7ae2 docs: add new internationalization links (#43245)
Update link for subtopics of internationalization guide. Clean up markdown.

PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) a5a8697e16 docs: add subtopics for internationalization to PR (#43245)
Add subtopics for internationalization guide to PR.

PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) 644e3d2765 docs: add redirect for internationalization (#43245)
Add redirect for internationalization guide. Add test for redirect.

PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) d0d4a86f8d docs: add subtopics for internationalization to toc (#43245)
Add subtopics for internationalization guide to toc.

PR Close #43245
2021-09-23 15:40:33 -07:00
Joe Martin (Crowdstaffing) 9a83c436bf docs: add subtopics for internationalization (#43245)
Add subtopics for internationalization guide.

PR Close #43245
2021-09-23 15:40:32 -07:00
Kristiyan Kostadinov ea61ec2562 feat(core): support TypeScript 4.4 (#43281)
Adds support for TypeScript 4.4. High-level overview of the changes made in this PR:

* Bumps the various packages to `typescript@4.4.2` and `tslib@2.3.0`.
* The `useUnknownInCatchVariables` compiler option has been disabled so that we don't have to cast error objects explicitly everywhere.
* TS now passes in a third argument to the `__spreadArray` call inside child class constructors. I had to update a couple of places in the runtime and ngcc to be able to pick up the calls correctly.
* TS now generates code like `(0, foo)(arg1, arg2)` for imported function calls. I had to update a few of our tests to account for it. See https://github.com/microsoft/TypeScript/pull/44624.
* Our `ngtsc` test setup calls the private `matchFiles` function from TS. I had to update our usage, because a new parameter was added.
* There was one place where we were setting the readonly `hasTrailingComma` property. I updated the usage to pass in the value when constructing the object instead.
* Some browser types were updated which meant that I had to resolve some trivial type errors.
* The downlevel decorators tranform was running into an issue where the Closure synthetic comments were being emitted twice. I've worked around it by recreating the class declaration node instead of cloning it.

PR Close #43281
2021-09-23 14:49:19 -07:00
Daniel Díaz cc427d18c4 docs(router): fix typo in router event API documentation (#43555)
PR Close #43555
2021-09-23 14:45:27 -07:00
Renovate Bot e876aaa36a build: update dependency esbuild to ^0.13.0 (#43546)
PR Close #43546
2021-09-23 14:44:34 -07:00
Dario Piotrowicz 6fdfab3709 docs: fix typo in dynamic forms page (#43543)
resolves #43536
PR Close #43543
2021-09-23 14:43:34 -07:00
Teri Glover 402428b421 docs: Edits to remove jargon (#43023)
PR Close #43023
2021-09-23 14:41:17 -07:00
Teri Glover 40338f063e docs: Edits to remove jargon (#42965)
PR Close #42965
2021-09-23 14:35:53 -07:00
Teri Glover 69aa690bb8 docs: Edits to remove jargon (#42950)
PR Close #42950
2021-09-23 14:35:22 -07:00
Teri Glover b78b13ffa9 docs: Edits to remove jargon (#42904)
PR Close #42904
2021-09-23 14:34:41 -07:00
Teri Glover 17c2df5800 docs: amend links in content-projection guide (#43009) (#42904)
PR Close #43009

PR Close #42904
2021-09-23 14:34:41 -07:00
Teri Glover 215413b611 docs: Edits to remove jargon (#42904)
PR Close #42904
2021-09-23 14:34:41 -07:00
Teri Glover 5fdd3a3c15 docs: Edits to remove jargon (#42904)
PR Close #42904
2021-09-23 14:34:41 -07:00
Jessica Janiuk 49d29e1337 release: cut the v13.0.0-next.7 release (#43539) 13.0.0-next.7 2021-09-22 12:09:40 -07:00
Jessica Janiuk d2a03b153e docs: release notes for the v12.2.7 release (#43538) 2021-09-22 12:03:14 -07:00
dario-piotrowicz a1633c1c6e docs(service-worker): improve service worker guides (#43508)
improve slightly the angular.io guides related to service workers, by
means of fixes, styling, information and clarity changes

PR Close #43508
2021-09-22 17:48:39 +00:00
George Kalpakas a2eae02b44 build(docs-infra): upgrade cli command docs sources to 5af45a096 (#43532)
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/2621e1d39...5af45a096):

**Modified**
- help/new.json

PR Close #43532
2021-09-22 16:19:12 +00:00
Daniel Díaz 6ff0eef35a docs(http): get rid of not needed space at the end of the sentence (#43528)
PR Close #43528
2021-09-22 16:18:08 +00:00
Xiaohanxu1996 6e5f59fe61 docs: remove duplicate import from @angular/core (#43530)
PR Close #43530
2021-09-22 16:16:05 +00:00
Andrew Scott ce406e35e8 test(compiler-cli): rename test files to be more descriptive (#43419)
The test files simply named `spec.ts` are hard to find when searching
for files by name.

PR Close #43419
2021-09-22 16:01:56 +00:00
Andrew Scott a360f4b0fc refactor(compiler-cli): Add test to document use-case for invalid pipe argument nullish coallesce (#43419)
Adds a test to the nullish coalescing diagnostic check to serve as
self-documentation on how it works with nullish coalescing on pipes that
are often misconfigured.

This also removes that non null assertion operator, which is incorrect
because there _are_ situations where a symbol cannot be retrieved.

PR Close #43419
2021-09-22 16:01:56 +00:00