@@ -25,3 +25,82 @@ mruby 1.3.0 is released. Download [mruby 1.3.0][mruby-1.3.0-dl] now.
2525[ See the full diff] ( https://github.com/mruby/mruby/compare/1.2.0...1.3.0 ) .
2626
2727[ contributors ] : https://github.com/mruby/mruby/graphs/contributors
28+
29+ ## What's new in mruby 1.3.0
30+
31+ ### The safe navigation operator (` &. ` )
32+
33+ mruby 1.3 now supports the safe navigation operator (` &. ` ) to help handle nil
34+ value returned from methods. This feature comes from Ruby 2.3.
35+
36+ By using the safe navigation operator, you can simply write
37+
38+ ```
39+ account&.owner&.address
40+ ```
41+
42+ Instead of writing
43+
44+ ```
45+ account && account.owner && account.owner.address
46+ ```
47+
48+ Or (with ActiveSupport)
49+
50+ ```
51+ account.try(:owner).try(:address)
52+ ```
53+
54+ ### ` Array#dig ` , ` Hash#dig `
55+
56+ ` #dig ` is a method to retrieve a value from JSON-like nested Array/Hash structures.
57+
58+ This feature also comes from Ruby 2.3.
59+
60+ For example:
61+
62+ ```
63+ params.dig(:account, :owner, :address)
64+ ```
65+
66+ Instead of
67+
68+ ```
69+ account = params[:account]
70+ owner = account[:owner]
71+ owner[:address]
72+ ```
73+
74+ ### ` Object#freeze `
75+
76+ You can now "freeze" an object by using Object#freeze.
77+
78+ Frozen objects cannot be modified.
79+
80+ ### ` Kernel#caller `
81+
82+ You can retrieve call frame information by using ` Kernel#caller ` .
83+
84+ ## Remaining Bugs
85+
86+ After the code-freeze of 1.3 release, following issues are filed and fixed in the master branch.
87+
88+ * [ #3711 ] ( https://github.com/mruby/mruby/issues/3711 )
89+ * [ #3712 ] ( https://github.com/mruby/mruby/issues/3712 )
90+ * [ #3714 ] ( https://github.com/mruby/mruby/issues/3714 )
91+ * [ #3715 ] ( https://github.com/mruby/mruby/issues/3715 )
92+ * [ #3716 ] ( https://github.com/mruby/mruby/issues/3716 )
93+ * [ #3717 ] ( https://github.com/mruby/mruby/issues/3717 )
94+ * [ #3719 ] ( https://github.com/mruby/mruby/issues/3719 )
95+ * [ #3720 ] ( https://github.com/mruby/mruby/issues/3720 )
96+ * [ #3721 ] ( https://github.com/mruby/mruby/issues/3721 )
97+ * [ #3722 ] ( https://github.com/mruby/mruby/issues/3722 )
98+ * [ #3723 ] ( https://github.com/mruby/mruby/issues/3723 )
99+ * [ #3724 ] ( https://github.com/mruby/mruby/issues/3724 )
100+
101+ The following issues are not yet fixed as of 2017-07-04.
102+
103+ * [ #2720 ] ( https://github.com/mruby/mruby/issues/2720 )
104+ * [ #3629 ] ( https://github.com/mruby/mruby/issues/3629 )
105+ * [ #3710 ] ( https://github.com/mruby/mruby/issues/3710 )
106+
0 commit comments