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

refactor: use @agoric/vow/vat.js #9329

Merged
merged 2 commits into from
May 7, 2024
Merged

refactor: use @agoric/vow/vat.js #9329

merged 2 commits into from
May 7, 2024

Conversation

michaelfig
Copy link
Member

@michaelfig michaelfig commented May 7, 2024

refs: #9321

Description

Update the preferred way of using SwingSet vat-compatible vows to import @agoric/vow/vat.js.

Also, as a drive-by in @agoric/vow, avoid import('./file.js').Type in favour of the @import {Type} from './file.js' Typescript 5.5 syntax.

Security Considerations

Doesn't change any code semantics.

Scaling Considerations

n/a

Documentation Considerations

@agoric/vat-data/vow.js is still available, as an alias for @agoric/vow/vat.js.

Testing Considerations

n/a

Upgrade Considerations

No change in code functionality.

@michaelfig michaelfig self-assigned this May 7, 2024
@michaelfig michaelfig added the hygiene Tidying up around the house label May 7, 2024
@michaelfig michaelfig requested a review from erights May 7, 2024 00:47
Base automatically changed from mfig-9231-zone-watch-promise to master May 7, 2024 01:13
Copy link

cloudflare-workers-and-pages bot commented May 7, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: d0189b5
Status: ✅  Deploy successful!
Preview URL: https://447145b9.agoric-sdk.pages.dev
Branch Preview URL: https://mfig-use-vow-vat.agoric-sdk.pages.dev

View logs

Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @michaelfig , this is still Draft but already LGTM. What else is needed before this is ready for review?

@michaelfig michaelfig marked this pull request as ready for review May 7, 2024 20:43
@michaelfig
Copy link
Member Author

Hi @michaelfig , this is still Draft but already LGTM. What else is needed before this is ready for review?

I usually wait to see if CI passes before I R4R it. I just wasn't paying attention: thanks for your review!

@michaelfig michaelfig added the automerge:no-update (expert!) Automatically merge without updates label May 7, 2024
@mergify mergify bot merged commit 727e4af into master May 7, 2024
78 of 79 checks passed
@mergify mergify bot deleted the mfig-use-vow-vat branch May 7, 2024 21:18
erights added a commit that referenced this pull request May 14, 2024
Staged on #9097

closes: #XXXX
refs: #9231 #9321 #9329 #9097

## Description

Now that `watchPromise` is abstracted over zones and vows make use of
that, we can simplify the test cases a lot.

Should be a pure refactor with no externally observable effect.

### Security Considerations

none
### Scaling Considerations

none
### Documentation Considerations

none
### Testing Considerations

tests simpler. Otherwise, none
### Upgrade Considerations

none
erights added a commit that referenced this pull request May 16, 2024
Staged on #9097

closes: #XXXX
refs: #9231 #9321 #9329 #9097

## Description

Now that `watchPromise` is abstracted over zones and vows make use of
that, we can simplify the test cases a lot.

Should be a pure refactor with no externally observable effect.

### Security Considerations

none
### Scaling Considerations

none
### Documentation Considerations

none
### Testing Considerations

tests simpler. Otherwise, none
### Upgrade Considerations

none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:no-update (expert!) Automatically merge without updates hygiene Tidying up around the house
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants