cds-snc / scan-websites

On-demand scanning of websites for accessibility and security vulnerabilities/compliance / Analyse à la demande des sites Web pour les vulnérabilités/conformité en matière d'accessibilité et de sécurité
https://scan-websites.alpha.canada.ca
MIT License
12 stars 1 forks source link

chore(deps): update all minor dependencies #490

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence Type Update Pending
@types/jest (source) 29.4.0 -> 29.5.1 age adoption passing confidence devDependencies minor
@typescript-eslint/eslint-plugin 5.54.1 -> 5.59.0 age adoption passing confidence devDependencies minor 5.59.1
@typescript-eslint/parser 5.54.1 -> 5.59.0 age adoption passing confidence devDependencies minor 5.59.1
aws-sdk 2.1359.0 -> 2.1363.0 age adoption passing confidence dependencies minor 2.1368.0 (+4)
eslint (source) 8.35.0 -> 8.39.0 age adoption passing confidence devDependencies minor
eslint-config-prettier 8.7.0 -> 8.8.0 age adoption passing confidence devDependencies minor
eslint-plugin-n 15.6.1 -> 15.7.0 age adoption passing confidence devDependencies minor
fastapi ==0.92.0 -> ==0.95.1 age adoption passing confidence minor
github.com/aws/aws-lambda-go v1.38.0 -> v1.40.0 age adoption passing confidence require minor
github.com/aws/aws-sdk-go-v2/service/s3 v1.30.5 -> v1.32.0 age adoption passing confidence require minor v1.33.0
golang.org/x/oauth2 v0.6.0 -> v0.7.0 age adoption passing confidence require minor
httpx (changelog) ==0.23.3 -> ==0.24.0 age adoption passing confidence minor
playwright (changelog) ==1.31.1 -> ==1.32.1 age adoption passing confidence minor
pytest (source, changelog) ==7.2.2 -> ==7.3.1 age adoption passing confidence minor
ts-jest (source) 29.0.5 -> 29.1.0 age adoption passing confidence devDependencies minor
uvicorn (changelog) ==0.20.0 -> ==0.21.1 age adoption passing confidence minor 0.22.0

Review


Release Notes

typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin) ### [`v5.59.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#​5590-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5580v5590-2023-04-17) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.58.0...v5.59.0) ##### Bug Fixes - **eslint-plugin:** \[no-unnecessary-condition] allow nullish coalescing for naked type parameter ([#​6910](https://togithub.com/typescript-eslint/typescript-eslint/issues/6910)) ([3e5f858](https://togithub.com/typescript-eslint/typescript-eslint/commit/3e5f8583f1e4fe045c2fe2143d6f280b7381f96b)) ##### Features - **eslint-plugin:** \[ban-types] add NonNullable suggestion and allow custom suggestions ([#​6876](https://togithub.com/typescript-eslint/typescript-eslint/issues/6876)) ([ff65235](https://togithub.com/typescript-eslint/typescript-eslint/commit/ff65235246bb6214fb64f0e0317373ca99f8bcbe)) ### [`v5.58.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#​5580-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5571v5580-2023-04-10) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.57.1...v5.58.0) ##### Bug Fixes - **eslint-plugin:** \[unified-signatures] allow overloads with different named and different number of parameters ([#​6877](https://togithub.com/typescript-eslint/typescript-eslint/issues/6877)) ([939d665](https://togithub.com/typescript-eslint/typescript-eslint/commit/939d6656ebcb94fab048a08d719b3e77362ab5b4)) ##### Features - **eslint-plugin:** \[no-unsafe-enum-comparison] add rule ([#​6107](https://togithub.com/typescript-eslint/typescript-eslint/issues/6107)) ([915f9c2](https://togithub.com/typescript-eslint/typescript-eslint/commit/915f9c2dc8934eef491a672786ec9f016f3658ba)) #### [5.57.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.57.0...v5.57.1) (2023-04-03) ##### Bug Fixes - **eslint-plugin:** \[strict-boolean-expressions] support mixed enums in allowNullableEnum option ([#​6740](https://togithub.com/typescript-eslint/typescript-eslint/issues/6740)) ([49be8a8](https://togithub.com/typescript-eslint/typescript-eslint/commit/49be8a814c82f3784308ef5a6e90478eb56e55c1)) ### [`v5.57.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#​5571-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5570v5571-2023-04-03) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.57.0...v5.57.1) ##### Bug Fixes - **eslint-plugin:** \[strict-boolean-expressions] support mixed enums in allowNullableEnum option ([#​6740](https://togithub.com/typescript-eslint/typescript-eslint/issues/6740)) ([49be8a8](https://togithub.com/typescript-eslint/typescript-eslint/commit/49be8a814c82f3784308ef5a6e90478eb56e55c1)) ### [`v5.57.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#​5570-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5560v5570-2023-03-27) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.56.0...v5.57.0) ##### Bug Fixes - **eslint-plugin:** \[no-unnecessary-boolean-literal-compare] simplify fixer and add support for double negation ([#​6620](https://togithub.com/typescript-eslint/typescript-eslint/issues/6620)) ([81c8519](https://togithub.com/typescript-eslint/typescript-eslint/commit/81c85193d27d2e7f6d12bc259088b9b73dbe1e8b)) - **eslint-plugin:** correct crashes with getTypeArguments for ts < 3.7 ([#​6767](https://togithub.com/typescript-eslint/typescript-eslint/issues/6767)) ([59eab58](https://togithub.com/typescript-eslint/typescript-eslint/commit/59eab587890a915387444d00c4a9387aed602718)) ##### Features - **eslint-plugin:** \[consistent-type-assertions] add suggestions for objectLiteralTypeAssertions ([#​6642](https://togithub.com/typescript-eslint/typescript-eslint/issues/6642)) ([720e811](https://togithub.com/typescript-eslint/typescript-eslint/commit/720e81138b66c94c60c4a4471b86b7d8567b6df0)) - **eslint-plugin:** \[consistent-type-assertions] autofix angle bracket assertions to as ([#​6641](https://togithub.com/typescript-eslint/typescript-eslint/issues/6641)) ([ad8ea64](https://togithub.com/typescript-eslint/typescript-eslint/commit/ad8ea64dbdf06c92ff72b48022f041693a8d7076)) - **eslint-plugin:** add `no-duplicate-type-constituents` rule ([#​5728](https://togithub.com/typescript-eslint/typescript-eslint/issues/5728)) ([bc31078](https://togithub.com/typescript-eslint/typescript-eslint/commit/bc31078cf86d69eee881e4a7daeffa347c1d82a7)) ### [`v5.56.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#​5560-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5550v5560-2023-03-20) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.55.0...v5.56.0) ##### Bug Fixes - **eslint-plugin:** \[member-ordering] check order when optionalityOrder is present with no optional members ([#​6619](https://togithub.com/typescript-eslint/typescript-eslint/issues/6619)) ([6aff431](https://togithub.com/typescript-eslint/typescript-eslint/commit/6aff431668eb0d25aa74b527cbe458f9dcd0d92a)) - **eslint-plugin:** \[no-misused-promises] avoid unnecessary calls to getContextualType ([#​6193](https://togithub.com/typescript-eslint/typescript-eslint/issues/6193)) ([745cfe4](https://togithub.com/typescript-eslint/typescript-eslint/commit/745cfe4a35319416b3c307ee9fd57c63bf1660cd)) - **eslint-plugin:** \[no-misused-promises] fix incorrect detection of void functions in JSX attributes ([#​6638](https://togithub.com/typescript-eslint/typescript-eslint/issues/6638)) ([9e41cee](https://togithub.com/typescript-eslint/typescript-eslint/commit/9e41ceeaea3bf266e5114cfb1855e70a1a13284b)) - **eslint-plugin:** \[strict-boolean-expression] support falsy and truthy literals simultaneously ([#​6672](https://togithub.com/typescript-eslint/typescript-eslint/issues/6672)) ([62ef487](https://togithub.com/typescript-eslint/typescript-eslint/commit/62ef487a99010827e99a792db5e565ad7c1d6220)) - **eslint-plugin:** \[strict-boolean-expressions] handle truthy enums ([#​6618](https://togithub.com/typescript-eslint/typescript-eslint/issues/6618)) ([0d0639f](https://togithub.com/typescript-eslint/typescript-eslint/commit/0d0639fb25e5ac8d7b5e4ceac4273e17e8ee0249)) - **eslint-plugin:** add TSPropertySignature with TSFunctionType annotation to typeMethod selector ([#​6645](https://togithub.com/typescript-eslint/typescript-eslint/issues/6645)) ([3fc5c63](https://togithub.com/typescript-eslint/typescript-eslint/commit/3fc5c63f87bfd9d95f7e51fddc7ef16a6c3c5662)) ##### Features - **eslint-plugin:** add allowNever support to restrict-template-expressions ([#​6554](https://togithub.com/typescript-eslint/typescript-eslint/issues/6554)) ([423f164](https://togithub.com/typescript-eslint/typescript-eslint/commit/423f1642424293488fa03a52777c0df73a40e5fd)) ### [`v5.55.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#​5550-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5541v5550-2023-03-13) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) ##### Bug Fixes - **eslint-plugin:** \[no-confusing-void-expression] check sequence expressions for void is in last position ([#​6597](https://togithub.com/typescript-eslint/typescript-eslint/issues/6597)) ([d73d7d3](https://togithub.com/typescript-eslint/typescript-eslint/commit/d73d7d3904a088e2bf7127240dd1f1cefe325e69)) - **eslint-plugin:** \[no-unnecessary-boolean-literal-compare] fixer should handle parentheses ([#​6569](https://togithub.com/typescript-eslint/typescript-eslint/issues/6569)) ([2d8c196](https://togithub.com/typescript-eslint/typescript-eslint/commit/2d8c196294bcbe4989e310ec056a1a9000967600)) ##### Features - **eslint-plugin:** \[lines-around-comment] add extension rule ([#​5327](https://togithub.com/typescript-eslint/typescript-eslint/issues/5327)) ([d55211c](https://togithub.com/typescript-eslint/typescript-eslint/commit/d55211caf63e4731f103e94237b3449e88322bb9)) - **eslint-plugin:** \[member-ordering] add support for grouping readonly fields ([#​6349](https://togithub.com/typescript-eslint/typescript-eslint/issues/6349)) ([9d3bdfc](https://togithub.com/typescript-eslint/typescript-eslint/commit/9d3bdfcb2fe3d2b2c0b82d9587d52f0e2ef4e344)) - **eslint-plugin:** \[no-unnecessary-cond] check logical assignments ([#​6594](https://togithub.com/typescript-eslint/typescript-eslint/issues/6594)) ([dbc203a](https://togithub.com/typescript-eslint/typescript-eslint/commit/dbc203aeb64833a4d67bc62a578aa5533083af3d)) - update TypeScript to 5.0 RC ([#​6570](https://togithub.com/typescript-eslint/typescript-eslint/issues/6570)) ([36ef0e1](https://togithub.com/typescript-eslint/typescript-eslint/commit/36ef0e16f31810c27dda299e739d1610b689d3ad)) - use [@​eslint-community](https://togithub.com/eslint-community) dependencies ([#​6603](https://togithub.com/typescript-eslint/typescript-eslint/issues/6603)) ([5f6ed73](https://togithub.com/typescript-eslint/typescript-eslint/commit/5f6ed738a2b8c08878999e24477e3c206a0ade1b)) #### [5.54.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package [@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
typescript-eslint/typescript-eslint (@​typescript-eslint/parser) ### [`v5.59.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#​5590-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5580v5590-2023-04-17) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.58.0...v5.59.0) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.58.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#​5580-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5571v5580-2023-04-10) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.57.1...v5.58.0) ##### Bug Fixes - update getLib for new TypeScript targets ES2021, ES2022 ([#​6782](https://togithub.com/typescript-eslint/typescript-eslint/issues/6782)) ([1c04664](https://togithub.com/typescript-eslint/typescript-eslint/commit/1c0466414300f338c6c4111f8d1eac0c3e6a8983)) #### [5.57.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.57.0...v5.57.1) (2023-04-03) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.57.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#​5571-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5570v5571-2023-04-03) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.57.0...v5.57.1) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.57.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#​5570-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5560v5570-2023-03-27) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.56.0...v5.57.0) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.56.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#​5560-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5550v5560-2023-03-20) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.55.0...v5.56.0) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) ### [`v5.55.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#​5550-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5541v5550-2023-03-13) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.54.1...v5.55.0) ##### Features - **parser:** add exported meta object ([#​6586](https://togithub.com/typescript-eslint/typescript-eslint/issues/6586)) ([d05c3d8](https://togithub.com/typescript-eslint/typescript-eslint/commit/d05c3d8aa4093e88ffdfc2dbcff522eafbd455fb)) #### [5.54.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.54.0...v5.54.1) (2023-03-06) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
aws/aws-sdk-js ### [`v2.1363.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#​213630) [Compare Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1362.0...v2.1363.0) - feature: Connect: This release adds a new API CreateParticipant. For Amazon Connect Chat, you can use this new API to customize chat flow experiences. - feature: FMS: AWS Firewall Manager adds support for multiple administrators. You can now delegate more than one administrator per organization. ### [`v2.1362.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#​213620) [Compare Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1361.0...v2.1362.0) - feature: Chime: Adds support for Hindi and Thai languages and additional Amazon Transcribe parameters to the StartMeetingTranscription API. - feature: ChimeSDKMediaPipelines: This release adds support for specifying the recording file format in an S3 recording sink configuration. - feature: ChimeSDKMeetings: Adds support for Hindi and Thai languages and additional Amazon Transcribe parameters to the StartMeetingTranscription API. - feature: GameLift: Amazon GameLift supports creating Builds for Windows 2016 operating system. - feature: GuardDuty: This release adds support for the new Lambda Protection feature. - feature: Iot: Support additional OTA states in GetOTAUpdate API - feature: SageMaker: Amazon SageMaker Canvas adds ModelRegisterSettings support for CanvasAppSettings. - feature: Snowball: Adds support for Amazon S3 compatible storage. AWS Snow Family customers can now use Amazon S3 compatible storage on Snowball Edge devices. Also adds support for V3\_5S. This is a refreshed AWS Snowball Edge Storage Optimized device type with 210TB SSD (customer usable). - feature: WAFV2: You can now create encrypted API keys to use in a client application integration of the JavaScript CAPTCHA API . You can also retrieve a list of your API keys and the JavaScript application integration URL. ### [`v2.1361.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#​213610) [Compare Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1360.0...v2.1361.0) - feature: Comprehend: This release supports native document models for custom classification, in addition to plain-text models. You train native document models using documents (PDF, Word, images) in their native format. - feature: ECS: This release supports the Account Setting "TagResourceAuthorization" that allows for enhanced Tagging security controls. - feature: RAM: This release adds support for customer managed permissions. Customer managed permissions enable customers to author and manage tailored permissions for resources shared using RAM. - feature: S3: Provides support for "Snow" Storage class. - feature: S3Control: Provides support for overriding endpoint when region is "snow". This will enable bucket APIs for Amazon S3 Compatible storage on Snow Family devices. ### [`v2.1360.0`](https://togithub.com/aws/aws-sdk-js/blob/HEAD/CHANGELOG.md#​213600) [Compare Source](https://togithub.com/aws/aws-sdk-js/compare/v2.1359.0...v2.1360.0) - feature: Appflow: This release adds a Client Token parameter to the following AppFlow APIs: Create/Update Connector Profile, Create/Update Flow, Start Flow, Register Connector, Update Connector Registration. The Client Token parameter allows idempotent operations for these APIs. - feature: Drs: Changed existing APIs and added new APIs to support using an account-level launch configuration template with AWS Elastic Disaster Recovery. - feature: EMRServerless: The GetJobRun API has been updated to include the job's billed resource utilization. This utilization shows the aggregate vCPU, memory and storage that AWS has billed for the job run. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. - feature: InternetMonitor: This release includes a new configurable value, TrafficPercentageToMonitor, which allows users to adjust the amount of traffic monitored by percentage - feature: IoTWireless: Supports the new feature of LoRaWAN roaming, allows to configure MaxEirp for LoRaWAN gateway, and allows to configure PingSlotPeriod for LoRaWAN multicast group - feature: Lambda: Add Python 3.10 (python3.10) support to AWS Lambda
eslint/eslint ### [`v8.39.0`](https://togithub.com/eslint/eslint/releases/tag/v8.39.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.38.0...v8.39.0) #### Features - [`3f7af9f`](https://togithub.com/eslint/eslint/commit/3f7af9f408625dbc486af914706d34c4b483b5ba) feat: Implement `SourceCode#markVariableAsUsed()` ([#​17086](https://togithub.com/eslint/eslint/issues/17086)) (Nicholas C. Zakas) #### Documentation - [`6987dc5`](https://togithub.com/eslint/eslint/commit/6987dc59e46f4e345d0d6c20c1f2c6846bbd7acc) docs: Fix formatting in Custom Rules docs ([#​17097](https://togithub.com/eslint/eslint/issues/17097)) (Milos Djermanovic) - [`4ee92e5`](https://togithub.com/eslint/eslint/commit/4ee92e5cbdeba6fea2147901ce926de16946958a) docs: Update README (GitHub Actions Bot) - [`d8e9887`](https://togithub.com/eslint/eslint/commit/d8e9887c2c384d24d586d08ee9ae2ada79bd234c) docs: Custom Rules cleanup/expansion ([#​16906](https://togithub.com/eslint/eslint/issues/16906)) (Ben Perlmutter) - [`1fea279`](https://togithub.com/eslint/eslint/commit/1fea2797801a82a2718814c83dad641dab092bcc) docs: Clarify how to add to tsc agenda ([#​17084](https://togithub.com/eslint/eslint/issues/17084)) (Nicholas C. Zakas) - [`970ef1c`](https://togithub.com/eslint/eslint/commit/970ef1c868235a58297682513842f1256cdfbd03) docs: Update triage board location (Nicholas C. Zakas) - [`6d8bffd`](https://togithub.com/eslint/eslint/commit/6d8bffdf45d50e272dc45e6d2d05b4a737514468) docs: Update README (GitHub Actions Bot) #### Chores - [`60a6f26`](https://togithub.com/eslint/eslint/commit/60a6f2694deb4aa1c54de2a28d0357cddfd16644) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).39.0 ([#​17102](https://togithub.com/eslint/eslint/issues/17102)) (Milos Djermanovic) - [`d5ba5c0`](https://togithub.com/eslint/eslint/commit/d5ba5c0a85e7a10777761f5d46c104ab7f25845b) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`f57eff2`](https://togithub.com/eslint/eslint/commit/f57eff20f5789408e95061f1af5354bb9b4f4784) ci: run tests on Node.js v20 ([#​17093](https://togithub.com/eslint/eslint/issues/17093)) (Nitin Kumar) - [`9d1b8fc`](https://togithub.com/eslint/eslint/commit/9d1b8fc60cc31f12618e58c10a2669506b7ce9bf) perf: Binary search in token store `utils.search` ([#​17066](https://togithub.com/eslint/eslint/issues/17066)) (Francesco Trotta) - [`07a4435`](https://togithub.com/eslint/eslint/commit/07a4435a0c08cb63ebf11b71f735bac20318829b) chore: Add request for minimal repro to bug report ([#​17081](https://togithub.com/eslint/eslint/issues/17081)) (Nicholas C. Zakas) - [`eac4943`](https://togithub.com/eslint/eslint/commit/eac4943ba2e4edb3dbfea0470e5d4b15a4926c40) refactor: remove unnecessary use of `SourceCode#getAncestors` in rules ([#​17075](https://togithub.com/eslint/eslint/issues/17075)) (Milos Djermanovic) - [`0a7b60a`](https://togithub.com/eslint/eslint/commit/0a7b60a9d5621dbbc1a8a8adda3b7c2060c779ca) chore: update description of `SourceCode#getDeclaredVariables` ([#​17072](https://togithub.com/eslint/eslint/issues/17072)) (Milos Djermanovic) - [`6e2df71`](https://togithub.com/eslint/eslint/commit/6e2df71cc390252aaca212abe3dc0467fe397450) chore: remove unnecessary references to the LICENSE file ([#​17071](https://togithub.com/eslint/eslint/issues/17071)) (Milos Djermanovic) ### [`v8.38.0`](https://togithub.com/eslint/eslint/releases/tag/v8.38.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.37.0...v8.38.0) #### Features - [`a1d561d`](https://togithub.com/eslint/eslint/commit/a1d561d18ed653b56bddbfb1bab1ebe957293563) feat: Move getDeclaredVariables and getAncestors to SourceCode ([#​17059](https://togithub.com/eslint/eslint/issues/17059)) (Nicholas C. Zakas) #### Bug Fixes - [`1c1ece2`](https://togithub.com/eslint/eslint/commit/1c1ece26d1da61e523b83dda25353ec9379eb6c9) fix: do not report on `RegExp(...args)` in `require-unicode-regexp` ([#​17037](https://togithub.com/eslint/eslint/issues/17037)) (Francesco Trotta) #### Documentation - [`7162d34`](https://togithub.com/eslint/eslint/commit/7162d34df9a66c817c3bd4aafd3a03d226b58dd5) docs: Mention new config system is complete ([#​17068](https://togithub.com/eslint/eslint/issues/17068)) (Nicholas C. Zakas) - [`0fd6bb2`](https://togithub.com/eslint/eslint/commit/0fd6bb213ad2de77543c936eda21501653182e52) docs: Update README (GitHub Actions Bot) - [`c83531c`](https://togithub.com/eslint/eslint/commit/c83531c1a6026675f36aa9e33fef14458043974a) docs: Update/remove external links, eg. point to `eslint-community` ([#​17061](https://togithub.com/eslint/eslint/issues/17061)) (Pelle Wessman) - [`a3aa6f5`](https://togithub.com/eslint/eslint/commit/a3aa6f5f146534ed7999ebf8930c524a4871ec0b) docs: Clarify `no-div-regex` rule docs ([#​17051](https://togithub.com/eslint/eslint/issues/17051)) (Francesco Trotta) - [`b0f11cf`](https://togithub.com/eslint/eslint/commit/b0f11cf977a4180bf7c3042e7faeaaa067ffafd0) docs: Update README (GitHub Actions Bot) - [`da8d52a`](https://togithub.com/eslint/eslint/commit/da8d52a9d4edd9b2016cd4a15cd78f1ddadf20c7) docs: Update the second object instance for the "no-new" rule ([#​17020](https://togithub.com/eslint/eslint/issues/17020)) (Ahmadou Waly NDIAYE) - [`518130a`](https://togithub.com/eslint/eslint/commit/518130ae79a16d7bf4d752c211ae88152cc5a6f0) docs: switch language based on current path ([#​16687](https://togithub.com/eslint/eslint/issues/16687)) (Percy Ma) - [`24206c4`](https://togithub.com/eslint/eslint/commit/24206c49a138d4390f815ae122ee12f564bc604b) docs: Update README (GitHub Actions Bot) #### Chores - [`59ed060`](https://togithub.com/eslint/eslint/commit/59ed06041d4670781956221086ea0fca6683788d) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).38.0 ([#​17069](https://togithub.com/eslint/eslint/issues/17069)) (Milos Djermanovic) - [`88c0898`](https://togithub.com/eslint/eslint/commit/88c08984ec259ac22d839397c06beec8ef213120) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`cf682d2`](https://togithub.com/eslint/eslint/commit/cf682d249f04a6a304407d5b9ddbbc4a9714dd62) refactor: simplify new-parens rule schema ([#​17060](https://togithub.com/eslint/eslint/issues/17060)) (MHO) - [`0dde022`](https://togithub.com/eslint/eslint/commit/0dde02211268394bcbc2b0beef55ea2409b6f55d) ci: bump actions/add-to-project from 0.4.1 to 0.5.0 ([#​17055](https://togithub.com/eslint/eslint/issues/17055)) (dependabot\[bot]) ### [`v8.37.0`](https://togithub.com/eslint/eslint/releases/tag/v8.37.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.36.0...v8.37.0) #### Features - [`b6ab8b2`](https://togithub.com/eslint/eslint/commit/b6ab8b2a2ca8807baca121407f5bfb0a0a839427) feat: `require-unicode-regexp` add suggestions ([#​17007](https://togithub.com/eslint/eslint/issues/17007)) (Josh Goldberg) - [`10022b1`](https://togithub.com/eslint/eslint/commit/10022b1f4bda1ad89193512ecf18c2ee61db8202) feat: Copy getScope() to SourceCode ([#​17004](https://togithub.com/eslint/eslint/issues/17004)) (Nicholas C. Zakas) - [`1665c02`](https://togithub.com/eslint/eslint/commit/1665c029acb92bf8812267f1647ad1a7054cbcb4) feat: Use plugin metadata for flat config serialization ([#​16992](https://togithub.com/eslint/eslint/issues/16992)) (Nicholas C. Zakas) - [`b3634f6`](https://togithub.com/eslint/eslint/commit/b3634f695ddab6a82c0a9b1d8695e62b60d23366) feat: docs license ([#​17010](https://togithub.com/eslint/eslint/issues/17010)) (Samuel Roldan) - [`892e6e5`](https://togithub.com/eslint/eslint/commit/892e6e58c5a07a549d3104de3b6b5879797dc97f) feat: languageOptions.parser must be an object. ([#​16985](https://togithub.com/eslint/eslint/issues/16985)) (Nicholas C. Zakas) #### Bug Fixes - [`619f3fd`](https://togithub.com/eslint/eslint/commit/619f3fd17324c7b71bf17e02047d0c6dc7e5109e) fix: correctly handle `null` default config in `RuleTester` ([#​17023](https://togithub.com/eslint/eslint/issues/17023)) (Brad Zacher) - [`1fbf118`](https://togithub.com/eslint/eslint/commit/1fbf1184fed57df02640aad4659afb54dc26a2e9) fix: `getFirstToken`/`getLastToken` on comment-only node ([#​16889](https://togithub.com/eslint/eslint/issues/16889)) (Francesco Trotta) - [`129e252`](https://togithub.com/eslint/eslint/commit/129e252132c7c476d7de17f40b54a333ddb2e6bb) fix: Fix typo in `logical-assignment-operators` rule description ([#​17000](https://togithub.com/eslint/eslint/issues/17000)) (Francesco Trotta) #### Documentation - [`75339df`](https://togithub.com/eslint/eslint/commit/75339df99418df4d7e05a77e42ed7e22eabcc9e0) docs: fix typos and missing info in id-match docs ([#​17029](https://togithub.com/eslint/eslint/issues/17029)) (Ed Lucas) - [`ec2d830`](https://togithub.com/eslint/eslint/commit/ec2d8307850dd039e118c001416606e1e0342bc8) docs: Fix typos in the `semi` rule docs ([#​17012](https://togithub.com/eslint/eslint/issues/17012)) (Andrii Lundiak) - [`e39f28d`](https://togithub.com/eslint/eslint/commit/e39f28d8578a00f4da8d4ddad559547950128a0d) docs: add back to top button ([#​16979](https://togithub.com/eslint/eslint/issues/16979)) (Tanuj Kanti) - [`721c717`](https://togithub.com/eslint/eslint/commit/721c71782a7c11025689a1500e7690fb3794fcce) docs: Custom Processors cleanup and expansion ([#​16838](https://togithub.com/eslint/eslint/issues/16838)) (Ben Perlmutter) - [`d049f97`](https://togithub.com/eslint/eslint/commit/d049f974103e530ef76ede25af701635caf1f405) docs: 'How ESLint is Maintained' page ([#​16961](https://togithub.com/eslint/eslint/issues/16961)) (Ben Perlmutter) - [`5251a92`](https://togithub.com/eslint/eslint/commit/5251a921866e8d3b380dfe8db8a6e6ab97773d5e) docs: Describe guard options for guard-for-in ([#​16986](https://togithub.com/eslint/eslint/issues/16986)) (alope107) - [`6157d81`](https://togithub.com/eslint/eslint/commit/6157d813e19b80481a46f8cbdf9eae18a55e5619) docs: Add example to guard-for-in docs. ([#​16983](https://togithub.com/eslint/eslint/issues/16983)) (alope107) - [`fd47998`](https://togithub.com/eslint/eslint/commit/fd47998af6efadcdf5ba93e0bd1f4c02d97d22b3) docs: update `Array.prototype.toSorted` specification link ([#​16982](https://togithub.com/eslint/eslint/issues/16982)) (Milos Djermanovic) - [`3e1cf6b`](https://togithub.com/eslint/eslint/commit/3e1cf6bfc5ebc29314ddbe462d6cb580e9ab085c) docs: Copy edits on Maintain ESLint docs ([#​16939](https://togithub.com/eslint/eslint/issues/16939)) (Ben Perlmutter) #### Chores - [`c67f299`](https://togithub.com/eslint/eslint/commit/c67f2992a743de4765bb6f11c12622e3651324b9) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).37.0 ([#​17033](https://togithub.com/eslint/eslint/issues/17033)) (Milos Djermanovic) - [`ee9ddbd`](https://togithub.com/eslint/eslint/commit/ee9ddbd63e262aed0052853760866c7a054af561) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`dddb475`](https://togithub.com/eslint/eslint/commit/dddb47528816cd7e2e737bfde108ed4d62e6a219) chore: upgrade [@​eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@​2](https://togithub.com/2).0.2 ([#​17032](https://togithub.com/eslint/eslint/issues/17032)) (Milos Djermanovic) - [`522431e`](https://togithub.com/eslint/eslint/commit/522431e5206bac2fcb41c0d6dc98a84929203bee) chore: upgrade espree@9.5.1 ([#​17031](https://togithub.com/eslint/eslint/issues/17031)) (Milos Djermanovic) - [`f5f9a88`](https://togithub.com/eslint/eslint/commit/f5f9a88c79b32222c0331a9bac1c02571d953b69) chore: upgrade eslint-visitor-keys@3.4.0 ([#​17030](https://togithub.com/eslint/eslint/issues/17030)) (Milos Djermanovic) - [`4dd8d52`](https://togithub.com/eslint/eslint/commit/4dd8d524e0fc9e8e2019df13f8b968021600e85c) ci: bump actions/stale from 7 to 8 ([#​17026](https://togithub.com/eslint/eslint/issues/17026)) (dependabot\[bot]) - [`ad9dd6a`](https://togithub.com/eslint/eslint/commit/ad9dd6a933fd098a0d99c6a9aa059850535c23ee) chore: remove duplicate scss, ([#​17005](https://togithub.com/eslint/eslint/issues/17005)) (Strek) - [`ada6a3e`](https://togithub.com/eslint/eslint/commit/ada6a3e6e3607523958f35e1260537630ec0e976) ci: unpin Node 19 ([#​16993](https://togithub.com/eslint/eslint/issues/16993)) (Milos Djermanovic) - [`c3da975`](https://togithub.com/eslint/eslint/commit/c3da975e69fde46f35338ce48528841a8dc1ffd2) chore: Remove triage label from template ([#​16990](https://togithub.com/eslint/eslint/issues/16990)) (Nicholas C. Zakas) - [`69bc0e2`](https://togithub.com/eslint/eslint/commit/69bc0e2f4412998f9384600a100d7882ea4dd3f3) ci: pin Node 19 to 19.7.0 ([#​16987](https://togithub.com/eslint/eslint/issues/16987)) (Milos Djermanovic) ### [`v8.36.0`](https://togithub.com/eslint/eslint/releases/tag/v8.36.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.35.0...v8.36.0) ##### Features - [`c89a485`](https://togithub.com/eslint/eslint/commit/c89a485c49450532ee3db74f2638429f1f37d0dd) feat: Add `checkJSDoc` option to multiline-comment-style ([#​16807](https://togithub.com/eslint/eslint/issues/16807)) (Laurent Cozic) - [`f5f5e11`](https://togithub.com/eslint/eslint/commit/f5f5e11bd5fd3daab9ccae41e270739c836c305e) feat: Serialize parsers/processors in flat config ([#​16944](https://togithub.com/eslint/eslint/issues/16944)) (Nicholas C. Zakas) - [`4799297`](https://togithub.com/eslint/eslint/commit/4799297ea582c81fd1e5623d32a7ddf7a7f3a126) feat: use [@​eslint-community](https://togithub.com/eslint-community) dependencies ([#​16784](https://togithub.com/eslint/eslint/issues/16784)) (Michaël De Boey) ##### Bug Fixes - [`92c1943`](https://togithub.com/eslint/eslint/commit/92c1943ba73ea01e87086236e8736539b0eed558) fix: correctly iterate files matched by glob patterns ([#​16831](https://togithub.com/eslint/eslint/issues/16831)) (Nitin Kumar) ##### Documentation - [`b98fdd4`](https://togithub.com/eslint/eslint/commit/b98fdd413a3b07b262bfce6f704c1c1bb8582770) docs: Update README (GitHub Actions Bot) - [`caf08ce`](https://togithub.com/eslint/eslint/commit/caf08ce0cc74917f7c0eec92d25fd784dc33ac4d) docs: fix estree link in custom formatters docs ([#​16967](https://togithub.com/eslint/eslint/issues/16967)) (Milos Djermanovic) - [`3398431`](https://togithub.com/eslint/eslint/commit/3398431574b903757bc78b08c8ed36b7b9fce8eb) docs: Custom Parsers cleanup/expansion ([#​16887](https://togithub.com/eslint/eslint/issues/16887)) (Ben Perlmutter) - [`19d3531`](https://togithub.com/eslint/eslint/commit/19d3531d9b54e1004318d28f9a6e18305c5bcc18) docs: Update README (GitHub Actions Bot) - [`b09a512`](https://togithub.com/eslint/eslint/commit/b09a512107249a4eb19ef5a37b0bd672266eafdb) docs: detect and fix broken links ([#​16837](https://togithub.com/eslint/eslint/issues/16837)) (Nitin Kumar) ##### Chores - [`602b111`](https://togithub.com/eslint/eslint/commit/602b11121910a97ab2bc4a95a46dd0ccd0a89309) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).36.0 ([#​16978](https://togithub.com/eslint/eslint/issues/16978)) (Milos Djermanovic) - [`43c2345`](https://togithub.com/eslint/eslint/commit/43c2345c27024aeab6127e6bbfd55c8b70bd317e) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`00afb84`](https://togithub.com/eslint/eslint/commit/00afb84e5039874c8745a45c953fceaf0c71c454) chore: upgrade [@​eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@​2](https://togithub.com/2).0.1 ([#​16977](https://togithub.com/eslint/eslint/issues/16977)) (Milos Djermanovic) - [`698c5aa`](https://togithub.com/eslint/eslint/commit/698c5aad50e628ff00281dbc786e42de79834035) chore: upgrade espree@9.5.0 ([#​16976](https://togithub.com/eslint/eslint/issues/16976)) (Milos Djermanovic) - [`75acdd2`](https://togithub.com/eslint/eslint/commit/75acdd21c5ce7024252e9d41ed77d2f30587caac) chore: lint more js files in docs ([#​16964](https://togithub.com/eslint/eslint/issues/16964)) (Milos Djermanovic) - [`89d9844`](https://togithub.com/eslint/eslint/commit/89d9844b3151f09b5b21b6eeeda671009ec301e9) ci: bump actions/add-to-project from 0.4.0 to 0.4.1 ([#​16943](https://togithub.com/eslint/eslint/issues/16943)) (dependabot\[bot])
prettier/eslint-config-prettier ### [`v8.8.0`](https://togithub.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#Version-880-2023-03-20) [Compare Source](https://togithub.com/prettier/eslint-config-prettier/compare/v8.7.0...v8.8.0) - Added: \[[@​typescript-eslint/lines-around-comment](https://togithub.com/typescript-eslint/lines-around-comment)]. Thanks to [@​ttionya](https://togithub.com/ttionya)!
eslint-community/eslint-plugin-n ### [`v15.7.0`](https://togithub.com/eslint-community/eslint-plugin-n/releases/tag/15.7.0) [Compare Source](https://togithub.com/eslint-community/eslint-plugin-n/compare/15.6.1...15.7.0) - feat: no-unpublished-import supports ignoreTypeImport (fixes [#​78](https://togithub.com/eslint-community/eslint-plugin-n/issues/78)) ([#​79](https://togithub.com/eslint-community/eslint-plugin-n/issues/79)) ([`1fc0bf6`](https://togithub.com/eslint-community/eslint-plugin-n/commit/1fc0bf6))
tiangolo/fastapi ### [`v0.95.1`](https://togithub.com/tiangolo/fastapi/releases/tag/0.95.1) [Compare Source](https://togithub.com/tiangolo/fastapi/compare/0.95.0...0.95.1) ##### Fixes - 🐛 Fix using `Annotated` in routers or path operations decorated multiple times. PR [#​9315](https://togithub.com/tiangolo/fastapi/pull/9315) by [@​sharonyogev](https://togithub.com/sharonyogev). ##### Docs - 🌐 🔠 📄 🐢 Translate docs to Emoji 🥳 🎉 💥 🤯 🤯. PR [#​5385](https://togithub.com/tiangolo/fastapi/pull/5385) by [@​LeeeeT](https://togithub.com/LeeeeT). - 📝 Add notification message warning about old versions of FastAPI not supporting `Annotated`. PR [#​9298](https://togithub.com/tiangolo/fastapi/pull/9298) by [@​grdworkin](https://togithub.com/grdworkin). - 📝 Fix typo in `docs/en/docs/advanced/behind-a-proxy.md`. PR [#​5681](https://togithub.com/tiangolo/fastapi/pull/5681) by [@​Leommjr](https://togithub.com/Leommjr). - ✏ Fix wrong import from typing module in Persian translations for `docs/fa/docs/index.md`. PR [#​6083](https://togithub.com/tiangolo/fastapi/pull/6083) by [@​Kimiaattaei](https://togithub.com/Kimiaattaei). - ✏️ Fix format, remove unnecessary asterisks in `docs/en/docs/help-fastapi.md`. PR [#​9249](https://togithub.com/tiangolo/fastapi/pull/9249) by [@​armgabrielyan](https://togithub.com/armgabrielyan). - ✏ Fix typo in `docs/en/docs/tutorial/query-params-str-validations.md`. PR [#​9272](https://togithub.com/tiangolo/fastapi/pull/9272) by [@​nicornk](https://togithub.com/nicornk). - ✏ Fix typo/bug in inline code example in `docs/en/docs/tutorial/query-params-str-validations.md`. PR [#​9273](https://togithub.com/tiangolo/fastapi/pull/9273) by [@​tim-habitat](https://togithub.com/tim-habitat). - ✏ Fix typo in `docs/en/docs/tutorial/path-params-numeric-validations.md`. PR [#​9282](https://togithub.com/tiangolo/fastapi/pull/9282) by [@​aadarsh977](https://togithub.com/aadarsh977). - ✏ Fix typo: 'wll' to 'will' in `docs/en/docs/tutorial/query-params-str-validations.md`. PR [#​9380](https://togithub.com/tiangolo/fastapi/pull/9380) by [@​dasstyxx](https://togithub.com/dasstyxx). ##### Translations - 🌐 Add French translation for `docs/fr/docs/advanced/index.md`. PR [#​5673](https://togithub.com/tiangolo/fastapi/pull/5673) by [@​axel584](https://togithub.com/axel584). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/body-nested-models.md`. PR [#​4053](https://togithub.com/tiangolo/fastapi/pull/4053) by [@​luccasmmg](https://togithub.com/luccasmmg). - 🌐 Add Russian translation for `docs/ru/docs/alternatives.md`. PR [#​5994](https://togithub.com/tiangolo/fastapi/pull/5994) by [@​Xewus](https://togithub.com/Xewus). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/extra-models.md`. PR [#​5912](https://togithub.com/tiangolo/fastapi/pull/5912) by [@​LorhanSohaky](https://togithub.com/LorhanSohaky). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/path-operation-configuration.md`. PR [#​5936](https://togithub.com/tiangolo/fastapi/pull/5936) by [@​LorhanSohaky](https://togithub.com/LorhanSohaky). - 🌐 Add Russian translation for `docs/ru/docs/contributing.md`. PR [#​6002](https://togithub.com/tiangolo/fastapi/pull/6002) by [@​stigsanek](https://togithub.com/stigsanek). - 🌐 Add Korean translation for `docs/tutorial/dependencies/classes-as-dependencies.md`. PR [#​9176](https://togithub.com/tiangolo/fastapi/pull/9176) by [@​sehwan505](https://togithub.com/sehwan505). - 🌐 Add Russian translation for `docs/ru/docs/project-generation.md`. PR [#​9243](https://togithub.com/tiangolo/fastapi/pull/9243) by [@​Xewus](https://togithub.com/Xewus). - 🌐 Add French translation for `docs/fr/docs/index.md`. PR [#​9265](https://togithub.com/tiangolo/fastapi/pull/9265) by [@​frabc](https://togithub.com/frabc). - 🌐 Add Russian translation for `docs/ru/docs/tutorial/query-params-str-validations.md`. PR [#​9267](https://togithub.com/tiangolo/fastapi/pull/9267) by [@​dedkot01](https://togithub.com/dedkot01). - 🌐 Add Russian translation for `docs/ru/docs/benchmarks.md`. PR [#​9271](https://togithub.com/tiangolo/fastapi/pull/9271) by [@​Xewus](https://togithub.com/Xewus). ##### Internal - 🔧 Update sponsors: remove Jina. PR [#​9388](https://togithub.com/tiangolo/fastapi/pull/9388) by [@​tiangolo](https://togithub.com/tiangolo). - 🔧 Update sponsors, add databento, remove Ines's course and StriveWorks. PR [#​9351](https://togithub.com/tiangolo/fastapi/pull/9351) by [@​tiangolo](https://togithub.com/tiangolo). ### [`v0.95.0`](https://togithub.com/tiangolo/fastapi/releases/tag/0.95.0) [Compare Source](https://togithub.com/tiangolo/fastapi/compare/0.94.1...0.95.0) ##### Highlights This release adds support for dependencies and parameters using `Annotated` and recommends its usage. ✨ This has **several benefits**, one of the main ones is that now the parameters of your functions with `Annotated` would **not be affected** at all. If you call those functions in **other places in your code**, the actual **default values** will be kept, your editor will help you notice missing **required arguments**, Python will require you to pass required arguments at **runtime**, you will be able to **use the same functions** for different things and with different libraries (e.g. **Typer** will soon support `Annotated` too, then you could use the same function for an API and a CLI), etc. Because `Annotated` is **standard Python**, you still get all the **benefits** from editors and tools, like **autocompletion**, **inline errors**, etc. One of the **biggest benefits** is that now you can create `Annotated` dependencies that are then shared by multiple *path operation functions*, this will allow you to **reduce** a lot of **code duplication** in your codebase, while keeping all the support from editors and tools. For example, you could have code like this: ```Python def get_current_user(token: str): ### authenticate user return User() @​app.get("/items/") def read_items(user: User = Depends(get_current_user)): ... @​app.post("/items/") def create_item(*, user: User = Depends(get_current_user), item: Item): ... @​app.get("/items/{item_id}") def read_item(*, user: User = Depends(get_current_user), item_id: int): ... @​app.delete("/items/{item_id}") def delete_item(*, user: User = Depends(get_current_user), item_id: int): ... ``` There's a bit of code duplication for the dependency: ```Python user: User = Depends(get_current_user) ``` ...the bigger the codebase, the more noticeable it is. Now you can create an annotated dependency once, like this: ```Python CurrentUser = Annotated[User, Depends(get_current_user)] ``` And then you can reuse this `Annotated` dependency: ```Python CurrentUser = Annotated[User, Depends(get_current_user)] @​app.get("/items/") def read_items(user: CurrentUser): ... @​app.post("/items/") def create_item(user: CurrentUser, item: Item): ... @​app.get("/items/{item_id}") def read_item(user: CurrentUser, item_id: int): ... @​app.delete("/items/{item_id}") def delete_item(user: CurrentUser, item_id: int): ... ``` ...and `CurrentUser` has all the typing information as `User`, so your editor will work as expected (autocompletion and everything), and **FastAPI** will be able to understand the dependency defined in `Annotated`. 😎 Roughly **all the docs** have been rewritten to use `Annotated` as the main way to declare **parameters** and **dependencies**. All the **examples** in the docs now include a version with `Annotated` and a version without it, for each of the specific Python versions (when there are small differences/improvements in more recent versions). There were around 23K new lines added between docs, examples, and tests. 🚀 The key updated docs are: - Python Types Intro: - [Type Hints with Metadata Annotations](https://fastapi.tiangolo.com/python-types/#type-hints-with-metadata-annotations). - Tutorial: - [Query Parameters and String Validations - Additional validation](https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#additional-validation) - [Advantages of `Annotated`](https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#advantages-of-annotated) - [Path Parameters and Numeric Validations - Order the parameters as you need, tricks](https://fastapi.tiangolo.com/tutorial/path-params-numeric-validations/#order-the-parameters-as-you-need-tricks) - [Better with `Annotated`](https://fastapi.tiangolo.com/tutorial/path-params-numeric-validations/#better-with-annotated) - [Dependencies - First Steps - Share `Annotated` dependencies](https://fastapi.tiangolo.com/tutorial/dependencies/#share-annotated-dependencies) Special thanks to [@​nzig](https://togithub.com/nzig) for the core implementation and to [@​adriangb](https://togithub.com/adriangb) for the inspiration and idea with [Xpresso](https://togithub.com/adriangb/xpresso)! 🚀 ##### Features - ✨Add support for PEP-593 `Annotated` for specifying dependencies and parameters. PR [#​4871](https://togithub.com/tiangolo/fastapi/pull/4871) by [@​nzig](https://togithub.com/nzig). ##### Docs - 📝 Tweak tip recommending `Annotated` in docs. PR [#​9270](https://togithub.com/tiangolo/fastapi/pull/9270) by [@​tiangolo](https://togithub.com/tiangolo). - 📝 Update order of examples, latest Python version first, and simplify version tab names. PR [#​9269](https://togithub.com/tiangolo/fastapi/pull/9269) by [@​tiangolo](https://togithub.com/tiangolo). - 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests. PR [#​9268](https://togithub.com/tiangolo/fastapi/pull/9268) by [@​tiangolo](https://togithub.com/tiangolo). ### [`v0.94.1`](https://togithub.com/tiangolo/fastapi/releases/tag/0.94.1) [Compare Source](https://togithub.com/tiangolo/fastapi/compare/0.94.

Configuration

📅 Schedule: Branch creation - "every weekend" in timezone America/Montreal, Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

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



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