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

feat(compartment-mapper): expose loadCompartmentForArchive #2189

Draft
wants to merge 1 commit into
base: boneskull/fix-readpowers-types
Choose a base branch
from

Conversation

boneskull
Copy link
Collaborator

Description

This extracts a function, loadCompartmentForArchive(), from digestLocation() in archive.js, and exposes it. This function returns archival-ready data structures, in addition to a record of the compartment renames which makeArchiveCompartmentMap() performs.

The intent is to leverage the module resolution performed by the function, which is reflected in its output. A consumer can use the information therein to perform additional operations on the tree (e.g., parse ASTs).

Upgrade Considerations

This is a backwards-compatible change

@boneskull
Copy link
Collaborator Author

boneskull commented Mar 28, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @boneskull and the rest of your teammates on Graphite Graphite

This extracts a function, `loadCompartmentForArchive()`, from `digestLocation()` in `archive.js`, and exposes it.  This function returns archival-ready data structures, in addition to a record of the compartment renames which `makeArchiveCompartmentMap()` performs.

The intent is to leverage the module resolution performed by the function, which is reflected in its output.  A consumer can use the information therein to perform additional operations on the tree (e.g., parse ASTs).

# Conflicts:
#	packages/compartment-mapper/src/types.js
@boneskull boneskull force-pushed the boneskull/load-compartment-for-archive branch from 7dfbd98 to 7834bec Compare April 1, 2024 19:51
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.

None yet

1 participant