NEWS.md 1.9 KB
Newer Older
Y
Yusuke Endoh 已提交
1 2
# NEWS for Ruby 2.8.0 (tentative; to be 3.0.0)

3 4
This document is a list of user visible feature changes since the
 **2.7.0** release, except for bug fixes.
Y
Yusuke Endoh 已提交
5 6 7 8 9 10

Note that each entry is kept so brief that no reason behind or reference
information is supplied with.  For a full list of changes with all
sufficient information, see the ChangeLog file or Redmine
(e.g. `https://bugs.ruby-lang.org/issues/$FEATURE_OR_BUG_NUMBER`).

11
## Language changes
Y
Yusuke Endoh 已提交
12

13 14
* $SAFE is now a normal global variable with no special behavior. [Feature #16131]

15 16
* yield in singleton class definitions in methods is now a SyntaxError. [Feature #15575]

17
## Command line options
Y
Yusuke Endoh 已提交
18

19
## Core classes updates (outstanding ones only)
Y
Yusuke Endoh 已提交
20

21 22 23 24 25 26 27
* Dir

    * Modified method

        * Dir.glob and Dir.[] now sort the results by default, and
          accept `sort:` keyword option.  [[Feature #8709]]

28
* Hash
Y
Yusuke Endoh 已提交
29

30
    * Modified method
Y
Yusuke Endoh 已提交
31

32
        * Hash#transform_keys now accepts a hash that maps keys to new
33
          keys.  [[Feature #16274]]
Y
Yusuke Endoh 已提交
34

35
## Stdlib updates (outstanding ones only)
Y
Yusuke Endoh 已提交
36

37 38 39 40
* Net::HTTP

    * New method

41 42
        * Add Net::HTTP#verify_hostname= and Net::HTTP#verify_hostname
          to skip hostname verification.  [Feature #16555]
43

44
## Compatibility issues (excluding feature bug fixes)
Y
Yusuke Endoh 已提交
45

46
* Regexp literals are frozen [[Feature #8948]] [[Feature #16377]]
47

48
    ```ruby
49 50
    /foo/.frozen? #=> true
    ```
51

52 53
* The bundled gems

54
    net-telnet and xmlrpc has been removed from the bundled gems.
55 56 57
    If you interested in the maintain them, Please comment your plan
    to https://github.com/ruby/xmlrpc or https://github.com/ruby/net-telnet.

58
## Stdlib compatibility issues (excluding feature bug fixes)
Y
Yusuke Endoh 已提交
59

60
## C API updates
Y
Yusuke Endoh 已提交
61

62
## Implementation improvements
Y
Yusuke Endoh 已提交
63

64
## Miscellaneous changes
65 66


67
[Feature #8709]:  https://bugs.ruby-lang.org/issues/8709
68 69 70
[Feature #8948]:  https://bugs.ruby-lang.org/issues/8948
[Feature #16274]: https://bugs.ruby-lang.org/issues/16274
[Feature #16377]: https://bugs.ruby-lang.org/issues/16377