diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 45d1254..e6f8898 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -39,8 +39,12 @@ jobs: - uses: actions/checkout@v3 - name: Setup uses: ./.github/actions/setup.node + - name: Env info + run: | + echo "Node $(node -v)" + echo "pnpm v$(pnpm -v)" - name: Test - run: pnpm -r test:dump + run: pnpm -r t perf-test: runs-on: ubuntu-latest needs: lint diff --git a/examples/websocket-chat/package.json b/examples/websocket-chat/package.json index 30c3436..c88e11d 100644 --- a/examples/websocket-chat/package.json +++ b/examples/websocket-chat/package.json @@ -1,6 +1,6 @@ { "name": "@elementbound/nlon-websocket-example", - "version": "0.10.4", + "version": "0.10.5", "description": "An example app using nlon over WebSockets", "private": "true", "main": "src/host.mjs", @@ -17,8 +17,8 @@ "author": "Tamas Galffy", "license": "MIT", "dependencies": { - "@elementbound/nlon": "workspace:^0.10.4", - "@elementbound/nlon-websocket": "workspace:^0.10.4", + "@elementbound/nlon": "workspace:^0.10.5", + "@elementbound/nlon-websocket": "workspace:^0.10.5", "express": "^4.18.2", "pino": "^8.8.0" }, diff --git a/lerna.json b/lerna.json index 64b6f2f..d0ae18e 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", "useWorkspaces": true, - "version": "0.10.4" + "version": "0.10.5" } diff --git a/packages/nlon-socket/package.json b/packages/nlon-socket/package.json index 890ceb0..732a9b8 100644 --- a/packages/nlon-socket/package.json +++ b/packages/nlon-socket/package.json @@ -1,6 +1,6 @@ { "name": "@elementbound/nlon-socket", - "version": "0.10.4", + "version": "0.10.5", "description": "Socket adapter for nlon", "main": "index.js", "scripts": { @@ -24,7 +24,7 @@ }, "repository": "github:elementbound/nlon", "dependencies": { - "@elementbound/nlon": "workspace:^0.10.4" + "@elementbound/nlon": "workspace:^0.10.5" }, "devDependencies": { "clean-jsdoc-theme": "^4.2.2", diff --git a/packages/nlon-websocket/package.json b/packages/nlon-websocket/package.json index 0eff9bc..afb66b6 100644 --- a/packages/nlon-websocket/package.json +++ b/packages/nlon-websocket/package.json @@ -1,6 +1,6 @@ { "name": "@elementbound/nlon-websocket", - "version": "0.10.4", + "version": "0.10.5", "description": "WebSocket adapter for nlon", "main": "index.mjs", "scripts": { @@ -24,7 +24,7 @@ }, "repository": "github:elementbound/nlon", "dependencies": { - "@elementbound/nlon": "workspace:^0.10.4", + "@elementbound/nlon": "workspace:^0.10.5", "isomorphic-ws": "^5.0.0", "ws": "^8.12.1" }, diff --git a/packages/nlon/lib/correspondence/correspondence.mjs b/packages/nlon/lib/correspondence/correspondence.mjs index 87ae801..c82dedd 100644 --- a/packages/nlon/lib/correspondence/correspondence.mjs +++ b/packages/nlon/lib/correspondence/correspondence.mjs @@ -197,7 +197,7 @@ export class Correspondence extends events.EventEmitter { * @throws If any of the handlers throw */ async * all (...handlers) { - while (this.readable) { + do { const data = await this.next(...handlers) if (data !== _CorrespondenceEnd) { yield Promise.resolve(data) @@ -205,7 +205,7 @@ export class Correspondence extends events.EventEmitter { } break - } + } while (this.readable) } /** diff --git a/packages/nlon/package.json b/packages/nlon/package.json index 4ba9e9c..0e76049 100644 --- a/packages/nlon/package.json +++ b/packages/nlon/package.json @@ -1,6 +1,6 @@ { "name": "@elementbound/nlon", - "version": "0.10.4", + "version": "0.10.5", "description": "Reference implementation of the nlon protocol", "main": "index.mjs", "scripts": { diff --git a/packages/nlon/test/correspondence/readable.correspondence.test.mjs b/packages/nlon/test/correspondence/readable.correspondence.test.mjs index ba6a604..47246a4 100644 --- a/packages/nlon/test/correspondence/readable.correspondence.test.mjs +++ b/packages/nlon/test/correspondence/readable.correspondence.test.mjs @@ -336,7 +336,7 @@ describe('ReadableCorrespondence', () => { const promise = generator.next() // Then - assert.rejects(promise) + assert.rejects(promise, 'Didn\'t reject!') }) // }}} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e36de66..74d7d88 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,8 +16,8 @@ importers: examples/websocket-chat: specifiers: - '@elementbound/nlon': workspace:^0.10.4 - '@elementbound/nlon-websocket': workspace:^0.10.4 + '@elementbound/nlon': workspace:^0.10.5 + '@elementbound/nlon-websocket': workspace:^0.10.5 assert-browserify: ^2.0.0 concurrently: ^7.6.0 copy-webpack-plugin: ^11.0.0 @@ -88,7 +88,7 @@ importers: packages/nlon-socket: specifiers: - '@elementbound/nlon': workspace:^0.10.4 + '@elementbound/nlon': workspace:^0.10.5 clean-jsdoc-theme: ^4.2.2 eslint: ^8.31.0 eslint-config-standard: ^17.0.0 @@ -115,7 +115,7 @@ importers: packages/nlon-websocket: specifiers: - '@elementbound/nlon': workspace:^0.10.4 + '@elementbound/nlon': workspace:^0.10.5 clean-jsdoc-theme: ^4.2.2 eslint: ^8.31.0 eslint-config-standard: ^17.0.0