From bc62493c3f5b8ee5d6f45ebd0b06594ad2e4b96c Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Tue, 14 Nov 2023 07:38:48 -0800 Subject: [PATCH] Upgrade to prettier 3.1 (#2666) https://prettier.io/blog/2023/11/13/3.1.0 --- ...upgrade-prettier-3.1_2023-11-13-21-05.json | 10 + ...upgrade-prettier-3.1_2023-11-13-21-05.json | 10 + ...upgrade-prettier-3.1_2023-11-13-21-05.json | 10 + ...upgrade-prettier-3.1_2023-11-13-21-05.json | 10 + common/config/rush/pnpm-lock.yaml | 36 +- packages/compiler/package.json | 2 +- packages/compiler/src/core/checker.ts | 16 +- .../compiler/src/core/schema-validator.ts | 4 +- .../compiler/src/formatter/print/printer.ts | 4 +- packages/html-program-viewer/package.json | 2 +- packages/migrate/package.json | 2 +- .../ThirdPartyNotices.txt | 378 +++++++----------- .../prettier-plugin-typespec/package.json | 2 +- packages/tspd/package.json | 2 +- 14 files changed, 214 insertions(+), 274 deletions(-) create mode 100644 common/changes/@typespec/compiler/upgrade-prettier-3.1_2023-11-13-21-05.json create mode 100644 common/changes/@typespec/html-program-viewer/upgrade-prettier-3.1_2023-11-13-21-05.json create mode 100644 common/changes/@typespec/migrate/upgrade-prettier-3.1_2023-11-13-21-05.json create mode 100644 common/changes/@typespec/prettier-plugin-typespec/upgrade-prettier-3.1_2023-11-13-21-05.json diff --git a/common/changes/@typespec/compiler/upgrade-prettier-3.1_2023-11-13-21-05.json b/common/changes/@typespec/compiler/upgrade-prettier-3.1_2023-11-13-21-05.json new file mode 100644 index 0000000000..524e144edf --- /dev/null +++ b/common/changes/@typespec/compiler/upgrade-prettier-3.1_2023-11-13-21-05.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@typespec/compiler", + "comment": "Upgrade formatter to prettier 3.1", + "type": "none" + } + ], + "packageName": "@typespec/compiler" +} \ No newline at end of file diff --git a/common/changes/@typespec/html-program-viewer/upgrade-prettier-3.1_2023-11-13-21-05.json b/common/changes/@typespec/html-program-viewer/upgrade-prettier-3.1_2023-11-13-21-05.json new file mode 100644 index 0000000000..71ba520be7 --- /dev/null +++ b/common/changes/@typespec/html-program-viewer/upgrade-prettier-3.1_2023-11-13-21-05.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@typespec/html-program-viewer", + "comment": "Upgrade formatter to prettier 3.1", + "type": "none" + } + ], + "packageName": "@typespec/html-program-viewer" +} \ No newline at end of file diff --git a/common/changes/@typespec/migrate/upgrade-prettier-3.1_2023-11-13-21-05.json b/common/changes/@typespec/migrate/upgrade-prettier-3.1_2023-11-13-21-05.json new file mode 100644 index 0000000000..ab9ce5ac94 --- /dev/null +++ b/common/changes/@typespec/migrate/upgrade-prettier-3.1_2023-11-13-21-05.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@typespec/migrate", + "comment": "Upgrade formatter to prettier 3.1", + "type": "none" + } + ], + "packageName": "@typespec/migrate" +} \ No newline at end of file diff --git a/common/changes/@typespec/prettier-plugin-typespec/upgrade-prettier-3.1_2023-11-13-21-05.json b/common/changes/@typespec/prettier-plugin-typespec/upgrade-prettier-3.1_2023-11-13-21-05.json new file mode 100644 index 0000000000..525bf1e2d4 --- /dev/null +++ b/common/changes/@typespec/prettier-plugin-typespec/upgrade-prettier-3.1_2023-11-13-21-05.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@typespec/prettier-plugin-typespec", + "comment": "Upgrade formatter to prettier 3.1", + "type": "none" + } + ], + "packageName": "@typespec/prettier-plugin-typespec" +} \ No newline at end of file diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 27a8700f29..4d34ca52ba 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -198,8 +198,8 @@ importers: specifier: ~1.0.0 version: 1.0.0 prettier: - specifier: ~3.0.3 - version: 3.0.3 + specifier: ~3.1.0 + version: 3.1.0 prompts: specifier: ~2.4.2 version: 2.4.2 @@ -269,7 +269,7 @@ importers: version: 1.5.1(mocha@10.2.0) prettier-plugin-organize-imports: specifier: ~3.2.3 - version: 3.2.3(prettier@3.0.3)(typescript@5.2.2) + version: 3.2.3(prettier@3.1.0)(typescript@5.2.2) rimraf: specifier: ~5.0.1 version: 5.0.5 @@ -317,7 +317,7 @@ importers: version: 10.2.0(eslint@8.52.0) eslint-plugin-prettier: specifier: ^5.0.0 - version: 5.0.1(eslint-config-prettier@8.10.0)(eslint@8.52.0)(prettier@3.0.3) + version: 5.0.1(eslint-config-prettier@8.10.0)(eslint@8.52.0)(prettier@3.1.0) eslint-plugin-unicorn: specifier: ^47.0.0 version: 47.0.0(eslint@8.52.0) @@ -371,8 +371,8 @@ importers: specifier: ^11.11.1 version: 11.11.1(@types/react@18.2.34)(react@18.2.0) prettier: - specifier: ~3.0.3 - version: 3.0.3 + specifier: ~3.1.0 + version: 3.1.0 react: specifier: ~18.2.0 version: 18.2.0 @@ -683,8 +683,8 @@ importers: specifier: ~13.2.2 version: 13.2.2 prettier: - specifier: ~3.0.3 - version: 3.0.3 + specifier: ~3.1.0 + version: 3.1.0 semver: specifier: ^7.5.4 version: 7.5.4 @@ -1110,8 +1110,8 @@ importers: ../../packages/prettier-plugin-typespec: dependencies: prettier: - specifier: ~3.0.3 - version: 3.0.3 + specifier: ~3.1.0 + version: 3.1.0 devDependencies: '@rollup/plugin-commonjs': specifier: ~25.0.4 @@ -1347,8 +1347,8 @@ importers: specifier: ~1.0.0 version: 1.0.0 prettier: - specifier: ~3.0.3 - version: 3.0.3 + specifier: ~3.1.0 + version: 3.1.0 yaml: specifier: ~2.3.2 version: 2.3.3 @@ -10353,7 +10353,7 @@ packages: rambda: 7.5.0 dev: false - /eslint-plugin-prettier@5.0.1(eslint-config-prettier@8.10.0)(eslint@8.52.0)(prettier@3.0.3): + /eslint-plugin-prettier@5.0.1(eslint-config-prettier@8.10.0)(eslint@8.52.0)(prettier@3.1.0): resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -10369,7 +10369,7 @@ packages: dependencies: eslint: 8.52.0 eslint-config-prettier: 8.10.0(eslint@8.52.0) - prettier: 3.0.3 + prettier: 3.1.0 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: false @@ -14813,7 +14813,7 @@ packages: fast-diff: 1.3.0 dev: false - /prettier-plugin-organize-imports@3.2.3(prettier@3.0.3)(typescript@5.2.2): + /prettier-plugin-organize-imports@3.2.3(prettier@3.1.0)(typescript@5.2.2): resolution: {integrity: sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -14826,7 +14826,7 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 3.0.3 + prettier: 3.1.0 typescript: 5.2.2 dev: true @@ -14848,8 +14848,8 @@ packages: hasBin: true dev: false - /prettier@3.0.3: - resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} + /prettier@3.1.0: + resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==} engines: {node: '>=14'} hasBin: true diff --git a/packages/compiler/package.json b/packages/compiler/package.json index 06177110e8..2dbcfcbb4d 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -78,7 +78,7 @@ "globby": "~13.2.2", "yaml": "~2.3.2", "mustache": "~4.2.0", - "prettier": "~3.0.3", + "prettier": "~3.1.0", "prompts": "~2.4.2", "semver": "^7.5.4", "vscode-languageserver": "~9.0.0", diff --git a/packages/compiler/src/core/checker.ts b/packages/compiler/src/core/checker.ts index f07dbe06a3..41e5c53538 100644 --- a/packages/compiler/src/core/checker.ts +++ b/packages/compiler/src/core/checker.ts @@ -1160,14 +1160,14 @@ export function createChecker(program: Program): Checker { return sym.flags & SymbolFlags.Model ? checkModelStatement(node as ModelStatementNode, mapper) : sym.flags & SymbolFlags.Scalar - ? checkScalar(node as ScalarStatementNode, mapper) - : sym.flags & SymbolFlags.Alias - ? checkAlias(node as AliasStatementNode, mapper) - : sym.flags & SymbolFlags.Interface - ? checkInterface(node as InterfaceStatementNode, mapper) - : sym.flags & SymbolFlags.Operation - ? checkOperation(node as OperationStatementNode, mapper) - : checkUnion(node as UnionStatementNode, mapper); + ? checkScalar(node as ScalarStatementNode, mapper) + : sym.flags & SymbolFlags.Alias + ? checkAlias(node as AliasStatementNode, mapper) + : sym.flags & SymbolFlags.Interface + ? checkInterface(node as InterfaceStatementNode, mapper) + : sym.flags & SymbolFlags.Operation + ? checkOperation(node as OperationStatementNode, mapper) + : checkUnion(node as UnionStatementNode, mapper); } function getOrInstantiateTemplate( diff --git a/packages/compiler/src/core/schema-validator.ts b/packages/compiler/src/core/schema-validator.ts index 1cdb2d9cdd..52e9ba9b8a 100644 --- a/packages/compiler/src/core/schema-validator.ts +++ b/packages/compiler/src/core/schema-validator.ts @@ -65,8 +65,8 @@ function ajvErrorToDiagnostic( target === NoTarget ? target : "kind" in target - ? getLocationInYamlScript(target, getErrorPath(error), "key") - : { file: target, pos: 0, end: 0 }, + ? getLocationInYamlScript(target, getErrorPath(error), "key") + : { file: target, pos: 0, end: 0 }, }; } diff --git a/packages/compiler/src/formatter/print/printer.ts b/packages/compiler/src/formatter/print/printer.ts index 6f4cd7b385..50ede4052b 100644 --- a/packages/compiler/src/formatter/print/printer.ts +++ b/packages/compiler/src/formatter/print/printer.ts @@ -494,8 +494,8 @@ function printDoc( const printed = isIndentableBlockComment(rawComment) ? printIndentableBlockCommentContent(rawComment) : rawComment.includes("\n") - ? rawComment - : ` ${rawComment.trim()} `; + ? rawComment + : ` ${rawComment.trim()} `; return ["/**", printed, "*/"]; } diff --git a/packages/html-program-viewer/package.json b/packages/html-program-viewer/package.json index 5c39d003e5..0d36280b42 100644 --- a/packages/html-program-viewer/package.json +++ b/packages/html-program-viewer/package.json @@ -50,7 +50,7 @@ "@typespec/compiler": "workspace:~0.50.0" }, "dependencies": { - "prettier": "~3.0.3", + "prettier": "~3.1.0", "react": "~18.2.0", "react-dom": "~18.2.0", "react-is": "~18.1.0", diff --git a/packages/migrate/package.json b/packages/migrate/package.json index cd4e32b5b9..41818b763a 100644 --- a/packages/migrate/package.json +++ b/packages/migrate/package.json @@ -45,7 +45,7 @@ "@typespec/compiler-v0.41": "npm:@typespec/compiler@0.41.0", "@typespec/compiler-v0.42": "npm:@typespec/compiler@0.42.0", "globby": "~13.2.2", - "prettier": "~3.0.3", + "prettier": "~3.1.0", "semver": "^7.5.4", "yargs": "~17.7.2", "yaml": "~2.3.2" diff --git a/packages/prettier-plugin-typespec/ThirdPartyNotices.txt b/packages/prettier-plugin-typespec/ThirdPartyNotices.txt index 51a0ba9c60..814124b18a 100644 --- a/packages/prettier-plugin-typespec/ThirdPartyNotices.txt +++ b/packages/prettier-plugin-typespec/ThirdPartyNotices.txt @@ -8,7 +8,7 @@ original copyright notices and the licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise. -1. prettier version 3.0.3 (prettier/prettier) +1. prettier version 3.1.0 (prettier/prettier) %% prettier NOTICES AND INFORMATION BEGIN HERE @@ -32,7 +32,7 @@ MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0 ## Bundled dependencies -### @angular/compiler@v16.2.2 +### @angular/compiler@v17.0.2 > Angular - the compiler library @@ -42,7 +42,7 @@ Author: angular ---------------------------------------- -### @babel/code-frame@v7.22.10 +### @babel/code-frame@v7.22.13 > Generate errors that contain a code frame that point to source locations. @@ -76,7 +76,7 @@ Author: The Babel Team (https://babel.dev/team) ---------------------------------------- -### @babel/helper-validator-identifier@v7.22.5 +### @babel/helper-validator-identifier@v7.22.20 > Validate identifier/keywords name @@ -109,7 +109,7 @@ Author: The Babel Team (https://babel.dev/team) ---------------------------------------- -### @babel/highlight@v7.22.10 +### @babel/highlight@v7.22.13 > Syntax highlight JavaScript strings for output in terminals. @@ -143,7 +143,7 @@ Author: The Babel Team (https://babel.dev/team) ---------------------------------------- -### @babel/parser@v7.22.11 +### @babel/parser@v7.23.3 > A JavaScript parser @@ -202,9 +202,7 @@ License: MIT ---------------------------------------- -### @glimmer/syntax@v0.84.3 - -License: MIT +### @glimmer/syntax@v0.85.12 > Copyright (c) 2015 Tilde, Inc. > @@ -228,7 +226,7 @@ License: MIT ---------------------------------------- -### @glimmer/util@v0.84.3 +### @glimmer/util@v0.85.12 > Common utilities used in Glimmer @@ -256,6 +254,32 @@ License: MIT ---------------------------------------- +### @glimmer/wire-format@v0.85.12 + +License: MIT + +> Copyright (c) 2015 Tilde, Inc. +> +> Permission is hereby granted, free of charge, to any person obtaining a copy of +> this software and associated documentation files (the "Software"), to deal in +> the Software without restriction, including without limitation the rights to +> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +> of the Software, and to permit persons to whom the Software is furnished to do +> so, subject to the following conditions: +> +> The above copyright notice and this permission notice shall be included in all +> copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +> SOFTWARE. + +---------------------------------------- + ### @handlebars/parser@v2.0.0 > The parser for the Handlebars language @@ -445,7 +469,7 @@ Author: Alex Bell ---------------------------------------- -### @typescript-eslint/types@v6.5.0 +### @typescript-eslint/types@v6.10.0 > Types for the TypeScript-ESTree AST spec @@ -476,7 +500,7 @@ Repository: ---------------------------------------- -### @typescript-eslint/typescript-estree@v6.5.0 +### @typescript-eslint/typescript-estree@v6.10.0 > A parser that converts TypeScript source code into an ESTree compatible form @@ -512,7 +536,7 @@ Repository: ---------------------------------------- -### acorn@v8.10.0 +### acorn@v8.11.2 > ECMAScript parser @@ -574,7 +598,7 @@ Repository: ---------------------------------------- -### angular-estree-parser@v7.0.0 +### angular-estree-parser@v8.0.3 > A parser that converts Angular source code into an ESTree-compatible form @@ -606,7 +630,7 @@ Author: Ika (https://github.com/ikatyang) ---------------------------------------- -### angular-html-parser@v4.0.1 +### angular-html-parser@v5.0.2 > A HTML parser extracted from Angular with some modifications @@ -867,24 +891,6 @@ Contributors: ---------------------------------------- -### chalk@v2.4.2 - -> Terminal string styling done right - -License: MIT - -> MIT License -> -> Copyright (c) Sindre Sorhus (sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ----------------------------------------- - ### chalk@v5.3.0 > Terminal string styling done right @@ -1005,7 +1011,7 @@ Contributors: ---------------------------------------- -### ci-info@v3.8.0 +### ci-info@v4.0.0 > Get details about the current Continuous Integration environment @@ -1015,7 +1021,7 @@ Author: Thomas Watson Steen (https://twitter.com/wa7son) > The MIT License (MIT) > -> Copyright (c) 2016-2023 Thomas Watson Steen +> Copyright (c) 2016 Thomas Watson Steen > > Permission is hereby granted, free of charge, to any person obtaining a copy > of this software and associated documentation files (the "Software"), to deal @@ -1222,43 +1228,6 @@ Author: James Halliday (http://substack.net) ---------------------------------------- -### cosmiconfig@v8.2.0 - -> Find and load configuration from a package.json property, rc file, or CommonJS module - -License: MIT -Homepage: -Repository: -Author: Daniel Fischer -Contributors: - - David Clark - - Bogdan Chadkin - - Suhas Karanth - -> The MIT License (MIT) -> -> Copyright (c) 2015 David Clark -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all -> copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -> SOFTWARE. - ----------------------------------------- - ### dashify@v2.0.0 > Convert a camelcase or space-separated string to a dash-separated string. ~12 sloc, fast, supports diacritics. @@ -1369,15 +1338,6 @@ Repository: ---------------------------------------- -### eastasianwidth@v0.2.0 - -> Get East Asian Width from a character. - -License: MIT -Author: Masaki Komagata - ----------------------------------------- - ### editorconfig@v0.15.3 > EditorConfig File Locator and Interpreter for Node.js @@ -1412,18 +1372,7 @@ Contributors: ---------------------------------------- -### editorconfig-to-prettier@v1.0.0 - -> Converts an `editorconfig`-parsed object to a `prettier` configuration - -License: ISC -Homepage: -Repository: -Author: Joseph Frazier <1212jtraceur@gmail.com> - ----------------------------------------- - -### emoji-regex@v10.2.1 +### emoji-regex@v10.3.0 > A regular expression to match all Emoji-only symbols as per the Unicode Standard. @@ -1455,36 +1404,6 @@ Author: Mathias Bynens (https://mathiasbynens.be/) ---------------------------------------- -### error-ex@v1.3.2 - -> Easy error subclassing and stack customization - -License: MIT - -> The MIT License (MIT) -> -> Copyright (c) 2015 JD Ballard -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ----------------------------------------- - ### escape-string-regexp@v1.0.5 > Escape RegExp special characters @@ -1606,7 +1525,7 @@ Contributors: ---------------------------------------- -### fast-glob@v3.3.1 +### fast-glob@v3.3.2 > It's a very fast and efficient glob library for Node.js @@ -1695,7 +1614,7 @@ Author: Matteo Collina ---------------------------------------- -### file-entry-cache@v7.0.0 +### file-entry-cache@v7.0.1 > Super simple cache for file metadata, useful for process that work o a given series of files and that only need to repeat the job on the changed ones since the previous run of the process @@ -1764,7 +1683,7 @@ Contributors: ---------------------------------------- -### find-cache-dir@v4.0.0 +### find-cache-dir@v5.0.0 > Finds the common standard cache directory @@ -1838,7 +1757,7 @@ Author: Sindre Sorhus (https://sindresorhus.com) ---------------------------------------- -### flat-cache@v3.1.0 +### flat-cache@v3.1.1 > A stupidly simple key/value storage using files to persist some data @@ -1869,7 +1788,7 @@ Author: Jared Wray (https://jaredwray.com) ---------------------------------------- -### flatted@v3.2.7 +### flatted@v3.2.9 > A super light and fast circular JSON parser. @@ -1931,7 +1850,7 @@ Contributors: ---------------------------------------- -### flow-parser@v0.215.1 +### flow-parser@v0.221.0 > JavaScript parser written in OCaml. Produces ESTree AST @@ -1996,6 +1915,25 @@ Author: Isaac Z. Schlueter (http://blog.izs.me/) ---------------------------------------- +### get-east-asian-width@v1.2.0 + +> Determine the East Asian Width of a Unicode character + +License: MIT +Author: Sindre Sorhus (https://sindresorhus.com) + +> MIT License +> +> Copyright (c) Sindre Sorhus (https://sindresorhus.com) +> +> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +> +> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +---------------------------------------- + ### get-stdin@v9.0.0 > Get stdin as a string or buffer @@ -2075,7 +2013,7 @@ Contributors: ---------------------------------------- -### graphql@v16.8.0 +### graphql@v16.8.1 > A Query Language and Runtime which can target any service. @@ -2158,26 +2096,7 @@ Author: kael ---------------------------------------- -### import-fresh@v3.3.0 - -> Import a module while bypassing the cache - -License: MIT -Author: Sindre Sorhus (https://sindresorhus.com) - -> MIT License -> -> Copyright (c) Sindre Sorhus (https://sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ----------------------------------------- - -### import-meta-resolve@v3.0.0 +### import-meta-resolve@v4.0.0 > Resolve things like Node.js — ponyfill for `import.meta.resolve` @@ -2263,6 +2182,25 @@ Contributors: ---------------------------------------- +### index-to-position@v0.1.2 + +> Convert a string index to its line and column position + +License: MIT +Author: Sindre Sorhus (https://sindresorhus.com) + +> MIT License +> +> Copyright (c) Sindre Sorhus (https://sindresorhus.com) +> +> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +> +> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +---------------------------------------- + ### indexes-of@v1.0.1 > line String/Array#indexOf but return all the indexes in an array @@ -2416,38 +2354,6 @@ Contributors: ---------------------------------------- -### is-arrayish@v0.2.1 - -> Determines if an object can be used as an array - -License: MIT -Repository: -Author: Qix (http://github.com/qix-) - -> The MIT License (MIT) -> -> Copyright (c) 2015 JD Ballard -> -> Permission is hereby granted, free of charge, to any person obtaining a copy -> of this software and associated documentation files (the "Software"), to deal -> in the Software without restriction, including without limitation the rights -> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -> copies of the Software, and to permit persons to whom the Software is -> furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. - ----------------------------------------- - ### is-buffer@v2.0.5 > Determine if an object is a Buffer @@ -2739,7 +2645,7 @@ Contributors: ---------------------------------------- -### jest-docblock@v29.6.3 +### jest-docblock@v29.7.0 License: MIT Repository: @@ -2868,12 +2774,13 @@ Author: Dominic Tarr (http://dominictarr.com) ---------------------------------------- -### json-parse-even-better-errors@v2.3.1 +### json-parse-even-better-errors@v3.0.0 > JSON.parse with context information on error License: MIT -Author: Kat Marchán +Repository: +Author: GitHub Inc. > Copyright 2017 Kat Marchán > Copyright npm, Inc. @@ -2972,18 +2879,17 @@ Author: Sindre Sorhus (https://sindresorhus.com) ---------------------------------------- -### lines-and-columns@v1.2.4 +### lilconfig@v2.1.0 -> Maps lines and columns to character offsets and back. +> A zero-dependency alternative to cosmiconfig License: MIT -Homepage: -Repository: -Author: Brian Donovan +Repository: +Author: antonk52 -> The MIT License (MIT) +> MIT License > -> Copyright (c) 2015 Brian Donovan +> Copyright (c) 2022 Anton Kastritskiy > > Permission is hereby granted, free of charge, to any person obtaining a copy > of this software and associated documentation files (the "Software"), to deal @@ -2992,20 +2898,20 @@ Author: Brian Donovan > copies of the Software, and to permit persons to whom the Software is > furnished to do so, subject to the following conditions: > -> The above copyright notice and this permission notice shall be included in -> all copies or substantial portions of the Software. +> The above copyright notice and this permission notice shall be included in all +> copies or substantial portions of the Software. > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -> THE SOFTWARE. +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +> SOFTWARE. ---------------------------------------- -### lines-and-columns@v2.0.3 +### lines-and-columns@v2.0.4 > Maps lines and columns to character offsets and back. @@ -3186,7 +3092,7 @@ Repository: ---------------------------------------- -### meriyah@v4.3.7 +### meriyah@v4.3.8 > A 100% compliant, self-hosted javascript parser with high focus on both performance and stability @@ -3520,7 +3426,7 @@ Contributors: ---------------------------------------- -### parse-json@v5.2.0 +### parse-json@v8.0.1 > Parse JSON with more helpful errors @@ -3589,25 +3495,6 @@ Author: Sindre Sorhus (sindresorhus.com) ---------------------------------------- -### path-type@v4.0.0 - -> Check if a path is a file, directory, or symlink - -License: MIT -Author: Sindre Sorhus (sindresorhus.com) - -> MIT License -> -> Copyright (c) Sindre Sorhus (sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ----------------------------------------- - ### picocolors@v1.0.0 > The tiniest and the fastest library for terminal output formatting with ANSI colors @@ -3717,7 +3604,7 @@ Author: typicode ---------------------------------------- -### postcss@v8.4.28 +### postcss@v8.4.31 > Tool for transforming styles with JS plugins @@ -3794,7 +3681,7 @@ Author: dryoma ---------------------------------------- -### postcss-scss@v4.0.7 +### postcss-scss@v4.0.9 > SCSS parser for PostCSS @@ -4046,25 +3933,6 @@ Contributors: ---------------------------------------- -### resolve-from@v4.0.0 - -> Resolve the path of a module like `require.resolve()` but from a given path - -License: MIT -Author: Sindre Sorhus (sindresorhus.com) - -> MIT License -> -> Copyright (c) Sindre Sorhus (sindresorhus.com) -> -> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -> -> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ----------------------------------------- - ### reusify@v1.0.4 > Reuse objects and functions with style @@ -4867,6 +4735,38 @@ Contributors: ---------------------------------------- +### url-or-path@v2.1.0 + +> Convert between file URL and path. + +License: MIT +Homepage: +Author: fisker Cheung (https://www.fiskercheung.com/) + +> MIT License +> +> Copyright (c) fisker Cheung (https://www.fiskercheung.com/) +> +> Permission is hereby granted, free of charge, to any person obtaining a copy +> of this software and associated documentation files (the "Software"), to deal +> in the Software without restriction, including without limitation the rights +> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +> copies of the Software, and to permit persons to whom the Software is +> furnished to do so, subject to the following conditions: +> +> The above copyright notice and this permission notice shall be included in all +> copies or substantial portions of the Software. +> +> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +> SOFTWARE. + +---------------------------------------- + ### vfile@v4.2.1 > Virtual file format for text processing diff --git a/packages/prettier-plugin-typespec/package.json b/packages/prettier-plugin-typespec/package.json index 8183ee6910..138430eab4 100644 --- a/packages/prettier-plugin-typespec/package.json +++ b/packages/prettier-plugin-typespec/package.json @@ -12,7 +12,7 @@ "author": "Microsoft Corporation", "license": "MIT", "dependencies": { - "prettier": "~3.0.3" + "prettier": "~3.1.0" }, "devDependencies": { "prettier_2": "npm:prettier@2.8.7", diff --git a/packages/tspd/package.json b/packages/tspd/package.json index 80ae65e3bc..149d8a1b2b 100644 --- a/packages/tspd/package.json +++ b/packages/tspd/package.json @@ -55,7 +55,7 @@ "dependencies": { "@typespec/compiler": "workspace:~0.50.0", "yaml": "~2.3.2", - "prettier": "~3.0.3", + "prettier": "~3.1.0", "picocolors": "~1.0.0", "yargs": "~17.7.2" },