Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .changeset/olive-pugs-repeat.md

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @medicomind/rolldown-compression

## 2.1.3

### Patch Changes

- [`da23391`](https://github.com/Medico-Mind/rolldown-compression/commit/da23391ece86130432fe1b41d452ad65bac4cf75) Thanks [@Mnwa](https://github.com/Mnwa)! - Lower per-batch overhead in the native binding:

- Every batch now runs on rayon's global thread pool instead of a private pool built per `compress` call, and the whole batch — input preparation, compression, and result marshalling — runs on it rather than just the compression step. A non-zero `concurrency` sizes that global pool the first time it is requested; because the global pool can only be built once per process, later batches asking for a different thread count keep the size established by the first one, and a pool that cannot be sized is warned about on stderr rather than failing the batch. `concurrency: 0` (the default) leaves rayon's default sizing, one thread per logical CPU.
- Batch preparation and result collection are parallelized with rayon instead of running as serial iterator passes, so large batches spend less time on the single worker thread before and after the actual compression.
- Enabled the napi-rs fast path (`dyn-symbols` + `node_version_detect`), cutting FFI call overhead on supported Node versions.
- Internal: `Algorithm` now implements `FromStr`/`Display` instead of inherent `parse`/`name` methods.

No API or behavior changes — compressed output is unchanged.

## 2.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@medicomind/rolldown-compression-darwin-arm64",
"version": "2.1.2",
"version": "2.1.3",
"cpu": [
"arm64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@medicomind/rolldown-compression-darwin-x64",
"version": "2.1.2",
"version": "2.1.3",
"cpu": [
"x64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@medicomind/rolldown-compression-linux-arm64-gnu",
"version": "2.1.2",
"version": "2.1.3",
"cpu": [
"arm64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@medicomind/rolldown-compression-linux-x64-gnu",
"version": "2.1.2",
"version": "2.1.3",
"cpu": [
"x64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@medicomind/rolldown-compression-linux-x64-musl",
"version": "2.1.2",
"version": "2.1.3",
"cpu": [
"x64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/wasm32-wasi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@medicomind/rolldown-compression-wasm32-wasi",
"version": "2.1.2",
"version": "2.1.3",
"cpu": [
"wasm32"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@medicomind/rolldown-compression-win32-x64-msvc",
"version": "2.1.2",
"version": "2.1.3",
"cpu": [
"x64"
],
Expand Down
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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@medicomind/rolldown-compression",
"version": "2.1.2",
"version": "2.1.3",
"description": "Fast native (Rust) gzip / brotli / zstd compression plugin for Rolldown, powered by napi-rs",
"keywords": [
"rolldown",
Expand Down