refactor: extract Location bindings - #286
Conversation
|
@jderochervlk same comment as in #288, what's the motivation here? I think the main goal of our work now should be to have the most common types inside the |
I'm trying to slim down I don't think we'll need to keep the |
|
Makes sense to me from the code and API perspective. Moving Location and reserving the Base for the types most things actually depend on feels like the right call. I do agree with @tsnobip's point, consumers like @rescript/react need to depend on Base alone and stay light. But we can still go with these changes, makes it more composable and lightweight. |
2c3a062 to
e195860
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e19586010e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
e195860 to
4f30694
Compare
e57c513 to
f654113
Compare
f654113 to
6d4e572
Compare
6d4e572 to
a2d6b69
Compare
a2d6b69 to
10b57e4
Compare
10b57e4 to
c6382d7
Compare
Tracking issue: #342
Summary
Location.tand the Location bindings in the owningLocationmoduleDOMandDomTypesLocation.tfromDocument.locationandWindow.locationLocation.fromandLocation.fromDocumentconversion bindingsTemporary state
Location.tis the durable public typeDocument,Window, and the remaining broadDomTypesdefinitions are migrated by later PRs, ending with deletion ofDomTypesin refactor: remove DOM compatibility types #310Location.resremains physically under the current broad DOM source folder until the follow-up Option 5 folder/feature stack assigns final folder ownershipReview focus
Document.locationandWindow.locationcontractsVerification
npm run buildnpm testnpm run format:check