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

Node built-in modules support for Deno adapter #7288

Merged
merged 3 commits into from
Jun 15, 2023

Conversation

lilnasy
Copy link
Contributor

@lilnasy lilnasy commented Jun 3, 2023

Changes

It seems to be a use case that's receiving more and more interest. Deno can leverage built-in node modules, but it's blocked by an overly restrictive configuration set by the adapter.

Testing

nodecompat.astro

Docs

Not a user facing change, though a note somewhere could be useful.

@changeset-bot
Copy link

changeset-bot bot commented Jun 3, 2023

🦋 Changeset detected

Latest commit: b46ee61

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: integration Related to any renderer integration (scope) label Jun 3, 2023
@lilnasy lilnasy force-pushed the node-compat-deno branch 2 times, most recently from 6bfe244 to 044f9d6 Compare June 7, 2023 15:55
@github-actions github-actions bot added the 🚨 action Modifies GitHub Actions label Jun 7, 2023
@lilnasy lilnasy force-pushed the node-compat-deno branch 3 times, most recently from 7ee3d9c to b46ee61 Compare June 7, 2023 18:21
@lilnasy lilnasy marked this pull request as ready for review June 7, 2023 19:39
Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

This looks like a great change and the code is straightforward!

I'm definitely on board with this but would love another review before merging.

@lilnasy
Copy link
Contributor Author

lilnasy commented Jun 8, 2023

This looks like a great change and the code is straightforward!

I'm definitely on board with this but would love another review before merging.

Yeah, that sounds good.

@lilnasy
Copy link
Contributor Author

lilnasy commented Jun 8, 2023

I would have liked to include an npm library that uses a supported node built-in module, but couldn't find one that's appropriate for CI.

@matthewp matthewp merged commit d67ae84 into withastro:main Jun 15, 2023
13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Jun 15, 2023
@lilnasy lilnasy deleted the node-compat-deno branch June 16, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 action Modifies GitHub Actions pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants