feat(actor): sync Actor shim with deployed runtime - #243
Merged
Conversation
Align the type-only Actor shim with the current Durable Object implementation: drop members the runtime no longer exposes and add the scheduled-wake API. - Remove Conn.userId/appId/instanceId - Remove startLoop/stopLoop (now platform-managed) - Add handleWake, schedule, cancelSchedule Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
Claude finished @ImriKochWix's task —— View job PR Review: Sync Actor shim with deployed runtime
Overall this is a clean, well-scoped, type-only change. It's low risk: Code quality & best practices
Potential bugs / issues
Performance
Security
Test coverage
SummarySafe, focused change that reduces drift and API surface. Two things to action before merge:
|
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.41-pr.243.98f858cPrefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.41-pr.243.98f858c"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.41-pr.243.98f858c"
}
}
Preview published to npm registry — try new features instantly! |
yardend-wix
approved these changes
Jul 30, 2026
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.
What
Aligns the type-only
Actorshim (src/actor.ts) with the current Durable Object runtime implementation, which had drifted.Changes
Removed (no longer exposed by the deployed runtime):
Conn.userId/Conn.appId/Conn.instanceIdstartLoop()/stopLoop()— the managed ticker is now fully platform-ownedAdded (scheduled-wake API):
handleWake(key)— hook fired when a scheduled timer comes dueschedule(key, at)— arm a one-shot wakecancelSchedule(key)— cancel a pending wakeclient,storage,instanceId,broadcast,getConnections, and the ticker (tickIntervalMs/shouldTick) are unchanged.Verification
npm run buildandnpm run test:typespass.🤖 Generated with Claude Code