You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+20-12
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ icon: versions-24
6
6
7
7
## ⚠ WARNING
8
8
9
-
We may drop pagy's less used CSS extras.
9
+
We may drop pagy's less used CSS extras.
10
10
11
11
If you wish to keep them alive, please, [vote here](https://github.com/ddnexus/pagy/discussions/categories/survey).
12
12
@@ -30,7 +30,8 @@ None
30
30
31
31
## Version 8.0.1
32
32
33
-
- Reorganize the gem root dir: it was the lib dir (containing everything), now is the gem dir (containing lib and everything else).
33
+
- Reorganize the gem root dir: it was the lib dir (containing everything), now is the gem dir (containing lib and everything
34
+
else).
34
35
- Fix broken link in README
35
36
36
37
## Version 8.0.0
@@ -44,28 +45,35 @@ None
44
45
- The `item_i18n_key` has been removed: pass the interpolated/pluralized value as the `item_name:` argument
45
46
- The `link_extra:` has been removed: its cumulative mechanism was confusing and error prone. The `:anchor_string` pagy
46
47
variable substitutes it, however it's not an helper argument anymore, so you can assign it as the `DEFAULT[:anchor_string]`
47
-
and/or pass it as any other pagy variable at object construction. (See [customize the link attributes](https://ddnexus.github.io/pagy/docs/how-to/#customize-the-link-attributes))
48
-
- HTML structure, classes and internal methods have been changed: they may break your views if you used custom stylesheets,
48
+
and/or pass it as any other pagy variable at object construction. (
49
+
See [customize the link attributes](https://ddnexus.github.io/pagy/docs/how-to/#customize-the-link-attributes))
50
+
- HTML structure, classes and internal methods have been changed: they may break your views if you used custom stylesheets,
49
51
templates or helper overrides. See the complete changes below if you notice any cosmetic changes or get some exception.
50
-
- The `navs` and `support` extras has been merged into the new [pagy extra](https://ddnexus.github.io/pagy/docs/extras/pagy).
51
-
Search for `"extra/navs"` and
52
+
- The `navs` and `support` extras has been merged into the new [pagy extra](https://ddnexus.github.io/pagy/docs/extras/pagy).
53
+
Search for `"extra/navs"` and
52
54
`"extras/support"` and replace with `"extras/pagy"` (remove the duplicate if you used both)
53
-
- The build path for javascript builders has moved from the `lib` to the `gem` dir so the correct setup in `package.json` is:
54
-
`build: "NODE_PATH=\"$(bundle show 'pagy')/gem/javascripts\" <your original command>"`
55
+
- The build path for javascript builders has been updated to the canonical paths for gems, and has moved from the `lib` to
56
+
the gem root. Notice that the correct setup in `package json` was still wrongly wrapped in the `gem` dir for 8.0.0-8.0.1, and it
57
+
has finally been fixed in 8.0.2 (sorry for that):
58
+
- 8.0.0-8.0.1 only: `build: "NODE_PATH=\"$(bundle show 'pagy')/gem/javascripts\" <your original command>"`
59
+
- 8.0.2+: `build: "NODE_PATH=\"$(bundle show 'pagy')/javascripts\" <your original command>"`
55
60
56
61
### Changes
57
62
58
-
- Streamlined HTML and CSS helper structure. You may want to look at the actual output by running the [pagy demo](https://ddnexus.github.io/pagy/playground.md#3-demo-app)
63
+
- Streamlined HTML and CSS helper structure. You may want to look at the actual output by running
64
+
the [pagy demo](https://ddnexus.github.io/pagy/playground.md#3-demo-app)
59
65
- The `pagy_nav` and `pagy_nav_js` helpers output a series of `a` tags inside a wrapper `nav` tag (nothing else)
60
-
- The disabled links are so because they are missing the `href` attributes. (They also have the `role="link"` and `aria-disabled="true"` attributes)
66
+
- The disabled links are so because they are missing the `href` attributes. (They also have the `role="link"`
67
+
and `aria-disabled="true"` attributes)
61
68
- The `current` and `gap` classes are assigned to the specific `a` tags
62
69
- HTML changes
63
70
- All the pagy helper root classes have been changed according to the following rule. For example:
- The `active` class of the `*nav`/`*nav_js` links as been renamed as `current`
68
-
- The `disabled`, `prev`, `next` and `pagy-combo-input` link classes have been removed (see the [stylesheets](https://ddnexus.github.io/pagy/docs/api/stylesheets/#pagy-scss) for details)
75
+
- The `disabled`, `prev`, `next` and `pagy-combo-input` link classes have been removed (see
76
+
the [stylesheets](https://ddnexus.github.io/pagy/docs/api/stylesheets/#pagy-scss) for details)
69
77
- The `rel="prev"` and `rel="next"` attributes have been dropped (they are obsolete)
70
78
- The `<label>`/`</label>` and `<b>`/`</b>` wrappers in the dictionary files have been removed
71
79
- The `pagy_link_proc` method (only used internally or in your custom overriding) has been renamed to `pagy_anchor` and it works
@@ -83,7 +91,7 @@ None
83
91
- The [stylesheets](https://ddnexus.github.io/pagy/docs/api/stylesheets/) are a lot simpler as a consequence of the changes above
84
92
- All the `*combo-nav_js` of the framework extras use simpler structure and improve the look and feel consistently with their
85
93
respective frameworks
86
-
- All the frontend extra have been normalized and are totally consistent with each other; a few may add the `classes:`
94
+
- All the frontend extra have been normalized and are totally consistent with each other; a few may add the `classes:`
87
95
argument to a few components, when the framework allows it.
88
96
- Created the [pagy playground](https://ddnexus.github.io/pagy/playground) system of apps working with the `pagy` executable.
0 commit comments