Skip to content

Commit

Permalink
Upgrades Puppeteer to 8.0.0.
Browse files Browse the repository at this point in the history
The current version seems to have issues with NPM 7 and does not automatically download Chromium. 8.0.0 seems to work as expected though. This is also just a general upgrade since they apparently released 3 versions with breaking changes in the last few months.
  • Loading branch information
dgp1130 committed Apr 19, 2021
1 parent d32c0e8 commit 61f2fc8
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 96 deletions.
5 changes: 2 additions & 3 deletions common/testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ ts_library(
deps = [
":effects",
"@npm//@types/node",
"@npm//@types/puppeteer",
"@npm//puppeteer",
],
)

Expand All @@ -191,13 +191,12 @@ ts_library(
":puppeteer",
"@npm//@types/jasmine",
"@npm//@types/node",
"@npm//@types/puppeteer",
"@npm//puppeteer",
],
)

jasmine_node_test(
name = "puppeteer_test",
data = ["@npm//puppeteer"],
deps = [":puppeteer_test_lib"],
)

Expand Down
5 changes: 1 addition & 4 deletions examples/components/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ ts_library(

jasmine_node_test(
name = "test",
data = [
":devserver",
"@npm//puppeteer",
],
data = [":devserver"],
deps = [":test_lib"],
)
5 changes: 1 addition & 4 deletions examples/custom_bundling/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ ts_library(

jasmine_node_test(
name = "test",
data = [
":devserver",
"@npm//puppeteer",
],
data = [":devserver"],
deps = [":test_lib"],
)
5 changes: 1 addition & 4 deletions examples/data/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ ts_library(

jasmine_node_test(
name = "test",
data = [
":devserver",
"@npm//puppeteer",
],
data = [":devserver"],
deps = [":test_lib"],
)
5 changes: 1 addition & 4 deletions examples/minimal/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ ts_library(

jasmine_node_test(
name = "test",
data = [
":devserver",
"@npm//puppeteer",
],
data = [":devserver"],
deps = [":test_lib"],
)
5 changes: 1 addition & 4 deletions examples/multi_page/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ ts_library(

jasmine_node_test(
name = "test",
data = [
":devserver",
"@npm//puppeteer",
],
data = [":devserver"],
deps = [":test_lib"],
)

Expand Down
5 changes: 1 addition & 4 deletions examples/resources/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ ts_library(

jasmine_node_test(
name = "test",
data = [
":devserver",
"@npm//puppeteer",
],
data = [":devserver"],
deps = [":test_lib"],
)
5 changes: 1 addition & 4 deletions examples/scripts/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ ts_library(

jasmine_node_test(
name = "test",
data = [
":devserver",
"@npm//puppeteer",
],
data = [":devserver"],
deps = [":test_lib"],
)
6 changes: 1 addition & 5 deletions examples/site/home/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ ts_library(
"//common/testing:devserver",
"//common/testing:puppeteer",
"@npm//@types/jasmine",
"@npm//@types/puppeteer",
],
)

jasmine_node_test(
name = "home_test",
data = [
":home_devserver",
"@npm//puppeteer",
],
data = [":home_devserver"],
deps = [":home_test_lib"],
)
5 changes: 1 addition & 4 deletions examples/styles/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ ts_library(

jasmine_node_test(
name = "test",
data = [
":devserver",
"@npm//puppeteer",
],
data = [":devserver"],
deps = [":test_lib"],
)
95 changes: 41 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@
"@bazel/typescript": "^3.0.0",
"@types/jasmine": "^3.6.2",
"@types/node": "^14.14.13",
"@types/puppeteer": "^5.4.2",
"@types/yargs": "^15.0.11",
"http-status-codes": "^2.1.4",
"jasmine": "^3.6.3",
"puppeteer": "^5.5.0",
"puppeteer": "^8.0.0",
"tree-kill": "^1.2.2",
"typescript": "^3.9.7"
},
Expand Down

0 comments on commit 61f2fc8

Please sign in to comment.