Skip to content

fix(deps): update dependency prettier-plugin-astro to v0.14.1 - abandoned#182

Open
renovate[bot] wants to merge 2 commits into
mainfrom
renovate/prettier-plugin-astro-0.x-lockfile
Open

fix(deps): update dependency prettier-plugin-astro to v0.14.1 - abandoned#182
renovate[bot] wants to merge 2 commits into
mainfrom
renovate/prettier-plugin-astro-0.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Aug 29, 2024

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier-plugin-astro 0.14.0 -> 0.14.1 age adoption passing confidence

Release Notes

withastro/prettier-plugin-astro (prettier-plugin-astro)

v0.14.1

Compare Source

Patch Changes
  • 7282bcb: Fixes an issue where style and script tags would sometimes get moved to other tags

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

This PR was generated by Mend Renovate. View the repository job log.

Summary by CodeRabbit

  • New Features

    • Expanded input type acceptance for several configuration functions, allowing for broader usage.
  • Bug Fixes

    • Adjusted return types of various functions to a more generic promise type, enhancing flexibility but potentially impacting type safety.
  • Documentation

    • Updated type definitions to simplify promise handling and improve clarity in function signatures.
  • Refactor

    • Generalized type constraints across multiple configuration functions to improve usability.

@renovate renovate Bot added the renovate label Aug 29, 2024
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@coderabbitai

coderabbitai Bot commented Aug 29, 2024

Copy link
Copy Markdown

Walkthrough

The changes involve modifications to function signatures and type definitions across various files in the eslint-config and prettier-config packages. Key alterations include broadening return types from specific promises resolving to arrays of TypedFlatConfigItem to more generic promises, as well as adjustments to input parameter types. These updates simplify type handling but may reduce type safety and specificity in the codebase.

Changes

