Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest v1.35 #1

Draft
wants to merge 44 commits into
base: v1.34
Choose a base branch
from
Draft

Latest v1.35 #1

wants to merge 44 commits into from

Commits on Nov 5, 2013

  1. respect utcoffset

    Nik committed Nov 5, 2013
    Configuration menu
    Copy the full SHA
    0654f7b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6cdb1ec View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2014

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

Commits on Jul 2, 2014

  1. Fix typo.

    b4hand committed Jul 2, 2014
    Configuration menu
    Copy the full SHA
    6b0209c View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2014

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

Commits on Dec 29, 2014

  1. If an object has a __json__ method, use it when encoding.

    It should return a raw JSON string which will be directly included in
    the resulting JSON when encoding.
    mitar committed Dec 29, 2014
    Configuration menu
    Copy the full SHA
    a8f0f0f View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2015

  1. escape_forward_slashes now only ignores forward slashes, not everythi…

    …ng else
    Georgy Kibardin committed Sep 8, 2015
    Configuration menu
    Copy the full SHA
    457cda7 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2015

  1. Fixed test for escape_forward_slashes=False

    georgy committed Sep 29, 2015
    Configuration menu
    Copy the full SHA
    e94a07a View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2015

  1. Update tests for floating point inaccuracies

    Due to floating point differences in i386 versus x86-64, tests were
    failing on i386.
    
    Fixes GitHub issue ultrajson#178.  As indicated in comments there, the long-term
    plan is to use strtod everywhere, but this fixes the test suite for
    purposes such as Ubuntu packaging that need to build and test the
    current version.
    joshkel committed Oct 15, 2015
    Configuration menu
    Copy the full SHA
    6d0d191 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2015

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

Commits on Dec 28, 2015

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

Commits on Dec 29, 2015

  1. * Refactored the unit testing and benchmarking code to work natively …

    …under
    
      both Python 2 and Python 3, removing the need for 2to3 to be run. This
      indirectly fixes ultrajson#177.
    * Corrected a duplicate-named method in the unit testing code. Corrected the
      now-exposed broken logic that wasn't being tested. This was
      highlighted in ultrajson#186 but the author did not appear to realise that the
      method name was being masked in the unit test class.
    * Corrected the test case skipping logic to use unittest.skipIf instead
      of just returning from the method upon an ImportError so that the skip
      can actually be registered as a skipped test instead of a passed test.
    * Updated the tests to additionally run on Python 3.5 on Travis. This
      covers ultrajson#195.
    * Merged the two benchmarking files into one, and modularised the code.
      Also added native RST output so the benchmarking results can be placed
      directly into the README file.
    timdawborn committed Dec 29, 2015
    Configuration menu
    Copy the full SHA
    0442850 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c5c061 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2016

  1. Merge pull request ultrajson#186 from shashurup/master

    escape_forward_slashes now only ignores forward slashes, not everythi…
    Jahaja committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    06fe4c6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ultrajson#195 from aebrahim/patch-1

    Test on python 3.5 on travis
    Jahaja committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    f35e664 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ultrajson#136 from b4hand/fix-typo

    Fix typo.
    Jahaja committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    2033cfc View commit details
    Browse the repository at this point in the history
  4. Merge pull request ultrajson#203 from timdawborn/sort_keys_memory_leak

    Corrected memory leak in sort_keys=True
    Jahaja committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    8c0edfb View commit details
    Browse the repository at this point in the history
  5. Merge pull request ultrajson#191 from joshkel/master

    Update tests for floating point inaccuracies
    Jahaja committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    07507b7 View commit details
    Browse the repository at this point in the history
  6. Merge pull request ultrajson#157 from wlanslovenija/raw-json

    If an object has a __json__ method, use it when encoding
    Jahaja committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    86bb8ff View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2016

  1. Merge branch 'correct_unit_tests_and_benchmarks' of https://github.co…

    …m/timdawborn/ultrajson into timdawborn-correct_unit_tests_and_benchmarks
    
    Conflicts:
    	tests/tests.py
    Jahaja committed Jan 18, 2016
    Configuration menu
    Copy the full SHA
    01cb249 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7314538 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    74ee682 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' of https://github.com/ngandhy/ultrajson into ng…

    …andhy-master
    
    Conflicts:
    	tests/tests.py
    Jahaja committed Jan 18, 2016
    Configuration menu
    Copy the full SHA
    4da6667 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'ngandhy-master'

    Jahaja committed Jan 18, 2016
    Configuration menu
    Copy the full SHA
    1c21733 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    23f0924 View commit details
    Browse the repository at this point in the history
  7. Bumping version to 1.35

    Jahaja committed Jan 18, 2016
    Configuration menu
    Copy the full SHA
    52bc13b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7079f3c View commit details
    Browse the repository at this point in the history
  9. Fixed assertRegex error on python 2 and checking if nose2.collector w…

    …orks with python 2.6
    Jahaja committed Jan 18, 2016
    Configuration menu
    Copy the full SHA
    e3ca6c5 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2016

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

Commits on Jan 26, 2016

  1. do not forcefully remove the build directory manually

    this fixes issue ultrajson#179.
    setuptools should itself know when to use cache or create a
    new build... however if someone wants to override that, it's
    still possible but forcefully doing that on whatever
    setuptools target will (and does) introduce problems.
    
    Build directory should be cleaned up via the clean sub-command.
    examples:
    - clean up temp:
      python setup.py clean
    - clean up whole build dir
      python setup.py clean -a
    
    Or if somebody wants to, the build dir could be removed on the
    shell.
    anthraxx committed Jan 26, 2016
    Configuration menu
    Copy the full SHA
    3943517 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ultrajson#207 from anthraxx/master

    do not forcefully remove the build directory manually (fix ultrajson#179)
    Jahaja committed Jan 26, 2016
    Configuration menu
    Copy the full SHA
    af5ca77 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2016

  1. Indent dict values

    orivej committed Apr 3, 2016
    Configuration menu
    Copy the full SHA
    11b0d2d View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2016

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

Commits on Aug 21, 2016

  1. Merge pull request ultrajson#234 from rdpate/patch-1

    bring back benchmark introduction
    Jahaja authored Aug 21, 2016
    Configuration menu
    Copy the full SHA
    42044fe View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2016

  1. added "static" to C functions, where possible

    1. It reduces clutter in symbol table.
    2. It fixes issues with C99 inline semantics for functions
       marked as inline (ultrajson#237, ultrajson#180, ultrajson#222), which manifests
       when compiled with GCC>=5.
    WGH- committed Aug 27, 2016
    Configuration menu
    Copy the full SHA
    6cf6c7f View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2016

  1. Configuration menu
    Copy the full SHA
    6a0d07a View commit details
    Browse the repository at this point in the history
  2. Merge pull request ultrajson#238 from WGH-/static-functions

    added "static" to C functions, where possible
    Jahaja authored Oct 10, 2016
    Configuration menu
    Copy the full SHA
    d25e024 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ultrajson#217 from orivej/indent-dict-values

    Indent dict values
    Jahaja authored Oct 10, 2016
    Configuration menu
    Copy the full SHA
    ab6b6f8 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2017

  1. Fixes for sort_keys bug and a typo.

        - Fixed segfault when using sort_keys=True on dict with unorderable keys (GH247)
    
        - Fixed refcount becoming negative when using sort_keys=True (GH243)
    
        - Fixed compile error when defining JSON_NO_EXTRA_WHITESPACE
          caused by a wrongly named variable. (GH245)
    Jahaja committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    870ee48 View commit details
    Browse the repository at this point in the history
  2. Fix for overflowing long causing invalid json

    This was caused by checking for "__json__" using PyObject_HasAttrString
    which clears the error set by a previous long overflow. Thus this was dependent
    on the order of processing of dict items, which explains why it was
    seemingly random as the dict items are likely ordered by a hash of
    the key.
    
    This fixes GH224 and GH240.
    Jahaja committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    409c6d4 View commit details
    Browse the repository at this point in the history
  3. Following std json handling of None dict key

    Previously a None dict item key would be outputted in JSON as "None".
    To better align with the standard json module this was changed to output
    "null". There's no proper representation of null object keys in JSON so
    this is implementation specific but it seems more natural to follow
    suit when it can be done without a significant performance hit.
    
    Added and used branch prediction macros (LIKELY/UNLIKELY) as well.
    Jahaja committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    ac4637f View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2017

  1. Removed generic serialization of objects/iterables

    The behavior of ujson has always been to try to serialize all objects in
    any way possible. This has been quite a deviation from other json
    libraries, including Pythons standard json module, and the source of a
    lot of confusion and bugs. Removing this quirk moves ultrajson closer to
    the expected behavior.
    
    Instead of trying to coerce serialization ultrajson will now throw a
    TypeError: "repr(obj) is not JSON serializable" exception.
    Jahaja committed Feb 6, 2017
    Configuration menu
    Copy the full SHA
    53f85b1 View commit details
    Browse the repository at this point in the history
  2. Removed support for __json__ method on str

    This functionality caused a performance regression without a use-case
    justifying the trade-off.
    Jahaja committed Feb 6, 2017
    Configuration menu
    Copy the full SHA
    5f98f01 View commit details
    Browse the repository at this point in the history
  3. Removed serialization of date/datetime objects

    To better align with the standard json module this removes ujson
    default serialization of date/datetime objects to unix-timestamps.
    
    Trying to serialize such an object will now raise a TypeError "repr(obj)
    is not JSON serializable".
    Jahaja committed Feb 6, 2017
    Configuration menu
    Copy the full SHA
    50181f0 View commit details
    Browse the repository at this point in the history