Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Releases: DePayFi/dhs

v1.6.0

Choose a tag to compare

@0xNe0x1 0xNe0x1 released this 30 Apr 06:55
3bcd9ac

use attribute_accessors_per_thread instead of per_thread_registry

v1.4.2

Choose a tag to compare

@10xSebastian 10xSebastian released this 28 Apr 07:31
c5fd2f2

fix merge batch data for next offset pagination

v1.4.1

Choose a tag to compare

@10xSebastian 10xSebastian released this 25 Apr 09:11
545d9e8

minor fixes (rubocop)

v1.4.0

Choose a tag to compare

@10xSebastian 10xSebastian released this 25 Apr 08:57
807809d

add next_offset pagination strategy

v1.3.0

Choose a tag to compare

@10xSebastian 10xSebastian released this 21 Dec 10:55
0449d5a

Adding support for GraphQL

v1.2.0

Choose a tag to compare

@10xSebastian 10xSebastian released this 25 May 12:47
58d3e00

adds .order to query chains

order

Set the expected order of things using .order

# app/controllers/some_controller.rb

Record.where(color: 'blue').order(:name, { created_at: :desc })
  GET https://service.example.com/records?color=blue&order[name]=asc&order[created_at]=desc

v1.1.0

Choose a tag to compare

@10xSebastian 10xSebastian released this 25 May 12:46
223c170

Adds offset_page pagination strategy:

Pagination strategy: offset_page

The offest_page strategy is based on the page strategy with the only difference
that the pages are counted from 0 onwards (not from 1).

# app/models/transaction.rb

class Transaction < DHS::Record
  configuration pagination_strategy: 'offset_page', pagination_key: 'page'

  endpoint '{+service}/transactions'
end
# app/controllers/some_controller.rb

Record.all
GET https://service.example.com/records?limit=100
{
  items: [{...}, ...],
  total: 300,
  limit: 100,
  page: 0
}
In parallel:
  GET https://service.example.com/records?limit=100&page=1
  GET https://service.example.com/records?limit=100&page=2

v1.0.3

Choose a tag to compare

@10xSebastian 10xSebastian released this 08 Apr 08:44
9f682ba

Rails 6 starts new autoloading/reloading behavior.

This version fixes the deprecation warnings mentioned here: local-ch/lhs#404

v1.0.2

Choose a tag to compare

@10xSebastian 10xSebastian released this 05 Apr 09:08
9173aab

Previously find_in_batches and find_each have been implemented before the pagination abstraction and hence have only implemented the offset pagination type hardcoded.

This change rewrites find_in_batches to also work with the other pagination types.

v1.0.1

Choose a tag to compare

@10xSebastian 10xSebastian released this 04 Apr 16:24

Reducing Ruby version entry level to 2.7.2