The api is now completely options based and uses named parameters to be more 
extensible. It's now:

openpgp.initWorker({ path:'openpgp.worker.js' });

I've yet to regenerate to docs. But the openpgp.js file is easy to parse:

https://github.com/openpgpjs/openpgpjs/blob/v2.x/src/openpgp.js#L45-L335

> Am 11.02.2016 um 02:40 schrieb Barry de Graaff <[email protected]>:
> 
> Hello Tankred,
> 
> Thanks for the heads-up. So far looks very promising!
> 
> One question, how must one initialize the worker on the v2.0.0-dev?
> 
> I used to:
>  openpgp.initWorker('openpgp.worker.js');
> 
> This now throws an error:
> Uncaught Error: Unhandled error in openpgp worker: undefined 
> (undefined:undefined)AsyncProxy.worker.onerror @ openpgp.js:19158
> 
> Maybe add that to the Readme?
> 
> Thanks,
> 
> Barry
> https://github.com/Zimbra-Community/pgp-zimlet
> 
> 
> 
> From: [email protected]
> Date: Wed, 10 Feb 2016 20:55:02 +0700
> To: [email protected]
> Subject: [openpgpjs] OpenPGP.js v2.0.0 Test Release
> 
> Hey everyone,
>  
> Version 2.0.0 of OpenPGP.js is almost ready for release and it has a brand 
> new api. I’d love your feedback and created a test release so you can play 
> around before it’s finalized. You can read the installation instructions and 
> all the details on the release here:
>  
> https://github.com/openpgpjs/openpgpjs/pull/406
>  
> Thanks,
> Tankred
> 
> _______________________________________________ http://openpgpjs.org 
> Subscribe/unsubscribe: http://list.openpgpjs.org
> _______________________________________________
> 
> http://openpgpjs.org
> Subscribe/unsubscribe: http://list.openpgpjs.org
_______________________________________________

http://openpgpjs.org
Subscribe/unsubscribe: http://list.openpgpjs.org

Reply via email to