summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-12-15 16:02:14 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-12-15 16:02:27 -0800
commit5ca46399f111a8beda05bf99fc2c56e5c3076498 (patch)
treec6080b6cabf43e998cdfd9e3cf6d5549f66cf49f
parent14158f1f8c50069f076f99e08405c5006ca65df9 (diff)
Add NEWS entries about CGI and ERB [ci skip]
-rw-r--r--NEWS.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 9e3d1e9a9c..98adab1dc8 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -394,8 +394,19 @@ Note: We're only listing outstanding class updates.
## Stdlib updates
+* CGI
+
+ * `CGI.escapeURIComponent` and `CGI.unescapeURIComponent` are added.
+ [[Feature #18822]]
+
* ERB
+ * `ERB::Util.html_escape` is made faster than `CGI.escapeHTML`.
+ * It no longer allocates a String object when no character needs to be escaped.
+ * It skips calling `#to_s` method when an argument is already a String.
+ * `ERB::Escape.html_escape` is added as an alias to `ERB::Util.html_escape`,
+ which has not been monkey-patched by Rails.
+ * `ERB::Util.url_encode` is made faster using `CGI.escapeURIComponent`.
* `-S` option is removed from `erb` command.
* FileUtils
@@ -698,6 +709,7 @@ The following deprecated APIs are removed.
[Feature #18798]: https://bugs.ruby-lang.org/issues/18798
[Feature #18809]: https://bugs.ruby-lang.org/issues/18809
[Feature #18821]: https://bugs.ruby-lang.org/issues/18821
+[Feature #18822]: https://bugs.ruby-lang.org/issues/18822
[Feature #18824]: https://bugs.ruby-lang.org/issues/18824
[Feature #18832]: https://bugs.ruby-lang.org/issues/18832
[Feature #18925]: https://bugs.ruby-lang.org/issues/18925