Drop the polyfill for native workspace APIs - #16
Draft
grouville wants to merge 1 commit into
Draft
Conversation
grouville
force-pushed
the
polyfill-removal
branch
2 times, most recently
from
August 13, 2026 02:31
864d5d7 to
ae9c347
Compare
The TypeScript SDK used dagger/polyfill for managed module discovery, generation, client generation, and config edits. Those behaviors now live in Workspace and ModuleSource. Read managed modules from currentModule.asSDK(workspace).modules, thread the Workspace through each generation step, and compare the final workspace with the input. Remove the polyfill and bump the engine requirement together so earlier staged edits are not returned twice. Signed-off-by: Guillaume de Rouville <guillaume@dagger.io>
grouville
force-pushed
the
polyfill-removal
branch
from
August 14, 2026 07:52
3027088 to
61f20b3
Compare
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.
The TypeScript SDK no longer needs
dagger/polyfill.Managed modules come from
currentModule.asSDK(workspace: ws).modules, using the registrations already present indagger.toml. Generation keeps the workspace it received, applies each module's generated files to it, then returnsafter.changes(from: ws).That explicit baseline matters during module initialization:
wsalready contains the new config and scaffold, so the SDK sees those files without returning them a second time. Paths are made cwd-relative once, byWorkspace.changes(from:).Init, clients, and config edits use the same pattern, and the polyfill dependency is removed.
Test
dagger check e-2-eRequires dagger/dagger#13854 and dagger/dagger#13855.