Deprecate ensureReplicas/disableReplicas.#6638
Conversation
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR adds @deprecated annotations for ensureReplicas() and disableReplicas() on DurableObjectStorage, pointing users to configureReadReplication() instead.
Issue: @deprecated tags are inside plain comments, not JSDoc comments — TypeScript will not recognize them.
The annotation strings start with a space (` @deprecated...`), which causes ts.addSyntheticLeadingComment to emit /* @deprecated ... */ (plain comment). TypeScript only processes @deprecated tags inside /** */ (JSDoc) comments. Users will not see strikethrough in their IDEs.
The fix is to prefix the strings with * instead of a space, producing /** @deprecated ... */. The pre-existing primary entry has the same bug.
This review was generated by an AI assistant and may contain inaccuracies.
|
I'm Bonk, and I've done a quick review of your PR. This PR adds One issue found: The |
Merging this PR will not alter performance
Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## jolio/move-config-read-replication #6638 +/- ##
===================================================================
Coverage 66.50% 66.50%
===================================================================
Files 405 405
Lines 115976 115976
Branches 19409 19409
===================================================================
Hits 77133 77133
Misses 27265 27265
Partials 11578 11578 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1d15aff to
da3c505
Compare
d92dd25 to
765f711
Compare
justin-mp
left a comment
There was a problem hiding this comment.
Note that you don't actually need to base this on top of the other branch, as it doesn't depend on that branch for anything. You could rebase on top of main and it would apply just fine!
765f711 to
15cc016
Compare
|
Rebase and retarget branch |
15cc016 to
756c7d5
Compare
Logically it's not dependent, but sadly it is syntactically/git conflict dependent, due to either this or the change below it adding a new stanza to types/src/cloudflare.ts |
56a2896 to
0864429
Compare
756c7d5 to
82cc84b
Compare
0864429 to
857b457
Compare
82cc84b to
e48fcfb
Compare
e48fcfb to
5dccfbf
Compare
950bce5 to
d668e2b
Compare
5dccfbf to
343e809
Compare
d668e2b to
0649f75
Compare
343e809 to
2b8f20e
Compare
In cases where typescript annotations mention the old methods, we should explain what is replacing them. X-Dest-Branch: jolio/deprecate-ensureReplicas
0649f75 to
3a820d2
Compare
2b8f20e to
2d45197
Compare
In cases where typescript annotations mention the old methods, we should explain what is replacing them.
Once #6649 is merged this PR should be retargeted to main.