-
Notifications
You must be signed in to change notification settings - Fork 405
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(storage-plugin): expose storage plugin internals privately through subpackage #2052
Conversation
…h subpackage This commit exposes some of the storage plugin internals through a subpackage, following a similar approach to how router plugin internals are exposed. These internals are necessary to expose if someone wishes to extend the storage engine's behavior. For example, to check for the default state key `@@STATE` or to use helper functions like extracting string keys.
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 8435b01. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 3 targetsSent with 💌 from NxCloud. |
BundleMon (Integration Projects)Unchanged files (1)
Total files change -7B -0.01% Final result: ✅ View report in BundleMon website ➡️ |
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.
Small API spelling tweak
@@ -23,9 +23,9 @@ export type StorageKey = string | StateClass | StateToken<any> | KeyWithExplicit | |||
|
|||
/** This symbol is used to store the metadata on state classes. */ | |||
const META_OPTIONS_KEY = 'NGXS_OPTIONS_META'; | |||
export function exctractStringKey(storageKey: StorageKey): string { | |||
export function ɵexctractStringKey(storageKey: StorageKey): 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.
Let's fix the spelling of this API before we expose it.
export function ɵexctractStringKey(storageKey: StorageKey): string { | |
export function ɵextractStringKey(storageKey: StorageKey): string { |
Code Climate has analyzed commit 8435b01 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 95.9% (0.5% change). View more on Code Climate. |
This commit exposes some of the storage plugin internals through a subpackage, following a similar approach to how router plugin internals are exposed. These internals are necessary to expose if someone wishes to extend the storage engine's behavior. For example, to check for the default state key
@@STATE
or to use helper functions like extracting string keys.