endojs / endo

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

fix(bundle-source): Backward-compatibility for cache pid argument #1760

Closed kriskowal closed 1 year ago

kriskowal commented 1 year ago

In the most recent Endo release, I added a required pid argument to the bundle source cache maker, which is a breaking change. This change reverses that mistake by making the argument optional and using a large crypto-random number instead. It transpires that this new, default behavior is better than passing the pid for a process with more than one cache.