feat(smooth): stop to ship smooth()
as a part of default bundled operator
#2512
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE:
smooth()
is not a part ofObservable.prototype
by default.Please use
import 'rxjs/add/operator/smooth'
.Motivation
I love software's easter egg and april fool joke.
I don't have any objections about that adding joke codes like
smooth()
into our repository.
However, I strongly think we should not ship it as a part of default
bundled operator (in other words, I think it should not be loaded by
default in
src/Rx.ts
).Default bundling
smooth()
causes these bad effectsand increase the file size of user application by it. It is user
choise. But this is joke code. It's not essential for actual
usecase.
So this enforces to increasing file size all users who use
import { Observable } from 'rxjs'
style.Related issue (if exists)
#2508