2014-05-27 09:17:23 -04:00
|
|
|
# CHANGELOG
|
|
|
|
|
|
|
|
by Yo-An Lin <yoanlin93@gmail.com>
|
2014-05-27 09:16:46 -04:00
|
|
|
|
2014-06-03 06:48:55 -04:00
|
|
|
|
|
|
|
### 1.3.0 - Tue Jun 3 18:47:14 2014
|
|
|
|
|
|
|
|
- Added Incorrect slug syntax warnings
|
|
|
|
- Added error message support for pcre/pcre-jit compile
|
|
|
|
- Added JSON encode support for the tree structure
|
|
|
|
- Improved Graphivz Related Functions
|
|
|
|
- More failing test cases
|
|
|
|
|
2014-05-27 09:16:46 -04:00
|
|
|
### 1.2.1 - Tue May 27 21:16:13 2014
|
|
|
|
|
|
|
|
- Bug fixes.
|
|
|
|
- Function declaration improvement.
|
|
|
|
- pkg-config flags update (r3.pc)
|
|
|
|
|
2014-05-23 11:30:58 -04:00
|
|
|
### 1.2 - Fri May 23 23:30:11 2014
|
|
|
|
|
|
|
|
- Added simple pattern optimization.
|
|
|
|
- Clean up.
|
|
|
|
- Bug fixes.
|
|
|
|
|
2014-05-18 22:12:57 -04:00
|
|
|
### 0.9999 - Mon May 19 10:03:41 2014
|
|
|
|
|
|
|
|
API changes:
|
|
|
|
|
2014-06-02 02:47:46 -04:00
|
|
|
1. Removed the `route` argument from `r3_tree_insert_pathl_ex`:
|
2014-05-18 22:12:57 -04:00
|
|
|
|
2014-06-02 02:47:46 -04:00
|
|
|
node * r3_tree_insert_pathl_ex(node *tree, char *path, int path_len, void * data);
|
2014-05-18 22:12:57 -04:00
|
|
|
|
2014-05-18 22:40:39 -04:00
|
|
|
This reduce the interface complexity, e.g.,
|
2014-05-18 22:12:57 -04:00
|
|
|
|
2014-05-18 22:40:39 -04:00
|
|
|
r3_tree_insert_path(n, "/user2/{id:\\d+}", &var2);
|
2014-05-18 22:12:57 -04:00
|
|
|
|
2014-06-02 02:47:46 -04:00
|
|
|
2. The original `r3_tree_insert_pathl_ex` has been moved to `r3_tree_insert_pathl_ex` as a private API.
|
2014-05-18 22:34:48 -04:00
|
|
|
|
|
|
|
3. Moved `r3_tree_matchl` to `r3_tree_matchl` since it require the length of the path string.
|
|
|
|
|
2014-05-18 22:40:39 -04:00
|
|
|
m = r3_tree_matchl( n , "/foo", strlen("/foo"), entry);
|
2014-05-18 22:34:48 -04:00
|
|
|
|
|
|
|
4. Added `r3_tree_match` for users to match a path without the length of the path string.
|
|
|
|
|
2014-05-18 22:40:39 -04:00
|
|
|
m = r3_tree_match( n , "/foo", entry);
|
2014-05-18 22:34:48 -04:00
|
|
|
|
|
|
|
5. Added `r3_tree_match_entry` for users want to match a `match_entry`, which is just a macro to simplify the use:
|
|
|
|
|
2014-05-18 22:40:02 -04:00
|
|
|
|
|
|
|
#define r3_tree_match_entry(n, entry) r3_tree_matchl(n, entry->path, entry->path_len, entry)
|
|
|
|
|
2014-05-18 22:34:48 -04:00
|
|
|
|
2014-05-18 22:39:35 -04:00
|
|
|
6. Please note that A path that is inserted by `r3_tree_insert_route` can only be matched by `r3_tree_match_route`.
|
2014-05-18 22:12:57 -04:00
|
|
|
|
2014-05-18 22:39:35 -04:00
|
|
|
7. Added `r3_` prefix to `route` related methods.
|
2014-05-18 22:39:03 -04:00
|
|
|
|
|
|
|
|