<commit_before># CHANGELOG

## 3.0.0 (?)

### Added

- Make `serialport` dependency optional by making port constructor argument to `rtu.Master` more generic (contributed by <NAME>).
- Reimplement master abstract class queue using observables, requests send in order made and sent after previous requests have completed.
- Add `destroy` method to `rtu.Master` and `tcp.Client` classes, cleans up observables and disconnected port/socket if connected.

### Changed

- Refactoring for file/class name consistency with other libraries.
- Update documentation link in `README.md`.
- Update `examples` directory files.
- Reduced use of `instanceof` for checking types, use property as secondary test.<commit_msg>docs: update changelog<commit_after># CHANGELOG

## 3.0.0 (?)

### Added

- Make `serialport` dependency optional by making `port` constructor argument to `rtu.Master` a generic interface (contributed by <NAME>).
- Reimplement master abstract class queue using observables, requests are sent in order of function calls, requests are queue until previous requests completed.
- Add `destroy` method to `rtu.Master` and `tcp.Client` classes, cleans up observables and disconnects port/socket if connected, prefer use of this over `close`, `disconnect` methods unless trying to reconnect.

### Changed

- Refactoring for file/class name consistency with other libraries.
- Update documentation link in `README.md`.
- Update `examples` directory files to showcase request order and queueing.
- Reduced use of `instanceof` for checking types, use instance property as secondary test.
{'fraction_non_alphanumeric': 0.08207070707070707, 'fraction_numerical': 0.003787878787878788, 'mean_word_length': 4.87037037037037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4838824', 'n_tokens_mistral': 413, 'n_tokens_neox': 395, 'n_words': 194}