Skip to content

Commit 9b42141

Browse files
committed
fix(core): patch rxjs
1 parent 735fbda commit 9b42141

File tree

4 files changed

+43
-8
lines changed

4 files changed

+43
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
diff --git a/dist/types/internal/operators/filter.d.ts b/dist/types/internal/operators/filter.d.ts
2+
index 01089a216c3214a5d2db80d6ce3867212d6278e4..ccc6db28c58f78e2d6c4699c70c3dbfc42863cac 100644
3+
--- a/dist/types/internal/operators/filter.d.ts
4+
+++ b/dist/types/internal/operators/filter.d.ts
5+
@@ -5,5 +5,5 @@ export declare function filter<T, S extends T>(predicate: (value: T, index: numb
6+
export declare function filter<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;
7+
/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */
8+
export declare function filter<T, A>(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction<T>;
9+
-export declare function filter<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T>;
10+
+export declare function filter<T>(predicate: (value: T, index: number) => unknown): MonoTypeOperatorFunction<T>;
11+
//# sourceMappingURL=filter.d.ts.map
12+
\ No newline at end of file
13+
diff --git a/src/internal/operators/filter.ts b/src/internal/operators/filter.ts
14+
index 4c99edfdcacab7fcbd563fe9634ef6beeeae0a71..9aaf2262c9fa71c9d8e86ee07bfec2d4889973a7 100644
15+
--- a/src/internal/operators/filter.ts
16+
+++ b/src/internal/operators/filter.ts
17+
@@ -7,7 +7,7 @@ export function filter<T, S extends T>(predicate: (value: T, index: number) => v
18+
export function filter<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;
19+
/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */
20+
export function filter<T, A>(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction<T>;
21+
-export function filter<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T>;
22+
+export function filter<T>(predicate: (value: T, index: number) => unknown): MonoTypeOperatorFunction<T>;
23+
24+
/**
25+
* Filter items emitted by the source Observable by only emitting those that
26+
@@ -57,7 +57,7 @@ export function filter<T>(predicate: (value: T, index: number) => boolean): Mono
27+
* @return A function that returns an Observable that emits items from the
28+
* source Observable that satisfy the specified `predicate`.
29+
*/
30+
-export function filter<T>(predicate: (value: T, index: number) => boolean, thisArg?: any): MonoTypeOperatorFunction<T> {
31+
+export function filter<T>(predicate: (value: T, index: number) => unknown, thisArg?: any): MonoTypeOperatorFunction<T> {
32+
return (source) =>
33+
new Observable((destination) => {
34+
// An index passed to our predicate function on each call.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"pako": "2.1.0",
3434
"react": "18.3.1",
3535
"react-dom": "18.3.1",
36-
"rxjs": "8.0.0-alpha.14",
36+
"rxjs": "patch:rxjs@npm%3A8.0.0-alpha.14#~/.yarn/patches/rxjs-npm-8.0.0-alpha.14-00c47179bc.patch",
3737
"ts-brand": "0.2.0",
3838
"ts-enum-utilx": "0.3.0",
3939
"ts-expect": "1.3.0",

src/rxjs.d.ts

-6
This file was deleted.

yarn.lock

+8-1
Original file line numberDiff line numberDiff line change
@@ -3714,7 +3714,7 @@ __metadata:
37143714
react: "npm:18.3.1"
37153715
react-dom: "npm:18.3.1"
37163716
rollup: "npm:4.22.5"
3717-
rxjs: "npm:8.0.0-alpha.14"
3717+
rxjs: "patch:rxjs@npm%3A8.0.0-alpha.14#~/.yarn/patches/rxjs-npm-8.0.0-alpha.14-00c47179bc.patch"
37183718
ts-brand: "npm:0.2.0"
37193719
ts-enum-utilx: "npm:0.3.0"
37203720
ts-expect: "npm:1.3.0"
@@ -7739,6 +7739,13 @@ __metadata:
77397739
languageName: node
77407740
linkType: hard
77417741

7742+
"rxjs@patch:rxjs@npm%3A8.0.0-alpha.14#~/.yarn/patches/rxjs-npm-8.0.0-alpha.14-00c47179bc.patch":
7743+
version: 8.0.0-alpha.14
7744+
resolution: "rxjs@patch:rxjs@npm%3A8.0.0-alpha.14#~/.yarn/patches/rxjs-npm-8.0.0-alpha.14-00c47179bc.patch::version=8.0.0-alpha.14&hash=184baf"
7745+
checksum: 10c0/f9c3e22009488df2e1f1baaf05eed80e55c2d1fb1313862838ec9c1ce4e945238dbdf7154ffe9438ba2fd075aa350155f29374bcdbe2c04472094b63395bb5dd
7746+
languageName: node
7747+
linkType: hard
7748+
77427749
"safe-buffer@npm:^5.1.0":
77437750
version: 5.2.1
77447751
resolution: "safe-buffer@npm:5.2.1"

0 commit comments

Comments
 (0)