Skip to content

Commit

Permalink
chore(release): 5.5.0 [skip ci]
Browse files Browse the repository at this point in the history
# [5.5.0](v5.4.0...v5.5.0) (2021-10-26)

### Features

* Add isIP & isIPv4 & isIPv6 methods ([#133](#133)) ([5498814](5498814))
  • Loading branch information
semantic-release-bot committed Oct 26, 2021
1 parent 5498814 commit 33b9bf4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,10 @@
# [5.5.0](https://github.com/Rapsssito/react-native-tcp-socket/compare/v5.4.0...v5.5.0) (2021-10-26)


### Features

* Add isIP & isIPv4 & isIPv6 methods ([#133](https://github.com/Rapsssito/react-native-tcp-socket/issues/133)) ([5498814](https://github.com/Rapsssito/react-native-tcp-socket/commit/5498814022272385ee8e2492f998c58d12773a43))

# [5.4.0](https://github.com/Rapsssito/react-native-tcp-socket/compare/v5.3.1...v5.4.0) (2021-10-26)


Expand Down
5 changes: 5 additions & 0 deletions coverage/coverage-final.json

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions lib/types/index.d.ts
@@ -1,6 +1,9 @@
declare namespace _default {
export { createServer };
export { createConnection };
export { isIP };
export { isIPv4 };
export { isIPv6 };
export { Server };
export { Socket };
}
Expand All @@ -16,5 +19,23 @@ declare function createServer(connectionListener: (socket: Socket) => void): Ser
* @returns {Socket}
*/
declare function createConnection(options: import('./Socket').ConnectionOptions, callback: () => void): Socket;
/**
* Tests if input is an IP address. Returns `0` for invalid strings, returns `4` for IP version 4 addresses, and returns `6` for IP version 6 addresses.
*
* @param {string} input
*/
declare function isIP(input: string): 0 | 4 | 6;
/**
* Returns `true` if input is a version 4 IP address, otherwise returns `false`.
*
* @param {string} input
*/
declare function isIPv4(input: string): boolean;
/**
* Returns `true` if input is a version 6 IP address, otherwise returns `false`.
*
* @param {string} input
*/
declare function isIPv6(input: string): boolean;
import Server from "./Server";
import Socket from "./Socket";
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "react-native-tcp-socket",
"title": "React Native Tcp Socket",
"version": "5.4.0",
"version": "5.5.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 33b9bf4

Please sign in to comment.