potato4d / nuxt-basic-auth-module

Provide basic auth your Nuxt.js application
https://www.npmjs.com/package/nuxt-basic-auth-module
MIT License
311 stars 9 forks source link

fix(deps): update minor dependencies #269

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
consola 2.11.3 -> 2.15.3 age adoption passing confidence
nuxt 2.15.8 -> 2.16.3 age adoption passing confidence
prettier (source) 2.7.1 -> 2.8.7 age adoption passing confidence

Release Notes

nuxt/consola ### [`v2.15.3`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2153-httpsgithubcomnuxtconsolacomparev2152v2153-2021-02-07) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.15.2...v2.15.3) ### [`v2.15.2`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2152-httpsgithubcomnuxtconsolacomparev2151v2152-2021-02-03) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.15.1...v2.15.2) ### [`v2.15.1`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2151-httpsgithubcomnuxtconsolacomparev2150v2151-2021-02-02) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.15.0...v2.15.1) ### [`v2.15.0`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2150-httpsgithubcomnuxtconsolacomparev2140v2150-2020-08-05) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.14.0...v2.15.0) ##### Features - **types:** use union type for `ConsolaLogObject.type` ([#​100](https://togithub.com/nuxt/consola/issues/100)) ([a6eba53](https://togithub.com/nuxt/consola/commit/a6eba532381bcec9c84ac5600ac668aca87c8487)) - support `formatOptions.date` to optionally hide date ([#​101](https://togithub.com/nuxt/consola/issues/101)) ([6bf733f](https://togithub.com/nuxt/consola/commit/6bf733f2b9a5320584bdd0de7de08f4341c74335)) ### [`v2.14.0`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2140-httpsgithubcomnuxtconsolacomparev2130v2140-2020-06-26) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.13.0...v2.14.0) ##### Features - improve spam throttle ([5314eee](https://togithub.com/nuxt/consola/commit/5314eeebb4b564408a4ab14cb457bdbd426f6124)) ### [`v2.13.0`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2130-httpsgithubcomnuxtconsolacomparev2122v2130-2020-06-12) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.12.2...v2.13.0) ##### Features - remove level boundary check ([8972d47](https://togithub.com/nuxt/consola/commit/8972d478c93690fafb909f49d9d0edbcb67bddae)) ##### Bug Fixes - **types:** fix silent/verbose levels ([7ab0a65](https://togithub.com/nuxt/consola/commit/7ab0a65f383d9dd1b68a18ee439bf19468a57885)) ##### [2.12.2](https://togithub.com/nuxt/consola/compare/v2.12.1...v2.12.2) (2020-05-26) ##### Bug Fixes - silent log level does not work ([#​98](https://togithub.com/nuxt/consola/issues/98)) ([6a4a79c](https://togithub.com/nuxt/consola/commit/6a4a79c24b8db902b078ad92a6ee7a33880ed26c)) ##### [2.12.1](https://togithub.com/nuxt/consola/compare/v2.12.0...v2.12.1) (2020-05-07) ##### Bug Fixes - new LogLevel enum is not exported properly [#​95](https://togithub.com/nuxt/consola/issues/95) ([#​96](https://togithub.com/nuxt/consola/issues/96)) ([fafbec2](https://togithub.com/nuxt/consola/commit/fafbec2b1bc75912eea5d0618a27b982738d6cda)) ### [`v2.12.2`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2122-httpsgithubcomnuxtconsolacomparev2121v2122-2020-05-26) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.12.1...v2.12.2) ### [`v2.12.1`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2121-httpsgithubcomnuxtconsolacomparev2120v2121-2020-05-07) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.12.0...v2.12.1) ### [`v2.12.0`](https://togithub.com/nuxt/consola/blob/HEAD/CHANGELOG.md#​2120-httpsgithubcomnuxtconsolacomparev2113v2120-2020-05-07) [Compare Source](https://togithub.com/nuxt/consola/compare/v2.11.3...v2.12.0) ##### Features - **types:** add missing typescript definitions for reporters ([#​94](https://togithub.com/nuxt/consola/issues/94)) ([4a08ef0](https://togithub.com/nuxt/consola/commit/4a08ef02bc48ddc887f2b91713520eda50793a27)) ##### [2.11.3](https://togithub.com/nuxt/consola/compare/v2.11.2...v2.11.3) (2019-12-31) ##### Bug Fixes - **typescript:** remove cjs export (fixes [#​88](https://togithub.com/nuxt/consola/issues/88)) ([0d9ab1b](https://togithub.com/nuxt/consola/commit/0d9ab1bba8645853c721069c57527764ed708869)) ##### [2.11.2](https://togithub.com/nuxt/consola/compare/v2.11.1...v2.11.2) (2019-12-27) ##### Bug Fixes - **types:** `const consola = require('consola')` type is wrong ([#​80](https://togithub.com/nuxt/consola/issues/80)) ([5c22d8c](https://togithub.com/nuxt/consola/commit/5c22d8cd4624e3bbd7294b9eba09f131ed786332)) - throttle expiration ([#​81](https://togithub.com/nuxt/consola/issues/81)) ([940474d](https://togithub.com/nuxt/consola/commit/940474d3b64a4969acdec04290734e700920c19f)), closes [#​68](https://togithub.com/nuxt/consola/issues/68) ##### [2.11.1](https://togithub.com/nuxt/consola/compare/v2.11.0...v2.11.1) (2019-12-17) ##### Bug Fixes - **consola:** use `options.stderr` ([#​77](https://togithub.com/nuxt/consola/issues/77)) ([774c673](https://togithub.com/nuxt/consola/commit/774c6739e794665bc5e2c40aa84921b7f2a26387))
nuxt/nuxt ### [`v2.16.3`](https://togithub.com/nuxt/nuxt/releases/tag/v2.16.3) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v2.16.2...v2.16.3) > **2.16.3** is a patch release with bug fixes. #### 👉 Changelog [compare changes](https://togithub.com/nuxt/nuxt.js/compare/v2.16.2...2.16.3) ##### 🩹 Fixes - **types:** Add return type for `error()` ([#​19044](https://togithub.com/nuxt/nuxt.js/pull/19044)) - **types:** Bring types from `less` into namespace ([#​19738](https://togithub.com/nuxt/nuxt.js/pull/19738)) - **types:** Sync vue type augmentations with Vue 2.7 ([#​19526](https://togithub.com/nuxt/nuxt.js/pull/19526)) - **config:** Move `preset` to inner `postcssOptions` ([#​19518](https://togithub.com/nuxt/nuxt.js/pull/19518)) - **webpack:** Add `node-fetch-native` to externals list ([#​19755](https://togithub.com/nuxt/nuxt.js/pull/19755)) ##### 🏡 Chore - Release all packages with latest tag except `nuxt` ([4e9dcddcb](https://togithub.com/nuxt/nuxt.js/commit/4e9dcddcb)) - **examples:** Use `2.x` version of nuxt instead of latest ([#​19737](https://togithub.com/nuxt/nuxt.js/pull/19737)) - Lint package files ([6ca842e36](https://togithub.com/nuxt/nuxt.js/commit/6ca842e36)) ##### ❤️ Contributors - Daniel Roe - [@​danielroe](https://togithub.com/danielroe) - Olga Bulat - [@​obulat](https://togithub.com/obulat) - Rafał Chłodnicki - [@​rchl](https://togithub.com/rchl) ### [`v2.16.2`](https://togithub.com/nuxt/nuxt/releases/tag/v2.16.2) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v2.16.1...v2.16.2) > **2.16.2** is a patch release with bug fixes. #### ✨ Highlights The main change in this patch release is that we now patch the `crypto` node built-in during build to allow Nuxt 2 to be used on Node versions greater than Node 16, which should ease the pressure users feel after Node 16 reaches its own EOL this year. > **Warning** > This should not be taken for an endorsement of continuing to run with Webpack 4, which is out of date and has a number of dependencies with issues. I expect that number to continue to grow, and we will not be able to resolve all of them. I would strongly urge migrating to Nuxt 3 if possible and the team will do our best to make this possible over the course of the year ❤️ #### 👉 Changelog [compare changes](https://togithub.com/nuxt/nuxt/compare/v2.16.1...v2.16.2) ##### 🚀 Enhancements - **types:** Add basic types for Nuxt interface ([#​9772](https://togithub.com/nuxt/nuxt/issues/9772)) ##### 🩹 Fixes - **vue-renderer:** Insert `charset` before `title` ([#​18998](https://togithub.com/nuxt/nuxt/issues/18998)) - **types:** Remove non-existent properties from context ([#​19021](https://togithub.com/nuxt/nuxt/issues/19021)) - Add minimum node 14.18 version constraint ([#​19112](https://togithub.com/nuxt/nuxt/issues/19112)) - **config:** Upgrade md4 -> md5 on node > 16 ([#​19108](https://togithub.com/nuxt/nuxt/issues/19108)) - **vue-app:** Handle promise rejection from `asyncData` ([#​18585](https://togithub.com/nuxt/nuxt/issues/18585)) ##### 🏡 Chore - Update tag name ([`15787a2`](https://togithub.com/nuxt/nuxt/commit/15787a2e5)) - Fix version merge ([`49ea657`](https://togithub.com/nuxt/nuxt/commit/49ea657a4)) - Add `@types/jest` ([`d48efa6`](https://togithub.com/nuxt/nuxt/commit/d48efa6cf)) ##### ❤️ Contributors - Rafał Chłodnicki ([@​rchl](http://github.com/rchl)) - Daniel Roe ([@​danielroe ](https://togithub.com/danielroe/)) - Pooya Parsa ([@​pi0](https://togithub.com/pi0)) - Harlan Wilton ([@​harlan-zw](http://github.com/harlan-zw)) ### [`v2.16.1`](https://togithub.com/nuxt/nuxt/releases/tag/v2.16.1) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v2.16.0...v2.16.1) > Nuxt 2.16.1 is a patch release with a couple of small bugfixes to last week's 2.16.0 release. #### v2.16.0...v2.16.1 ##### 🩹 Fixes - **deps:** Downgrade `@types` packages depending on webpack 5 ([#​18827](https://togithub.com/nuxt/nuxt/issues/18827)) - **config:** Let webpack merge postcss plugins ([#​18839](https://togithub.com/nuxt/nuxt/issues/18839)) - **types:** Import `Location` from `vue-router` ([#​18908](https://togithub.com/nuxt/nuxt/issues/18908)) ##### 🏡 Chore - Tag 2.x releases appropriately ([`aba93e9`](https://togithub.com/nuxt/nuxt/commit/aba93e9a9)) - Revert node types to v16 ([`3d034a3`](https://togithub.com/nuxt/nuxt/commit/3d034a30d)) - Remove stub type definitions ([`daed62a`](https://togithub.com/nuxt/nuxt/commit/daed62a73)) ##### ❤️ Contributors - H-kishi - Daniel Roe ### [`v2.16.0`](https://togithub.com/nuxt/nuxt/releases/tag/v2.16.0) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v2.15.8...v2.16.0) > Nuxt 2.16.0 is the first minor release since Feb 15, 2021. The focus is mostly on releasing the latest fixes and enhancements that have been present in `nuxt-edge` for some time. #### ✨ Highlights - upgrade to [PostCSS 8](https://togithub.com/nuxt/nuxt/pull/9671) - default to [`core-js` v3](https://togithub.com/nuxt/nuxt/pull/9987) - ... full details below #### ⚠️ Breaking changes - **In this PR we only support Node 14+**. This is mostly an issue for dependencies, which we need to keep updated for security reasons. Going forward until [its own EOL](https://nuxt.com/vision-2023#migrating-to-nuxt-3), Nuxt 2 will only officially support Node versions that have not reached [their EOL](https://togithub.com/nodejs/release#release-schedule). - **New postcss options format**. See [https://github.com/nuxt/nuxt/pull/9671](https://togithub.com/nuxt/nuxt/pull/9671) for full details. - **Dependency upgrades**. A number of dependencies have dropped support for earlier node versions. [`dotenv`](https://togithub.com/nuxt/nuxt/pull/18364) has changed how it parses `.env` files in a number of edge cases. [`glob`](https://togithub.com/nuxt/nuxt/pull/18370) now requires `/` instead of `\` on windows machines. There may also be other changes that affect your usage, so please do upgrade with care. - **Vue 2.7 upgrade**. Although you can use Vue 2.7 with any release of Nuxt 2, 2.16.0 for the first time includes it as a dependency, which means that you may well encounter some issues associated with upgrading Vue 2.6 -> Vue 2.7. This may be a good time to consider using the composition API utilities provided by https://github.com/nuxt/bridge instead, which mirror Nuxt 3's more precisely than `@nuxtjs/composition-api`. (You can opt-in to *just* these utilities by disabling the other bridge modules individually.) #### Changelog [compare changes](https://togithub.com/nuxt/nuxt/compare/v2.15.8...v2.16.0) ##### 🚀 Enhancements - **config:** Support `nuxtrc` in dist directory ([#​9280](https://togithub.com/nuxt/nuxt/issues/9280)) - **generator:** Add ignoreEnv generate option during ensureBuild(cmd) ([#​8955](https://togithub.com/nuxt/nuxt/issues/8955)) - **server:** Allow disabling `serve-static` middleware ([#​9365](https://togithub.com/nuxt/nuxt/issues/9365)) - **types:** Add `asyncData` return types to component instance type ([#​9239](https://togithub.com/nuxt/nuxt/issues/9239)) - **vue-app:** `context.beforeSerialize` method ([#​9332](https://togithub.com/nuxt/nuxt/issues/9332)) - **vue-app:** Pass `store` to `createRouter` ([#​9629](https://togithub.com/nuxt/nuxt/issues/9629)) - Default to `core-js` version 3 ([#​9987](https://togithub.com/nuxt/nuxt/issues/9987)) - **webpack:** ⚠️ Update postcss to v8 ([#​9671](https://togithub.com/nuxt/nuxt/issues/9671)) ##### 🩹 Fixes - **vue-app:** Respect `scroll-margin-top` when navigating with hash ([#​9187](https://togithub.com/nuxt/nuxt/issues/9187)) - **webpack:** Use `javascript/auto` for js rule ([#​9180](https://togithub.com/nuxt/nuxt/issues/9180)) - **server:** Unregister error event listener ([#​9245](https://togithub.com/nuxt/nuxt/issues/9245)) - **babel-preset-app:** Respect explicit options.targets for modern preset ([#​9337](https://togithub.com/nuxt/nuxt/issues/9337)) - **types:** Add nuxt.config alias type ([#​9424](https://togithub.com/nuxt/nuxt/issues/9424)) - **vue-app:** Check whether route exists within nuxt app before replacing ([#​9431](https://togithub.com/nuxt/nuxt/issues/9431)) - **vue-renderer:** Decode route path for `payload.js` ([#​9494](https://togithub.com/nuxt/nuxt/issues/9494)) - **vue-app:** Don't normalise route path if it's valid ([#​9460](https://togithub.com/nuxt/nuxt/issues/9460)) - **vue-app:** Redirect to external url replaces current history entry ([#​9500](https://togithub.com/nuxt/nuxt/issues/9500)) - **utils:** `trailingSlash` causes error with dynamic nuxt-child routes ([#​9505](https://togithub.com/nuxt/nuxt/issues/9505)) - **types:** Add `onNuxtLoaded` and `onNuxtReady` types ([#​9510](https://togithub.com/nuxt/nuxt/issues/9510)) - **vue-app:** Re-register components construtor in HMR ([#​9539](https://togithub.com/nuxt/nuxt/issues/9539)) - **types:** Add typing for `build.stats` options ([#​9555](https://togithub.com/nuxt/nuxt/issues/9555)) - **babel:** Loose option for babel private-property-in-object ([#​9631](https://togithub.com/nuxt/nuxt/issues/9631)) - **vue-app:** Serialize route meta to allow functions ([#​9634](https://togithub.com/nuxt/nuxt/issues/9634)) - **vue-app:** `null` check for `$root` access ([#​9150](https://togithub.com/nuxt/nuxt/issues/9150)) - **generator:** Allow passing `builder` to `getGenerator` ([#​9574](https://togithub.com/nuxt/nuxt/issues/9574)) - **generator:** Throw an error when Builder is missing ([#​9663](https://togithub.com/nuxt/nuxt/issues/9663)) - **vue-app:** Use correct `$config` for finding basePath ([#​9706](https://togithub.com/nuxt/nuxt/issues/9706)) - **vue-renderer:** Ensure custom build indicator preserves some whitespace ([#​9705](https://togithub.com/nuxt/nuxt/issues/9705)) - 'npm run test' fails because the last command lacks 'yarn' ([#​9761](https://togithub.com/nuxt/nuxt/issues/9761)) - **generator:** Decode path with `ufo` ([#​9739](https://togithub.com/nuxt/nuxt/issues/9739)) - **cli:** Ensure nuxt instance is closed when skipping build ([`3e9d7e3`](https://togithub.com/nuxt/nuxt/commit/3e9d7e3e7)) - Nuxt-child-key in web-types.json ([#​9792](https://togithub.com/nuxt/nuxt/issues/9792)) - **types:** Return type of $fetch ([#​9854](https://togithub.com/nuxt/nuxt/issues/9854)) - **deps:** Update `ua-parser-js` to 1.x ([#​9979](https://togithub.com/nuxt/nuxt/issues/9979)) - **deps:** Update `ya-parser-js` to latest `0.7.x` ([#​9979](https://togithub.com/nuxt/nuxt/issues/9979)) - **vue-app:** Call ssrContext.unsetMutationObserver only if it exists ([#​10132](https://togithub.com/nuxt/nuxt/issues/10132)) - **webpack:** Allow files with `.cjs` extension to be transpiled ([#​10340](https://togithub.com/nuxt/nuxt/issues/10340)) - **vue-app:** Preview mode fetch ([#​10489](https://togithub.com/nuxt/nuxt/issues/10489)) - **webpack:** Resolve `.wasm` extension with lower priority ([#​10676](https://togithub.com/nuxt/nuxt/issues/10676)) - **vue-app:** Clear hide timeout when calling `clear()` ([#​10086](https://togithub.com/nuxt/nuxt/issues/10086)) ##### 📦 Build - Use 7 digit edge hashes ([`0501a42`](https://togithub.com/nuxt/nuxt/commit/0501a424b)) - Upgrade to rollup v3 ([#​18686](https://togithub.com/nuxt/nuxt/issues/18686)) ##### 🌊 Types - Add `prefetchPayloads` to router options ([#​9715](https://togithub.com/nuxt/nuxt/issues/9715)) ##### 🏡 Chore - **release:** V2.15.6 ([`a53fd32`](https://togithub.com/nuxt/nuxt/commit/a53fd32d6)) - **pkg:** Build for es2019 target ([#​9328](https://togithub.com/nuxt/nuxt/issues/9328)) - **types:** Add types for new `false` option for `render.static` ([#​9372](https://togithub.com/nuxt/nuxt/issues/9372)) - Update error tests ([`d4e5998`](https://togithub.com/nuxt/nuxt/commit/d4e5998f9)) - **test:** Revert jest and babel-jest to 26 ([#​9377](https://togithub.com/nuxt/nuxt/issues/9377)) - Ignore audit 1754,1755 ([`39f7859`](https://togithub.com/nuxt/nuxt/commit/39f785967)) - Fix vetur extension syntax for GitPod ([#​9572](https://togithub.com/nuxt/nuxt/issues/9572)) - Ignore globby > 12 upgrade as needs native esm ([`e0968a3`](https://togithub.com/nuxt/nuxt/commit/e0968a3ad)) - Update rollup plugins ([`5614399`](https://togithub.com/nuxt/nuxt/commit/5614399b4)) - Fix code formatting ([`17bbb21`](https://togithub.com/nuxt/nuxt/commit/17bbb21b5)) - **utils:** Improve `stripWhitespace` utility ([#​9668](https://togithub.com/nuxt/nuxt/issues/9668)) - Update license year to present ([#​9682](https://togithub.com/nuxt/nuxt/issues/9682)) - Add separate file with security disclosure info ([#​9738](https://togithub.com/nuxt/nuxt/issues/9738)) - Update logo ([#​9796](https://togithub.com/nuxt/nuxt/issues/9796)) - **doc:** Fix link to contribution guide ([#​9815](https://togithub.com/nuxt/nuxt/issues/9815)) - **test:** Fix external redirect link ([#​9816](https://togithub.com/nuxt/nuxt/issues/9816)) - Update funding.yml ([`1f85137`](https://togithub.com/nuxt/nuxt/commit/1f8513720)) - Update lockfile ([`7614360`](https://togithub.com/nuxt/nuxt/commit/76143601f)) - Update audit list ([`6f73c36`](https://togithub.com/nuxt/nuxt/commit/6f73c36ae)) - Update lockfile and audit ([`1878b26`](https://togithub.com/nuxt/nuxt/commit/1878b26f9)) - Update issue template with nuxt 3 ([#​9948](https://togithub.com/nuxt/nuxt/issues/9948)) - Enable blank issues ([`54542c1`](https://togithub.com/nuxt/nuxt/commit/54542c1b0)) - **radme:** Fix browserstack and saucelabs icons ([#​10068](https://togithub.com/nuxt/nuxt/issues/10068)) - Update dependencies ([#​10510](https://togithub.com/nuxt/nuxt/issues/10510)) - Update repo ([`773d292`](https://togithub.com/nuxt/nuxt/commit/773d292b5)) - Ignore vue and vuex major updates ([`bafc814`](https://togithub.com/nuxt/nuxt/commit/bafc814ef)) - Update README.md ([#​10831](https://togithub.com/nuxt/nuxt/issues/10831)) - Update pull request template ([`0db7e7b`](https://togithub.com/nuxt/nuxt/commit/0db7e7b39)) - Update issue templates ([`f36fb9c`](https://togithub.com/nuxt/nuxt/commit/f36fb9cd0)) - Rename 2.x bug template ([`ba966cf`](https://togithub.com/nuxt/nuxt/commit/ba966cf9e)) - Move nuxt 2 report to bottom ([`ce7b1a9`](https://togithub.com/nuxt/nuxt/commit/ce7b1a939)) - Bump `ua-parser-js` version ([`1cedad5`](https://togithub.com/nuxt/nuxt/commit/1cedad5fc)) - Bump test/dev dependencies ([#​18672](https://togithub.com/nuxt/nuxt/issues/18672)) - Upgrade unjs dependencies ([#​18670](https://togithub.com/nuxt/nuxt/issues/18670)) - Use named export from `defu` ([#​18679](https://togithub.com/nuxt/nuxt/issues/18679)) ##### ✅ Tests - Update async size test ([`23e2018`](https://togithub.com/nuxt/nuxt/commit/23e2018a1)) - Update size limit tests ([`4f11d3c`](https://togithub.com/nuxt/nuxt/commit/4f11d3c1a)) ##### 🤖 CI - Update test branch condition ([`331a2d7`](https://togithub.com/nuxt/nuxt/commit/331a2d724)) - Update workflows ([`9677fbe`](https://togithub.com/nuxt/nuxt/commit/9677fbe53)) ##### ⚠️ Breaking Changes - **webpack:** ⚠️ Update postcss to v8 ([#​9671](https://togithub.com/nuxt/nuxt/issues/9671)) ##### ❤️ Contributors - Xin Du (Clark) - Daniel Roe - Arik - Bot08 - Pooya Parsa - Yuyao Nie - Sébastien Chopin - Clément Ollivier - Michiel Doesburg - Rafał Chłodnicki - Abdfn - K-utsumi - Matteo Rigon - Mehmet - Thibault Vlacich - Jon-ht - Ahmadou Waly NDIAYE - Daniil Okhlopkov - Aewshyae - Michał Kędrzyński - Mrazauskas - Loick Le Digabel - Payel Karmakar - SlayerOfTheBad - Ofer Shaal - Mohammad Saleh Fadaei - Andrew Luca - David Ovčačík - Carbotaniuman - William L'Archeveque - Matthieu Sieben
prettier/prettier ### [`v2.8.7`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​287) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.6...2.8.7) [diff](https://togithub.com/prettier/prettier/compare/2.8.6...2.8.7) ##### Allow multiple decorators on same getter/setter ([#​14584](https://togithub.com/prettier/prettier/pull/14584) by [@​fisker](https://togithub.com/fisker)) ```ts // Input class A { @​decorator() get foo () {} @​decorator() set foo (value) {} } // Prettier 2.8.6 SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3) 3 | get foo () {} 4 | > 5 | @​decorator() | ^^^^^^^^^^^^ 6 | set foo (value) {} 7 | } // Prettier 2.8.7 class A { @​decorator() get foo() {} @​decorator() set foo(value) {} } ``` ### [`v2.8.6`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​286) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.5...2.8.6) [diff](https://togithub.com/prettier/prettier/compare/2.8.5...2.8.6) ##### Allow decorators on private members and class expressions ([#​14548](https://togithub.com/prettier/prettier/pull/14548) by [@​fisker](https://togithub.com/fisker)) ```ts // Input class A { @​decorator() #privateMethod () {} } // Prettier 2.8.5 SyntaxError: Decorators are not valid here. (2:3) 1 | class A { > 2 | @​decorator() | ^^^^^^^^^^^^ 3 | #privateMethod () {} 4 | } // Prettier 2.8.6 class A { @​decorator() #privateMethod() {} } ``` ### [`v2.8.5`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​285) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.4...2.8.5) [diff](https://togithub.com/prettier/prettier/compare/2.8.4...2.8.5) ##### Support TypeScript 5.0 ([#​14391](https://togithub.com/prettier/prettier/pull/14391) by [@​fisker](https://togithub.com/fisker), [#​13819](https://togithub.com/prettier/prettier/pull/13819) by [@​fisker](https://togithub.com/fisker), [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) TypeScript 5.0 introduces two new syntactic features: - `const` modifiers for type parameters - `export type *` declarations ##### Add missing parentheses for decorator ([#​14393](https://togithub.com/prettier/prettier/pull/14393) by [@​fisker](https://togithub.com/fisker)) ```jsx // Input class Person { @​(myDecoratorArray[0]) greet() {} } // Prettier 2.8.4 class Person { @​myDecoratorArray[0] greet() {} } // Prettier 2.8.5 class Person { @​(myDecoratorArray[0]) greet() {} } ``` ##### Add parentheses for `TypeofTypeAnnotation` to improve readability ([#​14458](https://togithub.com/prettier/prettier/pull/14458) by [@​fisker](https://togithub.com/fisker)) ```tsx // Input type A = (typeof node.children)[]; // Prettier 2.8.4 type A = typeof node.children[]; // Prettier 2.8.5 type A = (typeof node.children)[]; ``` ##### Support `max_line_length=off` when parsing `.editorconfig` ([#​14516](https://togithub.com/prettier/prettier/pull/14516) by [@​josephfrazier](https://togithub.com/josephfrazier)) If an .editorconfig file is in your project and it sets `max_line_length=off` for the file you're formatting, it will be interpreted as a `printWidth` of `Infinity` rather than being ignored (which previously resulted in the default `printWidth` of 80 being applied, if not overridden by Prettier-specific configuration). ```html
;
; ``` ### [`v2.8.4`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​284) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.3...2.8.4) [diff](https://togithub.com/prettier/prettier/compare/2.8.3...2.8.4) ##### Fix leading comments in mapped types with `readonly` ([#​13427](https://togithub.com/prettier/prettier/pull/13427) by [@​thorn0](https://togithub.com/thorn0), [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) ```tsx // Input type Type = { // comment readonly [key in Foo]; }; // Prettier 2.8.3 type Type = { readonly // comment [key in Foo]; }; // Prettier 2.8.4 type Type = { // comment readonly [key in Foo]; }; ``` ##### Group params in opening block statements ([#​14067](https://togithub.com/prettier/prettier/pull/14067) by [@​jamescdavis](https://togithub.com/jamescdavis)) This is a follow-up to [#​13930](https://togithub.com/prettier/prettier/issues/13930) to establish wrapping consistency between opening block statements and else blocks by grouping params in opening blocks. This causes params to break to a new line together and not be split across lines unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the same as opening blocks. ```hbs {{! Input }} {{#block param param param param param param param param param param as |blockParam|}} Hello {{else block param param param param param param param param param param as |blockParam|}} There {{/block}} {{! Prettier 2.8.3 }} {{#block param param param param param param param param param param as |blockParam| }} Hello {{else block param param param param param param param param param param}} There {{/block}} {{! Prettier 2.8.4 }} {{#block param param param param param param param param param param as |blockParam| }} Hello {{else block param param param param param param param param param param as |blockParam| }} There {{/block}} ``` ##### Ignore files in `.sl/` ([#​14206](https://togithub.com/prettier/prettier/pull/14206) by [@​bolinfest](https://togithub.com/bolinfest)) In [Sapling SCM](https://sapling-scm.com/), `.sl/` is the folder where it stores its state, analogous to `.git/` in Git. It should be ignored in Prettier like the other SCM folders. ##### Recognize `@satisfies` in Closure-style type casts ([#​14262](https://togithub.com/prettier/prettier/pull/14262) by [@​fisker](https://togithub.com/fisker)) ```jsx // Input const a = /** @​satisfies {Record} */ ({hello: 1337}); const b = /** @​type {Record} */ ({hello: 1337}); // Prettier 2.8.3 const a = /** @​satisfies {Record} */ { hello: 1337 }; const b = /** @​type {Record} */ ({ hello: 1337 }); // Prettier 2.8.4 const a = /** @​satisfies {Record} */ ({hello: 1337}); const b = /** @​type {Record} */ ({hello: 1337}); ``` ##### Fix parens in inferred function return types with `extends` ([#​14279](https://togithub.com/prettier/prettier/pull/14279) by [@​fisker](https://togithub.com/fisker)) ```ts // Input type Foo = T extends ((a) => a is infer R extends string) ? R : never; // Prettier 2.8.3 (First format) type Foo = T extends (a) => a is infer R extends string ? R : never; // Prettier 2.8.3 (Second format) SyntaxError: '?' expected. // Prettier 2.8.4 type Foo = T extends ((a) => a is infer R extends string) ? R : never; ``` ### [`v2.8.3`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​283) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.2...2.8.3) [diff](https://togithub.com/prettier/prettier/compare/2.8.2...2.8.3) ##### Allow self-closing tags on custom elements ([#​14170](https://togithub.com/prettier/prettier/pull/14170) by [@​fisker](https://togithub.com/fisker)) See [Angular v15.1.0 release note](https://togithub.com/angular/angular/releases/tag/15.1.0) for details. ```html // Input // Prettier 2.8.2 SyntaxError: Only void and foreign elements can be self closed "app-test" (1:1) > 1 | | ^^^^^^^^^ 2 | // Prettier 2.8.3 ``` ### [`v2.8.2`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​282) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.1...2.8.2) [diff](https://togithub.com/prettier/prettier/compare/2.8.1...2.8.2) ##### Don't lowercase link references ([#​13155](https://togithub.com/prettier/prettier/pull/13155) by [@​DerekNonGeneric](https://togithub.com/DerekNonGeneric) & [@​fisker](https://togithub.com/fisker)) ```markdown We now don't strictly follow the release notes format suggested by [Keep a Changelog]. [Keep a Changelog]: https://example.com/ We now don't strictly follow the release notes format suggested by [Keep a Changelog]. [keep a changelog]: https://example.com/ ``` ##### Preserve self-closing tags ([#​13691](https://togithub.com/prettier/prettier/pull/13691) by [@​dcyriller](https://togithub.com/dcyriller)) ```hbs {{! Input }}
{{! Prettier 2.8.1 }}
{{! Prettier 2.8.2 }}
``` ##### Allow custom "else if"-like blocks with block params ([#​13930](https://togithub.com/prettier/prettier/pull/13930) by [@​jamescdavis](https://togithub.com/jamescdavis)) [#​13507](https://togithub.com/prettier/prettier/issues/13507) added support for custom block keywords used with `else`, but failed to allow block params. This updates printer-glimmer to allow block params with custom "else if"-like blocks. ```hbs {{! Input }} {{#when isAtWork as |work|}} Ship that {{work}}! {{else when isReading as |book|}} You can finish {{book}} eventually... {{else}} Go to bed! {{/when}} {{! Prettier 2.8.1 }} {{#when isAtWork as |work|}} Ship that {{work}}! {{else when isReading}} You can finish {{book}} eventually... {{else}} Go to bed! {{/when}} {{! Prettier 2.8.2 }} {{#when isAtWork as |work|}} Ship that {{work}}! {{else when isReading as |book|}} You can finish {{book}} eventually... {{else}} Go to bed! {{/when}} ``` ##### Preserve empty lines between nested SCSS maps ([#​13931](https://togithub.com/prettier/prettier/pull/13931) by [@​jneander](https://togithub.com/jneander)) ```scss /* Input */ $map: ( 'one': ( 'key': 'value', ), 'two': ( 'key': 'value', ), ) /* Prettier 2.8.1 */ $map: ( 'one': ( 'key': 'value', ), 'two': ( 'key': 'value', ), ) /* Prettier 2.8.2 */ $map: ( 'one': ( 'key': 'value', ), 'two': ( 'key': 'value', ), ) ``` ##### Fix missing parentheses when an expression statement starts with `let[` ([#​14000](https://togithub.com/prettier/prettier/pull/14000), [#​14044](https://togithub.com/prettier/prettier/pull/14044) by [@​fisker](https://togithub.com/fisker), [@​thorn0](https://togithub.com/thorn0)) ```jsx // Input (let[0] = 2); // Prettier 2.8.1 let[0] = 2; // Prettier 2.8.1 (second format) SyntaxError: Unexpected token (1:5) > 1 | let[0] = 2; | ^ 2 | // Prettier 2.8.2 (let)[0] = 2; ``` ##### Fix semicolon duplicated at the end of LESS file ([#​14007](https://togithub.com/prettier/prettier/pull/14007) by [@​mvorisek](https://togithub.com/mvorisek)) ```less // Input @​variable: { field: something; }; // Prettier 2.8.1 @​variable: { field: something; }; ; // Prettier 2.8.2 @​variable: { field: something; }; ``` ##### Fix no space after unary minus when followed by opening parenthesis in LESS ([#​14008](https://togithub.com/prettier/prettier/pull/14008) by [@​mvorisek](https://togithub.com/mvorisek)) ```less // Input .unary_minus_single { margin: -(@​a); } .unary_minus_multi { margin: 0 -(@​a); } .binary_minus { margin: 0 - (@​a); } // Prettier 2.8.1 .unary_minus_single { margin: - (@​a); } .unary_minus_multi { margin: 0 - (@​a); } .binary_minus { margin: 0 - (@​a); } // Prettier 2.8.2 .unary_minus_single { margin: -(@​a); } .unary_minus_multi { margin: 0 -(@​a); } .binary_minus { margin: 0 - (@​a); } ``` ##### Do not change case of property name if inside a variable declaration in LESS ([#​14034](https://togithub.com/prettier/prettier/pull/14034) by [@​mvorisek](https://togithub.com/mvorisek)) ```less // Input @​var: { preserveCase: 0; }; // Prettier 2.8.1 @​var: { preservecase: 0; }; // Prettier 2.8.2 @​var: { preserveCase: 0; }; ``` ##### Fix formatting for auto-accessors with comments ([#​14038](https://togithub.com/prettier/prettier/pull/14038) by [@​fisker](https://togithub.com/fisker)) ```jsx // Input class A { @​dec() // comment accessor b; } // Prettier 2.8.1 class A { @​dec() accessor // comment b; } // Prettier 2.8.1 (second format) class A { @​dec() accessor; // comment b; } // Prettier 2.8.2 class A { @​dec() // comment accessor b; } ``` ##### Add parentheses for TSTypeQuery to improve readability ([#​14042](https://togithub.com/prettier/prettier/pull/14042) by [@​onishi-kohei](https://togithub.com/onishi-kohei)) ```tsx // Input a as (typeof node.children)[number] a as (typeof node.children)[] a as ((typeof node.children)[number])[] // Prettier 2.8.1 a as typeof node.children[number]; a as typeof node.children[]; a as typeof node.children[number][]; // Prettier 2.8.2 a as (typeof node.children)[number]; a as (typeof node.children)[]; a as (typeof node.children)[number][]; ``` ##### Fix displacing of comments in default switch case ([#​14047](https://togithub.com/prettier/prettier/pull/14047) by [@​thorn0](https://togithub.com/thorn0)) It was a regression in Prettier 2.6.0. ```jsx // Input switch (state) { default: result = state; // no change break; } // Prettier 2.8.1 switch (state) { default: // no change result = state; break; } // Prettier 2.8.2 switch (state) { default: result = state; // no change break; } ``` ##### Support type annotations on auto accessors via `babel-ts` ([#​14049](https://togithub.com/prettier/prettier/pull/14049) by [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) [The bug that `@babel/parser` cannot parse auto accessors with type annotations](https://togithub.com/babel/babel/issues/15205) has been fixed. So we now support it via `babel-ts` parser. ```tsx class Foo { accessor prop: number; } ``` ##### Fix formatting of empty type parameters ([#​14073](https://togithub.com/prettier/prettier/pull/14073) by [@​fisker](https://togithub.com/fisker)) ```jsx // Input const foo: bar = () => baz; // Prettier 2.8.1 Error: Comment "comment" was not printed. Please report this error! // Prettier 2.8.2 const foo: bar = () => baz; ``` ##### Add parentheses to head of `ExpressionStatement` instead of the whole statement ([#​14077](https://togithub.com/prettier/prettier/pull/14077) by [@​fisker](https://togithub.com/fisker)) ```jsx // Input ({}).toString.call(foo) === "[object Array]" ? foo.forEach(iterateArray) : iterateObject(foo); // Prettier 2.8.1 ({}.toString.call(foo) === "[object Array]" ? foo.forEach(iterateArray) : iterateObject(foo)); // Prettier 2.8.2 ({}).toString.call(foo.forEach) === "[object Array]" ? foo.forEach(iterateArray) : iterateObject(foo); ``` ##### Fix comments after directive ([#​14081](https://togithub.com/prettier/prettier/pull/14081) by [@​fisker](https://togithub.com/fisker)) ```jsx // Input "use strict" /* comment */; // Prettier 2.8.1 (with other js parsers except `babel`) Error: Comment "comment" was not printed. Please report this error! // Prettier 2.8.2 ``` ##### Fix formatting for comments inside JSX attribute ([#​14082](https://togithub.com/prettier/prettier/pull/14082) with by [@​fisker](https://togithub.com/fisker)) ```jsx // Input function MyFunctionComponent() { } // Prettier 2.8.1 Error: Comment "old" was not printed. Please report this error! // Prettier 2.8.2 function MyFunctionComponent() { ; } ``` ##### Quote numeric keys for json-stringify parser ([#​14083](https://togithub.com/prettier/prettier/pull/14083) by [@​fisker](https://togithub.com/fisker)) ```jsx // Input {0: 'value'} // Prettier 2.8.1 { 0: "value" } // Prettier 2.8.2 { "0": "value" } ``` ##### Fix removing commas from function arguments in maps ([#​14089](https://togithub.com/prettier/prettier/pull/14089) by [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) ```scss /* Input */ $foo: map-fn( ( "#{prop}": inner-fn($first, $second), ) ); /* Prettier 2.8.1 */ $foo: map-fn(("#{prop}": inner-fn($first $second))); /* Prettier 2.8.2 */ $foo: map-fn( ( "#{prop}": inner-fn($first, $second), ) ); ``` ##### Do not insert space in LESS property access ([#​14103](https://togithub.com/prettier/prettier/pull/14103) by [@​fisker](https://togithub.com/fisker)) ```less // Input a { color: @​colors[@​white]; } // Prettier 2.8.1 a { color: @​colors[ @​white]; } // Prettier 2.8.2 ``` ### [`v2.8.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​281) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.0...2.8.1) [diff](https://togithub.com/prettier/prettier/compare/2.8.0...2.8.1) ##### Fix SCSS map in arguments ([#​9184](https://togithub.com/prettier/prettier/pull/9184) by [@​agamkrbit](https://togithub.com/agamkrbit)) ```scss // Input $display-breakpoints: map-deep-merge( ( "print-only": "only print", "screen-only": "only screen", "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})", ), $display-breakpoints ); // Prettier 2.8.0 $display-breakpoints: map-deep-merge( ( "print-only": "only print", "screen-only": "only screen", "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm ")-1})", ), $display-breakpoints ); // Prettier 2.8.1 $display-breakpoints: map-deep-merge( ( "print-only": "only print", "screen-only": "only screen", "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})", ), $display-breakpoints ); ``` ##### Support auto accessors syntax ([#​13919](https://togithub.com/prettier/prettier/pull/13919) by [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) Support for [Auto Accessors Syntax](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/#auto-accessors-in-classes) landed in TypeScript 4.9. (Doesn't work well with `babel-ts` parser) ```tsx class Foo { accessor foo: number = 3; } ``` ### [`v2.8.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​280) [Compare Source](https://togithub.com/prettier/prettier/compare/2.7.1...2.8.0) [diff](https://togithub.com/prettier/prettier/compare/2.7.1...2.8.0) 🔗 [Release Notes](https://prettier.io/blog/2022/11/23/2.8.0.html)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.

codecov[bot] commented 1 year ago

Codecov Report

Merging #269 (8b9e7dd) into master (c8e08d5) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #269   +/-   ##
=======================================
  Coverage   96.07%   96.07%           
=======================================
  Files           2        2           
  Lines          51       51           
  Branches       13       13           
=======================================
  Hits           49       49           
  Misses          2        2