feat: CDN integration with OSS and API Gateway CDN support#195
Merged
Conversation
- CDN SDK v9.2.0: update SetDomainServerCertificate to SetCdnDomainSSLCertificate - @types/jest v30: add types field to tsconfig for Jest globals - Fix flaky localStack test with retry logic for ECONNRESET race condition - Update CDN test mocks to match new SDK API - Add .omo/ to gitignore
- fix(cdn): applyProtocolConfig uses forward_scheme (not range) for origin protocol - fix(cdn): add tests for applyCacheConfig, applyProtocolConfig, applyCompression, applyHttpsRedirect - fix(mock): add dns property to MockAliyunClient type - fix(oss): remove redundant isCdnEnabled double-check in www CDN block
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #195 +/- ##
==========================================
+ Coverage 87.81% 88.35% +0.53%
==========================================
Files 144 145 +1
Lines 8602 7634 -968
Branches 2216 1995 -221
==========================================
- Hits 7554 6745 -809
+ Misses 498 398 -100
+ Partials 550 491 -59 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
This pull request introduces support for Alibaba Cloud CDN and OSS Transfer Acceleration, expands the SDK client layer, and includes dependency upgrade fixes and code review corrections.
Major Features
CDN and Transfer Acceleration Support
cdn: true) and advanced configuration optionsSDK Client Expansion
cdnOperationsmodule with domain, certificate, cache, protocol, compression, and HTTPS redirect managementBug Fixes & Corrections
CDN API Fix (Critical)
applyProtocolConfignow uses correctforward_schemefeature (notrange) for origin protocol configurationrangefeature controls back-to-origin range slicing, not protocol. Origin protocol requiresforward_schemewithenableparameter.Dependency Upgrade Compatibility
SetDomainServerCertificate→SetCdnDomainSSLCertificateAPI migrationtypesfield for Jest globalsCode Quality
dnsproperty toMockAliyunClienttype (was missing from mock)isCdnEnableddouble-check in OSS www CDN blockBatchSetCdnDomainConfigfunctions (applyCacheConfig,applyProtocolConfig,applyCompression,applyHttpsRedirect)Documentation
Test Coverage
Commits
feat: CDN integration with OSS and API Gateway CDN support- Original featurefix: resolve dependency upgrade compatibility issues- SDK/API migrationfix: correct CDN origin protocol API and code review issues- Bug fixes and tests