-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove deprecated APIs #5707
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
Conversation
🦋 Changeset detectedLatest 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 |
bholmesdev
left a comment
There was a problem hiding this 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!
aFuzzyBear
left a comment
There was a problem hiding this 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[]) { |
There was a problem hiding this comment.
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
| site, | ||
| site: site ? new URL(site) : undefined, | ||
| generator: `Astro v${ASTRO_VERSION}`, | ||
| fetchContent: createDeprecatedFetchContentFn(), |
There was a problem hiding this comment.
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...
|
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 |
|
@aFuzzyBear we just merged a fix! Needs a rebase and we're golden 🐻 |
delucis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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
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
* Remove deprecated Astro globals * Remove deprecated hook param * Fix test * Add changeset * Add TODO
* Remove deprecated Astro globals * Remove deprecated hook param * Fix test * Add changeset * Add TODO
* Remove deprecated Astro globals * Remove deprecated hook param * Fix test * Add changeset * Add TODO
* Remove deprecated Astro globals * Remove deprecated hook param * Fix test * Add changeset * Add TODO
* Remove deprecated Astro globals * Remove deprecated hook param * Fix test * Add changeset * Add TODO
Changes
Astro.resolve,Astro.fetchContent, andAstro.canonicalURL.buildConfigoption parameter from integrationastro:build:starthookThe changesets have more information.
Testing
Existing tests should pass (made some tweaks to the old APIs)
Docs
Needs a review of the changeset description.