Skip to content

Releases: chanzuckerberg/sorbet-coerce

v0.7.0

11 Aug 17:12
ea85b1d
Compare
Choose a tag to compare

Hi all! This is a relatively light release; the main breaking change is shifting our support window to match Ruby's (i.e. >= 2.7). In other words, we are dropping support for Ruby 2.5 and 2.6. v0.6.0 is the last release that supports 2.5 and 2.6; these are both EOL, and we suggest you move to 2.7 or 3 as soon as possible!

What's Changed

  • Breaking: moves Ruby version support window to ['2.7', '3.0', '3.1'], drops support for 2.5, 2.6 by @mattxwang in #69
  • Added: README docs new feature documentation, lack of support for variables in template types by @mattxwang in #68
  • Fixed: bundled-rbi has correct sig with new coerce_empty_to_nil argument by @mattxwang in #70
  • Dev: manual release trigger by @mattxwang in #67
  • Dev: removes duplicate reline rbi definitions by @mattxwang in #74
  • Dev: removes duplicate Enumerable rbi definition by @mattxwang in #75

Full Changelog: v0.6.0...v0.7.0

v0.6.0

22 Jul 20:04
402257c
Compare
Choose a tag to compare

Note: there was a small issue initially publishing this release on RubyGems. The .gemspec was updated in c3408d2.

What's Changed

  • Added: handle T.class_of and unknown types by @datbth in #56
  • Added: support T::Types::FixedArray by @datbth in #57
  • Added: coerce_empty_to_nil config for string conversion by @leifg in #65
  • Fixed: keep unsupported union values as-is by @datbth in #53
  • Fixed: document support of union types by @donaldong in #54
  • Fixed: explicitly pass hashes instead of keyword arguments in tests by @leifg in #64
  • Dev: migrate from Travis CI to GitHub Actions, update codecov, regenerate RBIs by @mattxwang in #62
  • Dev: reruns bundle exec srb rbi hidden-definitions, resolves typecheck by @mattxwang in #66

New Contributors

Full Changelog: v0.5.0...v0.6.0

v0.5.0

24 May 21:10
Compare
Choose a tag to compare

Bug Fixes

  • Fix BigDecimal support on Ruby 2.7 #50

v0.4.0

18 Mar 16:46
1fb3708
Compare
Choose a tag to compare

Fixes

  • #49 Move sorbet to development_dependency

v0.3.0

06 Jan 23:00
Compare
Choose a tag to compare

Release Notes

v0.2.7

12 May 15:46
Compare
Choose a tag to compare
  • Avoid runtime method definitions to improve performance (#42)

v0.2.6

25 Apr 21:28
Compare
Choose a tag to compare
  • Bugfix: Return the original tstruct/simple-type instance when type matches (#41)
  • Update README.md

v0.2.5

06 Apr 16:03
Compare
Choose a tag to compare

Reorganize files in lib to lib/sorbet-coerce to avoid path conflicts (#40).

v0.2.4

16 Mar 02:23
Compare
Choose a tag to compare
  • Handle nil when coercing T::Hash
  • Improve T::Struct detection
  • Improve custom types construction
  • Remove the top-level rbi directory to workaround a sorbet gem compatibility issue sorbet/sorbet#2732

v0.2.3

28 Feb 23:07
Compare
Choose a tag to compare
  • Support T::Set
  • Support T.untyped
  • Rename T::Coerce to TypeCoerce