Hey all,
We’ve released changes to createWorklet() and addModule() as of M130, starting Tuesday October 15th.
If you’re already using createWorklet() and using the script origin as the worklet's data partition origin, you’ll need to set the “dataOrigin” as below to ensure compatibility:
sharedStorage.createWorklet(scriptUrl, {dataOrigin: "script-origin"});
For developers currently using the addModule() function, we’ve updated this to allow cross-origin scripts to be passed in which should not cause any breakage to current uses of addModule(). As createWorklet() allows the creation of a cross-origin data partition and the creation of multiple worklets, we recommend you use createWorklet() over addModule().