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: