This repository was archived by the owner on Nov 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
feat: Add comprehensive serverless support #524
Merged
Merged
Conversation
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
- Add serverless core implementation without Node.js dependencies - Add platform adapters for AWS Lambda, Vercel Edge, and Cloudflare Workers - Add EdgeCache implementation for platform-agnostic caching - Add support for batch email validation in serverless environments - Add comprehensive serverless documentation - Add examples for all major serverless platforms - Add tests for serverless core functionality - Configure TypeScript and Rollup build for serverless modules - Update package.json with serverless exports and Rollup dependencies - Use full unminified JSON databases as requested
- Add rollup.config.js for building both CJS and ESM formats - Update package.json with module field pointing to ESM build - Configure Rollup with TypeScript, JSON, and CommonJS plugins - Update build scripts to use Rollup for main build
- Rename rollup.config.js to rollup.config.cjs - Rename rollup.config.serverless.js to rollup.config.serverless.cjs - Convert require() statements to dynamic import() syntax - Use async IIFE pattern for CommonJS compatibility - Add rollup-plugin-esbuild for consistent TypeScript compilation - Remove deprecated tsconfig.serverless.json - Update package.json build scripts to reference .cjs files - Fix serverless tests to use valid-domain.org instead of example.com - Add biome lint rule exception for callback returns - Update dependencies: esbuild, rollup-plugin-esbuild, tslib
- Replace async IIFE with direct module.exports - Use standard require() for all plugins instead of dynamic imports - Simplify configuration structure for better readability - Maintain same build output and functionality
- Add release version and tag extraction from semantic-release output - Create detailed job summaries with release information - Include NPM package and GitHub release links - Add build metadata (workflow, run ID, actor, event) - Show PR information when triggered by pull requests - Different summaries for release vs CI workflows - Helpful messages when no release is created
6 tasks
meabed
added a commit
that referenced
this pull request
Aug 28, 2025
… AWS Lambda, Cloudflare, Vercel, and Deno (#525) * chore: update deps * chore: update readme * chore: update ci * feat: Add comprehensive serverless support (#524) * feat: add comprehensive serverless support for edge computing platforms - Add serverless core implementation without Node.js dependencies - Add platform adapters for AWS Lambda, Vercel Edge, and Cloudflare Workers - Add EdgeCache implementation for platform-agnostic caching - Add support for batch email validation in serverless environments - Add comprehensive serverless documentation - Add examples for all major serverless platforms - Add tests for serverless core functionality - Configure TypeScript and Rollup build for serverless modules - Update package.json with serverless exports and Rollup dependencies - Use full unminified JSON databases as requested * build: add main Rollup configuration for ES module builds - Add rollup.config.js for building both CJS and ESM formats - Update package.json with module field pointing to ESM build - Configure Rollup with TypeScript, JSON, and CommonJS plugins - Update build scripts to use Rollup for main build * build: convert rollup configs to .cjs with dynamic imports - Rename rollup.config.js to rollup.config.cjs - Rename rollup.config.serverless.js to rollup.config.serverless.cjs - Convert require() statements to dynamic import() syntax - Use async IIFE pattern for CommonJS compatibility - Add rollup-plugin-esbuild for consistent TypeScript compilation - Remove deprecated tsconfig.serverless.json - Update package.json build scripts to reference .cjs files - Fix serverless tests to use valid-domain.org instead of example.com - Add biome lint rule exception for callback returns - Update dependencies: esbuild, rollup-plugin-esbuild, tslib * refactor: simplify rollup configs to use require() syntax - Replace async IIFE with direct module.exports - Use standard require() for all plugins instead of dynamic imports - Simplify configuration structure for better readability - Maintain same build output and functionality * ci: add release information to GitHub Actions job summaries - Add release version and tag extraction from semantic-release output - Create detailed job summaries with release information - Include NPM package and GitHub release links - Add build metadata (workflow, run ID, actor, event) - Show PR information when triggered by pull requests - Different summaries for release vs CI workflows - Helpful messages when no release is created * fix: Update serverless adapter examples and improve type safety - Enhanced Deno Deploy example with better error handling and validation - Fixed type annotations in AWS Lambda and Cloudflare adapters - Improved code formatting and consistency across serverless implementations * fix: update npm downloads badge to use correct package name - Changed badge URL from email-validator-js to @devmehq/email-validator-js - Ensures accurate download statistics display * fix: ensure JSON data files are bundled in dist directory - Updated build script to copy disposable and free email provider JSON files to dist - Ensures JSON files are included in published npm package - Files are now accessible in production builds --------- Co-authored-by: DEV.ME Team <support@dev.me>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Changes
Core Implementation
Platform Adapters
Build System
Documentation & Examples
docs/SERVERLESS.mdTesting
Features in Serverless Mode
Test Plan