@wireapp/core-crypto 0.6.0-pre.2 → 0.6.0-pre.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -99,9 +99,17 @@ cargo make wasm
99
99
 
100
100
  ## Publishing
101
101
 
102
+ ### Versioning
103
+
104
+ * Run `cargo xtask bump [major|minor|patch|rc|pre]`
105
+ * Update the internal dependencies of the updated crates to use the new version
106
+ * Update the version in the `package.json`
107
+ * Update the version in the `build.gradle.kts` inside `./kotlin/android` and `./kotlin/jvm`
108
+
102
109
  ### Changelog
103
110
 
104
111
  * Update <CHANGELOG.tpl> accordingly
112
+ * Fetch the latest tags from the remote
105
113
  * run `cargo xtask documentation changelog` to update <CHANGELOG.md> with the git-conventional history
106
114
 
107
115
  ### Android / JVM
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "0.6.0-pre.2",
3
+ "version": "0.6.0-pre.3",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -36,6 +36,15 @@ function getObject(idx) { return heap[idx]; }
36
36
 
37
37
  let heap_next = heap.length;
38
38
 
39
+ function addHeapObject(obj) {
40
+ if (heap_next === heap.length) heap.push(heap.length + 1);
41
+ const idx = heap_next;
42
+ heap_next = heap[idx];
43
+
44
+ heap[idx] = obj;
45
+ return idx;
46
+ }
47
+
39
48
  function dropObject(idx) {
40
49
  if (idx < 36) return;
41
50
  heap[idx] = heap_next;
@@ -48,15 +57,6 @@ function takeObject(idx) {
48
57
  return ret;
49
58
  }
50
59
 
51
- function addHeapObject(obj) {
52
- if (heap_next === heap.length) heap.push(heap.length + 1);
53
- const idx = heap_next;
54
- heap_next = heap[idx];
55
-
56
- heap[idx] = obj;
57
- return idx;
58
- }
59
-
60
60
  const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
61
61
 
62
62
  cachedTextDecoder.decode();
@@ -252,7 +252,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
252
252
  function __wbg_adapter_52(arg0, arg1, arg2) {
253
253
  try {
254
254
  const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
255
- wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he93426143887b9de(retptr, arg0, arg1, addHeapObject(arg2));
255
+ wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4b8933be611c74ec(retptr, arg0, arg1, addHeapObject(arg2));
256
256
  var r0 = getInt32Memory0()[retptr / 4 + 0];
257
257
  var r1 = getInt32Memory0()[retptr / 4 + 1];
258
258
  if (r1) {
@@ -264,7 +264,7 @@ function __wbg_adapter_52(arg0, arg1, arg2) {
264
264
  }
265
265
 
266
266
  function __wbg_adapter_55(arg0, arg1, arg2) {
267
- wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h582590a1b3576cbe(arg0, arg1, addHeapObject(arg2));
267
+ wasm$1._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf134d073b748780a(arg0, arg1, addHeapObject(arg2));
268
268
  }
269
269
 
270
270
  /**
@@ -329,7 +329,7 @@ function getArrayU8FromWasm0(ptr, len) {
329
329
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
330
330
  }
331
331
  function __wbg_adapter_212(arg0, arg1, arg2, arg3) {
332
- wasm$1.wasm_bindgen__convert__closures__invoke2_mut__hd463cd1468254416(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
332
+ wasm$1.wasm_bindgen__convert__closures__invoke2_mut__h36fd127c91f164e3(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
333
333
  }
334
334
 
335
335
  /**
@@ -1438,13 +1438,13 @@ async function load(module, imports) {
1438
1438
  function getImports() {
1439
1439
  const imports = {};
1440
1440
  imports.wbg = {};
1441
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
1442
- takeObject(arg0);
1443
- };
1444
1441
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
1445
1442
  const ret = getObject(arg0);
1446
1443
  return addHeapObject(ret);
1447
1444
  };
1445
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
1446
+ takeObject(arg0);
1447
+ };
1448
1448
  imports.wbg.__wbindgen_is_object = function(arg0) {
1449
1449
  const val = getObject(arg0);
1450
1450
  const ret = typeof(val) === 'object' && val !== null;
@@ -1585,14 +1585,14 @@ function getImports() {
1585
1585
  const ret = new Uint8Array(getObject(arg0));
1586
1586
  return addHeapObject(ret);
1587
1587
  };
1588
- imports.wbg.__wbg_push_740e4b286702d964 = function(arg0, arg1) {
1589
- const ret = getObject(arg0).push(getObject(arg1));
1590
- return ret;
1591
- };
1592
1588
  imports.wbg.__wbg_corecrypto_new = function(arg0) {
1593
1589
  const ret = CoreCrypto$1.__wrap(arg0);
1594
1590
  return addHeapObject(ret);
1595
1591
  };
1592
+ imports.wbg.__wbg_push_740e4b286702d964 = function(arg0, arg1) {
1593
+ const ret = getObject(arg0).push(getObject(arg1));
1594
+ return ret;
1595
+ };
1596
1596
  imports.wbg.__wbg_call_e1f72c051cdab859 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1597
1597
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
1598
1598
  return addHeapObject(ret);
@@ -1674,16 +1674,9 @@ function getImports() {
1674
1674
  const ret = false;
1675
1675
  return ret;
1676
1676
  };
1677
- imports.wbg.__wbg_delete_8abedd1043b4105d = function() { return handleError(function (arg0, arg1) {
1678
- const ret = getObject(arg0).delete(getObject(arg1));
1679
- return addHeapObject(ret);
1680
- }, arguments) };
1681
1677
  imports.wbg.__wbg_setonsuccess_5f71593bc51653a3 = function(arg0, arg1) {
1682
1678
  getObject(arg0).onsuccess = getObject(arg1);
1683
1679
  };
1684
- imports.wbg.__wbg_setonerror_d5771cc5bf9ea74c = function(arg0, arg1) {
1685
- getObject(arg0).onerror = getObject(arg1);
1686
- };
1687
1680
  imports.wbg.__wbg_openCursor_e036069f0e326708 = function() { return handleError(function (arg0, arg1) {
1688
1681
  const ret = getObject(arg0).openCursor(getObject(arg1));
1689
1682
  return addHeapObject(ret);
@@ -1692,6 +1685,13 @@ function getImports() {
1692
1685
  const ret = getObject(arg0).openCursor();
1693
1686
  return addHeapObject(ret);
1694
1687
  }, arguments) };
1688
+ imports.wbg.__wbg_get_6285bf458a1ee758 = function() { return handleError(function (arg0, arg1) {
1689
+ const ret = getObject(arg0).get(getObject(arg1));
1690
+ return addHeapObject(ret);
1691
+ }, arguments) };
1692
+ imports.wbg.__wbg_setonerror_d5771cc5bf9ea74c = function(arg0, arg1) {
1693
+ getObject(arg0).onerror = getObject(arg1);
1694
+ };
1695
1695
  imports.wbg.__wbg_put_84e7fc93eee27b28 = function() { return handleError(function (arg0, arg1, arg2) {
1696
1696
  const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
1697
1697
  return addHeapObject(ret);
@@ -1700,8 +1700,23 @@ function getImports() {
1700
1700
  const ret = getObject(arg0).put(getObject(arg1));
1701
1701
  return addHeapObject(ret);
1702
1702
  }, arguments) };
1703
- imports.wbg.__wbg_get_6285bf458a1ee758 = function() { return handleError(function (arg0, arg1) {
1704
- const ret = getObject(arg0).get(getObject(arg1));
1703
+ imports.wbg.__wbg_count_b0e88953a0ea909c = function() { return handleError(function (arg0) {
1704
+ const ret = getObject(arg0).count();
1705
+ return addHeapObject(ret);
1706
+ }, arguments) };
1707
+ imports.wbg.__wbg_count_46eda68a16dbe30e = function() { return handleError(function (arg0, arg1) {
1708
+ const ret = getObject(arg0).count(getObject(arg1));
1709
+ return addHeapObject(ret);
1710
+ }, arguments) };
1711
+ imports.wbg.__wbg_deleteDatabase_f6454de6a88aebde = function() { return handleError(function (arg0, arg1, arg2) {
1712
+ const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
1713
+ return addHeapObject(ret);
1714
+ }, arguments) };
1715
+ imports.wbg.__wbg_close_5a04b9ce11dade22 = function(arg0) {
1716
+ getObject(arg0).close();
1717
+ };
1718
+ imports.wbg.__wbg_delete_8abedd1043b4105d = function() { return handleError(function (arg0, arg1) {
1719
+ const ret = getObject(arg0).delete(getObject(arg1));
1705
1720
  return addHeapObject(ret);
1706
1721
  }, arguments) };
1707
1722
  imports.wbg.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
@@ -1731,21 +1746,6 @@ function getImports() {
1731
1746
  imports.wbg.__wbg_setonupgradeneeded_17d0b9530f1e0cac = function(arg0, arg1) {
1732
1747
  getObject(arg0).onupgradeneeded = getObject(arg1);
1733
1748
  };
1734
- imports.wbg.__wbg_count_b0e88953a0ea909c = function() { return handleError(function (arg0) {
1735
- const ret = getObject(arg0).count();
1736
- return addHeapObject(ret);
1737
- }, arguments) };
1738
- imports.wbg.__wbg_count_46eda68a16dbe30e = function() { return handleError(function (arg0, arg1) {
1739
- const ret = getObject(arg0).count(getObject(arg1));
1740
- return addHeapObject(ret);
1741
- }, arguments) };
1742
- imports.wbg.__wbg_deleteDatabase_f6454de6a88aebde = function() { return handleError(function (arg0, arg1, arg2) {
1743
- const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
1744
- return addHeapObject(ret);
1745
- }, arguments) };
1746
- imports.wbg.__wbg_close_5a04b9ce11dade22 = function(arg0) {
1747
- getObject(arg0).close();
1748
- };
1749
1749
  imports.wbg.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
1750
1750
  getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
1751
1751
  }, arguments) };
@@ -2005,11 +2005,11 @@ function getImports() {
2005
2005
  const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
2006
2006
  return addHeapObject(ret);
2007
2007
  }, arguments) };
2008
- imports.wbg.__wbindgen_closure_wrapper2895 = function(arg0, arg1, arg2) {
2008
+ imports.wbg.__wbindgen_closure_wrapper2859 = function(arg0, arg1, arg2) {
2009
2009
  const ret = makeMutClosure(arg0, arg1, 130, __wbg_adapter_52);
2010
2010
  return addHeapObject(ret);
2011
2011
  };
2012
- imports.wbg.__wbindgen_closure_wrapper4971 = function(arg0, arg1, arg2) {
2012
+ imports.wbg.__wbindgen_closure_wrapper4965 = function(arg0, arg1, arg2) {
2013
2013
  const ret = makeMutClosure(arg0, arg1, 137, __wbg_adapter_55);
2014
2014
  return addHeapObject(ret);
2015
2015
  };
@@ -2080,7 +2080,7 @@ var exports = /*#__PURE__*/Object.freeze({
2080
2080
  var wasm = async (opt = {}) => {
2081
2081
  let {importHook, serverPath} = opt;
2082
2082
 
2083
- let path = "assets/core_crypto_ffi-90af066e.wasm";
2083
+ let path = "assets/core_crypto_ffi-922b14ab.wasm";
2084
2084
 
2085
2085
  if (serverPath != null) {
2086
2086
  path = serverPath + /[^\/\\]*$/.exec(path)[0];