Skip to content

Commit

Permalink
chore(release): 6.2.0 [skip ci]
Browse files Browse the repository at this point in the history
# [6.2.0](v6.1.0...v6.2.0) (2024-07-08)

### Features

* **Android:** Add TLS key & cert for server ([#192](#192)) ([054c789](054c789))
  • Loading branch information
semantic-release-bot committed Jul 8, 2024
1 parent 7d931c8 commit 4183512
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [6.2.0](https://github.com/Rapsssito/react-native-tcp-socket/compare/v6.1.0...v6.2.0) (2024-07-08)


### Features

* **Android:** Add TLS key & cert for server ([#192](https://github.com/Rapsssito/react-native-tcp-socket/issues/192)) ([054c789](https://github.com/Rapsssito/react-native-tcp-socket/commit/054c7890dc0575acceb93c24794c0fade6c548a8))

# [6.1.0](https://github.com/Rapsssito/react-native-tcp-socket/compare/v6.0.6...v6.1.0) (2024-06-20)


Expand Down
2 changes: 1 addition & 1 deletion coverage/coverage-final.json

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions lib/types/TLSSocket.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
/**
* @typedef {object} TLSSocketOptions
* @property {any} [ca]
* @property {any} [key]
* @property {any} [cert]
* @property {string} [androidKeyStore]
* @property {string} [certAlias]
* @property {string} [keyAlias]
* @property {string[]} [resolvedKeys]
*
* @extends {Socket}
*/
export default class TLSSocket extends Socket {
/**
* @private
* Resolves the asset source if necessary and registers the resolved key.
* @param {TLSSocketOptions} options The options object containing the source to be resolved.
* @param {'ca' | 'key' | 'cert'} key The key name being resolved.
*/
private static resolveAssetIfNeeded;
/**
* @param {Socket} socket Any instance of `Socket`.
* @param {TLSSocketOptions} [options] Options for the TLS socket.
Expand All @@ -22,8 +35,16 @@ export default class TLSSocket extends Socket {
* @private
*/
private _startTLS;
getCertificate(): any;
getPeerCertificate(): any;
}
export type TLSSocketOptions = {
ca?: any;
key?: any;
cert?: any;
androidKeyStore?: string | undefined;
certAlias?: string | undefined;
keyAlias?: string | undefined;
resolvedKeys?: string[] | undefined;
};
import Socket from "./Socket";
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-tcp-socket",
"title": "React Native Tcp Socket",
"version": "6.1.0",
"version": "6.2.0",
"description": "React Native TCP socket API for Android & iOS with SSL/TLS support",
"main": "src/index.js",
"types": "lib/types/index.d.ts",
Expand Down

0 comments on commit 4183512

Please sign in to comment.