-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compartment-mapper): Custom parser support (#2304)
Closes: #2303 ## Description This PR adds custom parser support as discussed in #2303. To support the feature: - A new prop `options` was added to the `PackagePolicy` type. - Parsers now optionally accept `compartmentDescriptor` objects, so that parsers can enforce policy ### Security Considerations See #2303 ### Scaling Considerations See #2303 ### Documentation Considerations - Add documentation for a new option `parsers` for e.g., `importLocation` - Add documentation for a new prop `options` in `PackagePolicy` ### Testing Considerations - [x] A round-trip test - [x] A round-trip test w/ policy enforcement - [x] Assert `options` is ignored by policy validator - [x] Assert custom parsers cannot override builtin parsers ### Compatibility Considerations None ### Upgrade Considerations - Update `NEWS.md` --------- Co-authored-by: naugtur <naugtur@gmail.com> Co-authored-by: Kris Kowal <kris@agoric.com>
- Loading branch information
1 parent
10edfa0
commit 43d867e
Showing
14 changed files
with
597 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.