Skip to content

Commit

Permalink
Version 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Apr 2, 2024
1 parent 443016a commit 1085b52
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body:
attributes:
label: Before submitting...
options:
- label: I upgraded to pagy version 7.0.11
- label: I upgraded to pagy version 8.0.0
required: true
- label: I searched through the [Documentation](https://ddnexus.github.io/pagy/)
required: true
Expand Down
12 changes: 12 additions & 0 deletions .github/latest_release_body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## ⚠ WARNING

We may drop pagy's less used CSS extras.

If you wish to keep your favorites alive, please, [vote here](https://github.com/ddnexus/pagy/discussions/categories/survey)

### ✴ What's new in 8.0.0 ✴

- Better frontend helpers
- New [Pagy Playground](https://ddnexus.github.io/pagy/playground/) to showcase, clone and develop pagy APPs without any setup on
your side (try the [pagy demo](https://ddnexus.github.io/pagy/playground.md#3-demo-app))
- See the [Changelog](https://ddnexus.github.io/pagy/changelog) for possible breaking changes
13 changes: 8 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ com/ddnexus/pagy/discussions/categories/survey).

If you upgrade from version `< 8.0.0` see the following:

- [Breaking changes in version 7.0.0](#version-800)
- [Breaking changes in version 8.0.0](#version-800)
- [Breaking changes in version 7.0.0](CHANGELOG_LEGACY.md#version-700)
- [Breaking changes in version 6.0.0](CHANGELOG_LEGACY.md#version-600)
- [Breaking changes in version 5.0.0](CHANGELOG_LEGACY.md#version-500)
Expand All @@ -29,7 +29,9 @@ If you upgrade from version `< 8.0.0` see the following:
None
<hr>

## Breaking changes
## Version 8.0.0

### Breaking changes

- Renamed/removed the following arguments for all the helpers:
- Search `pagy_id:`, replace with `id:`
Expand All @@ -45,7 +47,7 @@ None
Search for `"extra/navs"` and
`"extras/support"` and replace with `"extras/pagy"` (remove the duplicate if you used both)

## Changes
### Changes

- 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)
- The `pagy_nav` and `pagy_nav_js` helpers output a series of `a` tags inside a wrapper `nav` tag (nothing else)
Expand Down Expand Up @@ -79,7 +81,8 @@ None
argument to a few components, when the framework allows it.
- Created the [pagy playground](https://ddnexus.github.io/pagy/playground) system of apps working with the `pagy` executable.
- Internal renaming `FrontendHelpers` > `JSTools`

## Version 7.0.11
- Fix broken link of pagy.rb in docs (closes #668, #669)
- Docs Improvements
- Better code issue template

[LEGACY CHANGELOG >>>](CHANGELOG_LEGACY.md)
2 changes: 1 addition & 1 deletion README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/apps/calendar.ru
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# DOC
# https://ddnexus.github.io/pagy/playground/#4-calendar-app

VERSION = '7.0.11'
VERSION = '8.0.0'

require 'bundler/inline'
gemfile(true) do
Expand Down
2 changes: 1 addition & 1 deletion lib/apps/demo.ru
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# DOC
# https://ddnexus.github.io/pagy/playground/#3-demo-app

VERSION = '7.0.11'
VERSION = '8.0.0'

require 'bundler/inline'
gemfile(true) do
Expand Down
2 changes: 1 addition & 1 deletion lib/apps/rails.ru
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# DOC
# https://ddnexus.github.io/pagy/playground/#2-rails-app

VERSION = '7.0.11'
VERSION = '8.0.0'

# Gemfile
require 'bundler/inline'
Expand Down
2 changes: 1 addition & 1 deletion lib/apps/repro.ru
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# DOC
# https://ddnexus.github.io/pagy/playground/#1-repro-app

VERSION = '7.0.11'
VERSION = '8.0.0'

require 'bundler/inline'
gemfile(true) do
Expand Down
2 changes: 1 addition & 1 deletion lib/bin/pagy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

VERSION = '7.0.11'
VERSION = '8.0.0'
APPS = %w[repro rails demo calendar].freeze

require_relative '../optimist'
Expand Down
2 changes: 1 addition & 1 deletion lib/config/pagy.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Pagy initializer file (7.0.11)
# Pagy initializer file (8.0.0)
# Customize only what you really need and notice that the core Pagy works also without any of the following lines.
# Should you just cherry pick part of this file, please maintain the require-order of the extras

Expand Down
4 changes: 2 additions & 2 deletions lib/javascripts/pagy-dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/javascripts/pagy-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Pagy = (() => {
const trim = (a, param) => a.replace(new RegExp(`[?&]${param}=1\\b(?!&)|\\b${param}=1&`), "");
// Public interface
return {
version: "7.0.11",
version: "8.0.0",
// Scan for elements with a "data-pagy" attribute and call their init functions with the decoded args
init(arg) {
const target = arg instanceof Element ? arg : document;
Expand Down
2 changes: 1 addition & 1 deletion lib/javascripts/pagy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/pagy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Core class
class Pagy
VERSION = '7.0.11'
VERSION = '8.0.0'

# Root pathname to get the path of Pagy files like templates or dictionaries
def self.root
Expand Down
2 changes: 1 addition & 1 deletion quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ If you use Bundler, add the gem in the Gemfile, optionally avoiding the next maj
see [RubyGem Specifiers](http://guides.rubygems.org/patterns/#pessimistic-version-constraint)):

```ruby Gemfile
gem 'pagy', '~> 7.0' # omit patch digit
gem 'pagy', '~> 8.0' # omit patch digit
```

+++ Without Bundler
Expand Down
2 changes: 1 addition & 1 deletion retype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ url: https://ddnexus.github.io/pagy

branding:
title: Pagy
label: 7.0.11
label: 8.0.0
colors:
label:
text: "#FFFFFF"
Expand Down
2 changes: 1 addition & 1 deletion src/pagy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const Pagy = (() => {

// Public interface
return {
version: "7.0.11",
version: "8.0.0",

// Scan for elements with a "data-pagy" attribute and call their init functions with the decoded args
init(arg?:Element | never) {
Expand Down

0 comments on commit 1085b52

Please sign in to comment.