Skip to content

Commit 80783ab

Browse files
committed
feat(reorganize): moved symbols to be internal
BREAKING CHANGE: Symbols are no longer exported directly from modules such as `rxjs/symbol/observable` please use `Symbol.observable` and `Symbol.iterator` (polyfills may be required)
1 parent fd3ee3a commit 80783ab

18 files changed

+23
-23
lines changed

spec/helpers/test-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ declare const global: any;
33
import * as Rx from '../../src/Rx';
44
import { ObservableInput } from '../../src/Observable';
55
import { root } from '../../src/util/root';
6-
import { $$iterator } from '../../src/symbol/iterator';
6+
import { $$iterator } from '../../src/internal/symbol/iterator';
77
import $$symbolObservable from 'symbol-observable';
88

99
export function lowerCaseO<T>(...args: Array<any>): Rx.Observable<T> {

spec/symbol/iterator-spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import { $$iterator, symbolIteratorPonyfill } from '../../src/symbol/iterator';
2+
import { $$iterator, symbolIteratorPonyfill } from '../../src/internal/symbol/iterator';
33

44
describe('iterator symbol', () => {
55
it('should exist', () => {
@@ -97,4 +97,4 @@ describe('symbolIteratorPonyfill', () => {
9797
});
9898
});
9999
});
100-
});
100+
});

spec/symbol/observable-polyfilled-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

3-
import { getSymbolObservable } from '../../src/symbol/observable';
3+
import { getSymbolObservable } from '../../src/internal/symbol/observable';
44

55
describe('observable symbol', () => {
66
it('should exist in the proper form when Symbol does not exist', () => {

spec/symbol/observable-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect } from 'chai';
22
import $$symbolObservable from 'symbol-observable';
33

44
import { root } from '../../src/util/root';
5-
import { getSymbolObservable } from '../../src/symbol/observable';
5+
import { getSymbolObservable } from '../../src/internal/symbol/observable';
66

77
describe('observable symbol', () => {
88
it('should exist in the proper form', () => {

spec/symbol/rxSubscriber-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 { root } from '../../src/util/root';
3-
import {$$rxSubscriber} from '../../src/symbol/rxSubscriber';
3+
import {$$rxSubscriber} from '../../src/internal/symbol/rxSubscriber';
44

55
describe('rxSubscriber symbol', () => {
66
it('should exist in the proper form', () => {

spec/util/subscribeToResult-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect } from 'chai';
22
import * as Rx from '../../src/Rx';
33
import { subscribeToResult } from '../../src/util/subscribeToResult';
44
import { OuterSubscriber } from '../../src/internal/OuterSubscriber';
5-
import { $$iterator } from '../../src/symbol/iterator';
5+
import { $$iterator } from '../../src/internal/symbol/iterator';
66
import $$symbolObservable from 'symbol-observable';
77

88
describe('subscribeToResult', () => {

src/Rx.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ import { AsapScheduler } from './internal/scheduler/AsapScheduler';
172172
import { AsyncScheduler } from './internal/scheduler/AsyncScheduler';
173173
import { QueueScheduler } from './internal/scheduler/QueueScheduler';
174174
import { AnimationFrameScheduler } from './internal/scheduler/AnimationFrameScheduler';
175-
import { rxSubscriber } from './symbol/rxSubscriber';
176-
import { iterator } from './symbol/iterator';
177-
import { observable } from './symbol/observable';
175+
import { rxSubscriber } from './internal/symbol/rxSubscriber';
176+
import { iterator } from './internal/symbol/iterator';
177+
import { observable } from './internal/symbol/observable';
178178

179179
import * as _operators from './internal/operators';
180180

src/internal/Observable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { root } from '../util/root';
66
import { toSubscriber } from '../util/toSubscriber';
77
import { IfObservable } from './observable/IfObservable';
88
import { ErrorObservable } from './observable/ErrorObservable';
9-
import { observable as Symbol_observable } from '../symbol/observable';
9+
import { observable as Symbol_observable } from '../internal/symbol/observable';
1010
import { OperatorFunction } from '../interfaces';
1111
import { pipeFromArray } from '../util/pipe';
1212

src/internal/Subject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Subscriber } from './Subscriber';
55
import { ISubscription, Subscription, TeardownLogic } from './Subscription';
66
import { ObjectUnsubscribedError } from '../util/ObjectUnsubscribedError';
77
import { SubjectSubscription } from './SubjectSubscription';
8-
import { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';
8+
import { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';
99

1010
/**
1111
* @class SubjectSubscriber<T>

src/internal/Subscriber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isFunction } from '../util/isFunction';
22
import { Observer, PartialObserver, empty as emptyObserver } from './Observer';
33
import { Subscription } from './Subscription';
4-
import { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';
4+
import { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';
55

66
/**
77
* Implements the {@link Observer} interface and extends the

0 commit comments

Comments
 (0)