Skip to content

Cleanup internal breaking changes#5724

Merged
matthewp merged 5 commits intomainfrom
breaking-cleanup
Jan 3, 2023
Merged

Cleanup internal breaking changes#5724
matthewp merged 5 commits intomainfrom
breaking-cleanup

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented Jan 3, 2023

Changes

  • Remove outdated Vue info log about Volar support.
  • Remove toString support for RenderTemplateResult.
  • Refactor Astro.glob with template strings usage

Testing

Existing test should passed.

Docs

I'm sending a docs PR to remove https://docs.astro.build/en/guides/typescript/#vue-components-are-mistakenly-typed-by-the-typesreact-package-when-installed as it's fixed in Volar.

withastro/docs#2276

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 3, 2023

🦋 Changeset detected

Latest commit: 76f163b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the pkg: astro Related to the core `astro` package (scope) label Jan 3, 2023
@matthewp matthewp added the semver: major Change triggers a `major` release label Jan 3, 2023
@bluwy bluwy marked this pull request as ready for review January 3, 2023 15:02
if (firstArg.startsWith('`') && firstArg.endsWith('`') && !firstArg.includes('${')) {
firstArg = JSON.stringify(firstArg.slice(1, -1));
}
const firstArg = code.slice(firstArgStart, firstArgEnd);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The intent here was to remove support for:

Astro.glob(`./foo/*.md`) // using template literals

which transforms to import.meta.glob, but it looks like Vite 4 now supports template literal too so this is no longer a breaking change to note in the changeset.

@matthewp matthewp merged commit 16c7d0b into main Jan 3, 2023
@matthewp matthewp deleted the breaking-cleanup branch January 3, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope) semver: major Change triggers a `major` release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants