A type coercion lib works with Sorbet's static type checker and type definitions
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!
['2.7', '3.0', '3.1']
, drops support for 2.5
, 2.6
by @mattxwang in https://github.com/chanzuckerberg/sorbet-coerce/pull/69
README
docs new feature documentation, lack of support for variables in template types by @mattxwang in https://github.com/chanzuckerberg/sorbet-coerce/pull/68
coerce_empty_to_nil
argument by @mattxwang in https://github.com/chanzuckerberg/sorbet-coerce/pull/70
reline
rbi definitions by @mattxwang in https://github.com/chanzuckerberg/sorbet-coerce/pull/74
Enumerable
rbi definition by @mattxwang in https://github.com/chanzuckerberg/sorbet-coerce/pull/75
Full Changelog: https://github.com/chanzuckerberg/sorbet-coerce/compare/v0.6.0...v0.7.0
Note: there was a small issue initially publishing this release on RubyGems. The .gemspec
was updated in https://github.com/chanzuckerberg/sorbet-coerce/commit/c3408d22c6c931513c90112fcfaad97beaeabf3d.
T.class_of
and unknown types by @datbth in https://github.com/chanzuckerberg/sorbet-coerce/pull/56
T::Types::FixedArray
by @datbth in https://github.com/chanzuckerberg/sorbet-coerce/pull/57
coerce_empty_to_nil
config for string conversion by @leifg in https://github.com/chanzuckerberg/sorbet-coerce/pull/65
bundle exec srb rbi hidden-definitions
, resolves typecheck by @mattxwang in https://github.com/chanzuckerberg/sorbet-coerce/pull/66
Full Changelog: https://github.com/chanzuckerberg/sorbet-coerce/compare/v0.5.0...v0.6.0
Reorganize files in lib
to lib/sorbet-coerce
to avoid path conflicts (#40).
T::Set
T.untyped
T::Coerce
to TypeCoerce