Skip to content

Commit

Permalink
Merge pull request #83 from basics/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
StephanGerbeth authored Nov 24, 2024
2 parents d108485 + 40b03c6 commit c8f0d88
Show file tree
Hide file tree
Showing 45 changed files with 1,311 additions and 987 deletions.
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"formulahendry.auto-close-tag",
"formulahendry.auto-rename-tag",
"naumovs.color-highlight",
"humao.rest-client"
"humao.rest-client",
"techer.open-in-browser"
]
}
6 changes: 3 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import js from '@eslint/js';
// https://github.com/vitest-dev/eslint-plugin-vitest
import vitest from '@vitest/eslint-plugin';
// https://github.com/nickdeis/eslint-plugin-no-secrets
import noSecrets from 'eslint-plugin-no-secrets';
// https://github.com/azat-io/eslint-plugin-perfectionist
Expand All @@ -7,8 +9,6 @@ import perfectionist from 'eslint-plugin-perfectionist';
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 globals from 'globals';

import eslintIgnores from './eslint.ignores.js';
Expand Down Expand Up @@ -48,7 +48,7 @@ export default [
type: 'alphabetical',
order: 'asc',
ignoreCase: true,
internalPattern: ['~/**'],
internalPattern: ['^~/.*'],
newlinesBetween: 'always',
maxLineLength: undefined,
groups: [
Expand Down
856 changes: 319 additions & 537 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@
"packages/observables"
],
"devDependencies": {
"@commitlint/config-conventional": "19.5.0",
"@commitlint/config-conventional": "19.6.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "13.0.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "11.0.0",
"@semantic-release/github": "11.0.1",
"@semantic-release/npm": "12.0.1",
"@semantic-release/release-notes-generator": "14.0.1",
"@vitest/coverage-v8": "2.1.3",
"commitlint": "19.5.0",
"eslint": "9.13.0",
"@vitest/coverage-v8": "2.1.5",
"commitlint": "19.6.0",
"eslint": "9.15.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-no-secrets": "1.0.2",
"eslint-plugin-perfectionist": "3.9.1",
"eslint-plugin-no-secrets": "1.1.2",
"eslint-plugin-perfectionist": "4.0.3",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-security": "3.0.1",
"eslint-plugin-vitest": "0.5.4",
"fetch-mock": "12.0.0",
"happy-dom": "15.7.4",
"husky": "9.1.6",
"@vitest/eslint-plugin": "1.1.10",
"fetch-mock": "12.2.0",
"happy-dom": "15.11.6",
"husky": "9.1.7",
"lint-staged": "15.2.10",
"prettier": "3.3.3",
"semantic-release": "24.1.3",
"semantic-release": "24.2.0",
"semantic-release-monorepo": "8.0.2",
"vitest": "2.1.3"
"vitest": "2.1.5"
}
}
3 changes: 3 additions & 0 deletions packages/mock/async.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { of } from 'rxjs';

export const mockAsync = v => of(v);
File renamed without changes.
15 changes: 15 additions & 0 deletions packages/mock/response.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { vi } from 'vitest';

import { mockAsync } from './async';

export const mockResponse = () => {
return vi.fn((e, url) => ({
url: url,
clone: () => new Response(e),
json: () => mockAsync(e),
text: () => mockAsync(e),
blob: () => mockAsync(e),
arrayBuffer: () => mockAsync(e),
ok: true
}));
};
7 changes: 7 additions & 0 deletions packages/observables/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Project Changelog

# [@rxjs-collection/observables-v1.0.5-beta.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.4...@rxjs-collection/observables-v1.0.5-beta.1) (2024-11-24)


### Bug Fixes

* **operators:** cleanup and standardize tests ([aabbbd8](https://github.com/basics/rxjs-collection/commit/aabbbd89bd76ca57cfd20b747890fcc74ee01227))

# [@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)


Expand Down
2 changes: 1 addition & 1 deletion packages/observables/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rxjs-collection/observables",
"version": "1.0.4",
"version": "1.0.5-beta.1",
"description": "rxjs observables",
"license": "MIT",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion packages/observables/src/dom/window.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { tap } from 'rxjs';
import { TestScheduler } from 'rxjs/testing';
import { beforeEach, test, expect, describe, afterEach } from 'vitest';

import { mockOffline, mockOnline, mockReset } from '../../../test-utils/network.js';
import { mockOffline, mockOnline, mockReset } from '../../../mock/network.js';
import { connectionObservable } from './window.js';

// HINT: https://betterprogramming.pub/rxjs-testing-write-unit-tests-for-observables-603af959e251
Expand Down
24 changes: 24 additions & 0 deletions packages/operators/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Project Changelog

# [@rxjs-collection/operators-v1.0.6-beta.3](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.6-beta.2...@rxjs-collection/operators-v1.0.6-beta.3) (2024-11-24)


### Bug Fixes

* **deps:** pin dependencies ([fbaaf8a](https://github.com/basics/rxjs-collection/commit/fbaaf8ae9723e6960782b5cd96c2be5ce38a170c))

# [@rxjs-collection/operators-v1.0.6-beta.2](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.6-beta.1...@rxjs-collection/operators-v1.0.6-beta.2) (2024-11-24)


### Bug Fixes

* **operators:** cleanup and standardize tests ([aabbbd8](https://github.com/basics/rxjs-collection/commit/aabbbd89bd76ca57cfd20b747890fcc74ee01227))
* **operators:** marble testing ([2b5f78b](https://github.com/basics/rxjs-collection/commit/2b5f78bacbbae30ab02f62d1e603816cadba03ee))

# [@rxjs-collection/operators-v1.0.6-beta.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.5...@rxjs-collection/operators-v1.0.6-beta.1) (2024-11-14)


### Bug Fixes

* **fetch:** additional stuff ([4ab3e81](https://github.com/basics/rxjs-collection/commit/4ab3e8164d2fb347191b35e87c3ac33a2d1922f5))
* **operators:** added fetch tests ([84b2614](https://github.com/basics/rxjs-collection/commit/84b26147bae6a8ee2a6010a0f52884900d63761e))
* **operators:** optimized tests ([bd3c5ef](https://github.com/basics/rxjs-collection/commit/bd3c5ef521b87be36fde61e292f81e92297b16d6))

# [@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)


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);
4 changes: 3 additions & 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",
"version": "1.0.6-beta.3",
"description": "rxjs operators",
"license": "MIT",
"contributors": [
Expand All @@ -19,6 +19,8 @@
},
"dependencies": {
"@rxjs-collection/observables": "*",
"ansi-colors": "4.1.3",
"consola": "3.2.3",
"fast-equals": "5.0.1",
"rxjs": "7.8.1"
},
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.

42 changes: 0 additions & 42 deletions packages/operators/src/fetch/polling.test.js

This file was deleted.

Loading

0 comments on commit c8f0d88

Please sign in to comment.