From 9320ec0f43b612be78b3013f5f7fd85aa0f3ff26 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 5 Oct 2018 11:06:28 +0300 Subject: [PATCH] build(docs-infra): upgrade Angular to 7.0.0-rc.0 and TypeScript to 3.1.1 (#26202) PR Close #26202 --- aio/package.json | 28 +++---- aio/scripts/_payload-limits.json | 2 +- aio/src/app/shared/copier.service.ts | 5 +- aio/yarn.lock | 106 +++++++++++++-------------- 4 files changed, 71 insertions(+), 70 deletions(-) diff --git a/aio/package.json b/aio/package.json index 358545722a..e43b6109aa 100644 --- a/aio/package.json +++ b/aio/package.json @@ -73,17 +73,17 @@ }, "private": true, "dependencies": { - "@angular/animations": "^7.0.0-beta.7", + "@angular/animations": "^7.0.0-rc.0", "@angular/cdk": "6.0.2", - "@angular/common": "^7.0.0-beta.7", - "@angular/core": "^7.0.0-beta.7", - "@angular/elements": "^7.0.0-beta.7", - "@angular/forms": "^7.0.0-beta.7", + "@angular/common": "^7.0.0-rc.0", + "@angular/core": "^7.0.0-rc.0", + "@angular/elements": "^7.0.0-rc.0", + "@angular/forms": "^7.0.0-rc.0", "@angular/material": "6.0.2", - "@angular/platform-browser": "^7.0.0-beta.7", - "@angular/platform-browser-dynamic": "^7.0.0-beta.7", - "@angular/router": "^7.0.0-beta.7", - "@angular/service-worker": "^7.0.0-beta.7", + "@angular/platform-browser": "^7.0.0-rc.0", + "@angular/platform-browser-dynamic": "^7.0.0-rc.0", + "@angular/router": "^7.0.0-rc.0", + "@angular/service-worker": "^7.0.0-rc.0", "@webcomponents/custom-elements": "^1.2.0", "classlist.js": "^1.1.20150312", "core-js": "^2.4.1", @@ -95,9 +95,9 @@ "devDependencies": { "@angular-devkit/build-angular": "^0.8.3", "@angular/cli": "^6.2.3", - "@angular/compiler": "^7.0.0-beta.7", - "@angular/compiler-cli": "^7.0.0-beta.7", - "@angular/language-service": "^7.0.0-beta.7", + "@angular/compiler": "^7.0.0-rc.0", + "@angular/compiler-cli": "^7.0.0-rc.0", + "@angular/language-service": "^7.0.0-rc.0", "@types/jasmine": "^2.5.52", "@types/jasminewd2": "^2.0.3", "@types/node": "~6.0.60", @@ -151,7 +151,7 @@ "tree-kill": "^1.1.0", "ts-node": "^3.3.0", "tslint": "~5.9.1", - "typescript": "3.0", + "typescript": "^3.1.1", "uglify-js": "^3.0.15", "unist-util-filter": "^0.2.1", "unist-util-source": "^1.0.1", @@ -163,4 +163,4 @@ "xregexp": "^4.0.0", "yargs": "^7.0.2" } -} +} \ No newline at end of file diff --git a/aio/scripts/_payload-limits.json b/aio/scripts/_payload-limits.json index e7a24ab7a4..3daddcab10 100755 --- a/aio/scripts/_payload-limits.json +++ b/aio/scripts/_payload-limits.json @@ -3,7 +3,7 @@ "master": { "uncompressed": { "runtime": 3173, - "main": 483686, + "main": 483844, "polyfills": 53920, "prettify": 14913 } diff --git a/aio/src/app/shared/copier.service.ts b/aio/src/app/shared/copier.service.ts index e00a750ec2..ac03f26f6d 100644 --- a/aio/src/app/shared/copier.service.ts +++ b/aio/src/app/shared/copier.service.ts @@ -16,7 +16,8 @@ export class CopierService { * and makes a selection on it. */ createFake(text: string) { - const isRTL = document.documentElement.getAttribute('dir') === 'rtl'; + const docElem = document.documentElement!; + const isRTL = docElem.getAttribute('dir') === 'rtl'; // Create a fake element to hold the contents to copy this.fakeElem = document.createElement('textarea'); @@ -34,7 +35,7 @@ export class CopierService { this.fakeElem.style[ isRTL ? 'right' : 'left' ] = '-9999px'; // Move element to the same position vertically - const yPosition = window.pageYOffset || document.documentElement.scrollTop; + const yPosition = window.pageYOffset || docElem.scrollTop; this.fakeElem.style.top = yPosition + 'px'; this.fakeElem.setAttribute('readonly', ''); diff --git a/aio/yarn.lock b/aio/yarn.lock index c10e5a14ec..accd7b5a76 100644 --- a/aio/yarn.lock +++ b/aio/yarn.lock @@ -103,10 +103,10 @@ "@angular-devkit/core" "0.8.3" rxjs "~6.2.0" -"@angular/animations@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-7.0.0-beta.7.tgz#c3a2b888017e0fdd3e575294989a8835642dbfd0" - integrity sha512-rVNk6DixFEO8NzJXzBHCHQONXv8xEVn+u08AR/l4i/NIMNH8YSFPkfR3hrbbsrUjCCveyr9//MzLk5TrEmROTA== +"@angular/animations@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-7.0.0-rc.0.tgz#963e64fa7265d948a08cb32508cea1a24107e439" + integrity sha512-NpFcuCfM11O/YIGl1piH3VufOlfnJSK6iyw19ElXjw4mr/jvK4vcg9fEXbqBvmQ6uregoeadRSVCp8tdRJHOyw== dependencies: tslib "^1.9.0" @@ -134,17 +134,17 @@ symbol-observable "^1.2.0" yargs-parser "^10.0.0" -"@angular/common@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/common/-/common-7.0.0-beta.7.tgz#86025af83deaa74302fb0cf6ab2db9db3f9b7bea" - integrity sha512-/NbJEygr9mObD9hBKVa/AIZ2iwgMGur9XgBYfbEeHzigKf1L4cWrZYCLSPyHgfpD0TpMXmcXngeWXABRry+X8A== +"@angular/common@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/common/-/common-7.0.0-rc.0.tgz#4872a430838653cbddfba759ccf1f9332c065171" + integrity sha512-YghYg9lFKF0cxaCiWfgByFbQ69dq521QDG93KX1mP+Tvc0jXXlbolDPYHGXx/VMUaoHq18VNzi7ZInpgc/pRBw== dependencies: tslib "^1.9.0" -"@angular/compiler-cli@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-7.0.0-beta.7.tgz#7ee46396766f95fb864c51b0381475b6a9ab6a32" - integrity sha512-xh2a55G82I7mFQPHYMAxFQ9MZgrJX3Ht6Lr45DHI4pVUjWMwtVoeWQtY7Fo30nIFhhqAzE8DhqcZMleNU4wPvw== +"@angular/compiler-cli@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-7.0.0-rc.0.tgz#59f37f2409ce896cb73daa221dbd898855d12939" + integrity sha512-Nkd5UgSt0NHVLE/U3FIUmSJxGW47+9B4hfR5oDhC7gkUNaRQzi+PzzVYj7jOdDJjgHV+Y0KS3msiXWhUSY4gpw== dependencies: canonical-path "0.0.2" chokidar "^1.4.2" @@ -157,38 +157,38 @@ source-map "^0.6.1" yargs "9.0.1" -"@angular/compiler@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-7.0.0-beta.7.tgz#d889acbcd08d62f6786e14beffc612d3be1912a3" - integrity sha512-J1jRqpA9ShI9CNMs/Zi4NSAgGm4AOhal5M+P4w+YKX6HWpwpuD/0ximIA2mRQDAGD/FEAYoOul3lEDbqjUUKfQ== +"@angular/compiler@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-7.0.0-rc.0.tgz#2dfd293ad6583f9574c9fe79354256206f594a51" + integrity sha512-ifVqB/xJtSzOlk8B39Ld2wMbYni6Ey7s5jc+u/0NMtdut+2Q61Ar+TKjJZ3vmta3df7QqHX5JcP0W6qICRHJ+w== dependencies: tslib "^1.9.0" -"@angular/core@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/core/-/core-7.0.0-beta.7.tgz#983aef3e0ba3e2711518d5691a219403fed1e40e" - integrity sha512-KFI2DMTwTmWZ342+WU7aPaLHOOlIzdVbljzdKzSETfxnUqu/aeWRoRuFV/sulct2eH4CRx5Nk3h6mApcaIAKnQ== +"@angular/core@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/core/-/core-7.0.0-rc.0.tgz#c1d845d5d1718f96f542abe7ae86b64c280da3bb" + integrity sha512-DXTUjk1tUdgxj0AHQR6wAKLF+i/vSsRCBxFEzcBa944UJoYBDd1n2PIREzDMW0tkGMtxfHy3Ti+trSpPBLiDTA== dependencies: tslib "^1.9.0" -"@angular/elements@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/elements/-/elements-7.0.0-beta.7.tgz#c0bb7bab16ad4e7ff0dfb1fe7bb578c687e8f07e" - integrity sha512-bDeb5r3wqvdTVcgzZBTXe3yYEM8cM0oFkIQPAtzRzk6ESYT6hxP4a3fVsXtmdMbYwbHUPyJW99sA/KpwXbC+2w== +"@angular/elements@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/elements/-/elements-7.0.0-rc.0.tgz#eb8693b43265933e08dc10b28a70f2f5020596da" + integrity sha512-j6c3wB12Uu+VOSrxtXRnPO9DPQyOh8WP7GJBwa7ibfIZpGi5QvZNNdyJjEhSvYlJknRvR51juXBp5Jysn6EgGA== dependencies: tslib "^1.9.0" -"@angular/forms@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-7.0.0-beta.7.tgz#c6ace90d203ac880fae59ea7a8672e9ace0e1718" - integrity sha512-Fc5QOt8qY8jv5TB6KRUnSLr5iO9lghbnXfEo8V3aNvtqtDP8cqFbDuFlmy6w8lqjQgDbxowiB+Bi+vmwA6Zs/w== +"@angular/forms@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-7.0.0-rc.0.tgz#b86f5db32bc840948cd5c0f253ad9da5cef24789" + integrity sha512-ZfD2n+DojwreeP0sF4GuFrihActssogDUGGeDHge5qmyCqE/5hsOUFnNkg1pk4mO9xeIggdYygH0nRHqvifmFQ== dependencies: tslib "^1.9.0" -"@angular/language-service@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/language-service/-/language-service-7.0.0-beta.7.tgz#c9a5b5e37043efada1264bf080a6cedd5f237712" - integrity sha512-NmPmDbcPqHrmbj24vAYCOcGgDOXHN6DEKa4wUlCVF36Uk9jbJ3mnTZSxpwsuUna2TocE3uAXSsN2UMeEfWb/2g== +"@angular/language-service@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/language-service/-/language-service-7.0.0-rc.0.tgz#48dc0e10a12b7f255ae3bff02b5b337b9b70c95b" + integrity sha512-FnmPxREsffWESAu2u5pUvR8ejR5SvqhKlClnm9ruqIu/pdwHpa/lDGp9ysTkI5trVu0lSRH39wTQvilzO+FdpA== "@angular/material@6.0.2": version "6.0.2" @@ -197,31 +197,31 @@ dependencies: tslib "^1.7.1" -"@angular/platform-browser-dynamic@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-7.0.0-beta.7.tgz#4fa383cbfc75be07eebae7bbf843fced9491373b" - integrity sha512-VyPzKj77CQQ/FELgzbW99bANhohh57FNBiSN87wOkPfR5Mw7Q/l3K6dNXRVB9HQM7qMscu88jROw7akwnbnsEQ== +"@angular/platform-browser-dynamic@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-7.0.0-rc.0.tgz#b66d4c30ed25f67dab15e64462b959d039ada705" + integrity sha512-+SbuLnedoZNY6kfY5dV5p/+Rm4oj/DVwLhOWVFMtrqiaKRSrrEThH12FPKfQCqak51RjF4wDpJbqyWCGFDIbJA== dependencies: tslib "^1.9.0" -"@angular/platform-browser@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-7.0.0-beta.7.tgz#979207087d136ebbe140f5c25c3f0ccad0e5852a" - integrity sha512-ZA99RAqteilQl/vUCAm/RNbC11sn0BykKYDKOmZnQbI6NkfkfFAnCrolza3vifOLuTpjSzH9bs3nLWwzeIF0dg== +"@angular/platform-browser@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-7.0.0-rc.0.tgz#9e19e83bce242f9dde0457719d15a87a90e314cc" + integrity sha512-N52E4TjX3AwMT0EMZTikxQz+4rkdx1C9WnBSIuBR5rYwZi391mxexvES8PqE4UqEarm08eHvfxUwtMZU/FwC+w== dependencies: tslib "^1.9.0" -"@angular/router@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/router/-/router-7.0.0-beta.7.tgz#ade3259875219adf8e6cff857ecd90789a0e5cdd" - integrity sha512-dZgPWfygKYqA0JHBB0L8NXnKdC28UpAx2xi/YkKMzBTzdfhUuXm2n5RH9Kd4vm3iF3feanVShu5/dykoCP6H2g== +"@angular/router@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/router/-/router-7.0.0-rc.0.tgz#6d6ddae8cf8bb15f9c0aaba2bb7487eb42248bd2" + integrity sha512-rT58TKCelP6BLw8Gzu6ZPeO86xzVFpDxVCLGmwEAmkWw8xG0gACkPYeVny4hsCkfx4nbz2w8upQksOKrudZt4w== dependencies: tslib "^1.9.0" -"@angular/service-worker@^7.0.0-beta.7": - version "7.0.0-beta.7" - resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-7.0.0-beta.7.tgz#27f529f51c6cbb65eb0893a1732d7ddb8be96295" - integrity sha512-fugLyNylGioNR1waxoUV0ugqvxcL9pF9OKk8PMyjMXGAgraixUVbEpPUAA8NwwatWl6ZuFWTbYQERF3cQfJtrg== +"@angular/service-worker@^7.0.0-rc.0": + version "7.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-7.0.0-rc.0.tgz#52c9bb2c2014f7c2360e1d5a2bd87a18296ba04b" + integrity sha512-nEJhF3etWeS5OLDpCwtzsCb6RXchiQ3WqmykOyzpfzzbYgIIjVN6k/mn858/DvNDw+9LkqNiMB/+U3LRyjFYhw== dependencies: tslib "^1.9.0" @@ -10934,11 +10934,6 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@3.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.3.tgz#4853b3e275ecdaa27f78fda46dc273a7eb7fc1c8" - integrity sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg== - "typescript@>=2.6.2 <2.10", typescript@~2.9.2: version "2.9.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.2.tgz#1cbf61d05d6b96269244eb6a3bce4bd914e0f00c" @@ -10949,6 +10944,11 @@ typescript@^2.4.1: resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4" integrity sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q= +typescript@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.1.tgz#3362ba9dd1e482ebb2355b02dfe8bcd19a2c7c96" + integrity sha512-Veu0w4dTc/9wlWNf2jeRInNodKlcdLgemvPsrNpfu5Pq39sgfFjvIIgTsvUHCoLBnMhPoUA+tFxsXjU6VexVRQ== + typescript@~2.7.1: version "2.7.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"