@wireapp/core-crypto 1.0.0-rc.14 → 1.0.0-rc.16

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
@@ -76,6 +76,7 @@ rustup target add x86_64-unknown-linux-gnu
76
76
  * Install [wasm-pack](https://rustwasm.github.io/wasm-pack/)
77
77
  * Install the wasm32-unknown-unknown toolchain `rustup target add wasm32-unknown-unknown`
78
78
  * Install node.js (recommended way is via [Volta](https://volta.sh/))
79
+ * Install Bun (follow the instructions on [Bun's website](https://bun.sh/))
79
80
 
80
81
  ### Bindings
81
82
 
@@ -93,7 +94,7 @@ cargo make "copy-android-resources"
93
94
  # builds iOS framework
94
95
  cargo make "create-swift-package"
95
96
 
96
- # builds wasm binary
97
+ # builds wasm binary & TS bindings
97
98
  cargo make wasm
98
99
  ```
99
100
 
@@ -125,3 +126,4 @@ cd kotlin
125
126
  ### JS / WASM
126
127
 
127
128
  Given that you are logged in NPM and can publish to `@wireapp/core-crypto`, you can just `npm publish` to push a new version
129
+ But this is not needed as releases are auto-published to the `@wireapp` organization
package/package.json CHANGED
@@ -1,20 +1,12 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "1.0.0-rc.14",
3
+ "version": "1.0.0-rc.16",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
7
7
  "types": "platforms/web/corecrypto.d.ts",
8
8
  "scripts": {
9
- "prepare": "npm run build",
10
- "build": "npm run clean && rollup -c crypto-ffi/bindings/js/rollup.config.js",
11
- "build:test": "npm run clean && rollup -c crypto-ffi/bindings/js/rollup.config.test.js",
12
- "clean": "rm -f ./platforms/web/*.{js,ts,wasm,html} && rm -rf ./platforms/web/assets",
13
- "package": "npm run build && npm pack",
14
- "test:raw": "jest -c crypto-ffi/bindings/js/jest.config.js --runInBand",
15
- "test": "npm run build:test && npm run test:raw",
16
- "test:cov": "npm run build:test && jest -c crypto-ffi/bindings/js/jest.config.js --coverage --runInBand",
17
- "test:http-server": "http-server platforms/web -g -p 3000"
9
+ "clean": "rm -f ./platforms/web/*.{js,ts,wasm,html} && rm -rf ./platforms/web/assets"
18
10
  },
19
11
  "publishConfig": {
20
12
  "access": "public"
@@ -40,26 +32,15 @@
40
32
  "url": "https://github.com/wireapp/core-crypto/issues"
41
33
  },
42
34
  "devDependencies": {
43
- "@rollup/plugin-html": "^1.0.2",
44
- "@types/jest": "^29.4.0",
45
- "@types/jest-dev-server": "^5.0.0",
46
- "@typescript-eslint/eslint-plugin": "^5.50.0",
47
- "@typescript-eslint/parser": "^5.50.0",
48
- "@wasm-tool/rollup-plugin-rust": "^2.3.3",
49
- "dts-bundle-generator": "^7.2.0",
50
- "eslint": "^8.33.0",
51
- "eslint-config-prettier": "^8.6.0",
52
- "eslint-plugin-prettier": "^4.2.1",
53
- "http-server": "^14.1.1",
54
- "jest": "^29.4.1",
55
- "jest-dev-server": "^6.2.0",
56
- "prettier": "^2.8.3",
57
- "puppeteer": "^19.6.2",
58
- "rollup": "^3.12.0",
59
- "rollup-jest": "^3.1.0",
60
- "rollup-plugin-ts": "^3.2.0",
61
- "ts-jest": "^29.0.5",
62
- "ts-loader": "^9.4.2",
63
- "typescript": "^4.9.5"
35
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
36
+ "@typescript-eslint/parser": "^6.7.5",
37
+ "bun-plugin-dts": "^0.2.1",
38
+ "eslint": "^8.51.0",
39
+ "eslint-config-prettier": "^9.0.0",
40
+ "eslint-plugin-prettier": "^5.0.0",
41
+ "prettier": "^3.0.3",
42
+ "puppeteer": "^21.3.8",
43
+ "ts-loader": "^9.5.0",
44
+ "typescript": "^5.2.2"
64
45
  }
65
46
  }
@@ -1,4 +1,8 @@
1
- declare class AcmeChallenge {
1
+ /**
2
+ * For creating a challenge.
3
+ * @see https://www.rfc-editor.org/rfc/rfc8555.html#section-7.5.1
4
+ */
5
+ export class AcmeChallenge {
2
6
  free(): void;
3
7
  /**
4
8
  * Contains raw JSON data of this challenge. This is parsed by the underlying Rust library hence should not be accessed
@@ -14,7 +18,11 @@ declare class AcmeChallenge {
14
18
  */
15
19
  readonly url: string;
16
20
  }
17
- declare class AcmeDirectory {
21
+ /**
22
+ * Holds URLs of all the standard ACME endpoint supported on an ACME server.
23
+ * @see https://www.rfc-editor.org/rfc/rfc8555.html#section-7.1.1
24
+ */
25
+ export class AcmeDirectory {
18
26
  free(): void;
19
27
  /**
20
28
  * URL for creating a new account.
@@ -33,7 +41,11 @@ declare class AcmeDirectory {
33
41
  */
34
42
  readonly revokeCert: string;
35
43
  }
36
- declare class NewAcmeAuthz {
44
+ /**
45
+ * Result of an authorization creation.
46
+ * @see https://www.rfc-editor.org/rfc/rfc8555.html#section-7.5
47
+ */
48
+ export class NewAcmeAuthz {
37
49
  free(): void;
38
50
  /**
39
51
  * DNS entry associated with those challenge
@@ -48,7 +60,11 @@ declare class NewAcmeAuthz {
48
60
  */
49
61
  readonly wireOidcChallenge: AcmeChallenge | undefined;
50
62
  }
51
- declare class NewAcmeOrder {
63
+ /**
64
+ * Result of an order creation.
65
+ * @see https://www.rfc-editor.org/rfc/rfc8555.html#section-7.4
66
+ */
67
+ export class NewAcmeOrder {
52
68
  free(): void;
53
69
  /**
54
70
  */