-
Notifications
You must be signed in to change notification settings - Fork 212
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
reduce package dependency cycles #6823
Conversation
batched-deliver.js uses ambient authority ( Can batched-deliver.js be fixed so it no longer needs ambient authority? Please? |
5598a34
to
49d9b11
Compare
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.
Looking good.
I would prefer that @agoric/vats/tools/...
be renamed to @agoric/internal/tools/...
instead of @agoric/internal/src/...
, but since we already talked about that, I'm willing to live with it.
@@ -20,7 +20,7 @@ import ( | |||
) | |||
|
|||
// Top-level paths for chain storage should remain synchronized with | |||
// packages/vats/src/chain-storage-paths.js | |||
// packages/agoric/internal/src/chain-storage-paths.js |
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.
// packages/agoric/internal/src/chain-storage-paths.js | |
// packages/internal/src/chain-storage-paths.js |
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.
good catch. I'll force push a fix for this and the other suggestions.
import { test } from '@agoric/swingset-vat/tools/prepare-test-env-ava.js'; | ||
import test from 'ava'; | ||
import '@endo/init'; |
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.
This isn't really the same semantics. Did you do this to be able to drop the devDependency on swingset?
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.
yep. the rest of it wasn't totally necessary.
It affects redactions but there's work scheduled to address that broadly endojs/endo#1235
@@ -106,7 +142,7 @@ const makeNullStorageNode = () => { | |||
* falling back to an inert object with the correct interface (but incomplete | |||
* behavior) when that is unavailable. | |||
* | |||
* @param {ERef<StorageNode?>} storageNodeRef | |||
* @param {import('@endo/eventual-send').ERef<StorageNode?>} storageNodeRef |
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.
* @param {import('@endo/eventual-send').ERef<StorageNode?>} storageNodeRef | |
* @param {import('@endo/far').ERef<StorageNode?>} storageNodeRef |
49d9b11
to
5a1eb15
Compare
Description
Progress on #4645
Cycles detected with
yarn lerna run build
. Graphs drawn withnpx lerna-dependency-graph --outputFormat=png
Before
12 cycles
After
8 cycles
Security Considerations
--
Scaling Considerations
--
Documentation Considerations
This breaks some exports, but ones that were unlikely to be used outside the repo.
Testing Considerations
CI