@@ -134,6 +134,38 @@ export const retryLaneExpirationMs = 5000;
134
134
export const syncLaneExpirationMs = 250 ;
135
135
export const transitionLaneExpirationMs = 5000 ;
136
136
137
+ // -----------------------------------------------------------------------------
138
+ // Ready for next major.
139
+ //
140
+ // __NEXT_MAJOR__ is an alias for __EXPERIMENTAL__.
141
+ // -----------------------------------------------------------------------------
142
+
143
+ // Not ready to break experimental yet.
144
+ export const disableLegacyContext = __NEXT_MAJOR__ ;
145
+
146
+ // Not ready to break experimental yet.
147
+ // Disable javascript: URL strings in href for XSS protection.
148
+ export const disableJavaScriptURLs = __NEXT_MAJOR__ ;
149
+
150
+ // Remove IE and MsApp specific workarounds for innerHTML
151
+ export const disableIEWorkarounds = __NEXT_MAJOR__ ;
152
+
153
+ // Changes the behavior for rendering custom elements in both server rendering
154
+ // and client rendering, mostly to allow JSX attributes to apply to the custom
155
+ // element's object properties instead of only HTML attributes.
156
+ // https://github.com/facebook/react/issues/11347
157
+ export const enableCustomElementPropertySupport = __NEXT_MAJOR__ ;
158
+
159
+ // Filter certain DOM attributes (e.g. src, href) if their values are empty
160
+ // strings. This prevents e.g. <img src=""> from making an unnecessary HTTP
161
+ // request for certain browsers.
162
+ export const enableFilterEmptyStringAttributesDOM = __NEXT_MAJOR__ ;
163
+
164
+ // Modern <StrictMode /> behaviour aligns more with what components
165
+ // components will encounter in production, especially when used With <Offscreen />.
166
+ // TODO: clean up legacy <StrictMode /> once tests pass WWW.
167
+ export const useModernStrictMode = __NEXT_MAJOR__ ;
168
+
137
169
// -----------------------------------------------------------------------------
138
170
// Chopping Block
139
171
//
@@ -150,8 +182,6 @@ export const createRootStrictEffectsByDefault = false;
150
182
151
183
export const disableModulePatternComponents = false ;
152
184
153
- export const disableLegacyContext = false ;
154
-
155
185
export const enableUseRefAccessWarning = false ;
156
186
157
187
// Enables time slicing for updates that aren't wrapped in startTransition.
@@ -173,29 +203,12 @@ export const allowConcurrentByDefault = false;
173
203
// in open source, but www codebase still relies on it. Need to remove.
174
204
export const disableCommentsAsDOMContainers = true ;
175
205
176
- // Disable javascript: URL strings in href for XSS protection.
177
- export const disableJavaScriptURLs = false ;
178
-
179
206
export const enableTrustedTypesIntegration = false ;
180
207
181
208
// Prevent the value and checked attributes from syncing with their related
182
209
// DOM properties
183
210
export const disableInputAttributeSyncing = false ;
184
211
185
- // Remove IE and MsApp specific workarounds for innerHTML
186
- export const disableIEWorkarounds = __EXPERIMENTAL__ ;
187
-
188
- // Filter certain DOM attributes (e.g. src, href) if their values are empty
189
- // strings. This prevents e.g. <img src=""> from making an unnecessary HTTP
190
- // request for certain browsers.
191
- export const enableFilterEmptyStringAttributesDOM = __EXPERIMENTAL__ ;
192
-
193
- // Changes the behavior for rendering custom elements in both server rendering
194
- // and client rendering, mostly to allow JSX attributes to apply to the custom
195
- // element's object properties instead of only HTML attributes.
196
- // https://github.com/facebook/react/issues/11347
197
- export const enableCustomElementPropertySupport = __EXPERIMENTAL__ ;
198
-
199
212
// Disables children for <textarea> elements
200
213
export const disableTextareaChildren = false ;
201
214
@@ -245,8 +258,4 @@ export const enableProfilerNestedUpdateScheduledHook = false;
245
258
246
259
export const consoleManagedByDevToolsDuringStrictMode = true ;
247
260
248
- // Modern <StrictMode /> behaviour aligns more with what components
249
- // components will encounter in production, especially when used With <Offscreen />.
250
- // TODO: clean up legacy <StrictMode /> once tests pass WWW.
251
- export const useModernStrictMode = false ;
252
261
export const enableDO_NOT_USE_disableStrictPassiveEffect = false ;
0 commit comments