Skip to content

Commit 54574b7

Browse files
committed
Updated changelog with releases
1 parent c63a26c commit 54574b7

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

CHANGELOG.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,81 @@
11
# Pyttman Changelog
22

3+
# V 1.2.0.1
4+
5+
This is a hotfix release, fixing an issue with EntityFields with `as_list`
6+
configured, where it would append an infinite amount of matching strings,
7+
when in fact, it should only add as many as defined in `span`.
8+
9+
10+
### **🐛 Splatted bugs and corrected issues**
11+
* **Fixes [#66](https://github.com/dotchetter/Pyttman/issues/66)**
12+
13+
14+
15+
16+
# V 1.2.0
17+
This is a minor release, containing new improved features, some changes
18+
and bug fixes, where the first point on the News list is the reason for this release being a minor release.
19+
20+
### :star2: News
21+
* **Accessing the `Ability` instance in an `Intent` class**
22+
23+
in Pyttman, the relationship between an Ability and Intent classes have
24+
been parent->child, with no way to access the Ability instance from the Intent.
25+
This is now possible, which allows for accessing methods which Intents may share.
26+
To access the Ability from an Intent, you can do so with `self.ability` in all Intent methods.
27+
This is, however, not a breaking change: backwards compatibility is still supported, meaning
28+
apps with `EntityParser` inner classes will continue to work normally.
29+
30+
31+
* **`BoolEntityField` defaults to False**
32+
33+
Instead of defaulting to `None`, the `BoolEntityField` class now more appropriately
34+
defaults to `False` if the sought pattern isn't found in the message.
35+
36+
37+
* **New mode in Pyttman CLI: `shell`**
38+
39+
The `shell` mode allows you to open your Pyttman app bootstrapped with
40+
dependencies and environment loaded up, in an interactive shell. This is
41+
useful where you want to try your classes using an interactive shell.
42+
This feature is invoked using `pyttman shell <app name>`.
43+
44+
45+
### 👀 Changes
46+
47+
* **Removed pytz dependency from the library**
48+
49+
50+
* **Internal refactoring and code cleanup**
51+
52+
53+
* **The inner class "EntityParser" is no longer used and is unsupported.**
54+
55+
The inner class `EntityParser` inside `Intent` classes was optional, and
56+
added EntityParser functionality to an intent class. This class proved
57+
to be redundant however, as the EntityParser API continues to evolve.
58+
The need for an inner class is thus removed, and `EntityField` classes
59+
are instead directly declared inside the `Intent` class as class fields,
60+
more resembling other declarative API:s.
61+
62+
```python
63+
# Old
64+
class SomeIntent(Intent):
65+
class EntityParser:
66+
name = StringEntityField()
67+
68+
69+
# New
70+
class SomeIntent(Intent):
71+
name = StringEntityField()
72+
```
73+
74+
75+
76+
### **🐛 Splatted bugs and corrected issues**
77+
* **Fixes [#64](https://github.com/dotchetter/Pyttman/issues/63)**
78+
379

480

581
# v 1.1.12

0 commit comments

Comments
 (0)