From 1874dbff68305aad7b7424c856c1b600e6d1ee09 Mon Sep 17 00:00:00 2001 From: bddjr Date: Sun, 19 Apr 2026 10:09:31 +0800 Subject: [PATCH] change default `compressFormat` to brotli --- README.md | 2 +- src/options.ts | 2 +- test/src/md-vue/options.vue | 2 +- test/src/md/options.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e5e3abc..f46f65d 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream/Decompressi This option is only valid when the `enableCompress` option is set to true. -default: `"deflate-raw"` +default: `"brotli"` type: - `"deflate-raw"` diff --git a/src/options.ts b/src/options.ts index 999c25d..dccea52 100644 --- a/src/options.ts +++ b/src/options.ts @@ -137,7 +137,7 @@ export function getInnerOptions(opt?: Options): InnerOptions { ? compressFormatAlias[opt.compressFormat as CompressFormatAlias] : String(opt.compressFormat) as CompressFormat ) - : "deflate-raw", + : "brotli", compressor: typeof opt.compressor == 'function' ? opt.compressor : undefined, diff --git a/test/src/md-vue/options.vue b/test/src/md-vue/options.vue index d58c62b..7337bfb 100644 --- a/test/src/md-vue/options.vue +++ b/test/src/md-vue/options.vue @@ -27,7 +27,7 @@ If false, use Base64.

Compress format.

https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream/DecompressionStream

This option is only valid when the enableCompress option is set to true.

-

default: "deflate-raw"

+

default: "brotli"

type: