with:
version: 8
- - name: Setup node ${{ matrix.node }}
+ - name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
with:
version: 8
- - name: Setup node
+ - name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
with:
version: 8
- - name: Setup Node
+ - name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
with:
version: 8
- - name: Setup Node
+ - name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- # - name: Publish Beta Release
- # if: ${{ contains(steps.package-version.outputs.version, '-beta') == true }}
- # run: pnpm publish --no-git-checks --tag beta
- # env:
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ - name: Publish Beta Release
+ if: ${{ contains(steps.package-version.outputs.version, '-beta') == true }}
+ run: pnpm publish --no-git-checks --tag beta
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- [Overview](#overview)
- [Installation](#installation)
- [Usage](#usage)
-- [Node versions](#node-versions)
+- [Node.js versions](#nodejs-versions)
- [API](#api)
- [General guidelines](#general-guidelines)
- [Worker choice strategies](#worker-choice-strategies)
Remember that workers can only send and receive structured-cloneable data.
-## Node versions
+## Node.js versions
-Node versions >= 16.14.x are supported.
+Node.js versions >= 16.14.x are supported.
## [API](./docs/api.md)
} from './types.js'
const emptyFunction = (): void => {
- /** Intentional */
+ /* Intentional */
}
class ExpressWorker extends ClusterWorker<
} from './types.js'
const emptyFunction = (): void => {
- /** Intentional */
+ /* Intentional */
}
class WebSocketServerWorker extends ClusterWorker<
})
const emptyFunction = (): void => {
- /** Intentional */
+ /* Intentional */
}
wss.on('connection', (ws) => {