Skip to content

Commit

Permalink
chore(release): 4.1.1 [skip ci]
Browse files Browse the repository at this point in the history
## [4.1.1](v4.1.0...v4.1.1) (2020-12-24)

### Bug Fixes

* Fix TypeScript declaration inheritance ([#153](#153)) ([3e5b4f7](3e5b4f7))
  • Loading branch information
semantic-release-bot committed Dec 24, 2020
1 parent 3e5b4f7 commit 051051e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [4.1.1](https://github.com/tradle/react-native-udp/compare/v4.1.0...v4.1.1) (2020-12-24)


### Bug Fixes

* Fix TypeScript declaration inheritance ([#153](https://github.com/tradle/react-native-udp/issues/153)) ([3e5b4f7](https://github.com/tradle/react-native-udp/commit/3e5b4f71d021f19d7720b7ccf05a343f93591d15))

# [4.1.0](https://github.com/tradle/react-native-udp/compare/v4.0.4...v4.1.0) (2020-12-05)


Expand Down
9 changes: 6 additions & 3 deletions lib/types/UdpSocket.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// <reference types="node" />
/**
* @typedef {"ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"} BufferEncoding
*/
export default class UdpSocket extends EventEmitter {
/**
* @param {{ type: string; reusePort?: boolean; debug?: boolean; }} options
Expand Down Expand Up @@ -50,7 +52,7 @@ export default class UdpSocket extends EventEmitter {
*
* @param {(...args: any[]) => void} callback
*/
close(callback?: (...args: any[]) => void): NodeJS.Immediate | undefined;
close(callback?: (...args: any[]) => void): number | undefined;
/**
* NOT IMPLEMENTED
*
Expand Down Expand Up @@ -259,5 +261,6 @@ export default class UdpSocket extends EventEmitter {
*/
remoteAddress(): void;
}
import { EventEmitter } from "node/events";
export type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
import { EventEmitter } from "events";
import { Buffer } from "buffer";
4 changes: 4 additions & 0 deletions lib/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export default UdpSockets;
export type Buffer = import("buffer").Buffer;
/**
* @typedef {import('buffer').Buffer} Buffer
*/
declare class UdpSockets {
/**
* Creates a `UdpSockets.Socket` object. Once the socket is created, calling
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-udp",
"version": "4.1.0",
"version": "4.1.1",
"description": "React Native UDP socket API for Android & iOS",
"homepage": "https://github.com/tradle/react-native-udp",
"main": "src/index.js",
Expand Down

0 comments on commit 051051e

Please sign in to comment.