8000 Comparing v1.7.5...v1.7.6 · gin-contrib/cors · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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: gin-contrib/cors
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.7.5
Choose a base ref
...
head repository: gin-contrib/cors
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.7.6
Choose a head ref
  • 11 commits
  • 6 files changed
  • 2 contributors

Commits on Jun 11, 2025

  1. chore: update core dependencies to latest supported versions

    - Update several dependencies to newer versions, including gin-gonic/gin, bytedance/sonic, gabriel-vasile/mimetype, gin-contrib/sse, pelletier/go-toml/v2, ugorji/go/codec, and various golang.org/x packages
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 11, 2025
    Configuration menu
    Copy the full SHA
    28dfa40 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9706b1 View commit details
    Browse the repository at this point in the history
  3. ci: upgrade golangci-lint GitHub Action to v8

    - Update golangci-lint GitHub Action to use version v8 instead of v7
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 11, 2025
    Configuration menu
    Copy the full SHA
    90bd363 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2025

  1. chore: update go codec library to improve serialization support

    - Bump github.com/ugorji/go/codec to version 1.3.0
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 20, 2025
    Configuration menu
    Copy the full SHA
    7161918 View commit details
    Browse the repository at this point in the history
  2. docs: rewrite and expand README for clarity and comprehensive guidance

    - Rewrite and expand the README for clarity, organization, and completeness
    - Add a detailed table of contents and new sections for installation, quick start, advanced usage, and important notes
    - Provide clearer code examples for default and custom configuration scenarios
    - Clarify the distinction between Default and DefaultConfig, including implications for credentialed requests
    - Emphasize key warnings about enabling all origins and cookie usage
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 20, 2025
    Configuration menu
    Copy the full SHA
    516207b View commit details
    Browse the repository at this point in the history
  3. chore: pin golangci-lint to a specific version

    - Replace golangci-lint arguments with an explicit version specification
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 20, 2025
    Configuration menu
    Copy the full SHA
    ebd7f91 View commit details
    Browse the repository at this point in the history
  4. docs: expand and clarify configuration documentation

    - Add detailed "Configuration Reference" section documenting all config fields, types, defaults, and their usage
    - Introduce notes and examples on advanced configuration, including wildcard origins and custom validation functions
    - Provide helper method references and usage examples for dynamically modifying allowed methods, headers, and exposed headers
    - Add section explaining config validation rules and error handling for common misconfigurations
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 20, 2025
    Configuration menu
    Copy the full SHA
    abfb2cb View commit details
    Browse the repository at this point in the history
  5. docs: revise and expand project documentation for clarity and usability

    - Revamp and expand the README structure, including new Overview, Table of Contents, and Examples sections
    - Improve clarity and consistency in section titles, phrasing, and warnings
    - Refine configuration documentation: simplify and clarify table descriptions, defaults, and constraints
    - Reorganize and enhance code examples for better readability and usability
    - Remove redundant or overly verbose comments, streamlining instructions and guidance throughout
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 20, 2025
    Configuration menu
    Copy the full SHA
    8efeda3 View commit details
    Browse the repository at this point in the history
  6. docs: reorganize and streamline README structure and content

    - Move the Overview section to a later position in the README while retaining its content
    - Remove the explicit Table of Contents section and rely on the markdown-generated navigation
    - Simplify the document by consolidating introductory content
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 20, 2025
    Configuration menu
    Copy the full SHA
    4ee797e View commit details
    Browse the repository at this point in the history
  7. test: refactor and expand CORS AllowOrigins test coverage

    - Refactor a large test function for CORS "AllowOrigins" logic into multiple, focused test cases
    - Add new tests to separately cover missing origin, origin matching host, allowed origins, denied origins, allowed preflight, and denied preflight scenarios
    - Improve test clarity and maintainability by splitting distinct origin handling behaviors into individual functions
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 20, 2025
    Configuration menu
    Copy the full SHA
    f65f3f7 View commit details
    Browse the repository at this point in the history
  8. refactor: refactor tests to table-driven style and simplify router logic

    - Refactor tests to use table-driven style, reducing repetition and increasing maintainability
    - Consolidate similar assertion patterns into loops and test tables for better scalability
    - Replace multiple standalone test cases with grouped, parameterized subtests
    - Simplify router handler definitions to single-line functions
    - Update assertions to use the expected, actual parameter order for clarity
    - Replace repeated origin validation checks with comprehensive test sets using maps of origins to expected results
    - Refactor control flow using switch statements for clarity in testing multi-group router logic
    - Minor code cleanup, such as variable renaming and removing redundant comments
    
    Signed-off-by: appleboy <appleboy.tw@gmail.com>
    appleboy committed Jun 20, 2025
    Configuration menu
    Copy the full SHA
    47d9afe View commit details
    Browse the repository at this point in the history
Loading
0