Commits
May 2026:
April 2026:
- scripts: switch to my standard test runner; ty for type checking
- .github: don’t check for docstrings with interrogate
- all: use ruff instead of interrogate for docstring linting
- dev_requirements: remove a now-unnecessary keyring dependency
- dev_requirements: switch from twine to uv for publishing to PyPI
- requirements.txt: bump to the latest versions
November 2025:
- Merge pull request #39 from alexwlchan/dependabot/github_actions/actions/checkout-6
- Bump actions/checkout from 5 to 6
September 2025:
- Merge pull request #38 from alexwlchan/dependabot/github_actions/actions/setup-python-6
- Bump actions/setup-python from 5 to 6
August 2025:
- Bump the version number and release again
- Move the license declaration from a classifier to SPDX license declaration
- Merge pull request #37 from alexwlchan/ensure-ascii
- encoder: add a
ensure_asciiparameter to mirrorjson.dumps()
- Switch to weekly Dependabot updates
- Merge pull request #36 from alexwlchan/dependabot/github_actions/actions/checkout-5
- Bump actions/checkout from 4 to 5
May 2025:
- Remember to bump the version number
- Merge pull request #33 from alexwlchan/sort-keys
- Add a
sort_keysparameter
- Remove the word
canfrom these test names
- Merge pull request #32 from alexwlchan/name-value-pairs
- Tweak the naming to match how JSON is usually described
- Add a README entry for
read_typed_js
- Merge pull request #31 from alexwlchan/handle-duplicate-keys
- Reject duplicate keys when reading a JSON object
- Break out the decoder logic in a separate file
April 2025:
- Add some contributing notes
- Merge pull request #30 from alexwlchan/work-around-typing-bug
- Fix a bug in the validation of union types
- Add missing dates to the changelog
March 2025:
- Fix the version number
- Merge pull request #29 from alexwlchan/validate-type
- Add a
read_typed_jsfunction for reading typed JSON
- Bump the version of all the dependencies, especially
mypy
- Add an optional dependency on
pydantic
January 2025:
- Merge pull request #26 from alexwlchan/more-compact-encoding
- Add tests for encoding short lists of strings
- Restore the tests for consistent round-tripping
- Merge pull request #25 from alexwlchan/write-lists-compact
- Add a more compact and human-readable encoding
- Break out the encoder as a separate file
- Merge pull request #24 from alexwlchan/allow-writing-to-file
- Allow passing a file-like object to
write_js
- Start testing with multiple Python versions
- Update README.md
October 2024:
September 2024:
- Merge pull request #23 from alexwlchan/fix-types
- This should be
write, notwrite_text
- Use exclusive open
xwhen writing a file
August 2024:
- Bump the version number to v1.0.1
- Update the version to 1.0.0 for initial PyPI release
- Merge pull request #21 from alexwlchan/consistent-indentation
- When you append values, indent them consistently with
write_js()
- Make the names of these test steps consistent
- Merge pull request #18 from alexwlchan/atomic-writes
- Writing a file in
write_text()is now atomic
- Merge pull request #17 from alexwlchan/stricter-tests
- Add docstrings for everything
- Add config for
interrogate
- Add a couple of tests for appending to incorrect paths
- Throw an explicit IsADirectoryError if you write to a dir
- Make the tests for “failing to write” more specific
- Merge pull request #16 from alexwlchan/use-path-internally
- Use
pathlib.Pathinternally, but still acceptstras input
- Update the README with instructions for pip installing; start the changelog
- Add some motivation
- Add some installation instructions
- Merge pull request #12 from alexwlchan/append-js-object
- Add a method for appending a key/value pair to a JSON object
- Merge pull request #11 from alexwlchan/fixture
- Use a pytest fixture for the
js_pathvariable
- Merge pull request #10 from alexwlchan/flexible-endings
- Make
append_to_js_array()more flexible about the file ending
- Merge pull request #9 from alexwlchan/allow-var
- Allow variables prefixed with
var, or no prefix at all
- Make it easier to write test cases for
read_js
- Merge pull request #8 from alexwlchan/add-more-tests
- Only replace a
constdeclaration at the start of the file
- Add some tests for round-tripping read_js and write_js
- Improve the description
- Remove a redundant keyword
- Merge pull request #4 from alexwlchan/append-array-item
- Add a function to append value to a JavaScript array
- Allow files without a trailing semicolon
- Make this test pass in GitHub Actions
- Add some missing headings
- Add a function for writing to a JavaScript file
- Add a function for reading JavaScript files
- Initial commit