-
Notifications
You must be signed in to change notification settings - Fork 187
Comparing changes
Open a pull request
base repository: gin-contrib/cors
base: v1.7.5
head repository: gin-contrib/cors
compare: v1.7.6
- 11 commits
- 6 files changed
- 2 contributors
Commits on Jun 11, 2025
-
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>
Configuration menu - View commit details
-
Copy full SHA for 28dfa40 - Browse repository at this point
Copy the full SHA 28dfa40View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9706b1 - Browse repository at this point
Copy the full SHA a9706b1View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 90bd363 - Browse repository at this point
Copy the full SHA 90bd363View commit details
Commits on Jun 20, 2025
-
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>
Configuration menu - View commit details
-
Copy full SHA for 7161918 - Browse repository at this point
Copy the full SHA 7161918View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 516207b - Browse repository at this point
Copy the full SHA 516207bView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for ebd7f91 - < 8000 a tabindex="-1" id="item-b2a76b97-64cc-4f92-a44b-73657b66b9a1" href="/gin-contrib/cors/tree/ebd7f912c7f16d468ce530a8625f1a135f65a76f" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> Browse repository at this point
Copy the full SHA ebd7f91View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for abfb2cb - Browse repository at this point
Copy the full SHA abfb2cbView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 8efeda3 - Browse repository at this point
Copy the full SHA 8efeda3View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 4ee797e - Browse repository at this point
Copy the full SHA 4ee797eView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for f65f3f7 - Browse repository at this point
Copy the full SHA f65f3f7View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 47d9afe - Browse repository at this point
Copy the full SHA 47d9afeView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.7.5...v1.7.6