Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup internal breaking changes #5724

Merged
merged 5 commits into from
Jan 3, 2023
Merged

Cleanup internal breaking changes #5724

merged 5 commits into from
Jan 3, 2023

Conversation

bluwy
Copy link
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

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
let firstArg = code.slice(firstArgStart, firstArgEnd);
// If argument is template literal, try convert to a normal string.
// This is needed for compat with previous recast strategy.
// TODO: Remove in Astro 2.0
if (firstArg.startsWith('`') && firstArg.endsWith('`') && !firstArg.includes('${')) {
firstArg = JSON.stringify(firstArg.slice(1, -1));
}
const firstArg = code.slice(firstArgStart, firstArgEnd);
Copy link
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