Files Change Summary
packages/eslint-config/scripts/typegen.ts Changed combine function's parameter type to accept broader inputs and simplified return type from Promise<any[]> to Promise.
packages/eslint-config/src/configs/*.ts (formatting, html, javascript, jsonc, mdx, solid, test, toml, typescript, vue, yaml) Modified return types from Promise<TypedFlatConfigItem[]> to Promise, reducing specificity of resolved values.
packages/eslint-config/src/factory.ts Altered so1ve function's parameter type to accept broader inputs and simplified ResolvedOptions type definition.
packages/eslint-config/src/types.ts Changed MaybePromise<T> type to MaybePromise and modified TypedFlatConfigItem and parserOptions types for broader acceptance.
packages/eslint-config/src/utils.ts Simplified parameter types for renameRules and return type for interopDefault.
packages/prettier-config/src/index.ts Adjusted type assertion for exported object from Record<string, unknown> to Record.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Config
    User->>Config: Call function with options
    Config->>Config: Process options
    Config-->>User: Return Promise
Loading

🐇
In the garden where bunnies play,
Changes bloom like flowers in May.
Types are broader, paths are clear,
Hopping forward, there's naught to fear!
With every leap, we celebrate,
A brighter code, oh, isn't it great? 🌼✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 20

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3370e37 and e364e0f.

Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing (16)
  • packages/eslint-config/scripts/typegen.ts (1 hunks)
  • packages/eslint-config/src/configs/formatting.ts (2 hunks)
  • packages/eslint-config/src/configs/html.ts (1 hunks)
  • packages/eslint-config/src/configs/javascript.ts (1 hunks)
  • packages/eslint-config/src/configs/jsonc.ts (1 hunks)
  • packages/eslint-config/src/configs/mdx.ts (1 hunks)
  • packages/eslint-config/src/configs/solid.ts (1 hunks)
  • packages/eslint-config/src/configs/test.ts (1 hunks)
  • packages/eslint-config/src/configs/toml.ts (1 hunks)
  • packages/eslint-config/src/configs/typescript.ts (1 hunks)
  • packages/eslint-config/src/configs/vue.ts (1 hunks)
  • packages/eslint-config/src/configs/yaml.ts (1 hunks)
  • packages/eslint-config/src/factory.ts (3 hunks)
  • packages/eslint-config/src/types.ts (3 hunks)
  • packages/eslint-config/src/utils.ts (2 hunks)
  • packages/prettier-config/src/index.ts (1 hunks)
Additional comments not posted (1)
packages/eslint-config/src/configs/javascript.ts (1)

15-17: Verify the correctness of the return type change.

The return type has been altered from Promise<TypedFlatConfigItem[]> to Promise. Ensure that this change does not affect the downstream handling of the function's output.

Run the following script to verify the function usage:

export async function toml({ overrides }: OptionsOverrides = {}): Promise<
TypedFlatConfigItem[]
> {
export async function toml({ overrides }: OptionsOverrides = {}): Promise {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert the return type change.

The function still returns an array of configuration objects, so the original return type Promise<TypedFlatConfigItem[]> should be retained to maintain type safety and clarity.

Apply this diff to revert the return type change:

-export async function toml({ overrides }: OptionsOverrides = {}): Promise {
+export async function toml({ overrides }: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export async function toml({ overrides }: OptionsOverrides = {}): Promise {
export async function toml({ overrides }: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {

}: OptionsHasTypeScript & OptionsOverrides = {}): Promise<
TypedFlatConfigItem[]
> {
}: OptionsHasTypeScript & OptionsOverrides = {}): Promise {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert the return type change.

The function still returns an array of configuration objects, so the original return type Promise<TypedFlatConfigItem[]> should be retained to maintain type safety and clarity.

Apply this diff to revert the return type change:

-export async function solid({ overrides, typescript }: OptionsHasTypeScript & OptionsOverrides = {}): Promise {
+export async function solid({ overrides, typescript }: OptionsHasTypeScript & OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
}: OptionsHasTypeScript & OptionsOverrides = {}): Promise {
export async function solid({ overrides, typescript }: OptionsHasTypeScript & OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {

export async function yaml({ overrides }: OptionsOverrides = {}): Promise<
TypedFlatConfigItem[]
> {
export async function yaml({ overrides }: OptionsOverrides = {}): Promise {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert the return type change.

The function still returns an array of configuration objects, so the original return type Promise<TypedFlatConfigItem[]> should be retained to maintain type safety and clarity.

Apply this diff to revert the return type change:

-export async function yaml({ overrides }: OptionsOverrides = {}): Promise {
+export async function yaml({ overrides }: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export async function yaml({ overrides }: OptionsOverrides = {}): Promise {
export async function yaml({ overrides }: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {

import { interopDefault } from "../utils";

export async function jsonc(): Promise<TypedFlatConfigItem[]> {
export async function jsonc(): Promise {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert to the more specific return type for better type safety.

The original return type Promise<TypedFlatConfigItem[]> provided more information about the structure of the returned data, which is beneficial for consumers of the function. Consider reverting to the original return type for better type safety and specificity.

Apply this diff to revert the return type:

-export async function jsonc(): Promise {
+export async function jsonc(): Promise<TypedFlatConfigItem[]> {
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export async function jsonc(): Promise {
export async function jsonc(): Promise<TypedFlatConfigItem[]> {

rules: Record<string, any>,
map: Record<string, string>,
) =>
export const renameRules = (rules: Record, map: Record) =>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert to the more specific parameter types for better type safety.

The original parameter types Record<string, any> and Record<string, string> provided more information about the expected structure of the input data, which is beneficial for consumers of the function. Consider reverting to the original parameter types for better type safety and specificity.

Apply this diff to revert the parameter types:

-export const renameRules = (rules: Record, map: Record) =>
+export const renameRules = (rules: Record<string, any>, map: Record<string, string>) =>
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export const renameRules = (rules: Record, map: Record) =>
export const renameRules = (rules: Record<string, any>, map: Record<string, string>) =>

}

export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
export type ResolvedOptions<T> = T extends boolean ? never : NonNullable;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert the type change to maintain type specificity.

The type ResolvedOptions<T> has been changed to ResolvedOptions. This removes the generic type parameter, reducing type specificity and potentially impacting type resolution in contexts where ResolvedOptions is utilized. Revert the change to maintain type specificity.

-export type ResolvedOptions<T> = T extends boolean ? never : NonNullable;
+export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;

): ResolvedOptions =>
): ResolvedOptions<Options[K]> =>

Also applies to: 210-210

},
},
] satisfies (MaybeArray<TypedFlatConfigItem> | boolean)[]
] satisfies (MaybeArray | boolean)[]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintain type specificity in type assertion.

Changing the type assertion from (MaybeArray<TypedFlatConfigItem> | boolean)[] to (MaybeArray | boolean)[] reduces type specificity and may lead to less predictable behavior in type-checking scenarios. Consider maintaining the original type assertion for better type safety.

Apply this diff to maintain type specificity:

-] satisfies (MaybeArray | boolean)[]
+] satisfies (MaybeArray<TypedFlatConfigItem> | boolean)[]
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
] satisfies (MaybeArray | boolean)[]
] satisfies (MaybeArray<TypedFlatConfigItem> | boolean)[]

export async function formatting(
options?: Options,
): Promise<TypedFlatConfigItem[]> {
export async function formatting(options?: Options): Promise {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintain type specificity in the function return type.

Changing the return type from Promise<TypedFlatConfigItem[]> to Promise reduces type specificity and may lead to less predictable behavior in type-checking scenarios. Consider maintaining the original return type for better type safety.

Apply this diff to maintain type specificity:

-export async function formatting(options?: Options): Promise {
+export async function formatting(options?: Options): Promise<TypedFlatConfigItem[]> {
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export async function formatting(options?: Options): Promise {
export async function formatting(options?: Options): Promise<TypedFlatConfigItem[]> {

}: OptionsHasTypeScript & OptionsOverrides = {}): Promise<
TypedFlatConfigItem[]
> {
}: OptionsHasTypeScript & OptionsOverrides = {}): Promise {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintain type specificity in the function return type.

Changing the return type from Promise<TypedFlatConfigItem[]> to Promise reduces type specificity and may lead to less predictable behavior in type-checking scenarios. Consider maintaining the original return type for better type safety.

Apply this diff to maintain type specificity:

}: OptionsHasTypeScript & OptionsOverrides = {}): Promise {
+}: OptionsHasTypeScript & OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {

Committable suggestion was skipped due to low confidence.

}: OptionsTypeScriptParserOptions &
OptionsComponentExts &
OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {
OptionsOverrides = {}): Promise {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintain type specificity in the function return type.

Changing the return type from Promise<TypedFlatConfigItem[]> to Promise reduces type specificity and may lead to less predictable behavior in type-checking scenarios. Consider maintaining the original return type for better type safety.

Apply this diff to maintain type specificity:

	OptionsOverrides = {}): Promise {
+	OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> {

Committable suggestion was skipped due to low confidence.

@renovate

renovate Bot commented Aug 29, 2024

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@renovate

renovate Bot commented Jun 15, 2025

Copy link
Copy Markdown
Contributor Author

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

@renovate renovate Bot changed the title fix(deps): update dependency prettier-plugin-astro to v0.14.1 fix(deps): update dependency prettier-plugin-astro to v0.14.1 - abandoned Jun 15, 2025
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.

0 participants