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

refactor: rename "config" file to "virtual" #10638

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

bholmesdev
Copy link
Contributor

Changes

The runtime/config file has slowly evolved from holding the config helper (defineDb) to holding all static exports in the virtual module (sql, NOW, etc). Rename to runtime/virtual for clarity.

Testing

pnpm pack and install in another project to ensure types still work.

Docs

Copy link

changeset-bot bot commented Apr 1, 2024

🦋 Changeset detected

Latest commit: 4cf23fe

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

@@ -0,0 +1,5 @@
---
"@astrojs/db": minor
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made minor since this renames an exports entry to runtime/virtual.js. This export is undocumented and is only used by Astro DB internally (not Astro core). Just being extra cautious with versioning.

@bholmesdev bholmesdev merged commit f395ebc into main Apr 2, 2024
13 checks passed
@bholmesdev bholmesdev deleted the refactor/config-to-virtual branch April 2, 2024 22:13
@astrobot-houston astrobot-houston mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants