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

fix: use dynamic imports for plugins construction #67

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

crystall-bitquill
Copy link
Contributor

@crystall-bitquill crystall-bitquill commented Jun 6, 2024

Summary

Description

Users will only have the dependencies of the plugins they require. This change adds separation between plugins and their factories with dynamic imports in order to prevent errors from occurring when a user does not have a dependency required by a plugin they are not using. For example, if not using the AWS Secrets Manager plugin, the @aws-sdk/client-secrets-manager package should not be required.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@crystall-bitquill crystall-bitquill added the ready for review Pull requests that are ready to be reviewed label Jun 11, 2024
@@ -0,0 +1,34 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should change the name to read_write_splitting_plugin_factory.ts and read_write_splitting_plugin.ts to match the other file names

Copy link
Contributor

@joyc-bq joyc-bq left a comment

Choose a reason for hiding this comment

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

approved with one small comment

@crystall-bitquill crystall-bitquill force-pushed the optional-dependencies branch 4 times, most recently from 320643c to 2a41a2f Compare July 2, 2024 17:30
@crystall-bitquill crystall-bitquill merged commit 851bc07 into main Jul 2, 2024
2 checks passed
@crystall-bitquill crystall-bitquill deleted the optional-dependencies branch July 2, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Pull requests that are ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants