Skip to content

Commit 05862a3

Browse files
chore(no-compat): deprecated. compat is gone from RxJS v7+ (#32)
1 parent d12958c commit 05862a3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The package includes the following rules.
7272
| [just](docs/rules/just.md) | Require the use of `just` instead of `of`. | | 🔧 | | | |
7373
| [macro](docs/rules/macro.md) | Require the use of the RxJS Tools Babel macro. | | 🔧 | | ||
7474
| [no-async-subscribe](docs/rules/no-async-subscribe.md) | Disallow passing `async` functions to `subscribe`. || | | 💭 | |
75-
| [no-compat](docs/rules/no-compat.md) | Disallow the `rxjs-compat` package. | | | | | |
75+
| [no-compat](docs/rules/no-compat.md) | Disallow the `rxjs-compat` package. | | | | | |
7676
| [no-connectable](docs/rules/no-connectable.md) | Disallow operators that return connectable observables. | | | | 💭 | |
7777
| [no-create](docs/rules/no-create.md) | Disallow the static `Observable.create` function. || | | 💭 | |
7878
| [no-cyclic-action](docs/rules/no-cyclic-action.md) | Disallow cyclic actions in effects and epics. | | | | 💭 | |

docs/rules/no-compat.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Disallow the `rxjs-compat` package (`rxjs-x/no-compat`)
22

3+
❌ This rule is deprecated.
4+
35
<!-- end auto-generated rule header -->
46

57
This rule prevents importing from locations that depend upon the `rxjs-compat` package.
68

9+
This rule is deprecated because RxJS v7+ no longer includes `rxjs-compat`.
10+
711
## Further reading
812

913
- [Backwards compatibility](https://github.com/ReactiveX/rxjs/blob/a6590e971969c736a15b77154dabbc22275aa0d5/docs_app/content/guide/v6/migration.md#backwards-compatibility)

src/rules/no-compat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ruleCreator } from '../utils';
44
export const noCompatRule = ruleCreator({
55
defaultOptions: [],
66
meta: {
7+
deprecated: true,
78
docs: {
89
description:
910
'Disallow the `rxjs-compat` package.',

0 commit comments

Comments
 (0)