Skip to content
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(puppeteer): support puppeteer v15 #535

Merged
merged 5 commits into from
Jun 27, 2022
Merged

fix(puppeteer): support puppeteer v15 #535

merged 5 commits into from
Jun 27, 2022

Conversation

michael-siek
Copy link
Member

See: #534

@@ -61,7 +61,7 @@ function injectJSSource(
source: string | Function,
args: any[] = []
): Promise<void> {
return frame.evaluate(source as any, ...args);
return frame.evaluate(source as any, ...args) as Promise<void>;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to typecast since this was type Promise<unknown>

@michael-siek michael-siek requested a review from a team June 24, 2022 13:38
@stephenmathieson stephenmathieson requested a review from a team June 24, 2022 16:15
Copy link
Member

@stephenmathieson stephenmathieson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should not review this, as I've made changes here.

IMO this should show up in release notes, either as a bug fix or a feature.

We should always look for alternatives to hacking tsconfig. By using the actual Puppeteer types, we can avoid all of the hacks/casts and just pass plain objects around.

@michael-siek michael-siek changed the title chore(puppeteer): support puppeteer v15 fix(puppeteer): support puppeteer v15 Jun 24, 2022
@straker
Copy link
Contributor

straker commented Jun 27, 2022

Did some quick testing using puppeteer v12-15. All ran without issues (including with typescript).

@michael-siek michael-siek merged commit 246481c into develop Jun 27, 2022
@michael-siek michael-siek deleted the chore/534 branch June 27, 2022 17:04
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.

3 participants