Skip to content

Commit 8b2f2ec

Browse files
Merge pull request #68 from basics/feature/fetch-cleanup
Feature/fetch cleanup
2 parents df4c613 + 36d7543 commit 8b2f2ec

21 files changed

+156
-191
lines changed

packages/observables/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Project Changelog
22

3+
# [@rxjs-collection/observables-v1.0.4](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.3...@rxjs-collection/observables-v1.0.4) (2024-10-24)
4+
5+
6+
### Bug Fixes
7+
8+
* **fetch:** added fetch operators ([e248db8](https://github.com/basics/rxjs-collection/commit/e248db81cd681366c0654f30a2b0f664e1e30a5c))
9+
310
# [@rxjs-collection/observables-v1.0.4-beta.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.3...@rxjs-collection/observables-v1.0.4-beta.1) (2024-10-24)
411

512

packages/observables/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rxjs-collection/observables",
3-
"version": "1.0.4-beta.1",
3+
"version": "1.0.4",
44
"description": "rxjs observables",
55
"license": "MIT",
66
"contributors": [

packages/operators/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Project Changelog
22

3+
# [@rxjs-collection/operators-v1.0.3](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.2...@rxjs-collection/operators-v1.0.3) (2024-10-24)
4+
5+
6+
### Bug Fixes
7+
8+
* **deps:** pin dependencies ([dfd1950](https://github.com/basics/rxjs-collection/commit/dfd1950821e2a1436bcd0dfde45b5b07c63dd2b8))
9+
* **fetch:** added fetch operators ([e248db8](https://github.com/basics/rxjs-collection/commit/e248db81cd681366c0654f30a2b0f664e1e30a5c))
10+
* **fetch:** added logs and cleanup ([025ea93](https://github.com/basics/rxjs-collection/commit/025ea930df68d7eb1cc28cd64c642e51f498c69c))
11+
* **fetch:** added logs to test and cleanup ([3ef05aa](https://github.com/basics/rxjs-collection/commit/3ef05aa55345da1dd4dec416bb17554d5c457743))
12+
* **fetch:** cleanup ([522f2ca](https://github.com/basics/rxjs-collection/commit/522f2ca06ea0d1141d596f31e9b626cfb71e8f31))
13+
* **fetch:** cleanup ([c56babb](https://github.com/basics/rxjs-collection/commit/c56babbc77214eb589f5c0ef2e4ed8e854f0892c))
14+
* **fetch:** cleanup tests ([3d20b2e](https://github.com/basics/rxjs-collection/commit/3d20b2e2daa5d64b708418dc7a694ad3ec47f0be))
15+
* **fetch:** polling completed and cleanup of operators ([cc64c16](https://github.com/basics/rxjs-collection/commit/cc64c1631007c1ab659a4f559b4e946dc3f682ab))
16+
317
# [@rxjs-collection/operators-v1.0.3-beta.2](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.3-beta.1...@rxjs-collection/operators-v1.0.3-beta.2) (2024-10-24)
418

519

packages/operators/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rxjs-collection/operators",
3-
"version": "1.0.3-beta.2",
3+
"version": "1.0.3",
44
"description": "rxjs operators",
55
"license": "MIT",
66
"contributors": [

packages/operators/src/fetch/autoPagination.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { concatMap, expand, filter, from, map } from 'rxjs';
22

3-
import { download } from './download';
3+
import { request } from './request';
44

55
export const autoPagination = ({ resolveRoute }) => {
66
return source =>
77
source.pipe(
88
concatMap(({ url }) => {
99
return from(resolveRoute(url)).pipe(
10-
download(),
10+
request(),
1111
expand(resp =>
1212
from(resolveRoute(url, resp)).pipe(
1313
filter(url => !!url),
14-
download()
14+
request()
1515
)
1616
)
1717
);

packages/operators/src/fetch/autoPagination.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { beforeEach, describe, expect, test } from 'vitest';
33

44
import { log } from '../log';
55
import { autoPagination } from './autoPagination';
6-
import { resolveJSON } from './resolve';
6+
import { resolveJSON } from './response';
77

88
describe('auto pagination', function () {
99
beforeEach(function () {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mergeMap, of } from 'rxjs';
22

3-
import { download } from './download';
3+
import { request } from './request';
44

55
export const concurrentDownload = (concurrent = 1) => {
6-
return source => source.pipe(mergeMap(url => of(url).pipe(download()), concurrent));
6+
return source => source.pipe(mergeMap(url => of(url).pipe(request()), concurrent));
77
};

packages/operators/src/fetch/concurrentDownload.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { beforeEach, describe, expect, test } from 'vitest';
33

44
import { log } from '../log';
55
import { concurrentDownload } from './concurrentDownload';
6-
import { resolveJSON } from './resolve';
6+
import { resolveJSON } from './response';
77

88
describe('multi fetch', function () {
99
beforeEach(function () {

packages/operators/src/fetch/download.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/operators/src/fetch/download.test.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)