Repository navigation
Enable the new module registry by default from 2026-11-08 #7799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1569,9 +1569,6 @@ kj::Promise<kj::Own<CompiledWorker>> factory_new_worker(const WorkerFactory& con | |||||||||||
| bool usingNewModuleRegistry = isNewModuleRegistryEnabled(featureFlags); | ||||||||||||
| kj::Maybe<kj::Arc<jsg::modules::ModuleRegistry>> newModuleRegistry; | ||||||||||||
| if (usingNewModuleRegistry) { | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [WARNING] A
Suggested change
|
||||||||||||
| KJ_REQUIRE(experimental, | ||||||||||||
| "The new ModuleRegistry implementation is an experimental feature. " | ||||||||||||
| "You must run workerd with `--experimental` to use this feature."); | ||||||||||||
| // Module URLs follow the virtual file system: a module at "/foo/bar/baz.js" in the bundle | ||||||||||||
| // is "file:///foo/bar/baz.js". | ||||||||||||
| const jsg::Url& bundleBase = workerFs->getBundleRoot(); | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[WARNING] The only accompanying test change exempts this field from weekday validation; it does not depend on the enable-date annotation. Existing date-boundary coverage in
compatibility-date-test.c++covers a different flag (lines 578-588), and the existing new-registry server tests all callallowExperimental()(for example,server-test.c++:1002-1016). Removing this annotation, selecting an incorrect boundary, or restoring the factory-level experimental requirement would therefore pass the test suite. Add coverage for the day before and the day of the default, thelegacy_module_registryopt-out, and startup of a default-date module worker without experimental mode.