Permalink
Browse files

refactor: update angular to support TypeScript 2.4

Detailed updates:
- rxjs@5.0.x
- tsickle@0.24.x
- typescript@2.4.x
- @bazel/typescript@0.10.0
- protractor@5.1.x
- selenium-webdriver@3.0.x

BREAKING CHANGE:
- the Angular compiler now requires TypeScript 2.4.x.
  • Loading branch information...
tbosch authored and matsko committed Sep 9, 2017
1 parent 112e777 commit ca5aebaa6b4d929aca66658d350ab3b49dd89e2b
Showing with 427 additions and 361 deletions.
  1. +6 −3 integration/_payload-limits.sh
  2. +3 −3 integration/bazel/package.json
  3. +3 −3 integration/hello_world__closure/package.json
  4. +2 −2 integration/hello_world__systemjs_umd/package.json
  5. +3 −3 integration/i18n/package.json
  6. +2 −2 integration/language_service_plugin/package.json
  7. +0 −41 integration/typings_test_ts23/include-all.ts
  8. +0 −28 integration/typings_test_ts23/package.json
  9. +0 −24 integration/typings_test_ts23/tsconfig.json
  10. 0 integration/{typings_test_ts22 → typings_test_ts24}/include-all.ts
  11. +2 −2 integration/{typings_test_ts22 → typings_test_ts24}/package.json
  12. 0 integration/{typings_test_ts22 → typings_test_ts24}/tsconfig.json
  13. +1 −4 modules/playground/e2e_test/model_driven_forms/model_driven_forms_spec.ts
  14. +1 −4 modules/playground/e2e_test/template_driven_forms/template_driven_forms_spec.ts
  15. +91 −29 npm-shrinkwrap.clean.json
  16. +171 −69 npm-shrinkwrap.json
  17. +7 −7 package.json
  18. +2 −2 packages/bazel/package.json
  19. +1 −10 packages/bazel/src/ngc-wrapped/index.ts
  20. +2 −2 packages/compiler-cli/package.json
  21. +13 −11 packages/compiler-cli/src/diagnostics/check_types.ts
  22. +9 −3 packages/compiler-cli/src/diagnostics/typescript_symbols.ts
  23. +6 −9 packages/compiler-cli/src/main.ts
  24. +2 −2 packages/compiler-cli/src/perform_compile.ts
  25. +1 −1 packages/compiler-cli/src/transformers/node_emitter.ts
  26. +4 −2 packages/compiler-cli/test/diagnostics/check_types_spec.ts
  27. +3 −2 packages/core/src/change_detection/differs/iterable_differs.ts
  28. +2 −2 packages/core/test/zone/ng_zone_spec.ts
  29. +1 −1 packages/examples/upgrade/static/ts/module.ts
  30. +8 −2 packages/language-service/src/ts_plugin.ts
  31. +2 −0 packages/language-service/test/test_utils.ts
  32. +1 −1 packages/language-service/test/ts_plugin_spec.ts
  33. +4 −3 packages/platform-server/integrationtest/package.json
  34. +2 −2 packages/tsc-wrapped/package.json
  35. +16 −43 packages/tsc-wrapped/src/main.ts
  36. +4 −2 packages/tsc-wrapped/src/tsc.ts
  37. +5 −5 packages/tsc-wrapped/test/main_spec.ts
  38. +1 −1 packages/tsc-wrapped/test/symbols_spec.ts
  39. +14 −13 packages/tsc-wrapped/test/typescript.mocks.ts
  40. +3 −0 packages/tsconfig-build.json
  41. +8 −4 packages/upgrade/src/dynamic/upgrade_adapter.ts
  42. +6 −1 packages/upgrade/src/dynamic/upgrade_ng1_adapter.ts
  43. +3 −1 scripts/ci/install.sh
  44. +4 −4 scripts/ci/offline_compiler_test.sh
  45. +2 −2 tools/public_api_guard/common/index.d.ts
  46. +1 −1 tools/public_api_guard/core/index.d.ts
  47. +2 −2 tools/public_api_guard/platform-webworker/index.d.ts
  48. +1 −1 tools/public_api_guard/upgrade/index.d.ts
  49. +2 −2 tools/tslint/requireInternalWithUnderscoreRule.ts
