diff --git a/.cache/vitest/results.json b/.cache/vitest/results.json deleted file mode 100644 index a8fca10..0000000 --- a/.cache/vitest/results.json +++ /dev/null @@ -1 +0,0 @@ -{"version":"2.1.5","results":[["packages/playground:packages/playground/src/demo/index.test.js",{"duration":0,"failed":false}]]} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2545672..2d1e174 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules /coverage /.github_old +/.cache diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 1c5a9a0..032ed75 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -14,6 +14,7 @@ "formulahendry.auto-rename-tag", "naumovs.color-highlight", "humao.rest-client", - "techer.open-in-browser" + "techer.open-in-browser", + "vitest.explorer" ] } diff --git a/package-lock.json b/package-lock.json index 5a17c09..29f9217 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,8 @@ "license": "MIT", "workspaces": [ "packages/operators", - "packages/observables" + "packages/observables", + "packages/playground" ], "devDependencies": { "@commitlint/config-conventional": "19.6.0", @@ -22,6 +23,7 @@ "@semantic-release/release-notes-generator": "14.0.1", "@vitest/coverage-v8": "2.1.5", "@vitest/eslint-plugin": "1.1.10", + "@vitest/ui": "^2.1.5", "commitlint": "19.6.0", "eslint": "9.15.0", "eslint-config-prettier": "9.1.0", @@ -36,7 +38,7 @@ "prettier": "3.3.3", "semantic-release": "24.2.0", "semantic-release-monorepo": "8.0.2", - "vitest": "2.1.5" + "vitest": "^2.1.5" } }, "node_modules/@ampproject/remapping": { @@ -1518,6 +1520,12 @@ "node": ">=12" } }, + "node_modules/@polka/url": { + "version": "1.0.0-next.28", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.28.tgz", + "integrity": "sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==", + "dev": true + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.24.0", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.0.tgz", @@ -1734,6 +1742,10 @@ "resolved": "packages/operators", "link": true }, + "node_modules/@rxjs-collection/playground": { + "resolved": "packages/playground", + "link": true + }, "node_modules/@sec-ant/readable-stream": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz", @@ -2537,6 +2549,27 @@ "url": "https://opencollective.com/vitest" } }, + "node_modules/@vitest/ui": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-2.1.5.tgz", + "integrity": "sha512-ERgKkDMTfngrZip6VG5h8L9B5D0AH/4+bga4yR1UzGH7c2cxv3LWogw2Dvuwr9cP3/iKDHYys7kIFLDKpxORTg==", + "dev": true, + "dependencies": { + "@vitest/utils": "2.1.5", + "fflate": "^0.8.2", + "flatted": "^3.3.1", + "pathe": "^1.1.2", + "sirv": "^3.0.0", + "tinyglobby": "^0.2.10", + "tinyrainbow": "^1.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "vitest": "2.1.5" + } + }, "node_modules/@vitest/utils": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.5.tgz", @@ -4645,6 +4678,12 @@ "node": ">=18.11.0" } }, + "node_modules/fflate": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", + "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==", + "dev": true + }, "node_modules/figures": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz", @@ -6605,6 +6644,15 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/mrmime": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.0.tgz", + "integrity": "sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -11083,6 +11131,20 @@ "node": ">=4" } }, + "node_modules/sirv": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.0.tgz", + "integrity": "sha512-BPwJGUeDaDCHihkORDchNyyTvWFhcusy1XMmhEVTQTwGeybFbp8YEmB+njbPnth1FibULBSBVwCQni25XlCUDg==", + "dev": true, + "dependencies": { + "@polka/url": "^1.0.0-next.24", + "mrmime": "^2.0.0", + "totalist": "^3.0.0" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/skin-tone": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/skin-tone/-/skin-tone-2.0.0.tgz", @@ -11650,6 +11712,45 @@ "dev": true, "license": "MIT" }, + "node_modules/tinyglobby": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.10.tgz", + "integrity": "sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==", + "dev": true, + "dependencies": { + "fdir": "^6.4.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.2.tgz", + "integrity": "sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==", + "dev": true, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/tinypool": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.1.tgz", @@ -11727,6 +11828,15 @@ "node": ">=8.0" } }, + "node_modules/totalist": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz", + "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/tough-cookie": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.0.0.tgz", @@ -12040,7 +12150,6 @@ "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.5.tgz", "integrity": "sha512-P4ljsdpuzRTPI/kbND2sDZ4VmieerR2c9szEZpjc+98Z9ebvnXmM5+0tHEKqYZumXqlvnmfWsjeFOjXVriDG7A==", "dev": true, - "license": "MIT", "dependencies": { "@vitest/expect": "2.1.5", "@vitest/mocker": "2.1.5", @@ -12535,7 +12644,7 @@ }, "packages/observables": { "name": "@rxjs-collection/observables", - "version": "1.0.6", + "version": "1.0.7", "license": "MIT", "dependencies": { "@rxjs-collection/operators": "*", @@ -12544,7 +12653,7 @@ }, "packages/operators": { "name": "@rxjs-collection/operators", - "version": "1.0.10", + "version": "1.0.13", "license": "MIT", "dependencies": { "@rxjs-collection/observables": "*", @@ -12556,6 +12665,19 @@ "devDependencies": { "node-fetch": "3.3.2" } + }, + "packages/playground": { + "name": "@rxjs-collection/playground", + "version": "1.0.12", + "license": "MIT", + "dependencies": { + "@rxjs-collection/observables": "*", + "@rxjs-collection/operators": "*", + "rxjs": "7.8.1" + }, + "devDependencies": { + "node-fetch": "3.3.2" + } } } } diff --git a/package.json b/package.json index 97974e0..4076b22 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,10 @@ "release": "npm run release --workspaces", "release:proof": "npx dotenv-cli -- npm run release -- -- --dry-run", "test": "vitest", - "test:observables": "vitest --project packages/observables", - "test:operators": "vitest --project packages/operators", - "test:playground": "vitest --project packages/playground", + "test:ui": "vitest --ui", + "test:project:observables": "vitest --project packages/observables", + "test:project:operators": "vitest --project packages/operators", + "test:project:playground": "vitest --project packages/playground", "coverage": "vitest run --coverage" }, "workspaces": [ @@ -40,6 +41,8 @@ "@semantic-release/npm": "12.0.1", "@semantic-release/release-notes-generator": "14.0.1", "@vitest/coverage-v8": "2.1.5", + "@vitest/eslint-plugin": "1.1.10", + "@vitest/ui": "^2.1.5", "commitlint": "19.6.0", "eslint": "9.15.0", "eslint-config-prettier": "9.1.0", @@ -47,7 +50,6 @@ "eslint-plugin-perfectionist": "4.0.3", "eslint-plugin-prettier": "5.2.1", "eslint-plugin-security": "3.0.1", - "@vitest/eslint-plugin": "1.1.10", "fetch-mock": "12.2.0", "happy-dom": "15.11.6", "husky": "9.1.7", @@ -55,6 +57,6 @@ "prettier": "3.3.3", "semantic-release": "24.2.0", "semantic-release-monorepo": "8.0.2", - "vitest": "2.1.5" + "vitest": "^2.1.5" } } diff --git a/packages/operators/vitest.config.js b/packages/operators/vitest.config.js index 675d747..1cd1f81 100644 --- a/packages/operators/vitest.config.js +++ b/packages/operators/vitest.config.js @@ -1,4 +1,4 @@ -import { defineProject, configDefaults } from 'vitest/config'; +import { defineProject } from 'vitest/config'; export default defineProject({ cacheDir: '../.cache/vitest-operators', diff --git a/vitest.config.js b/vitest.config.js index fba5d6a..c904251 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -3,7 +3,6 @@ import { defineConfig, configDefaults } from 'vitest/config'; export default defineConfig({ test: { cacheDir: './.cache/vitest', - coverage: { provider: 'v8', reporter: ['text', 'json', 'lcov', 'html'],