Major Version Upgrade: Remove Deprecated AJV/Schema Logic + Add Local SQS Support - #57
Merged
Merged
Conversation
- Introduced CLAUDE.md to provide guidance on commands, architecture, and handler types for the project. - Updated Node.js version requirement to 20+ in package.json. - Bumped Jest and TypeScript versions for improved compatibility. - Adjusted Jest configuration for TypeScript transformation. - Updated GitHub Actions workflow to support newer Node.js versions and actions. - Refined test assertions for better clarity and consistency.
- Removed AJV dependency and schemas from API handler definitions. - Introduced custom validation functions for user input in various handlers. - Updated test cases to reflect changes from schemas to validators. - Cleaned up package.json by removing unused dependency 'ajv'.
- Updated README.md to include instructions for using SQS_ENDPOINT for local development with ElasticMQ. - Enhanced QueueManager to utilize SQS_ENDPOINT for constructing queue URLs when set, allowing local testing without AWS. - Added unit tests to verify behavior with both AWS and custom SQS endpoints in queue-handler.test.ts.
Test Results 1 files 9 suites 16s ⏱️ Results for commit c7b6f55. ♻️ This comment has been updated with latest results. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #57 +/- ##
==========================================
- Coverage 83.04% 82.88% -0.17%
==========================================
Files 24 24
Lines 643 625 -18
Branches 157 146 -11
==========================================
- Hits 534 518 -16
+ Misses 107 105 -2
Partials 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@mckalexee you vibe coding bro? |
Contributor
Author
@willwashburn so hard dude. So much Claude Code. I'm re-writing my email app frontend and vibe coding all of it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Major Version Upgrade: Remove Deprecated AJV/Schema Logic + Add Local SQS Support
This PR introduces breaking changes for a major version release by removing all deprecated AJV and JSON schema functionality, while also adding support for local SQS development.
🚨 Breaking Changes
Removed Deprecated AJV/Schema Support
ajvdependency from package.jsonschemasproperty from API handler definitionsajvcustom instance option from API handlersMigration Required: Users must migrate from
schemastovalidatorsfunctions:✨ New Features
Local SQS Development Support
SQS_ENDPOINTenvironment variable support for local developmentUpdated GitHub Actions Workflow
[16.x, 18.x, 20.x]to[20.x, 22.x, 24.x]🔧 Internal Improvements
Code Quality
Updated Tests
Documentation
📦 Dependencies
ajv@^8.8.2🧪 Testing
📋 Files Changed
package.json- Removed ajv dependencyhandlers/api-handler.ts- Removed deprecated schema logichandlers/queue-handler.ts- Added SQS_ENDPOINT support__tests__/handlers/api-handler.test.ts- Migrated to validator functions__tests__/handlers/queue-handler.test.ts- Added SQS endpoint tests__tests__/extract/extract-handlers.test.ts- Updated expectationsfixtures/example/api/*.handler.ts- Converted to validator functions.github/workflows/test.yml- Updated Node versions and actionsREADME.md- Comprehensive documentation update🎯 Ready for Major Version Release
This PR prepares the library for a clean major version release with:
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com