Skip to content

Commit

Permalink
Merge pull request #103 from basics/feature/playground
Browse files Browse the repository at this point in the history
Feature/playground
  • Loading branch information
StephanGerbeth authored Nov 28, 2024
2 parents 71292a2 + d2a84ff commit bb01940
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

12 changes: 12 additions & 0 deletions packages/operators/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Project Changelog

# [@rxjs-collection/operators-v1.0.13](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.12...@rxjs-collection/operators-v1.0.13) (2024-11-27)


### Bug Fixes

* **operators:** added error test case ([8495596](https://github.com/basics/rxjs-collection/commit/84955962d3f6bc50a6fe7e47bafaf0bcc686c231))
* **operators:** cleanup ([236fb2e](https://github.com/basics/rxjs-collection/commit/236fb2e6119c4e6911cf4ec7deed9afffe6cbb04))
* **operators:** log test ([14bcad4](https://github.com/basics/rxjs-collection/commit/14bcad4549391af15ec8486ecd4c6303d2ac372c))
* **operators:** more readable test data ([5edeb7c](https://github.com/basics/rxjs-collection/commit/5edeb7c73d542401c92f9f30f16ac3ebe3de7088))
* **operators:** refactored log ([345487e](https://github.com/basics/rxjs-collection/commit/345487e7f8aa0072c728d726a7a8517fae154330))
* **operators:** strip datetimeisostring from log output ([d26ab18](https://github.com/basics/rxjs-collection/commit/d26ab186cfbc91c3e1afc7237198475192049822))

# [@rxjs-collection/operators-v1.0.13-beta.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.12...@rxjs-collection/operators-v1.0.13-beta.1) (2024-11-27)


Expand Down
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.13-beta.1",
"version": "1.0.13",
"description": "rxjs operators",
"license": "MIT",
"contributors": [
Expand Down
6 changes: 3 additions & 3 deletions packages/operators/src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export { autoPagination } from './request/autoPagination';
export { cache } from './request/cache';
export { cache } from './cache';
export { concurrentRequest } from './request/concurrentRequest';
export { lazyPagination } from './request/lazyPagination';
export { polling } from './request/polling';
export { request, requestJSON, requestText, requestBlob } from './request/request';
export { request, requestJSON, requestText, requestBlob } from './request';
export {
resolve,
resolveJSON,
resolveText,
resolveBlob,
distinctUntilResponseChanged
} from './request/response';
} from './response';
export { retryWhenRequestError } from './retry';
46 changes: 46 additions & 0 deletions packages/playground/.releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"branches": [
{
"name": "main",
"channel": "latest",
"prerelease": false
},
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Project Changelog"
}
],
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"CHANGELOG_PROJECT.md",
"package.json",
"package-lock.json",
"npm-shrinkwrap.json"
]
}
],
[
"@semantic-release/github"
]
],
"extends": "semantic-release-monorepo"
}
30 changes: 30 additions & 0 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "@rxjs-collection/playground",
"version": "1.0.12",
"description": "rxjs playground",
"license": "MIT",
"contributors": [
{
"name": "Stephan Gerbeth",
"email": "[email protected]"
}
],
"type": "module",
"main": "src/index.js",
"files": [
"./src/*"
],
"scripts": {
"release": "npx semantic-release"
},
"imports": {
"#observables/*": "../observables/src/*",
"#operators/*": "../operators/src/*",
"#mocks/*": "../mocks/*"
},
"dependencies": {
"@rxjs-collection/observables": "*",
"@rxjs-collection/operators": "*",
"rxjs": "7.8.1"
}
}
8 changes: 8 additions & 0 deletions packages/playground/src/demo/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { from } from 'rxjs';
import { describe, test } from 'vitest';

describe('playground stephan', () => {
test('basics', () => {
from([1, 2, 3]).subscribe(e => console.log(e));

Check warning on line 6 in packages/playground/src/demo/index.test.js

View workflow job for this annotation

GitHub Actions / Install (ubuntu-latest, 20)

Unexpected console statement
});
});
Empty file.
9 changes: 9 additions & 0 deletions packages/playground/vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineProject } from 'vitest/config';

export default defineProject({
test: {
setupFiles: ['../../setup.js'],
testTimeout: 10000,
environment: 'happy-dom'
}
});

0 comments on commit bb01940

Please sign in to comment.