Skip to content

[experimental] Add global switch for experimental features - #596

Open
MenKNas wants to merge 8 commits into
devfrom
feature/jss-10058-global-experimental-features-switch
Open

[experimental] Add global switch for experimental features#596
MenKNas wants to merge 8 commits into
devfrom
feature/jss-10058-global-experimental-features-switch

Conversation

@MenKNas

@MenKNas MenKNas commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Description / Motivation

This PR adds a global app-level switch called CSDK_EXPERIMENTAL_FEATURES_ENABLED so experimental features only enable when this flag is on and the feature-specific env var is set. Shared helpers live in @sitecore-content-sdk/content/experimental, and starter env examples document the switch when needed for development purposes.

Testing Details

  • Unit Test Added
  • Manual Test/Other - This will need to be manually tested carefully when we actually start using the mechanism and actually handle real life scenarios of experimental features.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1ae7c97

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@sitecore-content-sdk/content Minor
@sitecore-content-sdk/nextjs Minor
@sitecore-content-sdk/angular Patch
create-content-sdk-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

📦 Package Size and Test Coverage Report

Package Base Size PR Size Δ Change Base Coverage PR Coverage Δ Change
analytics-core 69.05 KB 69.05 KB ✅ 0.00 KB 97.44% 97.44% 0.00%
angular 366.70 KB 366.70 KB ✅ 0.00 KB 93.98% 93.98% 0.00%
cli 61.41 KB 61.41 KB ✅ 0.00 KB 71.91% 71.91% 0.00%
content 499.18 KB 501.47 KB 🔺 +2.29 KB 92.79% 92.80% +0.00%
core 141.84 KB 141.84 KB ✅ 0.00 KB 91.62% 91.62% 0.00%
create-content-sdk-app 530.73 KB 532.20 KB 🔺 +1.47 KB 96.47% 96.47% 0.00%
events 72.33 KB 72.33 KB ✅ 0.00 KB 97.97% 97.97% 0.00%
nextjs 566.51 KB 567.55 KB 🔺 +1.04 KB 91.64% 91.64% 0.00%
personalize 64.01 KB 64.01 KB ✅ 0.00 KB 99.74% 99.74% 0.00%
react 238.73 KB 238.73 KB ✅ 0.00 KB 93.96% 93.96% 0.00%
search 8.25 KB 8.25 KB ✅ 0.00 KB 98.72% 98.72% 0.00%
Total 🔺 +4.80 KB

Comment thread packages/content/api/content-sdk-content.api.md Outdated
Comment thread packages/content/src/experimental-features/utils.ts Outdated
@MenKNas
MenKNas requested a review from art-alexeyenko August 24, 2026 07:49
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.

2 participants