PageSourceSearch

https://prettier.io/assets/js/fa04c4be.d0596a68.js

js prettier.io collected 2026-10-02 02:12:29 UTC 3,700 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["2907"],{1586(e,t,i){i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>n,metadata:()=>r,toc:()=>p});var r=i(552),o=i(4848),s=i(8453);let n={authors:"sosukesuzuki",title:"Prettier 2.8: improve --cache CLI option and TypeScript 4.9 satisfies operator!"},a,c={authorsImageUrls:[void 0]},p=[];function l(e){let t={a:"a",code:"code",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t.p,{children:["This release includes improvements to the ",(0,o.jsx)(t.code,{children:"--cache"})," option added in 2.7. A new ",(0,o.jsx)(t.code,{children:"--cache-location"})," option has been added, and a bug that saved the cache even when ",(0,o.jsx)(t.code,{children:"--write"})," wasn't specified has been fixed."]}),"\n",(0,o.jsxs)(t.p,{children:["We're also adding support for TypeScript 4.9 ",(0,o.jsx)(t.code,{children:"satisfies"})," operator!"]}),"\n",(0,o.jsxs)(t.p,{children:["If you enjoy Prettier and would like to support our work, consider sponsoring us directly via ",(0,o.jsx)(t.a,{href:"https://opencollective.com/prettier",children:"our OpenCollective"})," or by sponsoring the projects we depend on, including ",(0,o.jsx)(t.a,{href:"https://opencollective.com/typescript-eslint",children:"typescript-eslint"}),", ",(0,o.jsx)(t.a,{href:"https://opencollective.com/unified",children:"remark"}),", and ",(0,o.jsx)(t.a,{href:"https://opencollective.com/babel",children:"Babel"}),"."]}),"\n",(0,o.jsxs)(t.p,{children:["The Prettier team plans to release 3.0 within the next few months. If you are a plugin developer, get ready for the migration. Visit ",(0,o.jsx)(t.a,{href:"https://github.com/prettier/prettier/wiki/How-to-migrate-my-plugin-to-support-Prettier-v3%3F",children:"the migration guide"})," and issue ",(0,o.jsx)(t.a,{href:"https://github.com/prettier/prettier/issues/13616",children:"#13606"})," for more information."]})]})}function u(e={}){let{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453(e,t,i){i.d(t,{R:()=>n,x:()=>a});var r=i(6540);let o={},s=r.createContext(o);function n(e){let t=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:n(e.components),r.createElement(s.Provider,{value:t},e.children)}},552(e){e.exports=JSON.parse('{"permalink":"/blog/2022/11/23/2.8.0","editUrl":"https://github.com/prettier/prettier/edit/main/website/blog/2022-11-23-2.8.0.md","source":"@site/blog/2022-11-23-2.8.0.md","title":"Prettier 2.8: improve --cache CLI option and TypeScript 4.9 satisfies operator!","description":"This release includes improvements to the --cache option added in 2.7. A new --cache-location option has been added, and a bug that saved the cache even when --write wasn\'t specified has been fixed.","date":"2022-11-23T00:00:00.000Z","tags":[],"readingTime":6.56,"hasTruncateMarker":true,"authors":[{"name":"Sosuke Suzuki","url":"https://github.com/sosukesuzuki","socials":{"x":"https://x.com/__sosukesuzuki","github":"https://github.com/sosukesuzuki"},"imageURL":"https://github.com/sosukesuzuki.png?size=58","key":"sosukesuzuki","page":null}],"frontMatter":{"authors":"sosukesuzuki","title":"Prettier 2.8: improve --cache CLI option and TypeScript 4.9 satisfies operator!"},"unlisted":false,"prevItem":{"title":"Prettier 3.0: Hello, ECMAScript Modules!","permalink":"/blog/2023/07/05/3.0.0"},"nextItem":{"title":"Prettier 2.7: new --cache CLI option and TypeScript 4.7 syntax!","permalink":"/blog/2022/06/14/2.7.0"}}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.