<commit_before>#  Migration Notes

## From 2.X.X to 3.0.0

TBD...<commit_msg>Update MigrationNotes.md<commit_after>
# Migration Notes

## From 2.X.X to 3.0.0

* Moved `Channel` into its own framework [Rasat](https://www.github.com/gokselkoksal/Rasat).

Old API:

```swift
channel.subscribe(self) { event in
  // Handle event...
}
```

New API:

```swift
disposeBag += channel.observable.subscribe(self) { message in
  // Handle message here.
}
```

For more: [Rasat](https://www.github.com/gokselkoksal/Rasat) 

* `Weak` is now a `class` instead of being a `struct`. There's no advantage of value semantics here.

* Removed `TaskState` as it's not generic enough. You can still manually add it to your project from 2.0.0 tag.

* Removed `Bounds`. Use `Range` API instead.

```
let bounds = Bounds(.inclusive(2), .exclusive(5))
// is equivalent to:
let bounds = 2..<5
```

{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.01722158438576349, 'mean_word_length': 3.6881720430107525, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6696571', 'n_tokens_mistral': 334, 'n_tokens_neox': 307, 'n_words': 95}