Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update eslint and prettier (major) #211

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 18, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
eslint (source) 8.57.0 -> 9.6.0 age adoption passing confidence
eslint-config-next (source) 13.5.6 -> 14.2.4 age adoption passing confidence
prettier (source) 2.8.8 -> 3.3.2 age adoption passing confidence

Release Notes

eslint/eslint (eslint)

v9.6.0

Compare Source

v9.5.0

Compare Source

v9.4.0

Compare Source

v9.3.0

Compare Source

v9.2.0

Compare Source

v9.1.1

Compare Source

v9.1.0

Compare Source

v9.0.0

Compare Source

vercel/next.js (eslint-config-next)

v14.2.4

Compare Source

[!NOTE]
This release is backporting bug fixes. It does not include all pending features/changes on canary.

Core Changes
  • fix: ensure route handlers properly track dynamic access (#​66446)
  • fix NextRequest proxy in edge runtime (#​66551)
  • Fix next/dynamic with babel and src dir (#​65177)
  • Use vercel deployment url for metadataBase fallbacks (#​65089)
  • fix(next/image): detect react@19 for fetchPriority prop (#​65235)
  • Fix loading navigation with metadata and prefetch (#​66447)
  • prevent duplicate RSC fetch when action redirects (#​66620)
  • ensure router cache updates reference the latest cache values (#​66681)
  • Prevent append of trailing slash in cases where path ends with a file extension (#​66636)
  • Fix inconsistency with 404 getStaticProps cache-control (#​66674)
  • Use addDependency to track metadata route file changes (#​66714)
  • Add timeout/retry handling for fetch cache (#​66652)
  • fix: app-router prefetch crash when an invalid URL is passed to Link (#​66755)
Credits

Huge thanks to @​ztanner, @​ijjk, @​wbinnssmith, @​huozhi, and @​lubieowoce for helping!

v14.2.3

Compare Source

v14.2.2

Compare Source

v14.2.1

Compare Source

v14.2.0

Compare Source

v14.1.4

Compare Source

v14.1.3

Compare Source

v14.1.2

Compare Source

v14.1.1

Compare Source

Core Changes
Credits

Huge thanks to @​huozhi, @​shuding, @​Ethan-Arrowood, @​styfle, @​ijjk, @​ztanner, @​balazsorban44, @​kdy1, and @​williamli for helping!

v14.1.0

Compare Source

v14.0.4

Compare Source

Core Changes
  • Remove early return that is duplicated in useSearchParams: #​58545
  • Support passing a relative string to pushState/replaceState: #​58438
  • [.next/trace] Record start-dev-server trace span: #​58469
  • Update React from 593ecee to 2c338b1.: #​58553
  • turbopack: Fix pageExtensions with dots: #​58504
  • fix: revalidation with file-system-cache: #​58508
  • fix: fetch() behavior when "dynamic" is "force-dynamic: #​58484
  • Add cacheNodeSeedData to RSC payload: #​58566
  • Lift subtree data out of React tree: #​58569
  • fix(next-core): allow runtime segment option in pages/api: #​58409
  • Update rust-toolchain to 2023-11-16: #​58558
  • refactor: Add lightningcss mode for turbopack-css: #​58471
  • fix: avoid race condition when download swc wasm: #​58536
  • Removed unused route resolver code: #​58702
  • Add experimental.windowHistorySupport to Turbopack supported options: #​58717
  • Improve Server Actions compiler: #​58391
  • Seed CacheNodes immediately after receiving response: #​58669
  • Turbopack: improve error display: #​58734
  • fix node externals resolving: #​58129
  • disable static prefetching behavior for dynamic segments: #​58609
  • fix: ensure DynamicUsageErrors caught during render bubble up: #​58747
  • fix image.domains deprecation warning: #​58656
  • fix waitUntil handling in pipeToNodeResponse: #​58744
  • Use consistent resolve extensions alias for compiler: #​58725
  • Turbopack: Use styled issue titles and details: #​58743
  • route handlers: make req.cookies opt you into dynamic: #​58769
  • OpenTelemetry: a more reliable way to establish a root context: #​58662
  • Revert "fix: fetch() behavior when "dynamic" is "force-dynamic": #​58735
  • [Instrumentation] Don't treat instrumentation hook as pages: #​58775
  • Fix turboFlag set to false: #​58795
  • [.next/trace] Track server requests and memory usage: #​58690
  • place virtual module inside the project directory: #​58798
  • fix rewrites to edge routes: #​58797
  • Polish unsupported metadata warning with doc link: #​58750
  • Enable .mjs extension config in Turbopack: #​58825
  • Turbopack: align automatic externals code with webpack: #​58851
  • Upgrade Turbopack: #​58859
  • OpenTelemetry: propagate context to sandbox: #​58791
  • fix uniqueness of layers: #​58872
  • disable flushToDisk during generateStaticParams: #​58871
  • Turbopack: enable some node.js builtin in edge runtime: #​58850
  • add NEXT_TRIGGER_URL env var to show request triggering a compilation: #​58762
  • Update swc_core to v0.86.81: #​58517
  • Trace server updates: #​58694
  • remove duplicate util file for redirect status: #​58878
  • fix(windows): workaround for intermittent locks on windows when renaming files: #​58835
  • unify server action detection logic: #​58879
  • Fix nested fetch logging indentation: #​58955
  • Delete preloadComponent module: #​58741
  • Remove cache field from action types: #​58938
  • Add nodejs version check: #​58958
  • Code refactoring: #​58737
  • Fix bugs with baseUrl and mdxRs: #​58968
  • Fix encoding in encryption of Server Actions: #​59000
  • fix(turbopack): treat .mdx as valid ecma asset: #​58985
  • dedupe pending revalidation requests: #​58990
  • fix: Put back type for NavigateOptions.scroll: #​59001
  • Cleanup Render Result: #​58782
  • fix(turbopack): add list of packages that should never be marked as e…: #​59020
  • Testmode: provide test info for rewrite requests: #​59033
  • build(cargo): bump up turbopack: #​59032
  • fix async action queue behavior: #​59038
  • start performance profiling after node.js version is checked: #​59028
  • Fixed stale fetch using when page regenerates: #​58926
  • Enable PPR tests for test suites: #​59030
  • Update font data: #​59043
  • update status codes for redirect and permanentRedirect in action handlers: #​58885
  • Ensure stale build fetch data is not unexpectedly used: #​59076
  • add support for instrumentation: #​59070
  • use 303 status code for redirects in fetch actions: #​59017
  • verify action id before parsing body: #​58977
  • fix interception routes with rewrites: #​59094
  • Fix next internal is missing in flight manifest: #​59085
  • Support generating multi-meta tahs for metadata api other prop: #​59106
  • Turbopack: Align some "Module not found" errors with webpack: #​58518
  • Fix dynamic usage errors logging unexpectedly: #​59133
  • Fix: remove deprecated option from standalone server: #​59036
  • Update font data: #​59138
  • fix typedRoutes when used with webpackBuildWorker: #​59140
  • Add NEXT_MANUAL_SIG_HANDLE handling to start-server.ts: #​59117
  • Support adding CSP nonce with content-security-policy-report-only header: #​59071
  • chore: fix typo in jsDoc: #​58224
  • fix: add maxDuration to PageConfig type: #​55918
  • Fix mixed module swc compilation for app router: #​58967
  • Don't catch ensureMiddleware errors: #​59166
  • fix behavior when revisiting an intercepted route: #​59168
  • Turbopack only enable instrumentationHook with experimental flag: #​59173
  • fix server actions behavior on intercepted routes: #​59175
  • Fix ssgCacheKey in minimal mode: #​59181
  • Update to latest version of @​vercel/nft: #​59183
  • Ensure original history is read in effect: #​58861
  • fix some small turbopack issues: #​59171
  • fix tsconfig alias cycle: #​59232
  • Resolve build issues with symlinked files: #​57412
  • Disable more Turbopack build tests: #​59245
  • Remove mutable field from action types: #​59221
  • Add process.env.__NEXT_PPR to build config: #​59253
  • Fix dynamic transform ssr:false case for pages router with ESM: #​59246
  • Delete unused static prefetch code: #​58783
  • fix(next-core): adjust edge entry path: #​59265
  • feat: support outputFileTracing in App Router: #​59139
  • docs: fix remotePatterns link in image-config.ts: #​59197
  • Testmode: support edge functions inside a sandbox: #​59179
  • Update font data: #​59271
  • fix: properly call normalizeDynamicRouteParams in NextWebServer.handleCatchAllRenderRequest: #​58949
  • add user-level tracing: #​59284
  • Fix app-dir - logging test in Turbopack: #​59261
  • update turbopack: #​59285
  • feat(turbopack): support loading WebAssembly in the edge runtime: #​59013
  • Fix barrel optimization to ignore layers: #​59254
  • fix interception routes with dynamic segments: #​59273
  • Clean up builtin modularizeImports configs: #​59294
  • Enable PPR for dynamic = "force-dynamic": #​58779
  • remove additional static prefetch code: #​59313
  • add module tracing for client reference and next/dynamic walking: #​59306
  • side effects optimization: #​58972
  • Move App Router client-side constants to separate file: #​59239
  • reduce function calls in walk: #​59332
  • update turbopack: #​59334
  • disable unused next/dynamic walking in app dir: #​59338
  • fix hmr in multi-zone handling: #​59307
  • fix edge route catch-all param parsing: #​59343
  • add logLevel support to @next/bundle-analyzer: #​59228
  • Fix server output bundling packages module resolving: #​59369
  • fix inconsistent scroll restoration behavior: #​59366
  • test: ability to use node debugger: #​56277
  • fixes the logging by showing full URLs only on demand: #​58088
  • rm console.log: #​59381
Documentation Changes
  • docs: Fix grammar in Caching section: #​58070
  • Update 01-installation.mdx: #​58555
  • Fix naming: #​58539
  • docs: clarify route handler caching: #​58541
  • [Next.js Docs] Adds useOptimistic link: #​58706
  • Docs: Add missing diagram : #​59008
  • Docs: Update revalidate example: #​59002
  • docs: patch upgrade guide to pin install version: #​58993
  • Docs: Delete fast refresh example: #​59003
  • docs:Add react hydration error case.: #​59147
  • Correcting the webpack function introduction: #​58663
  • Docs: Fix upgrade guide files: #​59249
  • docs: fix broken link to learn course: #​59288
  • docs fix: Server Action js example: #​59159
  • docs: Remove invalid URL: #​58823
  • Fix incorrect prop name in client component: #​58591
  • update: Firebase link to with-firebase example: #​58621
  • added comma to the props list: #​58596
  • Update 10-route-handlers.mdx: #​59021
  • Add documentation note about middleware and runtimes: #​58873
  • Revert "added comma to the props list": #​59314
Example Changes
  • Update cache-handler-redis example: #​58562
  • Update & Repair LRUCache importation on NextJS Rate Limit API example: #​58060
  • examples with-zustand update to app dir #​52858: #​58042
  • examples: fix import statement for lru-cache: #​58567
  • examples: Remove outdated example: #​58568
  • feat(examples): add upload file example with Server Actions: #​58467
  • migrate with-cypress example to app dir: #​58053
  • fix lint in examples: #​58630
  • examples: add direct link to Dockerfile: #​58793
  • Update Electron Typescript Example with Best Practices: #​58947
  • Enable typechecking on config: #​57892
  • Updates with-supertokens example app: #​58525
Misc Changes
  • fix(turbopack): e2e/404-page-router test: #​58146
  • Turbopack: update to turbopack-231122.3: #​58784
  • make tests more stable: #​58765
  • chore(CI): improve datadog reporting: #​58267
  • chore(CI): add action to auto retry tests on canary and report failures after retries: #​58774
  • ci: unify reset project script: #​58829
  • ci: disable deployment protection for e2e test project: #​58830
  • fix(CI): retry-test action can't use env in if: #​58838
  • Update Turbopack test manifest from GitHub Actions artifact: #​58394
  • Increase default timeout for swc build: #​59035
  • chore: bump nissuer (issue validator): #​59060
  • fix(test): don't use latest sharp: #​59074
  • misc: disable automerge: #​59077
  • Update checkout step: #​59079
  • ci: don't try to upload to datadog for docs only changes: #​59068
  • misc: delete kodiak: #​59082
  • add full PPR e2e tests: #​59025
  • ci: don't retry or notify on failures from forks: #​59118
  • skip release if no new commits: #​59134
  • fix variable name in release workflow: #​59135
  • Update Turbopack test manifest: #​59109
  • fix(next-core): do not panic when parsing segment config: #​59170
  • Correctly skip build test for Turbopack: #​59207
  • Failing test for 59195: #​59210
  • ci: report daily turbo integration test results from this repo: #​58965
  • fix typo in daily turbopack integration test reporting: #​59251
  • fix missing echo in daily turbopack reporting: #​59255
  • fix missing checkout in daily turbopack reporting: #​59256
  • Add app router name to font tests: #​59257
  • Fix non bundler module resolution in ts for third-parties pkg: #​59244
  • fix dev parallelism in daily turbopack tests: #​59287
  • Update Turbopack test manifest: #​59326
  • Update tests for Turbopack: #​59354
  • Update Turbopack test manifest: #​59356
Credits

Huge thanks to @​timneutkens, @​mknichel, @​gnoff, @​jridgewell, @​gtjamesa, @​mugi-uno, @​better-salmon, @​kentobento, @​vivianyentran, @​empflow, @​leerob, @​samennis1, @​mkcy3, @​acdlite, @​kwonoj, @​suhaotian, @​wbinnssmith, @​imevanc, @​ztanner, @​kdy1, @​d3lm, @​wyattjoh, @​manovotny, @​shuding, @​sokra, @​feedthejim, @​dvoytenko, @​ForsakenHarmony, @​huozhi, @​delbaoliveira, @​amannn, @​ijjk, @​hallatore, @​balazsorban44, @​LukeSchlangen, @​Dylan700, @​mpsq, @​mdio, @​christianvuerings, @​A7med3bdulBaset, @​karlhorky, @​simonhaenisch, @​olci34, @​zce, @​LavaToaster, @​rishabhpoddar, @​smaeda-ks, @​jirihofman, @​codercor, @​devjiwonchoi, @​Willem-Jaap, @​JackieLi565, @​thoushif, @​pkellner, @​jpfifer, @​quisido, @​tomfa, and @​raphaelbadia for helping!

v14.0.3

Compare Source

v14.0.2

Compare Source

v14.0.1

Compare Source

Core Changes
  • Add Next.js 14 codemods to CLI output.: #​57552
  • OpenTelemetry: propagate a configured context(s) to root requests: #​57084
  • debug: Add tags to next build traces to track build configuration in the .next/trace file: #​56965
  • [Traces] Await the flush of the trace write stream to make sure trace file is written: #​57641
  • Add node-pty to externals list: #​57640
  • fix: move logging config validation out of experimental: #​57530
  • Update font data: #​57728
  • Support viewport export via TS Plugin: #​57554
  • Fix: Build compilation warning when using middleware: #​57685
  • chore: Update flight-client-entry-plugin.ts typo: #​57734
  • Improve error for missing default export in dynamic metadata routes: #​57711
  • fix gsp tracing issue: #​57766
  • fix(turbopack): don't match empty route groups: #​57647
  • Update React from 8c8ee9e to 0c63487 and types: #​57772
Documentation Changes
  • Add missing dot in codemod command: #​57536
  • docs(fix): example text unescaped entities: #​57255
  • doc: Clarify built-in support for sass after installation: #​57279
  • Update docs with a Good to know box about using redirect in client components: #​56966
  • docs: fix 02-dynamic-routes.mdx: #​57029
  • Fix incorrect link in GTM docs: #​57547
  • Fix typos: #​57592
  • Add apostrophe 07-error-handling.mdx: #​57626
  • Fix: codemods.mdx Incorrect heading structure of next-og-import, meta…: #​57605
  • Typo fix, version "13" to "14": #​57723
  • Fix Google Tag Manager URL in Third Party Libraries documentation: #​57731
Example Changes
Misc Changes
  • update manifest: #​57523
  • update next/third-parties to use Next 14 or 13 as a peer dependency, instead of just 13: #​57515
  • Modify tailwindcss related dependency of create-next-app: #​57262
  • Remove extra CI step and lock Node.js version: #​57769
Credits

Huge thanks to @​dijonmusters, @​sokra, @​philwolstenholme, @​IgorKowalczyk, @​housseindjirdeh, @​Zoe-Bot, @​HanCiHu, @​JackHowa, @​goncy, @​hirotomoyamada, @​pveyes, @​yeskunall, @​vinaykulk621, @​ChendayUP, @​leerob, @​dvoytenko, @​mknichel, @​ijjk, @​hmaesta, @​ajz003, @​its-kunal, @​joelhooks, @​blurrah, @​tariknh, @​Vinlock, @​Nayeem-XTREME, @​aziyatali, @​aspehler, @​huozhi, @​ztanner, @​ForsakenHarmony, @​moka-ayumu, and @​gnoff for helping!

v14.0.0

Compare Source

prettier/prettier (prettier)

v3.3.2

Compare Source

diff

Fix handlebars path expressions starts with @ (#​16358 by @​Princeyadav05)
{{! Input }}
<div>{{@&#8203;x.y.z}}</div>

{{! Prettier 3.3.1 }}
<div>{{@&#8203;x}}</div>

{{! Prettier 3.3.2 }}
<div>{{@&#8203;x.y.z}}</div>

v3.3.1

Compare Source

diff

Preserve empty lines in front matter (#​16347 by @​fisker)
<!-- Input -->
---
foo:
  - bar1

  - bar2

  - bar3
---
Markdown

<!-- Prettier 3.3.0 -->

---
foo:
  - bar1
  - bar2
  - bar3
---

Markdown

<!-- Prettier 3.3.1 -->
---
foo:
  - bar1

  - bar2

  - bar3
---

Markdown
Preserve explicit language in front matter (#​16348 by @​fisker)
<!-- Input -->
---yaml
title: Hello
slug: home
---

<!-- Prettier 3.3.0 -->
---
title: Hello
slug: home
---

<!-- Prettier 3.3.1 -->
---yaml
title: Hello
slug: home
---
Avoid line breaks in import attributes (#​16349 by @​fisker)
// Input
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };

// Prettier 3.3.0
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type:
  "json" };

// Prettier 3.3.1
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };

v3.3.0

Compare Source

diff

🔗 Release Notes

v3.2.5

Compare Source

diff

Support Angular inline styles as single template literal (#​15968 by @​sosukesuzuki)

Angular v17 supports single string inline styles.

// Input
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.4
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.5
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `
    h1 {
      color: blue;
    }
  `,
})
export class AppComponent {}
Unexpected embedded formatting for Angular template (#​15969 by @​JounQin)

Computed template should not be considered as Angular component template

// Input
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.4
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{ hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.5
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}
Use "json" parser for tsconfig.json by default (#​16012 by @​sosukesuzuki)

In v2.3.0, we introduced "jsonc" parser which adds trialing comma by default.

When adding a new parser we also define how it will be used based on the linguist-languages data.

tsconfig.json is a special file used by TypeScript, it uses .json file extension, but it actually uses the JSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing .json file extension.

We decide to treat it as a JSON file for now to avoid the extra configuration step.

To keep using the "jsonc" parser for your tsconfig.json files, add the following to your .pretterrc file

{
  "overrides": [
    {
      "files": ["tsconfig.json", "jsconfig.json"],
      "options": {
        "parser": "jsonc"
      }
    }
  ]
}

v3.2.4

Compare Source

diff

Fix incorrect parser inference (#​15947 by @​fisker)

Files like .eslintrc.json were incorrectly formatted as JSONC files.

// Input
prettier --file-info .eslintrc.json
{ "ignored": false, "inferredParser": "jsonc" }

// Prettier 3.2.4
prettier --file-info .eslintrc.json
{ "ignored": false, "inferredParser": "json" }

v3.2.3

Compare Source

diff

Throw errors for invalid code (#​15881 by @​fisker, @​Josh-Cena, @​auvred)
// Input
1++;

// Prettier 3.2.2
1++;

// Prettier 3.2.3
SyntaxError: Invalid left-hand side expression in unary operation (1:1)
> 1 | 1++;
    | ^
// Input
try {} catch (error = 1){}

// Prettier 3.2.2
try {
} catch (error) {}

// Prettier 3.2.3
SyntaxError: Catch clause variable cannot have an initializer. (1:23)
> 1 | try {} catch (error = 1){}
    |                       ^
Fix parser inference (#​15927 by @​fisker)
// Prettier 3.2.2
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "json" }

// Prettier 3.2.3
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }

v3.2.2

Compare Source

diff

Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute (#​15896 by @​eelco)

For example this code would crash before:

<style {...spread}>{`.{}`}</style>
Fix formatting error on optional call expression and member chain (#​15920 by @​sosukesuzuki)
// Input
a(() => {}, c?.d());

// Prettier 3.2.1
TypeError: Cannot read properties of undefined (reading 'type')

// Prettier 3.2.2
a(() => {}, c?.d());

v3.2.1

Compare Source

diff

Fix formatting error on member chain (#​15915 by @​sosukesuzuki)
// Input
test().test2().test2(thing?.something);

// Prettier 3.2.0
TypeError: Cannot read properties of undefined (reading 'type')

// Prettier 3.2.1
test().test2().test2(thing?.something);

v3.2.0

Compare Source

diff

🔗 Release Notes

v3.1.1

Compare Source

diff

Fix config file search (#​15363 by @​fisker)

Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.

├─ .prettierrc
└─ test.js         (A directory)
  └─ .prettierrc
// Prettier 3.1.0
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/test.js/.prettierrc

// Prettier 3.1.1
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/.prettierrc
Skip explicitly passed symbolic links with --no-error-on-unmatched-pattern (#​15533 by @​sanmai-NL)

Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.

In Prettier 3.1.1, you can use --no-error-on-unmatched-pattern to simply skip symbolic links.

Consistently use tabs in ternaries when useTabs is true (#​15662 by @​auvred)
// Input
aaaaaaaaaaaaaaa
	? bbbbbbbbbbbbbbbbbb
	: ccccccccccccccc
	  ? ddddddddddddddd
	  : eeeeeeeeeeeeeee
	    ? fffffffffffffff
	    : gggggggggggggggg;

// Prettier 3.1.0
aaaaaaaaaaaaaaa
	? bbbbbbbbbbbbbbbbbb
	: ccccccccccccccc
	  ? ddddddddddddddd
	  : eeeeeeeeeeeeeee
	    ? fffffffffffffff
	    : gggggggggggggggg;

// Prettier 3.1.1
aaaaaaaaaaaaaaa
	? bbbbbbbbbbbbbbbbbb
	: ccccccccccccccc
		? ddddddddddddddd
		: eeeeeeeeeeeeeee
			? fffffffffffffff
			: gggggggggggggggg;
Improve config file search (#​15663 by @​fisker)

The Prettier config file search performance has been improved by more effective cache strategy.

Fix unstable and ugly formatting for comments in destructuring patterns (#​15708 by @​sosukesuzuki)
// Input
const {
  foo,
  // bar
  // baz
}: Foo = expr;

// Prettier 3.1.0
const {
  foo1,
} // bar
// baz
: Foo = expr;

// Prettier 3.1.0 second output
const {
  foo1, // bar
} // baz
: Foo = expr;

// Prettier 3.1.1
const {
  foo1,
  // bar
  // baz
}: Foo = expr;
Support "Import Attributes" (#​15718 by @​fisker)

TypeScript 5.3 supports the latest updates to the import attributes proposal.

import something from "./something.json" with { type: "json" };
Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd (#​15750 by @​ExplodingCabbage)

The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by @​ds300. However, Prettier's documentation (including the CLI --help text) continued to claim otherwise, falsely. The documentation is now fixed.

Keep curly braces and from keyword in empty import statements (#​15756 by @​fisker)
// Input
import { } from 'foo';
import { /* comment */ } from 'bar';

// Prettier 3.1.0
import {} from "foo";
import /* comment */ "bar";

// Prettier 3.1.1
import {} from "foo";
import {} from /* comment */ "bar";
Keep empty import attributes and assertions ([#&

Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,before 6am every weekday" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the renovate label Jul 18, 2023
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 62fd4f4 to 7ab8fe7 Compare August 3, 2023 14:32
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 7ab8fe7 to 69cab15 Compare August 15, 2023 16:20
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 69cab15 to ee997f7 Compare August 29, 2023 13:23
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 2 times, most recently from 68444fc to f796672 Compare September 6, 2023 16:37
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from f796672 to a87eacf Compare October 18, 2023 13:23
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3 chore(deps): update eslint and prettier (major) Oct 26, 2023
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 5 times, most recently from 691650a to 189c8d0 Compare October 31, 2023 16:36
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 3 times, most recently from 53a12a2 to ef33180 Compare November 16, 2023 19:50
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 3 times, most recently from 4ce0898 to cb98d0a Compare December 13, 2023 13:17
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from cb98d0a to 7cc1d5c Compare December 18, 2023 13:49
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 3 times, most recently from c40d67f to 3db512e Compare January 21, 2024 15:53
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 3db512e to 80423e4 Compare February 4, 2024 15:13
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 3 times, most recently from 4c01179 to b6679c3 Compare March 7, 2024 17:13
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 2 times, most recently from fdc516c to 26177f7 Compare March 11, 2024 17:50
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 26177f7 to 7e507f2 Compare March 11, 2024 20:41
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 7e507f2 to 9ed95a9 Compare March 20, 2024 14:45
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 2 times, most recently from c039145 to d75b092 Compare April 11, 2024 20:40
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 3 times, most recently from 5ba381f to 19d9231 Compare April 21, 2024 16:01
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 2 times, most recently from 9267cab to 2f8bb3a Compare April 24, 2024 17:43
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 2f8bb3a to e2fbf0d Compare May 5, 2024 17:04
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from e2fbf0d to e8c426e Compare May 19, 2024 15:55
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 2 times, most recently from 4025cb3 to 5215576 Compare June 5, 2024 13:38
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch 2 times, most recently from 4b907c0 to 24b539c Compare June 12, 2024 13:19
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 24b539c to 96d4649 Compare June 23, 2024 16:31
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier branch from 96d4649 to 263e372 Compare June 30, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant