Skip to content

Commit

Permalink
Merge pull request #77 from basics/feature/fetch-extended
Browse files Browse the repository at this point in the history
Feature/fetch extended
  • Loading branch information
StephanGerbeth authored Nov 14, 2024
2 parents f0af6f4 + bd3c5ef commit 293b651
Show file tree
Hide file tree
Showing 34 changed files with 794 additions and 265 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
// https://github.com/eslint-community/eslint-plugin-security
import eslintPluginSecurity from 'eslint-plugin-security';
// https://github.com/vitest-dev/eslint-plugin-vitest
import vitest from 'eslint-plugin-vitest';
import vitest from '@vitest/eslint-plugin';
import globals from 'globals';

import eslintIgnores from './eslint.ignores.js';
Expand Down
23 changes: 9 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"eslint-plugin-perfectionist": "3.9.1",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-security": "3.0.1",
"@vitest/eslint-plugin": "1.0.1",
"@vitest/eslint-plugin": "1.1.10",
"fetch-mock": "12.1.0",
"happy-dom": "15.10.2",
"happy-dom": "15.11.6",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"prettier": "3.3.3",
Expand Down
7 changes: 7 additions & 0 deletions packages/operators/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Project Changelog

# [@rxjs-collection/operators-v1.0.5](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.4...@rxjs-collection/operators-v1.0.5) (2024-10-25)


### Bug Fixes

* **fetch:** implemented sonar optimizations ([9063f6e](https://github.com/basics/rxjs-collection/commit/9063f6e9fc85f5d544af4e6d92d1d60e32cccf94))

# [@rxjs-collection/operators-v1.0.5-beta.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.4...@rxjs-collection/operators-v1.0.5-beta.1) (2024-10-25)


Expand Down
12 changes: 12 additions & 0 deletions packages/operators/fixtures/paginatedFetchFixture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const test = await fetch('https://dummyjson.com/products?limit=10&skip=0&select=title,price');
console.log(test);

Check warning on line 2 in packages/operators/fixtures/paginatedFetchFixture.js

View workflow job for this annotation

GitHub Actions / Install (ubuntu-latest, 20)

Unexpected console statement
const a = new Blob([test]);
console.log(a);

Check warning on line 4 in packages/operators/fixtures/paginatedFetchFixture.js

View workflow job for this annotation

GitHub Actions / Install (ubuntu-latest, 20)

Unexpected console statement

const fr = new FileReader();

fr.onload = function () {
console.log(JSON.parse(this.result));

Check warning on line 9 in packages/operators/fixtures/paginatedFetchFixture.js

View workflow job for this annotation

GitHub Actions / Install (ubuntu-latest, 20)

Unexpected console statement
};

fr.readAsText(a);
2 changes: 1 addition & 1 deletion packages/operators/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rxjs-collection/operators",
"version": "1.0.5-beta.1",
"version": "1.0.5",
"description": "rxjs operators",
"license": "MIT",
"contributors": [
Expand Down
42 changes: 0 additions & 42 deletions packages/operators/src/fetch/autoPagination.test.js

This file was deleted.

40 changes: 0 additions & 40 deletions packages/operators/src/fetch/concurrentDownload.test.js

This file was deleted.

15 changes: 0 additions & 15 deletions packages/operators/src/fetch/lazyPagination.js

This file was deleted.

51 changes: 0 additions & 51 deletions packages/operators/src/fetch/lazyPagination.test.js

This file was deleted.

60 changes: 0 additions & 60 deletions packages/operators/src/fetch/response.test.js

This file was deleted.

30 changes: 0 additions & 30 deletions packages/operators/src/fetch/retry.test.js

This file was deleted.

Loading

0 comments on commit 293b651

Please sign in to comment.