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(storage-plugin): expose storage plugin internals privately through subpackage #2052

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

arturovt
Copy link
Member

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.

…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
Copy link

nx-cloud bot commented Sep 15, 2023

☁️ Nx Cloud Report

CI 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 targets

Sent with 💌 from NxCloud.

@bundlemon
Copy link

bundlemon bot commented Sep 15, 2023

BundleMon (Integration Projects)

Unchanged files (1)
Status Path Size Limits
Main bundles(Gzip)
hello-world-ng15/dist-integration/main.(hash)
.js
63.95KB +1%

Total files change -7B -0.01%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Copy link
Member

@markwhitfeld markwhitfeld left a 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 {
Copy link
Member

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.

Suggested change
export function ɵexctractStringKey(storageKey: StorageKey): string {
export function ɵextractStringKey(storageKey: StorageKey): string {

@codeclimate
Copy link

codeclimate bot commented Sep 15, 2023

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.

@arturovt arturovt merged commit 07536db into master Sep 15, 2023
@arturovt arturovt deleted the fix/expose-storage-internals branch September 15, 2023 13:05
@markwhitfeld markwhitfeld added this to the v.18.0.0 milestone Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants