-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore: deprecate emitESMImage function
#13589
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
Conversation
🦋 Changeset detectedLatest commit: 1c237ff 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 |
CodSpeed Performance ReportMerging #13589 will not alter performanceComparing Summary
|
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.
Just wanted to jump in here quickly since there's the potential for this change to affect users and break their stuff. 😄 In that case I always recommend providing a bit more information, so here's an example of what could be helpful, for your consideration!
Co-authored-by: Sarah Rainsberger <[email protected]>
|
In what way is it broken? This is the function we use internally in lots of others place, not just in the markdoc plugin. If we're deprecating it we should update those usages too. |
The deprecation is for the users. We still need to use that function internally to block the memory leak, and unfortunately, we can't rename it or change the exporting strategy. The memory leak is currently blocked by the experimental flag passed to |
|
It'll show as deprecated for internal use too though, right? I think best is to re-export it from |
|
See if that's what you want: |
|
Yeah, that works. Might be worth adding a note saying to use |
|
@sarah11918 can you please revisit the changeset again? I changed the last sentence to address Matt's comment |
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]> Co-authored-by: ascorbic <[email protected]> Co-authored-by: sarah11918 <[email protected]>
Changes
Due to some mistake we've made, the utility function
emitESMImage- which is exposed as public API - is broken.To remedy the mistake, we will expose a new function to userland, which has a different signature (we removed the things we don't need).
I updated
@astrojs/mdxto use the new function.Testing
CI should stay green
Docs
I will send a PR to update the docs.
/cc @withastro/maintainers-docs for feedback!