-
Notifications
You must be signed in to change notification settings - Fork 3k
Update to TypeScript 2.1, Update Errors, Breaking Changes! #2606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I'm honestly not entirely sure I did this properly, but the tests are running okay, and I don't see the duplicate |
In my blur memory our global build did manually import tslib something similar while bundling via rollup, not sure if it still exists and need to be updated? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benlesh so looking basically it looks harmless to global build (it was using tslib
already) but only need to update https://github.com/benlesh/RxJS/blob/74a875d15ca5d3d89588dba94b6f47e1b772fc07/package.json#L192 this, should remove duplication as new change makes tslib
to dependencies.
@@ -1,4 +1,6 @@ | |||
/* tslint:disable:no-unused-variable */ | |||
import 'tslib'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just so that we bring in the helpers for the umd file?
tsconfig.json
Outdated
{ | ||
"compilerOptions": { | ||
"importHelpers": true, | ||
"noEmitHelpers": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that you need noEmitHelpers
, importHelpers
should be sufficient.
package.json
Outdated
"compile_dist_es6_for_docs": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts ./dist/es6/src/MiscJSDoc.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --noImplicitThis --suppressImplicitAnyIndexErrors --moduleResolution node", | ||
"cover": "shx rm -rf dist/cjs && tsc src/Rx.ts src/add/observable/of.ts -m commonjs --lib es5,es2015.iterable,es2015.collection,es2015.promise,dom --outDir dist/cjs --sourceMap --target ES5 -d && nyc --reporter=lcov --reporter=html --exclude=spec/support/**/* --exclude=spec-js/**/* --exclude=node_modules mocha --opts spec/support/default.opts spec-js", | ||
"compile_dist_cjs": "tsc ./dist/cjs/src/Rx.ts ./dist/cjs/src/add/observable/of.ts -m commonjs --lib es5,es2015.iterable,es2015.collection,es2015.promise,dom --noEmitHelpers --sourceMap --outDir ./dist/cjs --target ES5 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --noImplicitThis --suppressImplicitAnyIndexErrors --moduleResolution node", | ||
"compile_module_es6": "tsc ./dist/es6/src/Rx.ts ./dist/es6/src/add/observable/of.ts -m es2015 --noEmitHelpers --sourceMap --outDir ./dist/es6 --target ES5 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --noImplicitThis --suppressImplicitAnyIndexErrors --moduleResolution node --noEmitHelpers --lib es5,es2015.iterable,es2015.collection,es2015.promise,dom ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this right? shouldn't this be importHelpers
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷♂️
What I found online said noEmitHelpers
. I'll try it the other way around.
@@ -1,5 +1,7 @@ | |||
{ | |||
"compilerOptions": { | |||
"importHelpers": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
importHelpers
requires TypeScript v2.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, thanks... I'm going to attempt to update TS...
Sadly, that makes this a breaking change. :(
Generated by 🚫 dangerJS |
Don't fear the major number ;) |
- adds `tslib` import to `Rx.ts` - adds `--noEmitHelpers` to build output closes #2605
BREAKING CHANGE: The following types no longer exist: `EmptyError`, `UnsubscriptionError`, `ArgumentOutOfRangeError`, `ObjectUnsubcribedError`, `TimeoutError`, `AjaxError`, `AjaxTimeoutError`. There are now utilities for creating and testing under `Rx.Util` for example: `Rx.Util.createTimeoutError()` and `Rx.Util.isTimeoutError(err)` etc. closes #2612 related #2582
FWIW: I move that this can be the first RxJS 6 alpha or beta once merged, and we can start looking at merging some of the other changes for the next major sitting in our queue. As long as the breaking changes aren't too fast. |
Closing in favor of #2614 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Breaking Changes!!
Error
subclasses, rather there are utility functions to create Errors, and to test if an error is a specific type.Symbol
is properly shimmed