multi_json 1.20.1 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/multi_json.rb CHANGED
@@ -10,7 +10,7 @@ require_relative "multi_json/adapter_selector"
10
10
 
11
11
  # A unified interface for JSON libraries in Ruby
12
12
  #
13
- # MultiJson allows swapping between JSON backends without changing your code.
13
+ # MultiJSON allows swapping between JSON backends without changing your code.
14
14
  # It auto-detects available JSON libraries and uses the fastest one available.
15
15
  #
16
16
  # ## Method-definition patterns
@@ -19,9 +19,9 @@ require_relative "multi_json/adapter_selector"
19
19
  #
20
20
  # 1. ``module_function`` creates both a class method and a private instance
21
21
  # method from a single ``def``. This is used for the hot-path API
22
- # (``adapter``, ``use``, ``adapter=``, ``load``, ``dump``,
23
- # ``current_adapter``) so that both ``MultiJson.load(...)`` and legacy
24
- # ``Class.new { include MultiJson }.new.send(:load, ...)`` invocations
22
+ # (``adapter``, ``use``, ``adapter=``, ``parse``, ``generate``,
23
+ # ``current_adapter``) so that both ``MultiJSON.parse(...)`` and legacy
24
+ # ``Class.new { include MultiJSON }.new.send(:parse, ...)`` invocations
25
25
  # work through the same body. The instance versions are re-publicized
26
26
  # below so YARD renders them as part of the public API.
27
27
  # 2. ``def self.foo`` creates only a singleton method, giving mutation
@@ -29,20 +29,20 @@ require_relative "multi_json/adapter_selector"
29
29
  # {.with_adapter}, which needs precise mutation coverage of its
30
30
  # fiber-local save/restore logic.
31
31
  #
32
- # Deprecated public API (``decode``, ``encode``, ``engine``, etc.) lives in
33
- # {file:lib/multi_json/deprecated.rb} so this file stays focused on the
34
- # current surface.
32
+ # Deprecated public API (``decode``, ``encode``, ``engine``, ``load``,
33
+ # ``dump``, etc.) lives in {file:lib/multi_json/deprecated.rb} so this
34
+ # file stays focused on the current surface.
35
35
  #
36
36
  # @example Basic usage
37
- # MultiJson.load('{"foo":"bar"}') #=> {"foo" => "bar"}
38
- # MultiJson.dump({foo: "bar"}) #=> '{"foo":"bar"}'
37
+ # MultiJSON.parse('{"foo":"bar"}') #=> {"foo" => "bar"}
38
+ # MultiJSON.generate({foo: "bar"}) #=> '{"foo":"bar"}'
39
39
  #
40
40
  # @example Specifying an adapter
41
- # MultiJson.use(:oj)
42
- # MultiJson.load('{"foo":"bar"}', adapter: :json_gem)
41
+ # MultiJSON.use(:oj)
42
+ # MultiJSON.parse('{"foo":"bar"}', adapter: :json_gem)
43
43
  #
44
44
  # @api public
45
- module MultiJson
45
+ module MultiJSON
46
46
  extend Options
47
47
  extend AdapterSelector
48
48
 
@@ -52,37 +52,38 @@ module MultiJson
52
52
  DEPRECATION_WARNINGS_SHOWN = Set.new
53
53
  private_constant :DEPRECATION_WARNINGS_SHOWN
54
54
 
55
- class << self
56
- private
57
-
58
- # Emit a deprecation warning at most once per process for the given key
59
- #
60
- # Defined as a singleton method (rather than via module_function) so
61
- # there is exactly one definition for mutation tests to target. The
62
- # deprecated method bodies invoke this via ``warn_deprecation_once(...)``
63
- # (singleton callers) and via the private instance delegates routing
64
- # through the singleton for legacy ``include MultiJson`` consumers.
65
- #
66
- # @api private
67
- # @param key [Symbol] identifier for the deprecation (typically the method name)
68
- # @param message [String] warning message to emit on first call
69
- # @return [void]
70
- # @example
71
- # MultiJson.send(:warn_deprecation_once, :foo, "MultiJson.foo is deprecated")
72
- def warn_deprecation_once(key, message)
73
- Concurrency.synchronize(:deprecation_warnings) do
74
- return if DEPRECATION_WARNINGS_SHOWN.include?(key)
55
+ # Emit a deprecation warning at most once per process for the given key
56
+ #
57
+ # Defined as a singleton method (rather than via module_function) so
58
+ # there is exactly one definition for mutation tests to target.
59
+ # Public so the deprecated ``load_options`` / ``dump_options``
60
+ # aliases on the {Options} mixin can invoke it without routing
61
+ # through ``MultiJSON.send(...)``.
62
+ #
63
+ # The warning is tagged with the ``:deprecated`` category so callers
64
+ # can silence the whole set with ``Warning[:deprecated] = false`` or
65
+ # surface it via ``ruby -W:deprecated`` — the standard Ruby idiom for
66
+ # library deprecations since 2.7.
67
+ #
68
+ # @api private
69
+ # @param key [Symbol] identifier for the deprecation (typically the method name)
70
+ # @param message [String] warning message to emit on first call
71
+ # @return [void]
72
+ # @example
73
+ # MultiJSON.warn_deprecation_once(:foo, "MultiJSON.foo is deprecated")
74
+ def self.warn_deprecation_once(key, message)
75
+ Concurrency.synchronize(:deprecation_warnings) do
76
+ return if DEPRECATION_WARNINGS_SHOWN.include?(key)
75
77
 
76
- Kernel.warn(message)
77
- DEPRECATION_WARNINGS_SHOWN.add(key)
78
- end
78
+ Kernel.warn(message, category: :deprecated)
79
+ DEPRECATION_WARNINGS_SHOWN.add(key)
79
80
  end
80
81
  end
81
82
 
82
83
  # Resolve the ``ParseError`` constant for an adapter class
83
84
  #
84
85
  # The result is memoized on the adapter class itself in a
85
- # ``@_multi_json_parse_error`` ivar so subsequent ``MultiJson.load``
86
+ # ``@_multi_json_parse_error`` ivar so subsequent ``MultiJSON.load``
86
87
  # calls skip the constant lookup entirely. The lookup is performed
87
88
  # with ``inherit: false`` so a stray top-level ``::ParseError``
88
89
  # constant in the host process is correctly ignored on every
@@ -122,7 +123,7 @@ module MultiJson
122
123
  # @api public
123
124
  # @return [Class] the current adapter class
124
125
  # @example
125
- # MultiJson.adapter #=> MultiJson::Adapters::Oj
126
+ # MultiJSON.adapter #=> MultiJSON::Adapters::Oj
126
127
  def adapter
