Skip to content

Reorg2#3223

Merged
benlesh merged 23 commits intoReactiveX:masterfrom
benlesh:reorg2
Jan 12, 2018
Merged

Reorg2#3223
benlesh merged 23 commits intoReactiveX:masterfrom
benlesh:reorg2

Conversation

@benlesh
Copy link
Member

@benlesh benlesh commented Jan 12, 2018

A continuation of #3145.

I had an issue with my fork, so I needed to start the PR over because Github didn't give me any other options. It's all the same commits, and the same conversations apply.

Continuing work here.

Also, it's rebased instead of having that merge commit

See commit messages for more details.

  • Exports from a few places:

    • rxjs common types, schedulers and utilities
    • rxjs/create static creation methods like of, from, concat, forkJoin, fromEvent, etc
    • rxjs/operators all of the pipeable operators
    • rxjs/ajax the ajax implementation
    • rxjs/websocket the web socket implementation
  • Removes operator versions of observable creation helpers (use concat(a, b, c) instead of a.pipe(concat(b, c)))

  • Moves things people should not be importing directly into an "internal" directory, so it's more obvious you're doing something silly.

Moves all patching operator implementations to a directory `internal/patching/operator`.

BREAKING CHANGE: Deep imports to `rxjs/operator/*` (NOT
`rxjs/operators/*`!!!) will no longer work. Again, pipe operators are
still where they were.
…ctory

- Moves all files from `src/observables` to `src/internal/observables`
- Updates some tests to reference those internal files, this is
temprorary
- Adds an `index.ts` file at root that exports the static observable
creation functions

BREAKING CHANGE: You can no longer import observables from
`rxjs/observable/*`, now you must import them from `rxjs` directly, like
so: `import { fromEvent, timer } from 'rxjs';`

BREAKING CHANGE: You should no longer deep import custom Observable
implementations

BREAKING CHANGE: `_throw` is now exported as `throwError`

BREAKING CHANGE: `if` is now exported as `iif`
- Exports all pipeable operators from `rxjs`.

BREAKING CHANGE: Pipeable operators must now be imported from `rxjs`
like so: `import { map, filter, switchMap } from 'rxjs';`

BREAKING CHANGE: Operator versions of static observable creators such as
`merge`, `concat`, `zip`, `onErrorResumeNext`, and `race` have been
removed. Please use the static versions of those operations. e.g.
`a.pipe(concat(b, c))` becomes `concat(a, b, c)`.
- Exports schedulers as `asapScheduler`, `asyncScheduler`, `queueScheduler` and `animationFrameScheduler`

BREAKING CHANGE: Scheduler instances have changed names to be suffixed with `Scheduler`, (e.g. `asap` -> `asapScheduler`)
- moves operators directory under `internal`.
- moves `operators.ts` to `internal/operators/index.ts`
BREAKING CHANGE: Can no longer deep import top-level types such as `rxjs/Observable`, `rxjs/Subject`, `rxjs/ReplaySubject`, et al. All imports should be done directly from `rxjs`, for example: `import \{ Observable, Subject \} from 'rxjs';`
@rxjs-bot
Copy link

rxjs-bot commented Jan 12, 2018

Warnings
⚠️

❗ Big PR (1)

Messages
📖

(1) : Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

CJS: 1381.4KB, global: 750.1KB (gzipped: 120.6KB), min: 145.4KB (gzipped: 31.4KB)

Generated by 🚫 dangerJS

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 97.081% when pulling fd3ee3a on benlesh:reorg2 into 1c41825 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 97.013% when pulling fd3ee3a on benlesh:reorg2 into 1c41825 on ReactiveX:master.

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)
BREAKING CHANGE: Can no longer explicitly import types from `rxjs/interfaces`, import them from `rxjs` instead
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 97.081% when pulling 80783ab on benlesh:reorg2 into 1c41825 on ReactiveX:master.

BREAKING CHANGE: THIS NEGATES THE PREVIOUS BREAKING CHANGES TO OPERATOR MOVE TO `rxjs`, UPDATE CHANGELOG ON RELEASE
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.095% when pulling b1f8bfe on benlesh:reorg2 into 1c41825 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.095% when pulling b1f8bfe on benlesh:reorg2 into 1c41825 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.095% when pulling b1f8bfe on benlesh:reorg2 into 1c41825 on ReactiveX:master.

BREAKING CHANGE: All create functions such as `of`, `from`, `combineLatest` and `fromEvent` should now be imported from `rxjs/create`.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 97.104% when pulling 810c4d0 on benlesh:reorg2 into 1c41825 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.095% when pulling 810c4d0 on benlesh:reorg2 into 1c41825 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.096% when pulling 810c4d0 on benlesh:reorg2 into 1c41825 on ReactiveX:master.

BREAKING CHANGE: `HotObservable` and `ColdObservable`, and other testing support types are no longer exported directly.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.096% when pulling b981666 on benlesh:reorg2 into 1c41825 on ReactiveX:master.

BREAKING CHANGE: Many internal use utilities like `isArray` are now hidden under `rxjs/internal`, they are implementation details and should not be used.
BREAKING CHANGE: Ajax observable should be imported from `rxjs/ajax`.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.096% when pulling e971c93 on benlesh:reorg2 into 1c41825 on ReactiveX:master.

…ebsocket`

BREAKING CHANGE: `webSocket` creator function now exported from `rxjs/websocket` as `websocket`.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.097% when pulling 5ac62c0 on benlesh:reorg2 into 1c41825 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.097% when pulling bd1acc7 on benlesh:reorg2 into 1c41825 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.097% when pulling bd1acc7 on benlesh:reorg2 into 1c41825 on ReactiveX:master.

@benlesh benlesh merged commit c3c5686 into ReactiveX:master Jan 12, 2018
@lock
Copy link

lock bot commented Jun 6, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants