Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
* Deprecate `JSON.load_default_options`.
* Deprecate `JSON.unsafe_load_default_options`.
* Deprecate `JSON.dump_default_options`.
* Remove deprecated `JSON.restore` method.
* Remove deprecated `JSON.unparse` method.
* Remove deprecated `JSON.fast_unparse` method.
* Remove deprecated `JSON.pretty_unparse` method.

### 2025-03-12 (2.10.2)

Expand Down
22 changes: 0 additions & 22 deletions lib/json/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,6 @@ def generate(obj, opts = nil)
end
end

# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and
# later delete them.
alias unparse generate
module_function :unparse
# :startdoc:

# :call-seq:
# JSON.fast_generate(obj, opts) -> new_string
#
Expand All @@ -386,12 +379,6 @@ def fast_generate(obj, opts = nil)
state.generate(obj)
end

# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
alias fast_unparse fast_generate
module_function :fast_unparse
# :startdoc:

# :call-seq:
# JSON.pretty_generate(obj, opts = nil) -> new_string
#
Expand Down Expand Up @@ -441,12 +428,6 @@ def pretty_generate(obj, opts = nil)
state.generate(obj)
end

# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
alias pretty_unparse pretty_generate
module_function :pretty_unparse
# :startdoc:

# Sets or returns default options for the JSON.unsafe_load method.
# Initially:
# opts = JSON.load_default_options
Expand Down Expand Up @@ -799,9 +780,6 @@ def recurse_proc(result, &proc) # :nodoc:
end
end

alias restore load
module_function :restore

# Sets or returns the default options for the JSON.dump method.
# Initially:
# opts = JSON.dump_default_options
Expand Down