Skip to content

Commit 2809a54

Browse files
committed
Version 4.0.0
1 parent ffa2176 commit 2809a54

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

NEWS.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# Change Log
22

3-
## Unreleased
4-
3+
## 4.0.0
4+
5+
* Optimize `ERB::Util.html_escape`
6+
* No longer duplicate an argument string when nothing is escaped.
7+
* This makes `ERB::Util.html_escape` faster than `CGI.escapeHTML` in no-escape cases.
8+
* It skips calling `#to_s` when an argument is already a String.
9+
* Define `ERB::Escape.html_escape` as an alias to `ERB::Util.html_escape`
10+
* `ERB::Util.html_escape` is known to be monkey-patched by Rails.
11+
`ERB::Escape.html_escape` is useful when you want a non-monkey-patched version.
512
* Drop deprecated `-S` option from `erb` command
613

714
## 3.0.0

lib/erb/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22
class ERB
3-
VERSION = '3.0.0'
3+
VERSION = '4.0.0'
44
private_constant :VERSION
55
end

0 commit comments

Comments
 (0)