127
128
  override = Fiber[:multi_json_adapter]
128
129
  return override if override
@@ -140,7 +141,7 @@ module MultiJson
140
141
  # @param new_adapter [Symbol, String, Module, nil] adapter specification
141
142
  # @return [Class] the loaded adapter class
142
143
  # @example
143
- # MultiJson.use(:oj)
144
+ # MultiJSON.use(:oj)
144
145
  def use(new_adapter)
145
146
  loaded = load_adapter(new_adapter)
146
147
  Concurrency.synchronize(:adapter) do
@@ -154,7 +155,7 @@ module MultiJson
154
155
  # @api public
155
156
  # @return [Class] the loaded adapter class
156
157
  # @example
157
- # MultiJson.adapter = :json_gem
158
+ # MultiJSON.adapter = :json_gem
158
159
  alias_method :adapter=, :use
159
160
  module_function :adapter=
160
161
 
@@ -171,12 +172,12 @@ module MultiJson
171
172
  # @raise [ParseError] if parsing fails
172
173
  # @raise [AdapterError] if the adapter doesn't define a ``ParseError`` constant
173
174
  # @example
174
- # MultiJson.load('{"foo":"bar"}') #=> {"foo" => "bar"}
175
- # MultiJson.load("") #=> nil
176
- # MultiJson.load(" \n") #=> nil
177
- def load(string, options = {})
175
+ # MultiJSON.parse('{"foo":"bar"}') #=> {"foo" => "bar"}
176
+ # MultiJSON.parse("") #=> nil
177
+ # MultiJSON.parse(" \n") #=> nil
178
+ def parse(string, options = {})
178
179
  adapter_class = current_adapter(options)
179
- parse_error_class = MultiJson.parse_error_class_for(adapter_class)
180
+ parse_error_class = MultiJSON.parse_error_class_for(adapter_class)
180
181
  begin
181
182
  adapter_class.load(string, options)
182
183
  rescue parse_error_class => e
@@ -195,7 +196,7 @@ module MultiJson
195
196
  # nil to use the process default
196
197
  # @return [Class] adapter class
197
198
  # @example
198
- # MultiJson.current_adapter(adapter: :oj) #=> MultiJson::Adapters::Oj
199
+ # MultiJSON.current_adapter(adapter: :oj) #=> MultiJSON::Adapters::Oj
199
200
  def current_adapter(options = {})
200
201
  options ||= Options::EMPTY_OPTIONS
201
202
  adapter_override = options[:adapter]
@@ -209,15 +210,15 @@ module MultiJson
209
210
  # @param options [Hash] serialization options (adapter-specific)
210
211
  # @return [String] JSON string
211
212
  # @example
212
- # MultiJson.dump({foo: "bar"}) #=> '{"foo":"bar"}'
213
- def dump(object, options = {})
213
+ # MultiJSON.generate({foo: "bar"}) #=> '{"foo":"bar"}'
214
+ def generate(object, options = {})
214
215
  current_adapter(options).dump(object, options)
215
216
  end
216
217
 
217
218
  # Re-publicize the instance versions of the module_function methods so
218
219
  # YARD/yardstick render them as part of the public API and legacy
219
- # ``include MultiJson`` consumers can call them without ``.send``.
220
- public :adapter, :use, :adapter=, :load, :current_adapter, :dump
220
+ # ``include MultiJSON`` consumers can call them without ``.send``.
221
+ public :adapter, :use, :adapter=, :parse, :current_adapter, :generate
221
222
 
222
223
  # ===========================================================================
223
224
  # Public API (def self.foo: singleton-only, for mutation-test precision)
@@ -236,7 +237,7 @@ module MultiJson
236
237
  # @yield block to execute with the temporary adapter
237
238
  # @return [Object] result of the block
238
239
  # @example
239
- # MultiJson.with_adapter(:json_gem) { MultiJson.dump({}) }
240
+ # MultiJSON.with_adapter(:json_gem) { MultiJSON.dump({}) }
240
241
  def self.with_adapter(new_adapter)
241
242
  previous_override = Fiber[:multi_json_adapter]
242
243
  Fiber[:multi_json_adapter] = load_adapter(new_adapter)
@@ -251,18 +252,69 @@ module MultiJson
251
252
 
252
253
  private
253
254
 
254
- # Instance-method delegate for {MultiJson.with_adapter}
255
+ # Instance-method delegate for {MultiJSON.with_adapter}
255
256
  #
256
257
  # @api private
257
258
  # @param new_adapter [Symbol, String, Module] adapter to use
258
259
  # @yield block to execute with the temporary adapter
259
260
  # @return [Object] result of the block
260
261
  # @example
261
- # class Foo; include MultiJson; end
262
+ # class Foo; include MultiJSON; end
262
263
  # Foo.new.send(:with_adapter, :json_gem) { ... }
263
264
  def with_adapter(new_adapter, &)
264
- MultiJson.with_adapter(new_adapter, &)
265
+ MultiJSON.with_adapter(new_adapter, &)
265
266
  end
266
267
  end
267
268
 
268
269
  require_relative "multi_json/deprecated"
270
+
271
+ # Backward-compatible alias for the legacy ``MultiJson`` constant name
272
+ #
273
+ # Downstream code that still writes ``MultiJson.parse(...)`` or
274
+ # ``rescue MultiJson::ParseError`` continues to work, but emits a
275
+ # one-time deprecation warning pointing at ``MultiJSON``. Each public
276
+ # method on {MultiJSON} gets an explicit forwarder defined on this
277
+ # module, and constant access resolves via {.const_missing}, so both
278
+ # dotted calls and ``::`` constant lookups (including rescue clauses)
279
+ # route through the canonical module.
280
+ #
281
+ # @api public
282
+ # @deprecated Use {MultiJSON} (all-caps) instead. Will be removed in v2.0.
283
+ module MultiJson
284
+ # Forward every public method MultiJSON exposes through an explicit
285
+ # singleton method on the legacy MultiJson module, so callers that
286
+ # capture the method as a Method object (``MultiJson.method(:load)``)
287
+ # find this forwarder instead of falling back to inherited methods like
288
+ # ``Kernel#load``. The earlier ``method_missing``-based shim left
289
+ # ``MultiJson.method(:load)`` resolving to ``Kernel#load`` (because
290
+ # ``Module#method`` doesn't consult ``method_missing``) and broke
291
+ # libraries (Sawyer, Octokit, Danger) that capture decoders as Method
292
+ # objects. Forwarding eagerly fixes the capture path while preserving
293
+ # the one-time deprecation warning each call emits.
294
+ (::MultiJSON.public_methods - ::Module.public_methods).each do |forwarded|
295
+ define_singleton_method(forwarded) do |*args, **kwargs, &block|
296
+ ::MultiJSON.warn_deprecation_once(:multi_json_constant,
297
+ "The MultiJson constant is deprecated and will be removed in v2.0. Use MultiJSON instead.")
298
+ ::MultiJSON.public_send(forwarded, *args, **kwargs, &block)
299
+ end
300
+ end
301
+
302
+ class << self
303
+ # Resolve missing constants to their {MultiJSON} counterparts
304
+ #
305
+ # Enables ``rescue MultiJson::ParseError`` and
306
+ # ``MultiJson::Adapters::Oj`` to keep working during the
307
+ # deprecation cycle.
308
+ #
309
+ # @api public
310
+ # @param name [Symbol] constant name
311
+ # @return [Object] the resolved constant from {MultiJSON}
312
+ # @example
313
+ # MultiJson::ParseError # returns MultiJSON::ParseError
314
+ def const_missing(name)
315
+ ::MultiJSON.warn_deprecation_once(:multi_json_constant,
316
+ "The MultiJson constant is deprecated and will be removed in v2.0. Use MultiJSON instead.")
317
+ ::MultiJSON.const_get(name)
318
+ end
319
+ end
320
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.1
4
+ version: 1.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -20,8 +20,6 @@ executables: []
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
- - CHANGELOG.md
24
- - CONTRIBUTING.md
25
23
  - LICENSE.md
