-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Test for side effects, and remove existing ones #4769
Conversation
NotificationKind["NEXT"] = "N"; | ||
NotificationKind["ERROR"] = "E"; | ||
NotificationKind["COMPLETE"] = "C"; | ||
})(NotificationKind || (NotificationKind = {})); |
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.
This code is retained because of how TS transpiles enums. Newer versions of TS don't suffer from this.
@@ -0,0 +1,622 @@ | |||
import { __extends } from "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.
This module in particular retains a lot of code.
@@ -0,0 +1,9 @@ | |||
This test checks if the side effects for loading Angular packages have changed using <https://github.com/filipesilva/check-side-effects>. | |||
|
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.
This file explains how to use the side effect test.
@@ -1,584 +1,3 @@ | |||
function isFunction(x) { |
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.
All this retained code is now gone.
Generated by 🚫 dangerJS |
Description:
This PR adds tests for side effects to the RxJS ESM bundles.
It also makes use a tslint rule to identify a known side-effect producing pattern, allowing us to refactor that away and remove existing side effects.
Related issue (if exists):
This PR is part of the effort in Angular to remove side effects (angular/angular#29329).