Skip to content

refactor: remove browserPaths in favor of Registry class#5318

Merged
aslushnikov merged 9 commits into
microsoft:masterfrom
aslushnikov:refactor-browser-paths
Feb 9, 2021
Merged

refactor: remove browserPaths in favor of Registry class#5318
aslushnikov merged 9 commits into
microsoft:masterfrom
aslushnikov:refactor-browser-paths

Conversation

@aslushnikov

@aslushnikov aslushnikov commented Feb 4, 2021

Copy link
Copy Markdown
Contributor

This patch introduces a new Registry class that incapsulates
all logic regarding browsers and their paths.

Fixes #5278

This patch introduces a new Registry class that incapsulates
all logic regarding browsers and their paths.

Fixes microsoft#5278
@aslushnikov aslushnikov force-pushed the refactor-browser-paths branch from 4c7997e to af14e8d Compare February 5, 2021 17:25
@aslushnikov aslushnikov changed the title refactor: cleanup browsersPath refactor: remove browserPaths in favor of Registry class Feb 5, 2021
@aslushnikov aslushnikov requested a review from dgozman February 5, 2021 18:33
Comment thread src/utils/registry.ts Outdated
Comment thread src/utils/registry.ts Outdated
Comment thread src/utils/registry.ts Outdated
Comment thread src/utils/registry.ts Outdated
Comment thread src/utils/registry.ts
Comment thread src/install/installer.ts Outdated
Comment thread src/install/installer.ts Outdated
Comment thread src/utils/registry.ts
@aslushnikov aslushnikov merged commit d499cf0 into microsoft:master Feb 9, 2021
@aslushnikov aslushnikov deleted the refactor-browser-paths branch February 9, 2021 00:02
mxschmitt added a commit to mxschmitt/playwright that referenced this pull request Apr 12, 2021
This fixes the compatibility on Vercel with Next.js when it's used in
a serverless function.
Next.js uses https://github.com/vercel/nft to trace down the
dependencies which a serverless function is using which
is currently not capable of detecting the browsers.json in our current
setup. Previously we used require to load the browers.json which was
replaced by readFileSync in microsoft#5318. Since then it was broken.

Fixes microsoft#5862
mxschmitt added a commit to mxschmitt/playwright that referenced this pull request Apr 12, 2021
This fixes the compatibility on Vercel with Next.js when it's used in
a serverless function.
Next.js uses https://github.com/vercel/nft to trace down the
dependencies which a serverless function is using which
is currently not capable of detecting the browsers.json in our current
setup. Previously we used require to load the browers.json which was
replaced by readFileSync in microsoft#5318. Since then it was broken.

Fixes microsoft#5862
mxschmitt added a commit that referenced this pull request Apr 19, 2021
This fixes the compatibility on Vercel with Next.js when it's used in
a serverless function.
Next.js uses https://github.com/vercel/nft to trace down the
dependencies which a serverless function is using which
is currently not capable of detecting the browsers.json in our current
setup. Previously we used require to load the browers.json which was
replaced by readFileSync in #5318. Since then it was broken.

Fixes #5862
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: follow-up with ffmpeg downloads to registry

2 participants