Skip to content
Draft
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/src/md-vue/options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ If false, use Base64.<br>
<p>Compress format.</p>
<p><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream/DecompressionStream">https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream/DecompressionStream</a></p>
<p>This option is only valid when the <code>enableCompress</code> option is set to true.</p>
<p>default: <code>&quot;deflate-raw&quot;</code></p>
<p>default: <code>&quot;brotli&quot;</code></p>
<p>type:</p>
<ul>
<li><code>&quot;deflate-raw&quot;</code></li>
Expand Down
2 changes: 1 addition & 1 deletion test/src/md/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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"`
Expand Down