endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
804 stars 71 forks source link

Agoric SDK integration fixes #1889

Closed kriskowal closed 9 months ago

kriskowal commented 9 months ago

refs: https://github.com/Agoric/agoric-sdk/pull/8514

Description

Various changes to Endo are necessary to fix integration with Agoric SDK such that Endo packages can be upgraded there.

The largest necessary change is that we must generate the types for each package based on the generated types of all dependencies. To do this, we replace prepack and postpack scripts with build:types and clean:types, then drive them from the top level before publishing.

Then, certain ambient types must be explicitly imported and the .js extension is required throughout.

We also needed to relax some types in Exo and Patterns.

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Upgrade Considerations

kriskowal commented 9 months ago

Tagged @michaelfig for the review so at least you know about the fix for publish. We should do the same in SDK to ensure dapps get correct types from npm.