From e94a1e3f287b75d214f5c6364309355ebb6aaa4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 26 Oct 2024 22:07:52 +0200 Subject: [PATCH] chore(master): release 0.4.31 (#72) * chore(master): release 0.4.31 * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .github/release-please/manifest.json | 2 +- CHANGELOG.md | 12 ++++++++++ README.md | 4 ++-- deno.json | 24 +++++++++++++++---- dist/package.json | 2 +- examples/deno/javascript/dynamicExample.js | 2 +- examples/deno/javascript/fixedExample.js | 2 +- .../deno/javascript/multiFunctionExample.js | 2 +- .../deno/javascript/multiFunctionWorker.js | 2 +- examples/deno/javascript/yourWorker.js | 2 +- examples/deno/typescript/pool.ts | 2 +- examples/deno/typescript/worker.ts | 2 +- sonar-project.properties | 2 +- src/pools/version.ts | 2 +- 14 files changed, 44 insertions(+), 18 deletions(-) diff --git a/.github/release-please/manifest.json b/.github/release-please/manifest.json index 4e51dc0b..45c72e45 100644 --- a/.github/release-please/manifest.json +++ b/.github/release-please/manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.30" + ".": "0.4.31" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a4af6eb..bb351ab5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.31](https://github.com/poolifier/poolifier-web-worker/compare/v0.4.30...v0.4.31) (2024-10-26) + +### โšก Performance + +- use micro tasks in tasks handling code paths + ([8abd0c2](https://github.com/poolifier/poolifier-web-worker/commit/8abd0c2e33accfc1572901c0c20cbbde4e85f531)) + +### ๐Ÿงช Tests + +- refine worker error handling expectation + ([dbc6f71](https://github.com/poolifier/poolifier-web-worker/commit/dbc6f711610aa73edd14b85a041d7d2c3fd4ede0)) + ## [0.4.30](https://github.com/poolifier/poolifier-web-worker/compare/v0.4.29...v0.4.30) (2024-10-24) ### ๐Ÿž Bug Fixes diff --git a/README.md b/README.md index 6de80811..7cc15114 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ for more details**: ```js - + ``` ```js @@ -158,7 +158,7 @@ import { DynamicThreadPool, FixedThreadPool, PoolEvents, -} from 'https://cdn.jsdelivr.net/npm/poolifier-web-worker@0.4.30/browser/mod.js' +} from 'https://cdn.jsdelivr.net/npm/poolifier-web-worker@0.4.31/browser/mod.js' ``` diff --git a/deno.json b/deno.json index db786cb6..bb7b7879 100644 --- a/deno.json +++ b/deno.json @@ -1,9 +1,11 @@ { "name": "@poolifier/poolifier-web-worker", - "version": "0.4.30", + "version": "0.4.31", "exports": "./src/mod.ts", "compilerOptions": { - "lib": ["deno.worker"], + "lib": [ + "deno.worker" + ], "strict": true }, "tasks": { @@ -24,7 +26,9 @@ "documentation": "deno doc ./src/mod.ts" }, "test": { - "include": ["./tests/**/*.test.mjs"] + "include": [ + "./tests/**/*.test.mjs" + ] }, "fmt": { "semiColons": false, @@ -38,8 +42,18 @@ "expect": "npm:expect@^29.7.0" }, "publish": { - "include": ["LICENSE", "README.md", "deno.json", "src/**/*.ts"] + "include": [ + "LICENSE", + "README.md", + "deno.json", + "src/**/*.ts" + ] }, "lock": false, - "exclude": ["./coverage", "./dist/browser", "./dist/esm", "./npm"] + "exclude": [ + "./coverage", + "./dist/browser", + "./dist/esm", + "./npm" + ] } diff --git a/dist/package.json b/dist/package.json index c11148f1..893d47cb 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,6 +1,6 @@ { "name": "poolifier-web-worker", - "version": "0.4.30", + "version": "0.4.31", "description": "poolifier-web-worker", "repository": { "type": "git", diff --git a/examples/deno/javascript/dynamicExample.js b/examples/deno/javascript/dynamicExample.js index 96f7c1e3..987b45b6 100644 --- a/examples/deno/javascript/dynamicExample.js +++ b/examples/deno/javascript/dynamicExample.js @@ -2,7 +2,7 @@ import { availableParallelism, DynamicThreadPool, PoolEvents, -} from 'jsr:@poolifier/poolifier-web-worker@^0.4.30' // x-release-please-version +} from 'jsr:@poolifier/poolifier-web-worker@^0.4.31' // x-release-please-version const pool = new DynamicThreadPool( Math.floor(availableParallelism() / 2), diff --git a/examples/deno/javascript/fixedExample.js b/examples/deno/javascript/fixedExample.js index 4f1b3cb9..2cb93791 100644 --- a/examples/deno/javascript/fixedExample.js +++ b/examples/deno/javascript/fixedExample.js @@ -2,7 +2,7 @@ import { availableParallelism, FixedThreadPool, PoolEvents, -} from 'jsr:@poolifier/poolifier-web-worker@^0.4.30' // x-release-please-version +} from 'jsr:@poolifier/poolifier-web-worker@^0.4.31' // x-release-please-version const pool = new FixedThreadPool( availableParallelism(), diff --git a/examples/deno/javascript/multiFunctionExample.js b/examples/deno/javascript/multiFunctionExample.js index ab08e09a..8296e245 100644 --- a/examples/deno/javascript/multiFunctionExample.js +++ b/examples/deno/javascript/multiFunctionExample.js @@ -1,7 +1,7 @@ import { availableParallelism, FixedThreadPool, -} from 'jsr:@poolifier/poolifier-web-worker@^0.4.30' // x-release-please-version +} from 'jsr:@poolifier/poolifier-web-worker@^0.4.31' // x-release-please-version const pool = new FixedThreadPool( availableParallelism(), diff --git a/examples/deno/javascript/multiFunctionWorker.js b/examples/deno/javascript/multiFunctionWorker.js index 6883cb8d..1086b2eb 100644 --- a/examples/deno/javascript/multiFunctionWorker.js +++ b/examples/deno/javascript/multiFunctionWorker.js @@ -1,4 +1,4 @@ -import { ThreadWorker } from 'jsr:@poolifier/poolifier-web-worker@^0.4.30' // x-release-please-version +import { ThreadWorker } from 'jsr:@poolifier/poolifier-web-worker@^0.4.31' // x-release-please-version function fn0(data) { console.info('Executing fn0') diff --git a/examples/deno/javascript/yourWorker.js b/examples/deno/javascript/yourWorker.js index 8197a0b2..bdeb3855 100644 --- a/examples/deno/javascript/yourWorker.js +++ b/examples/deno/javascript/yourWorker.js @@ -1,4 +1,4 @@ -import { ThreadWorker } from 'jsr:@poolifier/poolifier-web-worker@^0.4.30' // x-release-please-version +import { ThreadWorker } from 'jsr:@poolifier/poolifier-web-worker@^0.4.31' // x-release-please-version function yourFunction() { for (let i = 0; i <= 1000; i++) { diff --git a/examples/deno/typescript/pool.ts b/examples/deno/typescript/pool.ts index 8a196b54..541a0c0d 100644 --- a/examples/deno/typescript/pool.ts +++ b/examples/deno/typescript/pool.ts @@ -2,7 +2,7 @@ import { availableParallelism, DynamicThreadPool, FixedThreadPool, -} from 'jsr:@poolifier/poolifier-web-worker@^0.4.30' // x-release-please-version +} from 'jsr:@poolifier/poolifier-web-worker@^0.4.31' // x-release-please-version import type { MyData, MyResponse } from './worker.ts' const workerFileURL = new URL('./worker.ts', import.meta.url) diff --git a/examples/deno/typescript/worker.ts b/examples/deno/typescript/worker.ts index 27c6d64b..d9a2600d 100644 --- a/examples/deno/typescript/worker.ts +++ b/examples/deno/typescript/worker.ts @@ -1,4 +1,4 @@ -import { ThreadWorker } from 'jsr:@poolifier/poolifier-web-worker@^0.4.30' // x-release-please-version +import { ThreadWorker } from 'jsr:@poolifier/poolifier-web-worker@^0.4.31' // x-release-please-version export interface MyData { ok: 0 | 1 diff --git a/sonar-project.properties b/sonar-project.properties index bbceb571..c109b004 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,7 +3,7 @@ sonar.organization=poolifier sonar.typescript.lcov.reportPaths=coverage/lcov.info sonar.projectName=poolifier-web-worker # x-release-please-start-version -sonar.projectVersion=0.4.30 +sonar.projectVersion=0.4.31 # x-release-please-end sonar.host.url=https://sonarcloud.io sonar.sources=src diff --git a/src/pools/version.ts b/src/pools/version.ts index f3fa7fab..1c2b56d7 100644 --- a/src/pools/version.ts +++ b/src/pools/version.ts @@ -1,3 +1,3 @@ // x-release-please-start-version -export const version = '0.4.30' +export const version = '0.4.31' // x-release-please-end