# Changelog

This document outlines all notable changes to this project.

## [0.4.1] - 2018-11-02
### Added
+ Bumped version due to npm publish issue.

## [0.4.0] - 2018-10-17
### Added
+ `Reader` and `Writer` which replace `PacketBuffer`.

### Removed
+ The `PacketBuffer` class.

### Changed
+ All packets to use the new `Reader` and `Writer` classes.
+ The `RC4` class to use a `Buffer` instead of a `number[]` for its state.
+ The packet io now respects Writable stream conventions by queueing packets.

## [0.3.1] - 2018-10-09
### Changed
+ Bumped dependency version.

## [0.3.0] - 2018-10-08
### Added
+ The method `attach(socket: Socket)` to the Packet IO class.
+ The method `detach()` to the Packet IO class.
+ A new property `isSupporter` to the `TextPacket`.

## [0.2.1] - 2018-10-08
### Added
+ A new event `packet` which is emitted for any packet received. Events for specific types are still emitted, and will be emitted before the `packet` event is emitted.

### Changed
+ Bumped dependency version.

## [0.2.0] - 2018-10-02
### Added
+ `read` implementations for all outgoing packets.
+ `write` implementations for all incoming packets.
+ The `Packet` interface.

### Removed
+ The `IncomingPacket` and `OutgoingPacket` interfaces.

### Changed
+ The Hello packet no longer RSA encrypts the `guid` and `password` properties upon writing.

## [0.1.1] - 2018-09-27
### Changed
+ Bumped dependency version.

## [0.1.0] - 2018-09-27
Initial release.
