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

Remove deprecated APIs #5707

Merged
merged 6 commits into from
Jan 3, 2023
Merged

Remove deprecated APIs #5707

merged 6 commits into from
Jan 3, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Dec 30, 2022

Changes

  • Remove Astro.resolve, Astro.fetchContent, and Astro.canonicalURL.
  • Remove buildConfig option parameter from integration astro:build:start hook

The changesets have more information.

Testing

Existing tests should pass (made some tweaks to the old APIs)

Docs

Needs a review of the changeset description.

@bluwy bluwy added the semver: major Change triggers a `major` release label Dec 30, 2022
@bluwy bluwy requested a review from a team as a code owner December 30, 2022 15:18
@changeset-bot
Copy link

changeset-bot bot commented Dec 30, 2022

🦋 Changeset detected

Latest commit: b27537d

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 pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) labels Dec 30, 2022
Copy link
Contributor

@bholmesdev bholmesdev left a comment

Choose a reason for hiding this comment

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

A couple questions before merging. Really deprappreciate this!

.changeset/two-geese-eat.md Show resolved Hide resolved
packages/astro/src/runtime/server/astro-global.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@aFuzzyBear aFuzzyBear left a comment

Choose a reason for hiding this comment

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

Its a sad PR this one, but needed, thank you for doing this @bluwy great bit of housekeeping 🧹

glob: createAstroGlobFn(),
// INVESTIGATE is there a use-case for multi args?
// TODO remove in 2.0
resolve(...segments: string[]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah Astro.resolve I mind when you came in, and then boom it was used everywhere, prior to the shift to esm.
RIP

generator: `Astro v${ASTRO_VERSION}`,
fetchContent: createDeprecatedFetchContentFn(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Astro.fetchContent another fan favorite, way before Astro.glob got better, this was the trick used on almost every Astro site <0.24.

RIP...

@aFuzzyBear
Copy link
Contributor

Could we look into the smoke test, Im not familiar with this part of the process, but having re-ran them its saying on the docs build an external dep is missing its exports 🤷‍♂️

@bholmesdev
Copy link
Contributor

@aFuzzyBear we just merged a fix! Needs a rebase and we're golden 🐻

Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

LGTM!

@matthewp matthewp merged commit 5eba34f into main Jan 3, 2023
@matthewp matthewp deleted the remove-deprecated-options branch January 3, 2023 19:06
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request Jul 29, 2024
It was deprecated but it has been removed in v2.0.0 (see withastro/astro#5707). I
think it should not be displayed in the reference anymore since we are
now at v4.12.1
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request Jul 29, 2024
It was deprecated but it has been removed in v2.0.0 (see withastro/astro#5707). I
think it should not be displayed in the reference anymore since we are
now at v4.12.1
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) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) semver: major Change triggers a `major` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants