**Code built with Miniflask v1 probably will not work out of the box with Miniflask v2.**
- **Module Inheritance**: (see [PR 48](https://github.com/da-h/miniflask/pull/48))
- With that change, the module identifier keyword `default` is not needed anymore, and thus, has been removed.
- In most cases, it is sufficient to move the contents of `modulename/default/*` to `modulename/*` (especially & including the `__init__.py` file.
- Relative module identifiers where defined without submodules in mind, thus modules where interpreted as files. Specifying a sibling module (say `siblingmodule`) the relative identifier was `.siblingmodule`. Getting the sibling one directory up could be specified using an additional dot, i.e. `..siblingmodule`. To adapt this notation to submodules, i.e. specifying modules below the current directory, the notation got an offset for relative module paths. The new notation is `..siblingmodule` for a sibling, `...siblingmodule` for a sibling of the parent directory, `.childmodule` for a submodule.
- All this makes most uses of `set_scope` or `redefine_scope` obsolete. Please consider restructuring the modules that usese one of those features.
- Relative module ids work now with all functions that require module ids. Relative module ids can help to maintain portability of modules into other module repositories. Thus, consider rewriting your repository to use that feature.
- **Parent autoload**:
- Previous versions did not allow submodules, thus this new feature should not interefere with old code bases.
- If however, your code did call some kind of parent module loading (i.e. using `default`-keyworded modules), these calls may need to be rewritten.
- Consider the function `mf.any_child_loaded` to specify “default“-parameter queries/module loading-calls in case of grouped modules.
- **Fuzzy Variable Matching**:
Previous fuzzy variable matching (in CLI or in `state["varname"]` calls) started with the most special version of the match, then proceeded to global matches in case no match was found and then descentedt into all other modules.
This search order has changed significantly. For instance, global matches are now last in the search order. Please consider the [PR 51](https://github.com/da-h/miniflask/pull/51) for more details.
- **Events**:
- `mf.register_event` registers any event as `unique` by default now. Previously it has registered a non-unique event by default.
- Hacky code-snippets to define new events inside event-callcs are not required anymore and should be replaced with `mf.register_event`-calls (or similar).
- the `before`/`after`-event API has changed significantly. Please check the documentation on how to modify arguments of event-calls and their results.