Skip to content

Releases: local-ch/lhs

v26.2.0

18 May 15:48
7c7c912
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v26.1.0...v26.2.0

v26.1.0

02 May 08:45
a392574
Compare
Choose a tag to compare

What's Changed

  • Add possibility to override HTTP request's method when chaining save with options. by @dimameshcharakou in #413

Full Changelog: v26.0.1...v26.1.0

v26.0.1

24 Sep 09:39
c6f7c62
Compare
Choose a tag to compare

Allows to use auth options which takes precedence over auto auth.
https://github.com/local-ch/lhs#automatic-authentication-oauth

Record.options(auth: {bearer: 'ACCESS_TOKEN'}).find(12345)

v26.0.0

12 May 06:24
95c5d22
Compare
Choose a tag to compare

Bumps lhc version and because that could introduce lhc major version 15, also increase LHS's version.

v25.2.0

10 May 08:56
Compare
Choose a tag to compare

Do not follow Location header when followlocation option for the endpoint is set to false: #405

v25.1.0

06 May 07:22
2434b35
Compare
Choose a tag to compare

Do not follow Location header when followlocation option for the endpoint is set to false: #405

v25.0.4

20 Nov 10:46
4d33ada
Compare
Choose a tag to compare

When performing includes via multiple levels, .e.g.

User.includes(places: :contracts)

LHS had problems to continue including nested includes, when there were unexpanded links in between, like places in this example, as users/id/places returns just a list of unexpanded place links.

This PR makes sure that LHS expands loaded links before continuing with includes.

v25.0.3

10 Nov 08:16
1ce78cb
Compare
Choose a tag to compare

This fixes an edge case where we include via 2 levels and the second level is missing.

 NoMethodError:
       undefined method `deep_merge' for nil:NilClass
     # ./lib/lhs/concerns/record/request.rb:32:in `block in deep_merge_with_option_blocks'
     # ./lib/lhs/concerns/record/request.rb:32:in `map'
     # ./lib/lhs/concerns/record/request.rb:32:in `deep_merge_with_op

v25.0.2

30 Oct 08:41
866d4dc
Compare
Choose a tag to compare

some applications were showing weird behavior when using concerns for lhs records.

e.g. causing

TypeError:
       superclass mismatch for class Place

Turns out that was because autoloading was autoloading those concerns, even though they are not lhs's business. ruby/rails takes care of autoloading them when loading the original records.

This PR fixes that issue. Unfortunately there was no way of adding a test for that (i've tried) but that issue has been described also by Dima here: #397

v25.0.1

16 Oct 12:50
2e71c96
Compare
Choose a tag to compare

Fix autoloading of inheriting records (#397)