26
24
  - README.md
27
25
  - lib/multi_json.rb
@@ -45,10 +43,10 @@ licenses:
45
43
  - MIT
46
44
  metadata:
47
45
  bug_tracker_uri: https://github.com/sferik/multi_json/issues
48
- changelog_uri: https://github.com/sferik/multi_json/blob/v1.20.1/CHANGELOG.md
49
- documentation_uri: https://www.rubydoc.info/gems/multi_json/1.20.1
46
+ changelog_uri: https://github.com/sferik/multi_json/blob/v1.21.1/CHANGELOG.md
47
+ documentation_uri: https://www.rubydoc.info/gems/multi_json/1.21.1
50
48
  rubygems_mfa_required: 'true'
51
- source_code_uri: https://github.com/sferik/multi_json/tree/v1.20.1
49
+ source_code_uri: https://github.com/sferik/multi_json/tree/v1.21.1
52
50
  wiki_uri: https://github.com/sferik/multi_json/wiki
53
51
  rdoc_options: []
54
52
  require_paths:
@@ -64,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
62
  - !ruby/object:Gem::Version
65
63
  version: '0'
66
64
  requirements: []
67
- rubygems_version: 4.0.10
65
+ rubygems_version: 4.0.11
68
66
  specification_version: 4
69
67
  summary: A common interface to multiple JSON libraries.
70
68
  test_files: []
data/CHANGELOG.md DELETED
@@ -1,312 +0,0 @@
1
- # Changelog
2
-
3
- ## 1.20.1
4
- * Fix `JsonGem#load` raising `ParseError` on ASCII-8BIT strings that contain valid UTF-8 bytes ([#64](https://github.com/sferik/multi_json/issues/64)). Ruby HTTP clients tag response bodies as ASCII-8BIT by default; the 1.20.0 change from `force_encoding` to `encode` broke the dominant real-world case by trying to transcode each byte individually. Switch back to `force_encoding` followed by a `valid_encoding?` guard so genuinely invalid byte sequences still surface as `ParseError`.
5
- * Validate custom adapters during `MultiJson.use` and `MultiJson.load`/`dump` with an `:adapter` option, raising `MultiJson::AdapterError` immediately if the adapter does not respond to `.load`, `.dump`, or define a `ParseError` constant.
6
- * Validate `OptionsCache.max_cache_size=` to reject `nil`, zero, negative, and non-integer values with a clear `ArgumentError`.
7
-
8
- ## 1.20.0
9
- * Drop the `UnannotatedEmptyCollection` Steep diagnostic override by inline-annotating `Options::EMPTY_OPTIONS` with `#: options` and routing `MultiJson.current_adapter`'s `||=` fallback through that constant. Also enable rubocop's `Layout/LeadingCommentSpace` `AllowSteepAnnotation` / `AllowRBSInlineAnnotation` so future inline `#:` casts don't need a per-line disable.
10
- * Hoist the `block_given?` check in `MutexStore#fetch` outside `@mutex.synchronize` so the no-block read path runs the check once per call instead of inside the critical section.
11
- * Short-circuit `Adapter.blank?` on inputs that start with `{` or `[` so the dominant JSON object and array load paths skip the blank-pattern regex entirely.
12
- * Drop the `(...)` argument forwarding in `MultiJson::Options#load_options`, `dump_options`, `resolve_options`, and `invoke_callable` in favor of explicit `*args` so the signatures document that they forward positional arguments to a callable provider and nothing else.
13
- * Collapse the five `MultiJson::Concurrency.synchronize_*` wrapper methods into a single `Concurrency.synchronize(name, &block)` keyed by symbol, with the mutex catalog in a `MUTEXES` hash. The synchronization surface is now one method instead of five and adding a new mutex is a one-line entry.
14
- * Walk the superclass chain manually in `Adapter.walk_default_options` instead of allocating an `ancestors` array on every call. The dump/load hot path no longer pays for an iteration over the (mostly module) ancestor list when looking up an adapter's defaults.
15
- * Add a `# frozen_string_literal: true` magic comment to every Ruby file in `lib/` and `test/`, and flip the `Style/FrozenStringLiteralComment` rubocop cop to `EnforcedStyle: always` so future files inherit the freeze.
16
- * Include the original exception's class name in `MultiJson::AdapterError.build`'s formatted message so a downstream consumer reading just the wrapped error can distinguish a `LoadError` from a validator `ArgumentError` without having to inspect `error.cause` separately.
17
- * Mark the five `MultiJson::Concurrency` mutex constants as `private_constant` and add matching `synchronize_*` wrapper methods so callers don't reach into the module's internals.
18
- * DRY up `lib/multi_json/deprecated.rb` with a small `deprecate_alias` / `deprecate_method` DSL so adding or removing a deprecation is a one-liner instead of a 4-line copy of the warn-then-delegate template.
19
- * Hoist a shared `Gson::Decoder` and `Gson::Encoder` to handle the empty-options case in the JRuby `Gson` adapter so the dominant `MultiJson.load(json)` / `MultiJson.dump(obj)` call path no longer allocates a fresh decoder/encoder per call.
20
- * Memoize the per-adapter `ParseError` lookup in `MultiJson.parse_error_class_for` so the constant resolution runs at most once per adapter, instead of on every `MultiJson.load` call.
21
- * Walk the superclass chain in `Adapter.default_load_options` / `default_dump_options` instead of copying the parent's defaults into the subclass at inheritance time, so a parent calling `defaults :load, ...` after a subclass has been defined now propagates to the subclass.
22
- * Hold `@eviction_mutex` around `ConcurrentStore#reset`'s `@cache.clear` so a JRuby fetcher in the middle of its evict-then-insert sequence cannot interleave with a concurrent reset, mirroring `MutexStore#reset`'s mutex usage.
23
- * Collect the five process-wide mutexes that protect MultiJson's lazy initializers and adapter swap into a new `MultiJson::Concurrency` module so the library's concurrency surface is documented in one place.
24
- * Replace the per-adapter `loaded` lambdas in `AdapterSelector::ADAPTERS` with constant name strings, walked through `Object.const_defined?` directly. The lookup table is half as large and no longer holds six closure objects whose only job was to call `defined?`.
25
- * Wrap `AdapterSelector#default_adapter_excluding` in `DEFAULT_ADAPTER_MUTEX` so concurrent callers can't both walk the detection chain and double-fire `fallback_adapter`'s one-time warning.
26
- * Raise a clear `MultiJson::AdapterError` when a custom adapter passed to `MultiJson.load` does not define a `ParseError` constant, instead of letting the bare `NameError` from the rescue clause propagate.
27
- * Drop the duplicate `Adapter::EMPTY_OPTIONS` constant in favor of the `MultiJson::Options::EMPTY_OPTIONS` it was shadowing.
28
- * Defer the `fast_jsonparser` adapter's dump-delegate resolution until the first `dump` call instead of locking it in at file load time. The adapter no longer inherits from another adapter, so loading `multi_json/adapters/fast_jsonparser` before `oj` no longer locks the dump path to whichever adapter happened to be available at that moment.
29
- * Make the lazy `default_load_options` and `default_dump_options` initializers in `MultiJson::Options` thread-safe so two threads accessing an adapter's defaults for the first time can't both run the `||=` initializer.
30
- * Make `AdapterSelector#default_adapter`'s lazy `||=` initializer thread-safe so two threads racing past the unset `@default_adapter` ivar can't both run detection (and double-emit the fallback warning in the no-adapters-installed branch).
31
- * Wrap `MultiJson.use`'s `OptionsCache.reset` and `@adapter` swap in a mutex so two threads calling `use` concurrently can't interleave their cache reset and adapter assignment.
32
- * Stop relying on `Oj::ParseError`'s `::SyntaxError` ancestor when matching exceptions in `Oj::ParseError.===`. Walk the exception's ancestor chain by class name instead, so a future Oj release that re-parents its error class doesn't silently break our rescue clauses.
33
- * Improve `AdapterSelector#load_adapter`'s error message for unrecognized adapter specs so it names the expected types and shows the offender's `inspect` output instead of just `to_s`.
34
- * Validate the `value` argument in `Adapter.defaults` so a non-Hash (e.g. `defaults :load, "oops"`) raises `ArgumentError` at definition time instead of crashing later in the merge path.
35
- * Skip `String#scrub` in `Adapter.blank?` when the input is already valid UTF-8 so the common load path no longer allocates a scrubbed copy on every call.
36
- * Move `Oj#load`'s `:symbolize_keys` translation into a private `translate_load_options` helper that drops the redundant `:symbolize_keys` passthrough alongside `:symbol_keys`, mirroring the cleanup already in `JsonGem#load`.
37
- * Skip the per-call hash merge in `JsonGem#dump` when `pretty: true` is the only option, passing `PRETTY_STATE_PROTOTYPE` directly.
38
- * Type-check the `Yajl`, `JrJackson`, and `Gson` adapter wrappers under Steep, with stubbed RBS sigs for the underlying libraries living in `sig/external_libraries.rbs`.
39
- * Unify `LOADED_ADAPTER_DETECTORS` and `REQUIREMENT_MAP` in `AdapterSelector` into a single `ADAPTERS` source-of-truth so the require path and detection lambda for each adapter live in one place.
40
- * Extract deprecated public API (`decode`, `encode`, `engine`, `engine=`, `default_engine`, `with_engine`, `default_options`, `default_options=`, `cached_options`, `reset_cached_options!`) into `lib/multi_json/deprecated.rb` and drop the matching `Style/Documentation`, `Style/ModuleFunction`, and `Style/OpenStructUse` rubocop opt-outs.
41
- * Validate the `action` argument in `Adapter.defaults` so a typo (e.g. `defaults :encode, ...`) raises `ArgumentError` at definition time instead of silently producing a no-op default.
42
- * Drop the stale `ok_json` reference from the `fast_jsonparser` adapter's docstring.
43
- * Remove the `MultiJson::REQUIREMENT_MAP` legacy alias; the canonical map already lives on `MultiJson::AdapterSelector`.
44
- * Drop the dead `JrJackson` dump arity branch (and its SimpleCov filter). JrJackson 0.4.18+ accepts an options hash as the second argument to `Json.dump`.
45
- * Drop the redundant `options.except(:adapter)` allocation in `JsonGem#dump`; `Adapter.merged_dump_options` already strips `:adapter` before the cached hash reaches the adapter.
46
- * Forward all merged options through `Yajl#load` instead of honoring only `:symbolize_keys`.
47
- * Tighten `Adapter.blank?` so it scrubs invalid UTF-8 bytes up front instead of swallowing every `ArgumentError` from the underlying `String` calls.
48
- * Guard `ConcurrentStore` eviction against a TOCTOU race so two concurrent JRuby threads cannot both pass the size check and briefly exceed `OptionsCache.max_cache_size`.
49
- * Synchronize `warn_deprecation_once` so concurrent fibers and threads cannot race past the membership check and emit the same one-time deprecation warning twice.
50
- * Stop resetting `OptionsCache` when `MultiJson.use` raises so a failed `use(:nonexistent)` no longer discards the cached entries belonging to the still-active previous adapter.
51
- * Stop mutating cached options in `JsonGem#load`, mirroring the cache-pollution fix already in place for `Oj#load`.
52
- * Empty the mutant ignore list. The `Gson` and `JrJackson` ignores were dead — those adapters ship in the java-platform gem and aren't present when mutant runs on MRI — and `Store#reset`'s mutex wrapper is now directly tested by stubbing `Mutex#synchronize`.
53
- * Remove the vendored `ok_json` adapter. The json gem has been a Ruby default gem since 1.9, so an external pure-Ruby fallback is no longer needed on any supported Ruby version. The last-resort fallback when no other JSON library can be loaded is now `json_gem`. The `ConvertibleHashKeys` helper module, which only `ok_json` used, is also removed.
54
- * Surface parse error locations as `error.line` and `error.column` on `MultiJson::ParseError`, extracted from the underlying adapter's message for adapters that include one (Oj, the json gem).
55
- * Make `MultiJson::OptionsCache.max_cache_size` configurable so applications that generate many distinct option hashes can raise the cache ceiling at runtime.
56
- * Reorganize `lib/multi_json.rb` into clearer sections and document why both the `module_function` and singleton-only definition patterns coexist.
57
- * Restructure `OptionsCache` backend selection so MRI and JRuby execute the same physical `require_relative` line, restoring JRuby's line coverage threshold to 100%.
58
- * Drop the `ALIASES` constant in `AdapterSelector` in favor of an inline check; the only entry, `jrjackson` → `jr_jackson`, is now inlined into `load_adapter_by_name`.
59
- * Document the `fast_jsonparser` adapter's parent class freeze at file load time.
60
- * Stop mass-requiring adapter gems at the top of `adapter_selection_test.rb`, which polluted the global require cache and let later tests silently depend on adapters they had not explicitly loaded.
61
- * Restore the mutex around `MutexStore#reset` for TruffleRuby, where the unguarded clear could race with concurrent fetches in a way the MRI GVL otherwise prevents.
62
- * Fix `TestHelpers.yajl?` to check the actual `yajl-ruby` gem name.
63
- * [Stop requiring the `oj` gem from the `fast_jsonparser` adapter](https://github.com/sferik/multi_json/issues/63): `fast_jsonparser` only implements parsing, so the adapter's `dump` side now inherits from whichever adapter MultiJson would otherwise pick (oj → yajl → jr_jackson → json_gem → gson → ok_json). Users who install `fast_jsonparser` no longer need to also install `oj`.
64
- * [Split the gem into `ruby` and `java` platform variants](https://github.com/sferik/multi_json/commit/ca2c747570335f8d3b6b0904aae6ace41329aedd): the `java` variant adds `concurrent-ruby ~> 1.2` as a runtime dependency and ships the `gson` and `jr_jackson` adapters; the `ruby` variant has no runtime dependencies and ships the MRI-only adapters. Bundler selects the correct variant automatically.
65
- * [Drop Oj 2.x compatibility branch](https://github.com/sferik/multi_json/commit/93897a45e2b2f3f6fa047ee00fc1e879ae137ec1): the Oj adapter now requires Oj `~> 3.0`.
66
- * [Drop support for Ruby 3.0, Ruby 3.1, and JRuby 9.4](https://github.com/sferik/multi_json/commit/bc4547a5cee4d66294f2a1be04fe61f9d49235cd).
67
- * [Add Ruby 4.0 to the CI matrix](https://github.com/sferik/multi_json/commit/bdf4999ea0c81f79c208e5fafb63f7474571b687).
68
- * [Make `with_adapter` overrides fiber-local](https://github.com/sferik/multi_json/commit/7f7ce0e68f094bb9a26bf37a950c4794dc8e7292) so concurrent fibers and threads each observe their own adapter without racing on a shared module variable.
69
- * [Raise `MultiJson::ParseError` on invalid UTF-8 in the `json_gem` adapter](https://github.com/sferik/multi_json/commit/2b5d14548fc67c5fdcaaee9b14d9f3eefe1f3493) instead of silently reinterpreting bytes with `force_encoding`.
70
- * [Warn once for deprecated method aliases](https://github.com/sferik/multi_json/commit/5390bf311567388056724743121a665adab8ae8d): `decode`, `encode`, `engine`, `engine=`, `default_engine`, and `with_engine` now emit a one-time deprecation warning on first call and are scheduled for removal in a future major release.
71
- * [Emit deprecation warnings only once per process](https://github.com/sferik/multi_json/commit/118f608c43aacb2ad36aa5f70b9084d48a9877c9) for `default_options`, `default_options=`, `cached_options`, and `reset_cached_options!` instead of on every call.
72
- * [Document public API methods as `@api public`](https://github.com/sferik/multi_json/commit/5f3bd5397800cbf4b8f3a522e91364de1ad9079d) so `load`, `dump`, `use`, `with_adapter`, `current_adapter`, `adapter`, `load_options`, and `dump_options` appear in generated docs.
73
- * [Add YARD documentation for the `Adapters` module and `ParseError` constants](https://github.com/sferik/multi_json/commit/3bc3beb76987a5711bf6c94ab176d5a84a42b063).
74
- * [Stop mutating cached options in `Oj#load`](https://github.com/sferik/multi_json/commit/091d4f046dfb1d85816b04ef68c0850e5a97acdf): the adapter previously assigned `options[:symbol_keys]` on the shared cached hash, slowly polluting it with extra keys.
75
- * [Stop mutating cached options in `OjCommon#prepare_dump_options`](https://github.com/sferik/multi_json/commit/089892e387b56036840b58b61593ce2b80fd72d6): `merge!(PRETTY_STATE_PROTOTYPE)` on the cached options hash removed `:pretty` and added prototype keys on every call, producing accidentally-correct results through cache reuse.
76
- * [Call `to_h` on options to properly handle `JSON::State` objects](https://github.com/sferik/multi_json/commit/821ea32d5cafc223983b24b3260a1d4112aefab9).
77
- * [Avoid allocating an options hash on the `dump`/`load` hot path](https://github.com/sferik/multi_json/commit/89a397718fff9e6cc5af8b7ef9fa19494894e6ce) by reusing a shared frozen empty hash for the no-options case.
78
- * [Short-circuit empty input in `Adapter.blank?`](https://github.com/sferik/multi_json/commit/d3081a64eaf7755610a29c602dc6f0c5678643c6) before falling back to the regex match.
79
- * [Replace the `LOADERS` strategy table with a `case` statement](https://github.com/sferik/multi_json/commit/562331a002dc87052797c53769610a719699c33c) in `AdapterSelector#load_adapter`.
80
- * [Move `REQUIREMENT_MAP` from `MultiJson` into `AdapterSelector`](https://github.com/sferik/multi_json/commit/ab371e70d63b840386a3cf264611c2298c7c8250); `MultiJson::REQUIREMENT_MAP` remains as a deprecated alias.
81
- * [Fix Bundler 4.0 permission error in CI](https://github.com/sferik/multi_json/commit/1fe4514e641e34dcf3ec9b62a2a76bfe0120c708).
82
- * [Revert the Steep removal](https://github.com/sferik/multi_json/commit/883be03219d5178f83381333c3a354f59b4c8117) and restore the Steepfile, sig directory, and typecheck workflow.
83
- * [Add workflow badges for linter, mutant, steep, and docs](https://github.com/sferik/multi_json/commit/88cf1bea1fb3056ad3a7c0f8ca828e194ee895dd).
84
- * [Bump `actions/checkout` from 4 to 6](https://github.com/sferik/multi_json/commit/587f246d9ffd6991417af771fa0ce7059b337c40).
85
- * [Update copyright year and alphabetize contributors by last name](https://github.com/sferik/multi_json/commit/233fb0ee1a375279d83c06ff6f702ec17d695b88).
86
-
87
- ## 1.19.1
88
- * [Restore deprecated encode/decode methods](https://github.com/sferik/multi_json/commit/c5bf2fc95dfdde6b30d63fefb0b2f4aa29633969)
89
-
90
- ## 1.19.0
91
- * [Fix serialization of ActiveSupport-enhanced objects](https://github.com/sferik/multi_json/commit/03a367813ebd7ed87eb22ea05249cc6453bb3c10)
92
-
93
- ## 1.18.0
94
- * [Fix conflict between JSON gem and ActiveSupport](https://github.com/intridea/multi_json/issues/222)
95
-
96
- ## 1.17.0
97
- * [Revert minimum ruby version requirement](https://github.com/sferik/multi_json/pull/16)
98
-
99
- ## 1.16.0
100
- * [Remove NSJSONSerialization](https://github.com/sferik/multi_json/commit/0423d3b5886e93405f4c2221687b7e3329bd2940)
101
- * [Stop referencing JSON::PRETTY\_STATE\_PROTOTYPE](https://github.com/sferik/multi_json/commit/58094d7a0583bf1f5052886806a032c00f16ffc5)
102
- * [Drop support for Ruby versions < 3.2](https://github.com/sferik/multi_json/commit/ff3b42c4bc26cd6512914b7e5321976e948985dc)
103
- * [Move repo from @intridea to @sferik](https://github.com/sferik/multi_json/commit/e87aeadbc9b9aa6df79818fa01bfc5fa959d8474)
104
- * [JsonCommon: force encoding to UTF-8, not binary](https://github.com/sferik/multi_json/commit/34dd0247de07f2703c7d42a42d4cefc73635f3cc)
105
- * [Stop setting defaults in JsonCommon](https://github.com/sferik/multi_json/commit/d5f9e6e72b99a7def695f430f72c8365998de625)
106
- * [Make json\_pure an alias of json\_gem](https://github.com/sferik/multi_json/commit/9ff7c3dcbe3650e712b38e636ad19061a4c08d1a)
107
-
108
- ## 1.15.0
109
- * [Improve detection of json_gem adapter](https://github.com/sferik/multi_json/commit/62d54019b17ebf83b28c8deb871a02a122e7d9cf)
110
-
111
- ## 1.14.1
112
- * [Fix a warning in Ruby 2.7](https://github.com/sferik/multi_json/commit/26a94ab8c78a394cc237e2ea292c1de4f6ed30d7)
113
-
114
- ## 1.14.0
115
- * [Support Oj 3.x gem](https://github.com/sferik/multi_json/commit/5d8febdbebc428882811b90d514f3628617a61d5)
116
-
117
- ## 1.13.1
118
- * [Fix missing stdlib set dependency in oj adapter](https://github.com/sferik/multi_json/commit/c4ff66e7bee6fb4f45e54429813d7fada1c152b8)
119
-
120
- ## 1.13.0
121
- * [Make Oj adapter handle JSON::ParseError correctly](https://github.com/sferik/multi_json/commit/275e3ffd8169797c510d23d9ef5b8b07e64c3b42)
122
-
123
- ## 1.12.2
124
- * [Renew gem certificate](https://github.com/sferik/multi_json/commit/57922d898c6eb587cc9a28ba5724c11e81724700)
125
-
126
- ## 1.12.1
127
- * [Prevent memory leak in OptionsCache](https://github.com/sferik/multi_json/commit/aa7498199ad272f3d4a13750d7c568a66047e2ee)
128
-
129
- ## 1.12.0
130
- * [Introduce global options cache to improve peroformance](https://github.com/sferik/multi_json/commit/7aaef2a1bc2b83c95e4208b12dad5d1d87ff20a6)
131
-
132
- ## 1.11.2
133
- * [Only pass one argument to JrJackson when two is not supported](https://github.com/sferik/multi_json/commit/e798fa517c817fc706982d3f3c61129b6651d601)
134
-
135
- ## 1.11.1
136
- * [Dump method passes options throught for JrJackson adapter](https://github.com/sferik/multi_json/commit/3c730fd12135c3e7bf212f878958004908f13909)
137
-
138
- ## 1.11.0
139
- * [Make all adapters read IO object before load](https://github.com/sferik/multi_json/commit/167f559e18d4efee05e1f160a2661d16dbb215d4)
140
-
141
- ## 1.10.1
142
- * [Explicitly require stringio for Gson adapter](https://github.com/sferik/multi_json/commit/623ec8142d4a212fa0db763bb71295789a119929)
143
- * [Do not read StringIO object before passing it to JrJackson](https://github.com/sferik/multi_json/commit/a6dc935df08e7b3d5d701fbb9298384c96df0fde)
144
-
145
- ## 1.10.0
146
- * [Performance tweaks](https://github.com/sferik/multi_json/commit/58724acfed31866d079eaafb1cd824e341ade287)
147
-
148
- ## 1.9.3
149
- * [Convert indent option to Fixnum before passing to Oj](https://github.com/sferik/multi_json/commit/826fc5535b863b74fc9f981dfdda3e26f1ee4e5b)
150
-
151
- ## 1.9.2
152
- * [Enable use_to_json option for Oj adapter by default](https://github.com/sferik/multi_json/commit/76a4aaf697b10bbabd5d535d83cf1149efcfe5c7)
153
-
154
- ## 1.9.1
155
- * [Remove unused LoadError file](https://github.com/sferik/multi_json/commit/65dedd84d59baeefc25c477fedf0bbe85e7ce2cd)
156
-
157
- ## 1.9.0
158
- * [Rename LoadError to ParseError](https://github.com/sferik/multi_json/commit/4abb98fe3a90b2a7b3d1594515c8a06042b4a27d)
159
- * [Adapter load failure throws AdapterError instead of ArgumentError](https://github.com/sferik/multi_json/commit/4da612b617bd932bb6fa1cc4c43210327f98f271)
160
-
161
- ## 1.8.4
162
- * [Make Gson adapter explicitly read StringIO object](https://github.com/sferik/multi_json/commit/b58b498747ff6e94f41488c971b2a30a98760ef2)
163
-
164
- ## 1.8.3
165
- * [Make JrJackson explicitly read StringIO objects](https://github.com/sferik/multi_json/commit/e1f162d5b668e5e4db5afa175361a601a8aa2b05)
166
- * [Prevent calling #downcase on alias symbols](https://github.com/sferik/multi_json/commit/c1cf075453ce0110f7decc4f906444b1233bb67c)
167
-
168
- ## 1.8.2
169
- * [Downcase adapter string name for OS compatibility](https://github.com/sferik/multi_json/commit/b8e15a032247a63f1410d21a18add05035f3fa66)
170
-
171
- ## 1.8.1
172
- * [Let the adapter handle strings with invalid encoding](https://github.com/sferik/multi_json/commit/6af2bf87b89f44eabf2ae9ca96779febc65ea94b)
173
-
174
- ## 1.8.0
175
- * [Raise MultiJson::LoadError on blank input](https://github.com/sferik/multi_json/commit/c44f9c928bb25fe672246ad394b3e5b991be32e6)
176
-
177
- ## 1.7.9
178
- * [Explicitly require json gem code even when constant is defined](https://github.com/sferik/multi_json/commit/36f7906c66477eb4b55b7afeaa3684b6db69eff2)
179
-
180
- ## 1.7.8
181
- * [Reorder JrJackson before json_gem](https://github.com/sferik/multi_json/commit/315b6e460b6e4dcdb6c82e04e4be8ee975d395da)
182
- * [Update vendored OkJson to version 43](https://github.com/sferik/multi_json/commit/99a6b662f6ef4036e3ee94d7eb547fa72fb2ab50)
183
-
184
- ## 1.7.7
185
- * [Fix options caching issues](https://github.com/sferik/multi_json/commit/a3f14c3661688c5927638fa6088c7b46a67e875e)
186
-
187
- ## 1.7.6
188
- * [Bring back MultiJson::VERSION constant](https://github.com/sferik/multi_json/commit/31b990c2725e6673bf8ce57540fe66b57a751a72)
189
-
190
- ## 1.7.5
191
- * [Fix warning '*' interpreted as argument prefix](https://github.com/sferik/multi_json/commit/b698962c7f64430222a1f06430669706a47aff89)
192
- * [Remove stdlib warning](https://github.com/sferik/multi_json/commit/d06eec6b7996ac8b4ff0e2229efd835379b0c30f)
193
-
194
- ## 1.7.4
195
- * [Cache options for better performance](https://github.com/sferik/multi_json/commit/8a26ee93140c4bed36194ed9fb887a1b6919257b)
196
-
197
- ## 1.7.3
198
- * [Require json/ext to ensure extension version gets loaded for json_gem](https://github.com/sferik/multi_json/commit/942686f7e8597418c6f90ee69e1d45242fac07b1)
199
- * [Rename JrJackson](https://github.com/sferik/multi_json/commit/078de7ba8b6035343c3e96b4767549e9ec43369a)
200
- * [Prefer JrJackson to JSON gem if present](https://github.com/sferik/multi_json/commit/af8bd9799a66855f04b3aff1c488485950cec7bf)
201
- * [Print a warning if outdated gem versions are used](https://github.com/sferik/multi_json/commit/e7438e7ba2be0236cfa24c2bb9ad40ee821286d1)
202
- * [Loosen required_rubygems_version for compatibility with Ubuntu 10.04](https://github.com/sferik/multi_json/commit/59fad014e8fe41dbc6f09485ea0dc21fc42fd7a7)
203
-
204
- ## 1.7.2
205
- * [Rename Jrjackson adapter to JrJackson](https://github.com/sferik/multi_json/commit/b36dc915fc0e6548cbad06b5db6f520e040c9c8b)
206
- * [Implement jrjackson -> jr_jackson alias for back-compatability](https://github.com/sferik/multi_json/commit/aa50ab8b7bb646b8b75d5d65dfeadae8248a4f10)
207
- * [Update vendored OkJson module](https://github.com/sferik/multi_json/commit/30a3f474e17dd86a697c3fab04f468d1a4fd69d7)
208
-
209
- ## 1.7.1
210
- * [Fix capitalization of JrJackson class](https://github.com/sferik/multi_json/commit/5373a5e38c647f02427a0477cb8e0e0dafad1b8d)
211
-
212
- ## 1.7.0
213
- * [Add load_options/dump_options to MultiJson](https://github.com/sferik/multi_json/commit/a153956be6b0df06ea1705ce3c1ff0b5b0e27ea5)
214
- * [MultiJson does not modify arguments](https://github.com/sferik/multi_json/commit/58525b01c4c2f6635ba2ac13d6fd987b79f3962f)
215
- * [Enable quirks_mode by default for json_gem/json_pure adapters](https://github.com/sferik/multi_json/commit/1fd4e6635c436515b7d7d5a0bee4548de8571520)
216
- * [Add JrJackson adapter](https://github.com/sferik/multi_json/commit/4dd86fa96300aaaf6d762578b9b31ea82adb056d)
217
- * [Raise ArgumentError on bad adapter input](https://github.com/sferik/multi_json/commit/911a3756bdff2cb5ac06497da3fa3e72199cb7ad)
218
-
219
- ## 1.6.1
220
- * [Revert "Use JSON.generate instead of #to_json"](https://github.com/sferik/multi_json/issues/86)
221
-
222
- ## 1.6.0
223
- * [Add gson.rb support](https://github.com/intridea/multi_json/pull/71)
224
- * [Add MultiJson.default_options](https://github.com/intridea/multi_json/pull/70)
225
- * [Add MultiJson.with_adapter](https://github.com/intridea/multi_json/pull/67)
226
- * [Stringify all possible keys for ok_json](https://github.com/intridea/multi_json/pull/66)
227
- * [Use JSON.generate instead of #to_json](https://github.com/sferik/multi_json/issues/73)
228
- * [Alias MultiJson::DecodeError to MultiJson::LoadError](https://github.com/intridea/multi_json/pull/79)
229
-
230
- ## 1.5.1
231
- * [Do not allow Oj or JSON to create symbols by searching for classes](https://github.com/sferik/multi_json/commit/193e28cf4dc61b6e7b7b7d80f06f74c76df65c41)
232
-
233
- ## 1.5.0
234
- * [Add MultiJson.with\_adapter method](https://github.com/sferik/multi_json/commit/d14c5d28cae96557a0421298621b9499e1f28104)
235
- * [Stringify all possible keys for ok\_json](https://github.com/sferik/multi_json/commit/73998074058e1e58c557ffa7b9541d486d6041fa)
236
-
237
- ## 1.4.0
238
- * [Allow load/dump of JSON fragments](https://github.com/sferik/multi_json/commit/707aae7d48d39c85b38febbd2c210ba87f6e4a36)
239
-
240
- ## 1.3.7
241
- * [Fix rescue clause for MagLev](https://github.com/sferik/multi_json/commit/39abdf50199828c50e85b2ce8f8ba31fcbbc9332)
242
- * [Remove unnecessary check for string version of options key](https://github.com/sferik/multi_json/commit/660101b70e962b3c007d0b90d45944fa47d13ec4)
243
- * [Explicitly set default adapter when adapter is set to nil or false](https://github.com/sferik/multi_json/commit/a9e587d5a63eafb4baee9fb211265e4dd96a26bc)
244
- * [Fix Oj ParseError mapping for Oj 1.4.0](https://github.com/sferik/multi_json/commit/7d9045338cc9029401c16f3c409d54ce97f275e2)
245
-
246
- ## 1.3.6
247
- * [Allow adapter-specific options to be passed through to Oj](https://github.com/sferik/multi_json/commit/d0e5feeebcba0bc69400dd203a295f5c30971223)
248
-
249
- ## 1.3.5
250
- * [Add pretty support to Oj adapter](https://github.com/sferik/multi_json/commit/0c8f75f03020c53bcf4c6be258faf433d24b2c2b)
251
-
252
- ## 1.3.4
253
- * [Use class \<\< self instead of module\_function to create aliases](https://github.com/sferik/multi_json/commit/ba1451c4c48baa297e049889be241a424cb05980)
254
-
255
- ## 1.3.3
256
- * [Remove deprecation warnings](https://github.com/sferik/multi_json/commit/36b524e71544eb0186826a891bcc03b2820a008f)
257
-
258
- ## 1.3.2
259
- * [Add ability to use adapter per call](https://github.com/sferik/multi_json/commit/106bbec469d5d0a832bfa31fffcb8c0f0cdc9bd3)
260
- * [Add and deprecate default\_engine method](https://github.com/sferik/multi_json/commit/fc3df0c7a3e2ab9ce0c2c7e7617a4da97dd13f6e)
261
-
262
- ## 1.3.1
263
- * [Only warn once for each instance a deprecated method is called](https://github.com/sferik/multi_json/commit/e21d6eb7da74b3f283995c1d27d5880e75f0ae84)
264
-
265
- ## 1.3.0
266
- * [Implement load/dump; deprecate decode/encode](https://github.com/sferik/multi_json/commit/e90fd6cb1b0293eb0c73c2f4eb0f7a1764370216)
267
- * [Rename engines to adapters](https://github.com/sferik/multi_json/commit/ae7fd144a7949a9c221dcaa446196ec23db908df)
268
-
269
- ## 1.2.0
270
- * [Add support for Oj](https://github.com/sferik/multi_json/commit/acd06b233edabe6c44f226873db7b49dab560c60)
271
-
272
- ## 1.1.0
273
- * [NSJSONSerialization support for MacRuby](https://github.com/sferik/multi_json/commit/f862e2fc966cac8867fe7da3997fc76e8a6cf5d4)
274
-
275
- ## 1.0.4
276
- * [Set data context to DecodeError exception](https://github.com/sferik/multi_json/commit/19ddafd44029c6681f66fae2a0f6eabfd0f85176)
277
- * [Allow ok\_json to fallback to to\_json](https://github.com/sferik/multi_json/commit/c157240b1193b283d06d1bd4d4b5b06bcf3761f8)
278
- * [Add warning when using ok\_json](https://github.com/sferik/multi_json/commit/dd4b68810c84f826fb98f9713bfb29ab96888d57)
279
- * [Options can be passed to an engine on encode](https://github.com/sferik/multi_json/commit/e0a7ff5d5ff621ffccc61617ed8aeec5816e81f7)
280
-
281
- ## 1.0.3
282
- * [Array support for stringify\_keys](https://github.com/sferik/multi_json/commit/644d1c5c7c7f6a27663b11668527b346094e38b9)
283
- * [Array support for symbolize\_keys](https://github.com/sferik/multi_json/commit/c885377d47a2aa39cb0d971fea78db2d2fa479a7)
284
-
285
- ## 1.0.2
286
- * [Allow encoding of rootless JSON when ok\_json is used](https://github.com/sferik/multi_json/commit/d1cde7de97cb0f6152aef8daf14037521cdce8c6)
287
-
288
- ## 1.0.1
289
- * [Correct an issue with ok\_json not being returned as the default engine](https://github.com/sferik/multi_json/commit/d33c141619c54cccd770199694da8fd1bd8f449d)
290
-
291
- ## 1.0.0
292
- * [Remove ActiveSupport::JSON support](https://github.com/sferik/multi_json/commit/c2f4140141d785a24b3f56e58811b0e561b37f6a)
293
- * [Fix @engine ivar warning](https://github.com/sferik/multi_json/commit/3b978a8995721a8dffedc3b75a7f49e5494ec553)
294
- * [Only rescue from parsing errors during decoding, not any StandardError](https://github.com/sferik/multi_json/commit/391d00b5e85294d42d41347605d8d46b4a7f66cc)
295
- * [Rename okjson engine and vendored lib to ok\_json](https://github.com/sferik/multi_json/commit/5bd1afc977a8208ddb0443e1d57cb79665c019f1)
296
- * [Add StringIO support to json gem and ok\_json](https://github.com/sferik/multi_json/commit/1706b11568db7f50af451fce5f4d679aeb3bbe8f)
297
-
298
- ## 0.0.5
299
- * [Trap all JSON decoding errors; raise MultiJson::DecodeError](https://github.com/sferik/multi_json/commit/dea9a1aef6dd1212aa1e5a37ab1669f9b045b732)
300
-
301
- ## 0.0.4
302
- * [Fix default\_engine check for json gem](https://github.com/sferik/multi_json/commit/caced0c4e8c795922a109ebc00c3c4fa8635bed8)
303
- * [Make requirement mapper an Array to preserve order in Ruby versions \< 1.9](https://github.com/sferik/multi_json/commit/526f5f29a42131574a088ad9bbb43d7f48439b2c)
304
-
305
- ## 0.0.3
306
- * [Improve defaulting and documentation](https://github.com/sferik/twitter/commit/3a0e41b9e4b0909201045fa47704b78c9d949b73)
307
-
308
- ## 0.0.2
309
- * [Rename to multi\_json](https://github.com/sferik/twitter/commit/461ab89ce071c8c9fabfc183581e0ec523788b62)
310
-
311
- ## 0.0.1
312
- * [Initial commit](https://github.com/sferik/twitter/commit/518c21ab299c500527491e6c049ab2229e22a805)