Skip to content

Commit

Permalink
added DEPRECATIONS file
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Nov 30, 2018
1 parent 6e3e1e4 commit cd8256e
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
77 changes: 77 additions & 0 deletions DEPRECATIONS.md
@@ -0,0 +1,77 @@
# DEPRECATIONS

The helpers for all the frontend extras have been renamed in a more consistent way, following the same convention of the other extras.

## Renaming convenction

The method naming for the frontend extras follow the pattern: `<pagy-prefix>_<name-of-framework>_<qualifier>\_<result>` where:

- pagy-prefix: "pagy"
- name-of-framework: e.g. "bootstrap"
- qualifier: (optional) e.g."compact"
- result: e.g. "nav"

**Notice**: this convention applies only to the frontend extras.

## Renamed methods and files

The following methods (and one file) have been renamed and they will be removed in version 2.0. You only need to search and replace, because the funtionality has not been changed.

### Bootstrap Extra

| Legacy Name | New Name |
|:--------------------------------|:--------------------------------|
| `pagy_nav_bootstrap` | `pagy_bootstrap_nav` |
| `pagy_nav_compact_bootstrap` | `pagy_bootstrap_compact_nav` |
| `pagy_nav_responsive_bootstrap` | `pagy_bootstrap_responsive_nav` |

### Bulma Extra

| Legacy Name | New Name |
|:----------------------------|:----------------------------|
| `pagy_nav_bulma` | `pagy_bulma_nav` |
| `pagy_nav_compact_bulma` | `pagy_bulma_compact_nav` |
| `pagy_nav_responsive_bulma` | `pagy_bulma_responsive_nav` |

### Foundation Extra

| Legacy Name | New Name |
|:---------------------------------|:---------------------------------|
| `pagy_nav_foundation` | `pagy_foundation_nav` |
| `pagy_nav_compact_foundation` | `pagy_foundation_compact_nav` |
| `pagy_nav_responsive_foundation` | `pagy_foundation_responsive_nav` |

### Materialize Extra

| Legacy Name | New Name |
|:----------------------------------|:----------------------------------|
| `pagy_nav_materialize` | `pagy_materialize_nav` |
| `pagy_nav_compact_materialize` | `pagy_materialize_compact_nav` |
| `pagy_nav_responsive_materialize` | `pagy_materialize_responsive_nav` |

### Navs Extra

| Legacy Name | New Name |
|:-----------------------------|:------------------------------------|
| | `pagy_plain_nav` (`pagy_nav` alias) |
| `pagy_nav_compact` | `pagy_plain_compact_nav` |
| `pagy_nav_responsive` | `pagy_plain_responsive_nav` |
| `require "pagy/extras/navs"` | `require "pagy/extras/plain"` |

### Semantic Extra

| Legacy Name | New Name |
|:-------------------------------|:-------------------------------|
| `pagy_nav_semantic` | `pagy_semantic_nav` |
| `pagy_nav_compact_semantic` | `pagy_semantic_compact_nav` |
| `pagy_nav_responsive_semantic` | `pagy_semantic_responsive_nav` |

## Renamed classes and params in helpers

**Notice**: You can skip this section if you did not override any nav helper.

### CSS nav classes

The `nav` CSS classes follow the same renaming rules of the helper methods. For example:

`pagy-nav-responsive-bootstrap` is now `pagy-bootstrap-responsive-nav`
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -141,6 +141,7 @@ Besides the classic pagination `nav`, Pagy offers a few ready to use alternative
- [Quick Start](https://ddnexus.github.io/pagy/how-to#quick-start)
- [Documentation](https://ddnexus.github.io/pagy/index)
- [Changelog](https://github.com/ddnexus/pagy/blob/master/CHANGELOG.md)
- [Deprecations](https://github.com/ddnexus/pagy/blob/master/DEPRECATIONS.md)

### Support and Feedback

Expand Down

0 comments on commit cd8256e

Please sign in to comment.