Skip to content
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

Create a new pull request by comparing changes across two branches #337

Merged
merged 50 commits into from
Dec 21, 2023

Conversation

GulajavaMinistudio
Copy link
Owner

Description:

BREAKING CHANGE:

Related issue (if exists):

benlesh and others added 30 commits November 3, 2023 10:28
Adds an esm import integration test and updates the commonjs integration test.
* Fixes a broken link to /api/operators/switchMapTo

* Fixes a typo in the label for switchMapTo
This removes deps that were added ages ago to resolve different package conflicts that simply are not necessary now.
* docs: fix the usage of docs-lint

* docs: fix docs-test
BREAKING CHANGE: `observable` (the `Symbol.observable` symbol instance) is no longer exported. Use a polyfill like `symbol-observable`, or use `Symbol.observable ?? '@@observable'` as a workaround.
* refactor: removes pipeFromArray

This refactor is in preparation to move Observable and other core elements into its own package.

- Note that the `pipeReducer` is repeated in a few places. This is okay, just a step in the refactor

* refactor: move all core implementations to Observable.ts

This is in preparation for publishing `Observable` and related types as a standalone package.

- Moves `Subscriber`, `Subscription`, `config`, and `from` to `Observable.ts`
- Moves several related types to `Observable.ts`
- Updates imports to reflect the new locations.

* refactor: Move UnsubscriptionError to Observable.ts

Moves UnsubscriptionError to Observable.ts, since that's the only place it is used.

* refactor: unify observable input checking order and error throwing

Unifies and centralizes the order of input checking and how we throw errors when something cannot be converted to an observable.

* refactor: Move simple typeguards to Observable.ts

- Since we unified how we were checking the observable input types, we no longer need shared modules for each typeguard.
- Most of the files touched here were using `isFunction`, etc.

* refactor: move notification factories under Observable.ts

- This is in preparation for moving Observable and related types to its own packages

* chore: fix lint
* chore: migrate to eslint

This just removes tslint and its associated packages, replacing them
with eslint and `@typescript-eslint`.

Any custom rule config we had has been discarded so we can instead rely
on the recommended configs from both eslint and tseslint.

* test: revert args in test
* chore: update yarn.lock to fix broken build

* chore: ensure core-js exists
BREAKING CHANGE: Removed the deprecated `Subject.create` method. If you need to create an object that is "half Observable, half Observer", you'll need to either bolt `next`, `error`, and `complete` handlers onto an `Observable` and property type the return... or you'll need to create your own class that is backed by an `Observable`. In any case, if the `Observer` and the `Observable` are so unrelated that you have to bolt them together, you're probably better off with those two objects separately. This is why `Subject.create` has been deprecated for so long.
BREAKING CHANGE: `WebSocketSubject` is no longer `instanceof Subject`. Check for `instanceof WebSocketSubject` instead.
JamesHenry and others added 20 commits November 22, 2023 13:48
* chore: set primary node version and yarn v1 package manager

* chore: replace volta with engines
* style: automatic type-only imports

* style: automatic type-only exports

* chore: fix formatting

---------

Co-authored-by: Ben Lesh <[email protected]>
…7403)

* fix(TestScheduler): explicit unsubscribe works properly with toEqual

Fixes #7399

* chore: clean up tests, add expected observable test
Allow passing a value of type `symbol` to `eventName` if
a `NodeStyleEventEmitter` is passed to `source`, according to
[the documentation](https://nodejs.org/api/events.html#emitteraddlistenereventname-listener).

Closes #7338
Removes internal usage of the `pipe` method, so that in the future, other observables that do not implement `pipe` will work with our operators
This goes through and moves all of the reliance on the `this` context for scheduling to a single point, `executeSchedule`. It also moves common complexities to that helper function. All of this is done in preparation for creating newer, simplified schedulers
This reverts commit d42594f.

This was pushed up by mistake.
* chore(repo): misc QOL release

* chore(repo): update publish checks and logic

* chore: write branch out in error case.

* chore: add configuration for npm tags and better error messages

---------

Co-authored-by: Ben Lesh <[email protected]>
@GulajavaMinistudio GulajavaMinistudio merged commit 8069247 into GulajavaMinistudio:master Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants