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: toon-format/toon-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.0
Choose a base ref
...
head repository: toon-format/toon-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.1
Choose a head ref
  • 19 commits
  • 38 files changed
  • 2 contributors

Commits on Oct 28, 2025

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

Commits on Oct 29, 2025

  1. Adjust Java toolchain enforcement in build.gradle to apply only in CI…

    … environments, allowing local builds to use the installed JDK.
    felipestanzani committed Oct 29, 2025
    Configuration menu
    Copy the full SHA
    c93d9fa View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2025

  1. Add unit tests for encoding various POJOs, including nested structure…

    …s and collections
    
    - Introduced a new test class structure for testing Plain Old Java Objects (POJOs).
    - Added tests for encoding simple POJOs, nested POJOs, collections, and POJOs with Jackson annotations.
    - Included assertions for various scenarios, such as handling null values and empty collections.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    8d0305c View commit details
    Browse the repository at this point in the history
  2. Refactor README and add TOON format specification

    - Removed outdated sections from README, including format comparison and key features.
    - Added a comprehensive TOON format specification document detailing syntax, benchmarks, and usage examples.
    - Updated token efficiency examples and retrieval accuracy metrics for clarity and relevance.
    - Improved overall structure and readability of the documentation.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    ca8880d View commit details
    Browse the repository at this point in the history
  3. Refactor README to use records for data structures

    - Replaced traditional Map-based data structures with Java records for User and Item.
    - Updated examples to demonstrate the new record syntax and improved data handling.
    - Enhanced clarity and maintainability of the code snippets in the documentation.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    8063b37 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2 from felipestanzani/code_coverage

     Improve Documentation and Test Coverage for JToon
    felipestanzani authored Oct 30, 2025
    Configuration menu
    Copy the full SHA
    6db3b19 View commit details
    Browse the repository at this point in the history
  5. Refactor Constants and JToon classes, and add JsonNormalizer unit tests

    - Removed unused constants from the Constants class, including PIPE, NEWLINE, CARRIAGE_RETURN, and TAB.
    - Deleted redundant encode methods from the JToon class to streamline the encoding process.
    - Introduced a comprehensive unit test suite for the JsonNormalizer utility, covering various input types and edge cases, ensuring robust functionality and correctness.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    8775304 View commit details
    Browse the repository at this point in the history
  6. Refactor JsonNormalizer for improved readability and performance

    - Replaced traditional if-else statements with switch expressions for better clarity and conciseness in the normalize method and its helper functions.
    - Updated the ProjectRootManager's language level in the IDE configuration from JDK_25 to JDK_21.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    d5c7cca View commit details
    Browse the repository at this point in the history
  7. Refactor JsonNormalizer to implement a chain of responsibility patter…

    …n for normalization
    
    - Introduced a list of normalization functions to streamline the normalization process for various data types.
    - Replaced multiple conditional checks with a functional approach, enhancing readability and maintainability.
    - Updated normalization methods for primitives, big numbers, and temporal types to improve clarity and efficiency.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    3b835b6 View commit details
    Browse the repository at this point in the history
  8. Refactor PrimitiveEncoder to enhance clarity and maintainability

    - Simplified encoding methods by utilizing Java 21 switch expressions for primitive values.
    - Delegated validation and escaping responsibilities to StringValidator and StringEscaper.
    - Updated header formatting to use HeaderFormatter for improved modularity and readability.
    - Removed unused regex patterns and redundant methods to streamline the class structure.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    e271138 View commit details
    Browse the repository at this point in the history
  9. Enhance build configuration and add encoding utilities

    - Applied external Gradle scripts for publishing and verification to streamline build processes.
    - Updated ProjectRootManager's language level to JDK_25 for improved compatibility.
    - Introduced new encoding utilities, including ArrayEncoder, ObjectEncoder, and LineWriter, to enhance the encoding process for TOON format.
    - Added JsonNormalizer for normalizing Java objects to Jackson JsonNode representation, supporting various data types.
    - Implemented utility classes for string validation and escaping to ensure proper formatting in TOON output.
    - Added comprehensive unit tests for encoding and normalization functionalities to ensure robustness and correctness.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    bcce619 View commit details
    Browse the repository at this point in the history
  10. Merge pull request #3 from felipestanzani/code_coverage

    Refactor encoders and normalizers, add utilities and tests, and enhance Gradle build
    felipestanzani authored Oct 30, 2025
    Configuration menu
    Copy the full SHA
    d58ddc9 View commit details
    Browse the repository at this point in the history
  11. Add changelog, enhance README, and implement JSON string encoding

    - Introduced `JToon.encodeJson(String)` and `JToon.encodeJson(String, EncodeOptions)` methods for direct JSON string encoding to TOON format.
    - Centralized JSON parsing in `JsonNormalizer.parse(String)` to maintain separation of concerns.
    - Expanded README documentation to include new encoding methods and examples.
    - Added a comprehensive changelog to document notable changes and version history.
    - Implemented unit tests for JSON string encoding, covering various scenarios and error cases.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    fb5b1be View commit details
    Browse the repository at this point in the history
  12. Merge pull request #4 from felipestanzani/plainJson

    Add plain JSON string encoding entry points (encodeJson) and docs/tests (v0.1.1)
    felipestanzani authored Oct 30, 2025
    Configuration menu
    Copy the full SHA
    58c7eb7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8bb4c09 View commit details
    Browse the repository at this point in the history
  14. Update versioning in build.gradle and enhance release workflow

    - Updated the version in build.gradle to dynamically retrieve from Git tags, defaulting to '0.1.1'.
    - Modified the GitHub Actions release workflow to automatically update the version in build.gradle based on the tag during the release process.
    felipestanzani committed Oct 30, 2025
    Configuration menu
    Copy the full SHA
    6498bd0 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    943d4e5 View commit details
    Browse the repository at this point in the history
  16. Update README with testing playground link

    Added a link to an online playground for testing differences.
    felipestanzani authored Oct 30, 2025
    Configuration menu
    Copy the full SHA
    f8e4110 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2025

  1. Update build.gradle version retrieval and enhance release workflow

    - Changed version retrieval in build.gradle to use providers.gradleProperty for better compatibility.
    - Updated GitHub Actions workflow to set the version from tags and create a gradle.properties file for version management.
    felipestanzani committed Oct 31, 2025
    Configuration menu
    Copy the full SHA
    0d8e047 View commit details
    Browse the repository at this point in the history
Loading