All Versions
83
Latest Version
Avg Release Cycle
21 days
Latest Release
-

Changelog History
Page 9

  • v3.1.0 Changes

    May 08, 2019

    Commits

    • ๐Ÿ”จ 1732dee: refactoring of marker and hidden links in *_js helpers:
      • MARKER renamed to MARK is simpler, static and hardcoded in pagy.js as well
      • removed hidden links to bogus urls that were triggering crawlers to follow (#158)
      • pagy_items_selector now works also with trim and in combination with other *nav_js helpers
      • updated tests
    • aa140e1: doc improvement
    • ๐Ÿ›  d0e4ba6: a few fixes and doc improvements
    • ๐Ÿ“„ c1ddbd9: Fix typo in docs example (#156)
    • ๐Ÿšš e0b2a2b: removed duplication in LEGACY_CHANGELOG
    • ecb6822: fix typo in README
  • v3.0.0 Changes

    April 28, 2019

    ๐Ÿ’ฅ Breaking Changes

    ๐Ÿ”จ Refactoring of i18n

    • โšก๏ธ The zh-cn and zh-hk were named incorrectly. They have been properly renamed as zh-CN and zh-HK. If you used them, you should update the Pagy::I18n.load statement.
    • โœ‚ Removed the plural keys inconsistent with the locale: now the dictionary files are 100% compatible with the I18n gem. If you use custom dictionaries, you should update their entries.
    • The :item_path variable has been renamed as :i18n_key: you should search and replace it.

    ๐Ÿ“‡ Renamed nav helper methods and files

    ๐Ÿ“ฑ The javascript-powered helpers (pagy*_responsive_nav, pagy*_compact_nav and items_selector) have been renamed in order to be simpler and more descriptive of their arguments, features and requirements. They have been improved internally, but you need only to search and replace because their usage has not been changed.

    Bootstrap Extra

    v2.0+ v3.0+
    pagy_bootstrap_responsive_nav :breakpoints pagy_bootstrap_nav_js :steps
    pagy_bootstrap_compact_nav pagy_bootstrap_combo_nav_js

    Bulma Extra

    v2.0+ v3.0+
    pagy_bulma_responsive_nav :breakpoints pagy_bulma_nav_js :steps
    pagy_bulma_compact_nav pagy_bulma_combo_nav_js

    Foundation Extra

    v2.0+ v3.0+
    pagy_foundation_responsive_nav :breakpoints pagy_foundation_nav_js :steps
    pagy_foundation_compact_nav pagy_foundation_combo_nav_js

    Materialize Extra

    v2.0+ v3.0+
    pagy_materialize_responsive_nav :breakpoints pagy_materialize_nav_js :steps
    pagy_materialize_compact_nav pagy_materialize_combo_nav_js

    Plain > Navs Extra

    v2.0+ v3.0+
    pagy_plain_nav (pagy_nav alias) - removed -
    pagy_plain_responsive_nav :breakpoints pagy_nav_js :steps
    pagy_plain_compact_nav pagy_combo_nav_js
    require "pagy/extras/plain" require "pagy/extras/navs"

    Semantic Extra

    v2.0+ v3.0+
    pagy_semantic_responsive_nav :breakpoints pagy_semantic_nav_js :steps
    pagy_semantic_compact_nav pagy_semantic_combo_nav_js

    ๐Ÿ“‡ Renamed Pagy::VARS

    Pagy::Vars[:breakpoints] has been renamed as Pagy::VARS[:steps]

    ๐Ÿ“‡ Renamed items_selector

    items_selector has been renamed as items_selector_js. It is also possible to use the i18n_key variable to customize the item name.

    ๐Ÿ“‡ Renamed classes and params in helpers

    ๐Ÿ”” Notice: You can skip the following sections if you did not override any nav helper.

    CSS nav classes

    The nav CSS classes follow the same renaming rules of the helper methods:

    v2.0+ v3.0+
    ๐Ÿ“ฑ pagy-bootstrap-responsive-nav
    pagy-bootstrap-compact-nav pagy-bootstrap-combo-nav-js
    ๐Ÿ“ฑ pagy-bulma-responsive-nav
    pagy-bulma-compact-nav pagy-bulma-combo-nav-js
    ๐Ÿ“ฑ pagy-foundation-responsive-nav
    pagy-foundation-compact-nav pagy-foundation-combo-nav-js
    ๐Ÿ“ฑ pagy-materialize-responsive-nav
    pagy-materialize-compact-nav pagy-materialize-combo-nav-js
    ๐Ÿ“ฑ pagy-plain-responsive-nav
    pagy-plain-compact-nav pagy-combo-nav-js
    ๐Ÿ“ฑ pagy-semantic-responsive-nav
    pagy-semantic-compact-nav pagy-semantic-combo-nav-js

    CSS JSON tag classes

    Renamed first param passed to the pagy_json_tag:

    v2.0+ v3.0+
    ๐Ÿ“ฑ :responsive
    :compact :combo_nav
    :items :items_selector

    Javascript funcions

    v2.0+ v3.0+
    ๐Ÿ“ฑ Pagy.responsive
    Pagy.compact Pagy.combo_nav
    Pagy.items Pagy.items_selector

    โฌ‡๏ธ Dropped marginal methods

    Dropped pagy_serialized, pagy_apply_init_tag and PagyInit javascript namespace. They were too basic to be useful as support for javascript powered custom component.

    Commits

    • ๐ŸŽ df3ebf2: updated performance assets for v3
    • ๐Ÿ”จ 260e7d4: refactoring of i18n:
      • I18n gem compliant (removed plural keys inconsistent with the locale)
      • added tests for all the pluralization procs
      • simplified and normalized Pagy dictionary file
      • renamed :items_Path to :colletion_key
      • added :collection_key lookup for the items_selector_js helper
    • ๐Ÿ”จ 8ebb1ab: refactoring of test coverage:
      • replaced SingleCov with SimpleCov for CodeCov integration
      • simplified Travis setup
      • separate controls of RuboCop, SimpleCov, Oj and CodeCov with dedicated ENV variables
      • completed coverage at 100%
    • ๐Ÿšš ae3e4bc: removed overridden method and undefined instance variable warnings
    • โšก๏ธ aa1aad9: renamed multi_series > sequels and relative js arguments and variables; renamed :sizes > :steps; updated nav test cases
    • 901f779: compact > combo and other changes
    • ๐Ÿฑ f7425a5: renamed assets according to helper names; reordered and improved nav docs
    • ๐Ÿšš ad100eb: renamed plain extra to navs; removed the "plain_" qualifier for the helpers
    • โšก๏ธ 54f4a7e: updated docs and comments
    • 25470dd: renamed items_selector > items_selector_js
    • โœ… d4be9dd: replaced responsive with nav_js; reordered methods and test normalization
    • ๐Ÿšš ec7d754: removed warning for locales zh-cn and zh-hk, and properly renamed as zh-CN and zh-HK
    • 2548557: simplified support extra (dropped pagy_serialized and pagy_apply_init_tag)
    • f82b2e7: fix typo
    • ๐ŸŒ 704a4df: add french translation (#154)
    • โšก๏ธ 2f67dfa: UPDATE pagy locales id (#151)
    • 15732da: fix for broken migration link (#150)

    For older versions, check the LEGACY CHANGELOG.

  • v2.1.5

    March 29, 2019