<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/js/src/Message.js, branch wk/new-wait</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=wk%2Fnew-wait</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=wk%2Fnew-wait'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2018-10-18T04:28:51Z</updated>
<entry>
<title>doc: use https:// for www.gnu.org</title>
<updated>2018-10-18T04:28:51Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2018-10-18T03:56:27Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=2f12427e416a0a40bf680a421f9ed20340d5bb96'/>
<id>urn:sha1:2f12427e416a0a40bf680a421f9ed20340d5bb96</id>
<content type='text'>
--

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>js: documentation cleanup</title>
<updated>2018-09-05T16:46:28Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-09-05T16:46:28Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=1c618166fcd296b4e95f3a6ea9c415d3dca5ce0a'/>
<id>urn:sha1:1c618166fcd296b4e95f3a6ea9c415d3dca5ce0a</id>
<content type='text'>
--
</content>
</entry>
<entry>
<title>js: add decrypt result options</title>
<updated>2018-08-22T17:07:05Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-08-22T17:07:05Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=24a00058652233775cbe51446cba337b70cefdf1'/>
<id>urn:sha1:24a00058652233775cbe51446cba337b70cefdf1</id>
<content type='text'>
--

* As a decrypt result cannot be known beforehand, the decrypt operation
  may add an 'expect' property, taking either 'uint8' or 'base64',
  which will return the decrypted data in the appropiate formats.
  the return property 'format' will give a feedback on which option
  was taken.
  A test was added to reflect these changes.
</content>
</entry>
<entry>
<title>js: improve decryption performance</title>
<updated>2018-08-22T14:32:31Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-08-22T14:32:31Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=129fa919b935d97d995bc6b457c7f6984c06e825'/>
<id>urn:sha1:129fa919b935d97d995bc6b457c7f6984c06e825</id>
<content type='text'>
--
* src/Connection.js, src/Helpers.js: performance of decoding incoming
  base64 data was improved to about 4 times the speed by introducing
  two more efficient functions (thanks to rrenkert@intevation.de for
  finding and testing them)

* src/gpgmejs.js: Decrypted data will now return as Uint8Array, if the
  caller does not wish for a decoding. Decoding binary data will return
  invalid data, and a Uint8Array may be desired. This can be indicated
  by using the (new) 'binary' option in decrypt.

* src/Errors.js A new error in case this decoding fails

* src/Message.js, src/Connection.js: expected is change from base64
  to binary, to avoid confusion later on.
</content>
</entry>
<entry>
<title>js: throw errors in sync functions</title>
<updated>2018-08-22T10:18:55Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-08-22T10:18:55Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=93f674d33d4dacb115398196a7218c28323fd708'/>
<id>urn:sha1:93f674d33d4dacb115398196a7218c28323fd708</id>
<content type='text'>
--

* synchronous functions should throw errors if something goes wrong,
  Promises should reject. This commit changes some error cases that
  returned Error objects instead of throwing them

  - src/Key.js: createKey() and sync Key.get() throw errors
  - src/Error.js: Exporting the list of errors to be able to test and
    compare against these strings
  - src/Keyring.js: Setting a null value in pattern is not useful, and
    now caused an error with the new changes.
  - src/Message.js: createMessage and Message.setParameter now throw
    errors
</content>
</entry>
<entry>
<title>js: add and apply eslint rules</title>
<updated>2018-08-20T13:12:01Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-08-20T13:12:01Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=dd32daad0bb21e3d5567326d0b2e548ff8510431'/>
<id>urn:sha1:dd32daad0bb21e3d5567326d0b2e548ff8510431</id>
<content type='text'>
--

* mainly spacing, see .eslintrc.json for details
</content>
</entry>
<entry>
<title>js: revert changes to class read/write restriction</title>
<updated>2018-08-20T10:12:43Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-08-20T10:12:43Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=1954d27be86b8e4eb801ca6ddcb670f8cfb149f5'/>
<id>urn:sha1:1954d27be86b8e4eb801ca6ddcb670f8cfb149f5</id>
<content type='text'>
--

* undoes 94ee0988d4eaac27785de6efb7c19ca9976e1e9c and
  e16a87e83910ebb6bfdc4148369165f121f0997e.
  I do not fully understand why my approach was bad, but I am not in
  a position to argue. This revert was requested to me after a review,
  and I'm doing it in the assumption that more experienced people know
  better than me.
* unittests: Also changed some outdated tests that stopped working
  since 754e799d35fd62d7a979452f44342934659908c7 (as GPGME_Key is not
  exported, one cannot check for instanceof in the tests anymore)
</content>
</entry>
<entry>
<title>js: Making objects inmutable</title>
<updated>2018-07-30T10:31:27Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-07-30T10:31:27Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=e16a87e83910ebb6bfdc4148369165f121f0997e'/>
<id>urn:sha1:e16a87e83910ebb6bfdc4148369165f121f0997e</id>
<content type='text'>
--

* An Object.freeze should stop any malicious third party from changing
  objects' methods once the objects are instantiated (see unittest for
  an approach that would have worked before)
  - An initialized gpgmejs- object doesn't have a '_Keyring' property
    anymore (it still has its 'Keyring')
  - The internal expect='base64' needed to be turned into a method.
</content>
</entry>
<entry>
<title>js: fix indentaion</title>
<updated>2018-07-27T18:56:11Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-07-27T18:56:11Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=522121ea7e105acc22795b1997ca500c7b227b4f'/>
<id>urn:sha1:522121ea7e105acc22795b1997ca500c7b227b4f</id>
<content type='text'>
--

* doing the indentation changes that became neccesary in the last
  commit.
</content>
</entry>
<entry>
<title>js: change the write access for js class methods</title>
<updated>2018-07-27T18:36:21Z</updated>
<author>
<name>Maximilian Krambach</name>
<email>maximilian.krambach@intevation.de</email>
</author>
<published>2018-07-27T18:36:21Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=94ee0988d4eaac27785de6efb7c19ca9976e1e9c'/>
<id>urn:sha1:94ee0988d4eaac27785de6efb7c19ca9976e1e9c</id>
<content type='text'>
--
* src/ [Connection, Error, Key, Keyring, MEssage, Signature, gpgmejs]:
    Functions and values that are not meant to be overwritten are now
    moved into their constructors, thus eliminating the possibility of
    overwrites after initialization.

* Key: The mode of use (synchronous cached, or async promises) ivs now
  determined at initialization of that Key. The property Key.isAsync
  reflects this state.

* unittests: fixed old Key syntax for testing.

* Message.js isComplete is now a method and not a getter anymore.

* Added some startup tests.
</content>
</entry>
</feed>