@@ -8,12 +8,15 @@ payloadLimits["hello_world__closure", "gzip7", "bundle"]=35000
payloadLimits["hello_world__closure", "gzip9", "bundle"]=35000
payloadLimits["cli-hello-world", "uncompressed", "inline"]=1500
payloadLimits["cli-hello-world", "uncompressed", "main"]=183000
# TODO(tbosch): find out why this increased, see https://github.com/angular/angular/issues/19113
payloadLimits["cli-hello-world", "uncompressed", "main"]=205000
payloadLimits["cli-hello-world", "uncompressed", "polyfills"]=64000
payloadLimits["cli-hello-world", "gzip7", "inline"]=900
payloadLimits["cli-hello-world", "gzip7", "main"]=48000
# TODO(tbosch): find out why this increased, see https://github.com/angular/angular/issues/19113
payloadLimits["cli-hello-world", "gzip7", "main"]=56000
payloadLimits["cli-hello-world", "gzip7", "polyfills"]=22000
payloadLimits["cli-hello-world", "gzip9", "inline"]=900
payloadLimits["cli-hello-world", "gzip9", "main"]=48000
# TODO(tbosch): find out why this increased, see https://github.com/angular/angular/issues/19113
payloadLimits["cli-hello-world", "gzip9", "main"]=56000
payloadLimits["cli-hello-world", "gzip9", "polyfills"]=22000
@@ -9,13 +9,13 @@
"@angular/compiler": "file:../../dist/packages-dist/compiler",
"@angular/core": "file:../../dist/packages-dist/core",
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
"rxjs": "5.3.1",
"zone.js": "0.8.6"
"rxjs": "file:../../node_modules/rxjs",
"zone.js": "file:../../node_modules/zone.js"
},
"devDependencies": {
"@angular/bazel": "file:../../dist/packages-dist/bazel",
"@angular/compiler-cli": "file:../../dist/packages-dist/compiler-cli",
"typescript": "~2.3.1",
"typescript": "file:../../node_modules/typescript",
"@types/source-map": "0.5.1"
},
"scripts": {
@@ -12,9 +12,9 @@
"@angular/platform-server": "file:../../dist/packages-dist/platform-server",
"@angular/tsc-wrapped": "file:../../dist/packages-dist/tsc-wrapped",
"google-closure-compiler": "git+https://github.com/alexeagle/closure-compiler.git#packagejson.dist",
"rxjs": "5.3.1",
"typescript": "~2.3.1",
"zone.js": "0.8.6"
"rxjs": "file:../../node_modules/rxjs",
"typescript": "file:../../node_modules/typescript",
"zone.js": "file:../../node_modules/zone.js"
},
"devDependencies": {
"@types/jasmine": "2.5.41",
@@ -19,8 +19,8 @@
"plugin-typescript": "6.0.4",
"rxjs": "file:../../node_modules/rxjs",
"systemjs": "0.20.2",
"typescript": "2.1.6",
"zone.js": "0.7.6"
"typescript": "file:../../node_modules/typescript",
"zone.js": "file:../../node_modules/zone.js"
},
"devDependencies": {
"@types/jasmine": "2.5.41",
@@ -12,9 +12,9 @@
"@angular/platform-server": "file:../../dist/packages-dist/platform-server",
"@angular/tsc-wrapped": "file:../../dist/packages-dist/tsc-wrapped",
"google-closure-compiler": "git+https://github.com/alexeagle/closure-compiler.git#packagejson.dist",
"rxjs": "5.3.1",
"typescript": "~2.3.1",
"zone.js": "0.8.6"
"rxjs": "file:../../node_modules/rxjs",
"typescript": "file:../../node_modules/typescript",
"zone.js": "file:../../node_modules/zone.js"
},
"devDependencies": {
"@types/jasmine": "2.5.41",
@@ -17,8 +17,8 @@
"@types/node": "^7.0.5",
"minimist": "^1.2.0",
"rxjs": "file:../../node_modules/rxjs",
"typescript": "^2.1.5",
"zone.js": "0.7.6"
"typescript": "file:../../node_modules/typescript",
"zone.js": "file:../../node_modules/zone.js"
},
"scripts": {
"postinstall": "scripts/install.sh",

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -19,8 +19,8 @@
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",
"@types/jasmine": "2.5.41",
"rxjs": "file:../../node_modules/rxjs",
"typescript": "2.2.1",
"zone.js": "0.7.6"
"typescript": "file:../../node_modules/typescript",
"zone.js": "file:../../node_modules/zone.js"
},
"scripts": {
"test": "tsc"
@@ -25,9 +25,6 @@ describe('Model-Driven Forms', function() {
input.sendKeys('invalid');
firstName.click();
// TODO: getInnerHtml has been deprecated by selenium-webdriver in the
// upcoming release of 3.0.0. Protractor has removed this method from
// ElementFinder but can still be accessed via WebElement.
expect(form.getWebElement().getInnerHtml()).toContain('is invalid credit card number');
expect(form.getAttribute('innerHTML')).toContain('is invalid credit card number');
});
});
@@ -25,9 +25,6 @@ describe('Template-Driven Forms', function() {
input.sendKeys('invalid');
firstName.click();
// TODO: getInnerHtml has been deprecated by selenium-webdriver in the
// upcoming release of 3.0.0. Protractor has removed this method from
// ElementFinder but can still be accessed via WebElement.
expect(form.getWebElement().getInnerHtml()).toContain('is invalid credit card number');
expect(form.getAttribute('innerHTML')).toContain('is invalid credit card number');
});
});
Oops, something went wrong.

2 comments on commit ca5aeba

@xnnkmd

This comment has been minimized.

Show comment
Hide comment
@xnnkmd

xnnkmd Sep 15, 2017

why not 2.5.x ?

xnnkmd replied Sep 15, 2017

why not 2.5.x ?

@xnnkmd

This comment has been minimized.

Show comment
Hide comment
@xnnkmd

xnnkmd Sep 22, 2017

could this be merged into the next patch release of angular 4.4.x as well ?

xnnkmd replied Sep 22, 2017

could this be merged into the next patch release of angular 4.4.x as well ?

Please sign in to comment.