-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(client-utils): fix trace.js import of performance #21257
Conversation
@@ -3,7 +3,7 @@ | |||
* Licensed under the MIT License. | |||
*/ | |||
|
|||
import { performance } from "./indexNode.js"; | |||
import { performance } from "./performanceIsomorphic.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the actual fix. There is no node/browser specific code involved. PerformanceIsomorphic just narrows the type of the global performance object to the intersection of what browser/node support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the buffer tests in jest have some typos. There are some things that refer to Node or Browser but are actually the other. The first I noticed was in "Views are supported".
Some small buffer test in mocha would be nice.
Ideally, we'd have tests that used the public interface - @fluid-internal/client-utils
. That is entirely possible with either:
- moving tests out from under dist | lib output
- cloning the exports package.json (easier now that they are smaller; restore the file deleted) See also AB#7374.
- not testing CJS (per the package.json not having appropriate exports)
packages/common/client-utils/src/test/mocha/base64Encoding.spec.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Jason Hartman <[email protected]>
Fix GH microsoft#21252 --------- Co-authored-by: Jason Hartman <[email protected]>
Fix GH microsoft#21252 --------- Co-authored-by: Jason Hartman <[email protected]>
Fix GH microsoft#21252 --------- Co-authored-by: Jason Hartman <[email protected]>
Fix GH microsoft#21252 --------- Co-authored-by: Jason Hartman <[email protected]>
Fix GH microsoft#21252 --------- Co-authored-by: Jason Hartman <[email protected]>
Fix GH #21252 Cherry pick of 925a477 Co-authored-by: Daniel Lehenbauer <[email protected]> Co-authored-by: Jason Hartman <[email protected]>
Fix GH #21252 Cherry pick of 925a477 Co-authored-by: Daniel Lehenbauer <[email protected]> Co-authored-by: Jason Hartman <[email protected]>
Fix GH #21252