GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — [Flight] provide property descriptors for client references by gnoff · Pull Request #27328 · react/react Conversation
Collaborator
Client reference proxy should implement getOwnPropertyDescriptor. One practical place where this shows up is when consuming CJS module.exports in ESM modules. Node creates named exports it statically infers from the underlying source but it only sets the named export if the CJS exports hasOwnProperty. This trap will allow the proxy to respond affirmatively. I did not add unit tests because contriving the ESM <-> CJS scenario in Jest is challenging. I did add new components to the flight fixture which demonstrate that the named exports are properly constructed with the client reference whereas they were not before.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions… practical place where this shows up is when consuming CJS module.exports in ESM modules. Node creates named exports it statically infers from the underlying source but it only sets the named export if the CJS exports hasOwnProperty. This trap will allow the proxy to respond affirmatively. All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
sebmarkbage
approved these changes
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
acdlite
added a commit
to acdlite/next.js
that referenced
this pull request
React upstream changes: - react/react#27374 - react/react#27369 - react/react#27372 - react/react#27371 - react/react#27370 - react/react#27321 - react/react#27368 - react/react#27367 - react/react#27366 - react/react#27360 - react/react#27361 - react/react#27357 - react/react#27359 - react/react#27358 - react/react#27330 - react/react#27347 - react/react#27307 - react/react#27346 - react/react#27342 - react/react#27340 - react/react#27328 - react/react#27327 - react/react#27325 - react/react#27337 - react/react#27336 - react/react#27323 - react/react#27320 - react/react#27317 - react/react#27318 - react/react#27316 - react/react#27313 - react/react#27309 - react/react#27302 - react/react#27297 - react/react#27295 - react/react#27305 - react/react#27215 - react/react#27304 - react/react#27067 - react/react#27179 - react/react#27278 - react/react#27277 - react/react#27282 - react/react#27230 - react/react#27260 - react/react#27270 - react/react#27273 - react/react#27268 - react/react#27269
kodiakhq Bot
pushed a commit
to vercel/next.js
that referenced
this pull request
### React upstream changes: - react/react#27374 - react/react#27369 - react/react#27372 - react/react#27371 - react/react#27370 - react/react#27321 - react/react#27368 - react/react#27367 - react/react#27366 - react/react#27360 - react/react#27361 - react/react#27357 - react/react#27359 - react/react#27358 - react/react#27330 - react/react#27347 - react/react#27307 - react/react#27346 - react/react#27342 - react/react#27340 - react/react#27328 - react/react#27327 - react/react#27325 - react/react#27337 - react/react#27336 - react/react#27323 - react/react#27320 - react/react#27317 - react/react#27318 - react/react#27316 - react/react#27313 - react/react#27309 - react/react#27302 - react/react#27297 - react/react#27295 - react/react#27305 - react/react#27215 - react/react#27304 - react/react#27067 - react/react#27179 - react/react#27278 - react/react#27277 - react/react#27282 - react/react#27230 - react/react#27260 - react/react#27270 - react/react#27273 - react/react#27268 - react/react#27269
sebmarkbage
added a commit
that referenced
this pull request
…28352) The newer version triggers an error due to require() not being compiled. This was upgraded in #27328. I'm not sure why that was needed. Maybe it was just because it was allowed by the caret and something else upgraded but I haven't been able to make it work with the newer version. So I'll just pin it.
EdisonVan
pushed a commit
to EdisonVan/react
that referenced
this pull request
) Client reference proxy should implement getOwnPropertyDescriptor. One practical place where this shows up is when consuming CJS module.exports in ESM modules. Node creates named exports it statically infers from the underlying source but it only sets the named export if the CJS exports hasOwnProperty. This trap will allow the proxy to respond affirmatively. I did not add unit tests because contriving the ESM <-> CJS scenario in Jest is challenging. I did add new components to the flight fixture which demonstrate that the named exports are properly constructed with the client reference whereas they were not before.
EdisonVan
pushed a commit
to EdisonVan/react
that referenced
this pull request
…eact#28352) The newer version triggers an error due to require() not being compiled. This was upgraded in react#27328. I'm not sure why that was needed. Maybe it was just because it was allowed by the caret and something else upgraded but I haven't been able to make it work with the newer version. So I'll just pin it.
bigfootjon
pushed a commit
that referenced
this pull request
Client reference proxy should implement getOwnPropertyDescriptor. One practical place where this shows up is when consuming CJS module.exports in ESM modules. Node creates named exports it statically infers from the underlying source but it only sets the named export if the CJS exports hasOwnProperty. This trap will allow the proxy to respond affirmatively. I did not add unit tests because contriving the ESM <-> CJS scenario in Jest is challenging. I did add new components to the flight fixture which demonstrate that the named exports are properly constructed with the client reference whereas they were not before. DiffTrain build for commit b9be453.
bigfootjon
pushed a commit
that referenced
this pull request
…28352) The newer version triggers an error due to require() not being compiled. This was upgraded in #27328. I'm not sure why that was needed. Maybe it was just because it was allowed by the caret and something else upgraded but I haven't been able to make it work with the newer version. So I'll just pin it. DiffTrain build for commit 2ba1b78.
hanzo-dev
pushed a commit
to hanzoai/react
that referenced
this pull request
) Client reference proxy should implement getOwnPropertyDescriptor. One practical place where this shows up is when consuming CJS module.exports in ESM modules. Node creates named exports it statically infers from the underlying source but it only sets the named export if the CJS exports hasOwnProperty. This trap will allow the proxy to respond affirmatively. I did not add unit tests because contriving the ESM <-> CJS scenario in Jest is challenging. I did add new components to the flight fixture which demonstrate that the named exports are properly constructed with the client reference whereas they were not before.
hanzo-dev
pushed a commit
to hanzoai/react
that referenced
this pull request
…eact#28352) The newer version triggers an error due to require() not being compiled. This was upgraded in react#27328. I'm not sure why that was needed. Maybe it was just because it was allowed by the caret and something else upgraded but I haven't been able to make it work with the newer version. So I'll just pin it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |