Skip to content

DX | 10-08-2026 | Release - #393

Open
OMpawar-21 wants to merge 710 commits into
mainfrom
development
Open

DX | 10-08-2026 | Release#393
OMpawar-21 wants to merge 710 commits into
mainfrom
development

Conversation

@OMpawar-21

Copy link
Copy Markdown
Contributor

No description provided.

harshitha-cstk and others added 30 commits November 1, 2025 06:38
…es-coverage

Fix/dx 3674 improve testcases coverage
…oints-region

Revert "feat: implement download script for regions.json and update postinsta…"
- Fix all failing test suites (632 tests now passing)
- Add 21 new comprehensive test suites covering:
  * Asset management, cache & persistence
  * Complex queries, deep references, field projections
  * Global fields, JSON RTE, live preview
  * Metadata, modular blocks, multi-reference
  * Pagination, performance benchmarks
  * Query encoding, operators, sync operations
  * Taxonomy queries

- Fix TypeScript errors (TS18048, TS2304, TS2554, TS1128, TS1005)
- Fix Axios errors (422, 400) with graceful error handling
- Fix circular references in deep reference chains (WeakSet tracking)
- Fix flaky performance tests (network variance handling)
- Add global console.error suppression for SDK validation (jest.setup.ts)
- Remove redundant synchronization.spec.ts (superseded by comprehensive version)
- Update .gitignore to exclude build artifacts
- Sync with latest development (19 commits)
- Remove @nrwl/jest dependency (from upstream)

Test Results:
  Test Suites: 39 passed, 39 total (100%)
  Tests: 632 passed, 632 total (100%)
  Status: Production Ready

Breaking Changes: None
Security: All credentials use environment variables
…tentstackEndpoint

refactor:  region handling logic to utilize getContentstackEndpoint. …
…tentstackEndpoint

chore: 🗑️ remove redundant code
Enh: add type casting helper for BaseQuery methods to return Query type
…ation

fix: reverts the endpoints helper method integration
…ry, and Query classes for better clarity and user guidance.
…ze centralized error messages for improved consistency and clarity.
- Add browser environment test suite (jsdom)
  * Import validation tests
  * Initialization tests with real .env credentials
  * Dependency safety checks (catches fs/path/crypto usage)
  * Real API call tests using existing .env

- Add bundle validation scripts
  * validate-browser-safe.js: Scans bundles for Node.js-only APIs
  * test-bundlers.js: Validates bundler compatibility

- Add test configurations
  * jest.config.browser.ts: Browser environment Jest config
  * jest.setup.browser.ts: Browser test setup
  * playwright.config.ts: Real browser testing (structure)

- Update package.json with new npm scripts
  * test:browser: Run browser environment tests
  * test:all: Run all tests (unit + api + browser)
  * validate:browser: Validate bundle safety
  * validate:bundlers: Test bundler compatibility

- Update .gitignore
  * Add .env to prevent credential leaks
  * Adjust docs/ pattern

This implements AWS SDK v3-style multi-environment testing to catch
Node.js-only API usage (fs, path, crypto) before production, preventing
customer build failures in browser environments.
reeshika-h and others added 26 commits July 21, 2026 16:24
Added Branches support in entry variants
Reporting:
- Add request-capture plugin, assertion tracker, and a single-file HTML
  reporter that shows per-test SDK method, API request, copy-paste cURL,
  request/response, and Assertions Verified (expected vs actual) inline.
  Gated by ENABLE_HTTP_CAPTURE; tokens masked. Wired into jest config/setup.
- Fix stale console-error suppression to match the current SDK message.

Test fixes:
- Reference specs use complex_all_fields fields (single_ref/multi_ref/self_ref).
- Sync token assertions handle both no-change (stable) and change (advanced) cases.
- Asset dimension asserts on an image asset; raise slow error-path test timeout.

Bundlers:
- run-with-report.sh: regenerate lockfile, surface install errors, fix counting.
- Pin webpack to 5.108.0 (5.109 resolver regression with @ljharb transitive deps).

.talismanrc: whitelist the 4 new/updated report+bundler files (false positives).
…-suite-fixes

test: rich HTML report + API suite fixes for enriched v5 stack
chore: back-merge main into development
Transient network-layer errors (ENOTFOUND, ENETUNREACH, ECONNRESET,
ECONNREFUSED, EAI_AGAIN, ETIMEDOUT, EHOSTUNREACH, ENETDOWN) now trigger
the SDK's configured retry policy instead of failing immediately.

A combinedRetryCondition composes the user-supplied retryCondition with
the new default network-error check. The user condition runs first; if it
throws, a warning is emitted via logHandler and the SDK falls back to the
default. The original config object is never mutated.

ECONNABORTED is excluded — @contentstack/core classifies it as a
structured TIMEOUT error and handles it separately.

Resolves: SF Case #00060601 (SentinelOne)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…warnings

Lines 182 and 184 in contentstack.ts (the catch block and logHandler warn path)
were flagged uncovered by jest-coverage-report-action. Added test (g) which
exercises a retryCondition that throws, verifies the SDK falls back to default
retry behaviour, and asserts the warning is emitted via logHandler.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…age gap

- Fix misleading comment: only the retryCondition composition avoids
  mutation; config.host is still mutated elsewhere in the function
- Emit a structured logHandler payload ({ type, message, error }) when
  retryCondition throws, consistent with request/response interceptors
- Add !error.response guard to isTransientNetworkError so it only retries
  errors that arrived before any HTTP response, matching the JSDoc contract
- Add tests (h1, h, k) to cover the ?? fallback branch, the logHandler?.
  undefined branch, and the user retryCondition returning true; branch
  coverage on contentstack.ts: 93.88% → 97.95%

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bumps @contentstack/core to ^1.5.1, which fixes MODULE_NOT_FOUND /
"expression is too dynamic" build failures in bundlers (Next.js/Turbopack,
webpack) and native ESM ReferenceErrors from the keep-alive agent setup.

NOTE: do not publish until @contentstack/core 1.5.1 is live on npm, or the
^1.5.1 range will not resolve.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…-1.5.1

chore: Prepare 5.5.2 release with @contentstack/core ^1.5.1
chore: back-merge main into development
…oc accuracy

- Add release date (Aug-05-2026) to the 5.6.0 CHANGELOG entry
- Update @returns JSDoc on isTransientNetworkError to reflect both
  conditions: error.code match and absence of error.response

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(DX-10060): retry transient network errors to prevent build crashes
Force push on main after PR#389/PR#390 broke shared ancestry.
Preserves DX-10060 (network error retry) from development.
Adds snyk false-positive suppression from main.
chore: reconcile diverged git histories
@OMpawar-21
OMpawar-21 requested a review from a team as a code owner August 11, 2026 13:22
@snyk-io

snyk-io Bot commented Aug 11, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@github-actions

Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
98.9% (+0.01% 🔼)
993/1004
🟢 Branches
96.52% (+0.08% 🔼)
305/316
🟢 Functions
97.79% (+0.02% 🔼)
221/226
🟢 Lines
99.37% (+0.01% 🔼)
945/951

Test suite run success

720 tests passing in 36 suites.

Report generated by 🧪jest coverage report action from b83159c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.