From 65e5d884d8cb227a9bf29b8536d544fa3bd4cd83 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 8 May 2023 18:53:58 -0400 Subject: [PATCH] perf(fmt): faster formatting for minified object literals (#19050) Has fix for https://github.com/dprint/dprint-plugin-typescript/issues/520 --- .dprint.json | 2 +- Cargo.lock | 4 ++-- cli/Cargo.toml | 2 +- ext/node/polyfills/_stream.d.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.dprint.json b/.dprint.json index 07124d6625..e1caea7fe3 100644 --- a/.dprint.json +++ b/.dprint.json @@ -54,7 +54,7 @@ "ext/websocket/autobahn/reports" ], "plugins": [ - "https://plugins.dprint.dev/typescript-0.84.2.wasm", + "https://plugins.dprint.dev/typescript-0.84.4.wasm", "https://plugins.dprint.dev/json-0.17.2.wasm", "https://plugins.dprint.dev/markdown-0.15.2.wasm", "https://plugins.dprint.dev/toml-0.5.4.wasm", diff --git a/Cargo.lock b/Cargo.lock index cee7665d72..1d51220e03 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1566,9 +1566,9 @@ dependencies = [ [[package]] name = "dprint-plugin-typescript" -version = "0.84.2" +version = "0.84.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8979688409764dd95b356c0d278023cad45fbb24cf788eab8c972ae069a7a3f8" +checksum = "9945b1fae98529bd905d66b3c5efd45408b928cd10b7a3e0764049cf9aaf2167" dependencies = [ "anyhow", "deno_ast", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 8067d147d5..7d0e99d395 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -67,7 +67,7 @@ data-url.workspace = true dissimilar = "=1.0.4" dprint-plugin-json = "=0.17.2" dprint-plugin-markdown = "=0.15.2" -dprint-plugin-typescript = "=0.84.2" +dprint-plugin-typescript = "=0.84.4" encoding_rs.workspace = true env_logger = "=0.9.0" eszip = "=0.41.0" diff --git a/ext/node/polyfills/_stream.d.ts b/ext/node/polyfills/_stream.d.ts index 467ac9f36b..382bb9093c 100644 --- a/ext/node/polyfills/_stream.d.ts +++ b/ext/node/polyfills/_stream.d.ts @@ -1190,7 +1190,7 @@ type PipelineDestinationPromiseFunction = ( source: AsyncIterable, ) => Promise

; type PipelineDestination, P> = S extends - PipelineTransformSource ? + PipelineTransformSource ? | WritableStream | PipelineDestinationIterableFunction | PipelineDestinationPromiseFunction