Skip to content

Conversation

@ijlee2
Copy link
Owner

@ijlee2 ijlee2 commented Dec 29, 2025

Warning

content-tag@4.1.0 introduced soft-breaking changes to @codemod-utils/ast-template-tag's toEcma() and updateJavaScript(). The changes since 4.0.0 affect <template> tags in a class body more.

It's expected that end-users of a codemod have prettier to restore format.

@ijlee2 ijlee2 added breaking Breaking change will result in a new major version enhance: dependency Issue asks for a new or updated dependency labels Dec 29, 2025
@ijlee2 ijlee2 force-pushed the update-content-tag branch from 897c8bb to 381d5c1 Compare December 29, 2025 10:37
@ijlee2 ijlee2 force-pushed the update-content-tag branch from 381d5c1 to cfcc57d Compare December 29, 2025 10:41
@ijlee2 ijlee2 marked this pull request as ready for review December 29, 2025 10:41
`</div>`,
`\`, {`,
` template_fd9b2463e5f141cfb5666b64daa1f11a(\`<div class={{styles.container}}>`,
`Hello world!`,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Wrong indentation (should be 2 instead of 0).

` static{`,
` template_fd9b2463e5f141cfb5666b64daa1f11a(\``,
`<UserName @user={{@user}} />`,
` template_fd9b2463e5f141cfb5666b64daa1f11a(\` <UserName @user={{@user}} />`,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Incorrect trimming.

``,
`<div class={{styles.container}} data-test-field="timestamp">`,
` {{this.timestamp}}`,
`{{this.timestamp}}`,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Wrong indentation (ideally 2 instead of 0).

` {{@label}}`,
` template_fd9b2463e5f141cfb5666b64daa1f11a(\`<UiFormField @errorMessage={{this.errorMessage}} @isWide={{@isWide}}>`,
`<:label as |l|>`,
`<label data-test-label for={{l.inputId}}>`,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Wrong indentation (should be 2 instead of 0).

Comment on lines +290 to +296
` {{@label}}`,
``,
` {{#if @isRequired}}`,
` <span aria-hidden="true">`,
` *`,
` </span>`,
` {{/if}}`,
` </label>`,
` {{#if @isRequired}}`,
` <span aria-hidden="true">`,
` *`,
` </span>`,
` {{/if}}`,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Idempotency hard to guarantee with content-tag@4.1.0 (it seems to continue to indent code to the left).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking change will result in a new major version enhance: dependency Issue asks for a new or updated dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant