Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/json
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: aa5b7d6
Choose a base ref
...
head repository: ruby/json
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 350c1fd
Choose a head ref
  • 12 commits
  • 7 files changed
  • 4 contributors

Commits on Feb 14, 2025

  1. Configuration menu
    Copy the full SHA
    bea96e0 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2025

  1. Merge pull request #753 from ioquatix/json-dump-options

    Pass through all options if present.
    byroot authored Feb 18, 2025
    Configuration menu
    Copy the full SHA
    b86a47d View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2025

  1. Ensure parser error snippets are valid UTF-8

    Fix: #755
    
    Error messages now include a snippet of the document
    that doesn't parse to help locate the issue, however
    the way it was done wasn't UTF-8 aware, and it could
    result in exception messages with truncated characters.
    
    It would be nice to go a bit farther and actually support
    codepoints, but it's a lot of complexity to do it in C,
    perhaps if we move that logic to Ruby given it's not a
    performance sensitive codepath.
    byroot committed Feb 26, 2025
    Configuration menu
    Copy the full SHA
    e144793 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #756 from byroot/utf8-snippets

    Ensure parser error snippets are valid UTF-8
    byroot authored Feb 26, 2025
    Configuration menu
    Copy the full SHA
    f3e1136 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2025

  1. Configuration menu
    Copy the full SHA
    2e015ff View commit details
    Browse the repository at this point in the history
  2. Merge pull request #757 from rahim/fix-generator-error-no-method-error

    Fix JSON::GeneratorError#detailed_message with Ruby < 3.2
    byroot authored Mar 5, 2025
    Configuration menu
    Copy the full SHA
    ac30b69 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2025

  1. Avoid fast-path IO writes when IO has ext enc

    This works around a bug in JRuby's IOOutputStream logic whereby an
    IO with an external encoding will always fail to write incoming
    bytes. We use base logic to detect if the target object is a "real
    IO" and if so and it has an external encoding, we drop the realIO
    and. This causes the rest of IOOutputStream to avoid the fast path
    and always use dyncall logic with RubyString wrappers.
    
    This works around the issue in jruby/jruby#8682.
    
    This should be temporary, since it will definitely degrade direct
    writes to such IO objects, but a longer-term fix for the encoding
    issues spelled out in jruby/jruby#8682 will need to come first,
    or else json will have to be modified to not use IOOutputStream at
    all.
    headius committed Mar 10, 2025
    Configuration menu
    Copy the full SHA
    c079793 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2025

  1. Raise a ParserError on all incomplete unicode escape sequence.

    This was the behavior until `2.10.0` unadvertently changed it.
    
    `"\u1"` would raise, but `"\u1zzz"` wouldn't.
    byroot committed Mar 11, 2025
    Configuration menu
    Copy the full SHA
    7d0637b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #762 from byroot/invalid-escape

    Raise a ParserError on all incomplete unicode escape sequence.
    byroot authored Mar 11, 2025
    Configuration menu
    Copy the full SHA
    57911f1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf242d8 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2025

  1. Merge commit from fork

    Fix potential out of bound read in `json_string_unescape`.
    byroot committed Mar 12, 2025
    Configuration menu
    Copy the full SHA
    c56db31 View commit details
    Browse the repository at this point in the history
  2. Release 2.10.2

    byroot committed Mar 12, 2025
    Configuration menu
    Copy the full SHA
    350c1fd View commit details
    Browse the repository at this point in the history
Loading