Skip to content

Commit 7ad2119

Browse files
authored
refactor(Rx.ts): move Rx.ts to internal (#3400)
BREAKING CHANGE: importing from `rxjs/Rx` is no longer available. Upcoming backwards compat solution will allow that
1 parent 6319f3c commit 7ad2119

File tree

139 files changed

+382
-382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+382
-382
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"compile_dist_cjs": "tsc -p ./tsconfig/tsconfig.cjs.json",
9797
"compile_dist_esm5": "tsc -p ./tsconfig/tsconfig.esm5.json",
9898
"compile_dist_esm2015": "tsc -p ./tsconfig/tsconfig.esm2015.json",
99-
"compile_dist_esm2015_for_docs": "tsc ./dist/src/Rx.ts ./dist/src/add/observable/of.ts ./dist/src/MiscJSDoc.ts -m es2015 --sourceMap --outDir ./dist/es6 --target es2015 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --noImplicitThis --suppressImplicitAnyIndexErrors --moduleResolution node",
99+
"compile_dist_esm2015_for_docs": "tsc ./dist/src/internal/Rx.ts ./dist/src/add/observable/of.ts ./dist/src/MiscJSDoc.ts -m es2015 --sourceMap --outDir ./dist/es6 --target es2015 -d --diagnostics --pretty --noImplicitAny --noImplicitReturns --noImplicitThis --suppressImplicitAnyIndexErrors --moduleResolution node",
100100
"compile_dist_esm5_for_rollup": "tsc -p ./tsconfig/tsconfig.esm5.rollup.json",
101101
"copy_sources": "mkdirp dist && shx cp -r ./src/ ./dist/src",
102102
"decision_tree_widget": "cd doc/decision-tree-widget && npm run build && cd ../..",

spec/Notification-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import * as Rx from '../src/Rx';
2+
import * as Rx from '../src/internal/Rx';
33
import { expectObservable } from './helpers/marble-testing';
44

55
const Notification = Rx.Notification;

spec/Observable-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from 'chai';
22
import * as sinon from 'sinon';
3-
import * as Rx from '../src/Rx';
3+
import * as Rx from '../src/internal/Rx';
44
import { Observer, TeardownLogic } from '../src/internal/types';
55
import { cold, expectObservable, expectSubscriptions } from './helpers/marble-testing';
66
import { map } from '../src/internal/operators/map';

spec/Scheduler-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import * as Rx from '../src/Rx';
2+
import * as Rx from '../src/internal/Rx';
33

44
const Scheduler = Rx.Scheduler;
55

spec/Subject-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import * as Rx from '../src/Rx';
2+
import * as Rx from '../src/internal/Rx';
33
import { hot, expectObservable } from './helpers/marble-testing';
44

55
const Subject = Rx.Subject;

spec/Subscriber-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import * as Rx from '../src/Rx';
2+
import * as Rx from '../src/internal/Rx';
33

44
const Subscriber = Rx.Subscriber;
55

spec/Subscription-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import * as Rx from '../src/Rx';
2+
import * as Rx from '../src/internal/Rx';
33

44
const Observable = Rx.Observable;
55
const Subscription = Rx.Subscription;

spec/exports-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { throwError } from '../src/internal/observable/throwError';
2323
import { timer } from '../src/internal/observable/timer';
2424
import { using } from '../src/internal/observable/using';
2525
import { zip } from '../src/internal/observable/zip';
26-
import * as Rx from '../src/Rx';
26+
import * as Rx from '../src/internal/Rx';
2727

2828
describe('exports', () => {
2929
it('should have rxjs/observable/bindCallback', () => {

spec/helpers/test-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
declare const global: any;
22

3-
import * as Rx from '../../src/Rx';
3+
import * as Rx from '../../src/internal/Rx';
44
import { ObservableInput } from '../../src/internal/types';
55
import { root } from '../../src/internal/util/root';
66
import { $$iterator } from '../../src/internal/symbol/iterator';

spec/helpers/testScheduler-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as _ from 'lodash';
44
import * as chai from 'chai';
55
import * as sinonChai from 'sinon-chai';
66

7-
import * as Rx from '../../src/Rx';
7+
import * as Rx from '../../src/internal/Rx';
88
import * as marble from './marble-testing';
99

1010
//tslint:disable:no-var-requires no-require-imports

0 commit comments

Comments
 (0)