Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
a34da0a
Add API endpoint to invalidate cached URL (#344)
krishnan-r May 28, 2020
8aeeda7
Fixes security issue with AppEngine deployments (#377)
AVGP Jun 4, 2020
cb11096
Fixes tests (#418)
AVGP Jun 8, 2020
1a94872
Filesystem invalidate endpoint (#422)
dwsmart Jun 9, 2020
8951beb
Bumps major version to 3
Jul 2, 2020
b84c1e4
Updates changelog for 3.0.0 (#428)
AVGP Jul 8, 2020
f6bec36
Expands on the API docs for the /invalidate endpoint (#429)
AVGP Jul 8, 2020
6097e0a
fixes <base ref="/" > being changed to origin & double slash (#432)
dwsmart Jul 10, 2020
0d8e829
Filesystem cache bug Fixed, additional logging added (#431)
dwsmart Jul 10, 2020
401a405
Bump node-fetch from 2.6.0 to 2.6.1 (#444)
dependabot[bot] Sep 15, 2020
6a45d6e
Update dependencies (#439)
abdonrd Sep 15, 2020
bd577d9
Setup official GitHub Dependabot (#438)
abdonrd Sep 15, 2020
8bcc5dd
Bump @types/express from 4.17.7 to 4.17.8 in /middleware (#445)
dependabot[bot] Sep 15, 2020
027f693
Bump typescript from 3.8.3 to 4.0.2 in /middleware (#446)
dependabot[bot] Sep 15, 2020
5dc451b
Bump koa-send from 5.0.0 to 5.0.1 (#447)
dependabot[bot] Sep 15, 2020
aeabc63
Bump @types/puppeteer from 2.0.1 to 3.0.2 (#452)
dependabot[bot] Sep 15, 2020
d448e2c
Bump @types/koa from 2.11.3 to 2.11.4 (#451)
dependabot[bot] Sep 15, 2020
796ae87
Remove intermediary directory from base href (#433)
hugo-ma-alves Sep 15, 2020
fc87c6e
feature: add reqHeaders (#441)
aha-oretama Sep 15, 2020
2e32f82
Bump ava from 3.11.1 to 3.12.1 in /middleware (#448)
dependabot[bot] Sep 15, 2020
f9e599f
Bump @types/koa-compress from 2.0.9 to 4.0.0 (#456)
dependabot[bot] Sep 16, 2020
695dcf6
Bump @types/node from 14.0.27 to 14.10.2 (#454)
dependabot[bot] Sep 16, 2020
03ee13a
Update renderer to restrict requests to .internal endpoints (#476)
inkz Oct 13, 2020
f653af1
Heroku assumes no specified branch equals master branch, specifying b…
NNTin Oct 13, 2020
d1bcb13
Add url whitelisting support (#475)
inkz Oct 13, 2020
78492cc
Update required version of Node in bin/rendertron (#485)
inkz Oct 14, 2020
c83b7ad
Update new Buffer(...) to Buffer.from(...) (#490)
inkz Oct 23, 2020
24cdaac
Feature/expose clear all cache endpoint (#487)
hugo-ma-alves Oct 23, 2020
b698072
Bump @types/node from 14.10.2 to 14.14.2 (#493)
dependabot[bot] Oct 23, 2020
da9467d
Fix dependencies and associated security issues (#482)
AVGP Oct 30, 2020
b65b4c6
#319 Create documentation to create a docker container (#480)
hugo-ma-alves Oct 30, 2020
58ead91
add timezone support (#479)
AndreyBaranov Oct 30, 2020
9bc42dd
Bump ava from 3.12.1 to 3.13.0 in /middleware (#468)
dependabot[bot] Oct 30, 2020
0034763
Bump version to 3.1.0
Oct 30, 2020
acaf0d0
Close the browser to force reopen, this prevents null responses in ce…
dwsmart Oct 30, 2020
51a96a8
Bump supertest from 4.0.2 to 6.0.0 in /middleware (#500)
dependabot[bot] Oct 30, 2020
743080e
Bump @types/koa-compress from 4.0.0 to 4.0.1 (#495)
dependabot[bot] Oct 30, 2020
c081a10
Bump typescript from 4.0.2 to 4.0.5 in /middleware (#497)
dependabot[bot] Oct 30, 2020
048a516
Bump @types/fs-extra from 9.0.1 to 9.0.2 (#504)
dependabot[bot] Nov 2, 2020
d613d65
Bump @types/puppeteer from 3.0.2 to 3.0.4 (#503)
dependabot[bot] Nov 2, 2020
2c19cb2
Updates FaQ to not indicate page load magic (#453)
AVGP Nov 2, 2020
1ad5bac
Removes unused options in screenshot request
Nov 2, 2020
7ba9aa6
Updating puppeteer to 5.4.1
Nov 3, 2020
687d424
Bump @types/puppeteer from 3.0.4 to 5.4.0 (#506)
dependabot[bot] Nov 3, 2020
5f8408a
Bump @types/koa from 2.11.4 to 2.11.6 (#505)
dependabot[bot] Nov 3, 2020
e803565
Bump puppeteer from 2.0.0 to 5.4.1 (#499)
dependabot[bot] Nov 3, 2020
0a9c969
Bump typescript from 3.8.3 to 4.0.5 (#498)
dependabot[bot] Nov 3, 2020
7c2ddb8
Adds Github action to replace travis (#507)
AVGP Nov 3, 2020
6265a70
Bump koa-compress from 3.0.0 to 5.0.1 (#450)
dependabot[bot] Nov 3, 2020
311025f
Makes browser closing configurable = Adds `closeBrowser` to config
dwsmart Nov 4, 2020
ad357d9
Bump @types/node from 14.14.2 to 14.14.6 (#512)
dependabot[bot] Nov 4, 2020
fc4c68c
Bump supertest from 4.0.2 to 6.0.0 (#511)
dependabot[bot] Nov 4, 2020
a3ac87c
Bump @webcomponents/webcomponentsjs from 2.4.4 to 2.5.0 (#510)
dependabot[bot] Nov 4, 2020
53cae96
Bump @types/fs-extra from 9.0.2 to 9.0.3 (#509)
dependabot[bot] Nov 4, 2020
24fc72b
Fixes typo in README config options
AVGP Nov 4, 2020
0fc7a71
Fixes typo in config docs
AVGP Nov 4, 2020
e9bb888
Bump nodemon from 2.0.4 to 2.0.6 (#508)
dependabot[bot] Nov 4, 2020
a27f653
Bump supertest from 4.0.2 to 6.0.1
dependabot[bot] Nov 4, 2020
cc83a86
Add this.browser.close() to force the browser to reconnect, fixes emp…
AVGP Nov 4, 2020
50036a4
Merge pull request #513 from GoogleChrome/dependabot/npm_and_yarn/sup…
AVGP Nov 4, 2020
267a30c
Bump supertest from 4.0.2 to 6.0.0 in /middleware (#500)
dependabot[bot] Oct 30, 2020
ecb8cd5
Bump @types/koa-compress from 4.0.0 to 4.0.1 (#495)
dependabot[bot] Oct 30, 2020
6832805
Bump typescript from 4.0.2 to 4.0.5 in /middleware (#497)
dependabot[bot] Oct 30, 2020
4334361
Bump @types/fs-extra from 9.0.1 to 9.0.2 (#504)
dependabot[bot] Nov 2, 2020
0ef81d3
Bump @types/puppeteer from 3.0.2 to 3.0.4 (#503)
dependabot[bot] Nov 2, 2020
8487245
Updates FaQ to not indicate page load magic (#453)
AVGP Nov 2, 2020
4aea19d
Bump @types/puppeteer from 3.0.4 to 5.4.0 (#506)
dependabot[bot] Nov 3, 2020
d358ee6
Bump @types/koa from 2.11.4 to 2.11.6 (#505)
dependabot[bot] Nov 3, 2020
870e08a
Bump puppeteer from 2.0.0 to 5.4.1 (#499)
dependabot[bot] Nov 3, 2020
b7c94bc
Bump typescript from 3.8.3 to 4.0.5 (#498)
dependabot[bot] Nov 3, 2020
47b8ee2
Adds Github action to replace travis (#507)
AVGP Nov 3, 2020
172d344
Bump koa-compress from 3.0.0 to 5.0.1 (#450)
dependabot[bot] Nov 3, 2020
7372480
Bump @types/node from 14.14.2 to 14.14.6 (#512)
dependabot[bot] Nov 4, 2020
23ca51e
Bump supertest from 4.0.2 to 6.0.0 (#511)
dependabot[bot] Nov 4, 2020
2955d32
Bump @webcomponents/webcomponentsjs from 2.4.4 to 2.5.0 (#510)
dependabot[bot] Nov 4, 2020
54b758d
Bump @types/fs-extra from 9.0.2 to 9.0.3 (#509)
dependabot[bot] Nov 4, 2020
c13bc0c
Bump nodemon from 2.0.4 to 2.0.6 (#508)
dependabot[bot] Nov 4, 2020
62bc204
Close the browser to force reopen, this prevents null responses in ce…
dwsmart Oct 30, 2020
3f6ee40
Makes browser closing configurable = Adds `closeBrowser` to config
dwsmart Nov 4, 2020
6c9ee3c
Fixes typo in README config options
AVGP Nov 4, 2020
0256aba
Fixes typo in config docs
AVGP Nov 4, 2020
78b0729
Bump supertest from 4.0.2 to 6.0.1
dependabot[bot] Nov 4, 2020
ad56a93
Updating puppeteer to 5.4.1
Nov 3, 2020
daea270
Merge branch 'main' into release-3.1.0
AVGP Nov 4, 2020
c74e81e
Merge pull request #501 from AVGP/release-3.1.0
AVGP Nov 4, 2020
b5c7e00
Updates changelog
AVGP Nov 4, 2020
d76c153
Merge pull request #514 from GoogleChrome/AVGP-changelog-3.1.0
AVGP Nov 4, 2020
c6de80d
Remove .npmignore in favor of files field
abdonrd Nov 5, 2020
7be361b
[middleware] Remove .npmignore in favor of files field
abdonrd Nov 5, 2020
5f6c1ba
Replace clang-format with Prettier
abdonrd Nov 5, 2020
bb19672
Run: npm run format
abdonrd Nov 5, 2020
2bb5464
Disable lint errors
abdonrd Nov 5, 2020
5e5f70b
Split lint step in a new job
abdonrd Nov 5, 2020
526f87c
Split middleware step in a new job
abdonrd Nov 5, 2020
bf43988
Split test & test-cache in jobs
abdonrd Nov 5, 2020
53b47f4
Add names to the jobs
abdonrd Nov 5, 2020
a71b84f
Bump @types/node from 14.14.6 to 14.14.7
dependabot[bot] Nov 10, 2020
b84e47b
Bump @google-cloud/datastore from 6.2.0 to 6.3.0
dependabot[bot] Nov 10, 2020
4cdc5c1
Merge pull request #520 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Nov 10, 2020
c9788c2
Merge pull request #521 from GoogleChrome/dependabot/npm_and_yarn/goo…
AVGP Nov 10, 2020
9cc6850
Bump supertest from 6.0.0 to 6.0.1 in /middleware
dependabot[bot] Nov 10, 2020
007b78e
Merge pull request #516 from abdonrd/files
AVGP Nov 10, 2020
3d992e2
Merge pull request #515 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Nov 10, 2020
69338e5
Merge pull request #517 from abdonrd/prettier
AVGP Nov 10, 2020
b4f4d92
Merge pull request #518 from abdonrd/ci
AVGP Nov 10, 2020
239ccd2
Replace TSLint with ESLint
abdonrd Nov 5, 2020
e16e589
Add format:eslint script
abdonrd Nov 5, 2020
7467823
Fix lint errors
abdonrd Nov 5, 2020
997b607
Update ESLint dependencies
abdonrd Nov 10, 2020
a23db30
Remove Travis setup
abdonrd Nov 10, 2020
3cf9544
Bump @types/express from 4.17.8 to 4.17.9 in /middleware
dependabot[bot] Nov 11, 2020
2ec9cab
Bump @types/fs-extra from 9.0.3 to 9.0.4
dependabot[bot] Nov 12, 2020
cc9e838
Merge pull request #524 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Nov 12, 2020
0638ff6
Merge pull request #523 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Nov 12, 2020
ce48dde
Merge branch 'main' into eslint
abdonrd Nov 12, 2020
d0b33b3
Merge branch 'main' into travis
abdonrd Nov 12, 2020
07d4ae3
Added config specify url restriction pattern
egordm Nov 14, 2020
56b2fa2
Added config restriction pattern param to readme
egordm Nov 14, 2020
a6dbbe4
Merge pull request #522 from abdonrd/travis
AVGP Nov 16, 2020
d8c5e9e
Merge pull request #519 from abdonrd/eslint
AVGP Nov 16, 2020
3cff16d
Merge pull request #525 from EgorDm/main
AVGP Nov 16, 2020
4d04c5a
Bump @typescript-eslint/eslint-plugin from 4.7.0 to 4.8.0
dependabot[bot] Nov 17, 2020
816c4e4
Bump @typescript-eslint/parser from 4.7.0 to 4.8.0
dependabot[bot] Nov 17, 2020
5bf2a78
Merge pull request #529 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Nov 17, 2020
db3ed78
Merge branch 'main' into dependabot/npm_and_yarn/typescript-eslint/es…
AVGP Nov 17, 2020
c304085
Merge pull request #528 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Nov 17, 2020
cc98f3b
Bump puppeteer from 5.4.1 to 5.5.0
dependabot[bot] Nov 17, 2020
fe9edd0
Merge pull request #527 from GoogleChrome/dependabot/npm_and_yarn/pup…
AVGP Nov 17, 2020
74225ae
Bump @types/node from 14.14.7 to 14.14.8
dependabot[bot] Nov 18, 2020
3907711
Bump @typescript-eslint/parser from 4.8.0 to 4.8.1
dependabot[bot] Nov 18, 2020
382e2ec
Merge pull request #532 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Nov 18, 2020
7eb3014
Merge pull request #530 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Nov 18, 2020
92d1ec5
Bump @typescript-eslint/eslint-plugin from 4.8.0 to 4.8.1
dependabot[bot] Nov 18, 2020
095e911
Merge pull request #531 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Nov 18, 2020
714547f
Bump @types/node from 14.14.8 to 14.14.10
dependabot[bot] Nov 26, 2020
084c3cc
Bump prettier from 2.1.2 to 2.2.1
dependabot[bot] Nov 30, 2020
5158d63
Merge pull request #541 from GoogleChrome/dependabot/npm_and_yarn/pre…
AVGP Dec 2, 2020
275302b
Merge pull request #540 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Dec 2, 2020
5a2897c
Bump typescript from 4.0.5 to 4.1.2 in /middleware
dependabot[bot] Dec 2, 2020
27ef6ff
Bump eslint from 7.13.0 to 7.14.0
dependabot[bot] Dec 2, 2020
117514d
Bump @typescript-eslint/eslint-plugin from 4.8.1 to 4.9.0
dependabot[bot] Dec 2, 2020
d967b2b
Merge pull request #536 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Dec 2, 2020
10e902d
Merge pull request #542 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Dec 2, 2020
c0bcb39
Merge pull request #537 from GoogleChrome/dependabot/npm_and_yarn/esl…
AVGP Dec 2, 2020
1b27c10
Bump @google-cloud/datastore from 6.3.0 to 6.3.1
dependabot[bot] Dec 3, 2020
d52f044
Bump semver from 7.3.2 to 7.3.4
dependabot[bot] Dec 3, 2020
3808217
Bump @typescript-eslint/parser from 4.8.1 to 4.9.0
dependabot[bot] Dec 3, 2020
39b9abb
Merge pull request #545 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Dec 3, 2020
cd915b1
Bump @types/puppeteer from 5.4.0 to 5.4.1
dependabot[bot] Dec 4, 2020
7f2121d
Merge pull request #546 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Dec 4, 2020
51559c7
Merge pull request #544 from GoogleChrome/dependabot/npm_and_yarn/sem…
AVGP Dec 4, 2020
3e2ceed
Merge pull request #543 from GoogleChrome/dependabot/npm_and_yarn/goo…
AVGP Dec 4, 2020
b7c6f2b
Bump eslint from 7.14.0 to 7.15.0
dependabot[bot] Dec 7, 2020
06f9c67
Bump ava from 3.13.0 to 3.14.0
dependabot[bot] Dec 8, 2020
68a7cb1
Bump ini from 1.3.5 to 1.3.7
dependabot[bot] Dec 10, 2020
f3e3f9f
Merge pull request #547 from GoogleChrome/dependabot/npm_and_yarn/esl…
AVGP Dec 17, 2020
ed6caf6
Merge branch 'main' into dependabot/npm_and_yarn/ava-3.14.0
AVGP Dec 17, 2020
139f935
Bump typescript from 4.1.2 to 4.1.3 in /middleware
dependabot[bot] Dec 17, 2020
0b227a1
Updates app.yaml to disable legacy metadata vulnerability
AVGP Dec 17, 2020
f0ae323
Merge pull request #550 from GoogleChrome/dependabot/npm_and_yarn/ava…
AVGP Dec 17, 2020
17715bf
Merge pull request #553 from GoogleChrome/dependabot/npm_and_yarn/ini…
AVGP Dec 17, 2020
ca48074
Merge pull request #554 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Dec 17, 2020
da4df01
Bump ini from 1.3.5 to 1.3.8 in /middleware
dependabot[bot] Dec 17, 2020
215492a
Bump @typescript-eslint/eslint-plugin from 4.9.0 to 4.10.0
dependabot[bot] Dec 17, 2020
3e4cde4
Bump @typescript-eslint/parser from 4.9.0 to 4.10.0
dependabot[bot] Dec 17, 2020
4bcb608
Merge pull request #556 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Dec 17, 2020
c4b2f58
Merge branch 'main' into dependabot/npm_and_yarn/typescript-eslint/pa…
AVGP Dec 17, 2020
8a4c5b4
Merge pull request #557 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Dec 17, 2020
264144c
Merge pull request #560 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Dec 17, 2020
c526fae
Bump ava from 3.13.0 to 3.14.0 in /middleware
dependabot[bot] Dec 17, 2020
ad549c7
Bump @types/fs-extra from 9.0.4 to 9.0.5
dependabot[bot] Dec 18, 2020
b762f86
Merge pull request #548 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Dec 19, 2020
302dc06
Merge pull request #562 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Dec 19, 2020
3092552
Bump eslint from 7.15.0 to 7.16.0
dependabot[bot] Dec 21, 2020
6817774
Merge pull request #566 from GoogleChrome/dependabot/npm_and_yarn/esl…
AVGP Dec 21, 2020
847d4ea
sanitizes the cacheKey to remove /render/ moves Sanitization into a f…
dwsmart Dec 22, 2020
bc67a8d
Failing test fix
dwsmart Dec 22, 2020
987048b
more test fixes
dwsmart Dec 22, 2020
7198331
Bump ava from 3.14.0 to 3.15.0 in /middleware
dependabot[bot] Jan 4, 2021
0eb6193
Merge pull request #576 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Jan 26, 2021
fd40411
Bump @types/express from 4.17.9 to 4.17.11 in /middleware
dependabot[bot] Jan 26, 2021
44b90c8
Merge pull request #570 from dwsmart/cache-key-fix
AVGP Jan 26, 2021
deceb86
Bump ava from 3.13.0 to 3.14.0
dependabot[bot] Dec 8, 2020
81fbfce
Bump ini from 1.3.5 to 1.3.7
dependabot[bot] Dec 10, 2020
532996d
Bump typescript from 4.1.2 to 4.1.3 in /middleware
dependabot[bot] Dec 17, 2020
b226672
Bump @typescript-eslint/parser from 4.9.0 to 4.10.0
dependabot[bot] Dec 17, 2020
05362d1
Bump @typescript-eslint/eslint-plugin from 4.9.0 to 4.10.0
dependabot[bot] Dec 17, 2020
99212bc
Bump ini from 1.3.5 to 1.3.8 in /middleware
dependabot[bot] Dec 17, 2020
cab2e2d
Bump ava from 3.13.0 to 3.14.0 in /middleware
dependabot[bot] Dec 17, 2020
eb66c9a
Bump @types/fs-extra from 9.0.4 to 9.0.5
dependabot[bot] Dec 18, 2020
a774f05
Bump eslint from 7.15.0 to 7.16.0
dependabot[bot] Dec 21, 2020
18baf88
Bump ava from 3.14.0 to 3.15.0 in /middleware
dependabot[bot] Jan 4, 2021
fdaf420
sanitizes the cacheKey to remove /render/ moves Sanitization into a f…
dwsmart Dec 22, 2020
b296c96
Failing test fix
dwsmart Dec 22, 2020
6a35b2e
more test fixes
dwsmart Dec 22, 2020
8b453e4
Merge pull request #559 from GoogleChrome/AVGP-gce-fix
AVGP Jan 26, 2021
3c4ec50
Add health check url to API docs resolves #595
ShrillShrestha Jan 27, 2021
056f780
Add health check URL to API docs resolves #595
ShrillShrestha Jan 27, 2021
0897e13
Merge pull request #598 from ShrillShrestha/health-check-url
AVGP Jan 27, 2021
b43d82b
Bump @typescript-eslint/parser from 4.10.0 to 4.14.2
dependabot[bot] Feb 2, 2021
97cf789
Bump @typescript-eslint/eslint-plugin from 4.10.0 to 4.14.2
dependabot[bot] Feb 2, 2021
05f9e97
Merge pull request #601 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Feb 2, 2021
12b3618
Merge branch 'main' into dependabot/npm_and_yarn/typescript-eslint/pa…
AVGP Feb 2, 2021
bd4f996
Removes test dep on httpstat.us
Feb 2, 2021
075ce7c
Merge pull request #600 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Feb 2, 2021
97274bb
Bump supertest from 6.0.1 to 6.1.3 in /middleware
dependabot[bot] Feb 2, 2021
2526aa4
Bump @types/puppeteer from 5.4.1 to 5.4.3
dependabot[bot] Feb 4, 2021
c9c51e3
Merge pull request #609 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Feb 9, 2021
196335c
Merge pull request #604 from AVGP/remove-httpstat.us
AVGP Feb 9, 2021
48a6afa
Merge pull request #592 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Feb 9, 2021
0887190
Bump @typescript-eslint/eslint-plugin from 4.14.2 to 4.15.0
dependabot[bot] Feb 9, 2021
1ce3095
Merge pull request #614 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Feb 9, 2021
7b305ab
Bump @types/fs-extra from 9.0.5 to 9.0.6
dependabot[bot] Feb 9, 2021
6aed990
Bump chrome-remote-interface from 0.28.2 to 0.29.0
dependabot[bot] Feb 9, 2021
15bbced
Merge pull request #584 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Feb 9, 2021
ca55176
Merge pull request #616 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Feb 9, 2021
988d811
Merge pull request #605 from GoogleChrome/dependabot/npm_and_yarn/chr…
AVGP Feb 9, 2021
71443b6
Bump eslint from 7.16.0 to 7.19.0
dependabot[bot] Feb 9, 2021
edf12ae
Bump koa from 2.13.0 to 2.13.1
dependabot[bot] Feb 9, 2021
3ae2726
Bump typescript from 4.1.3 to 4.1.4 in /middleware
dependabot[bot] Feb 10, 2021
7cb9e3c
Merge pull request #618 from GoogleChrome/dependabot/npm_and_yarn/esl…
AVGP Feb 10, 2021
a179a86
Merge pull request #619 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Feb 10, 2021
310de0a
Bump ava from 3.14.0 to 3.15.0
dependabot[bot] Feb 10, 2021
eed208f
Merge pull request #617 from GoogleChrome/dependabot/npm_and_yarn/koa…
AVGP Feb 10, 2021
0c846df
Bump supertest from 6.0.1 to 6.1.3
dependabot[bot] Feb 10, 2021
d8b53af
Merge branch 'main' into dependabot/npm_and_yarn/ava-3.15.0
AVGP Feb 10, 2021
5c1538e
Merge pull request #621 from GoogleChrome/dependabot/npm_and_yarn/ava…
AVGP Feb 18, 2021
1df96dc
Merge branch 'main' into dependabot/npm_and_yarn/supertest-6.1.3
AVGP Feb 18, 2021
415bea4
Merge pull request #622 from GoogleChrome/dependabot/npm_and_yarn/sup…
AVGP Feb 18, 2021
b6d4cf2
Bump typescript from 4.1.4 to 4.1.5 in /middleware
dependabot[bot] Feb 18, 2021
0c0557c
Bump @types/fs-extra from 9.0.6 to 9.0.7
dependabot[bot] Feb 18, 2021
caad05f
Merge pull request #629 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Feb 18, 2021
dcd390b
Merge pull request #623 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Feb 18, 2021
d54d8a1
Bump @typescript-eslint/eslint-plugin from 4.15.0 to 4.15.1
dependabot[bot] Feb 18, 2021
724aac5
Merge pull request #631 from GoogleChrome/dependabot/npm_and_yarn/typ…
AVGP Feb 18, 2021
56f7d3f
Bump fs-extra from 9.0.1 to 9.1.0
dependabot[bot] Feb 18, 2021
dd4026e
Merge pull request #632 from GoogleChrome/dependabot/npm_and_yarn/fs-…
AVGP Feb 19, 2021
e17814b
Bump typescript from 4.1.5 to 4.2.3 in /middleware
dependabot[bot] Mar 5, 2021
20f033a
Bump eslint from 7.19.0 to 7.23.0
dependabot[bot] Mar 29, 2021
862a4e7
Bump @types/supertest from 2.0.10 to 2.0.11 in /middleware
dependabot[bot] Mar 31, 2021
9d63d55
Merge pull request #645 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Apr 7, 2021
165cc0a
Bump typescript from 4.2.3 to 4.2.4 in /middleware
dependabot[bot] Apr 8, 2021
ccb5c5e
Merge pull request #657 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Apr 8, 2021
a8feef8
Merge pull request #659 from GoogleChrome/dependabot/npm_and_yarn/mid…
AVGP Apr 8, 2021
6f68168
Merge pull request #655 from GoogleChrome/dependabot/npm_and_yarn/esl…
AVGP Apr 8, 2021
748f665
1. upgrade puppeteer to latest (9.1.1)
gravi2 May 6, 2021
3981ccf
Upgrade puppeteer to latest(10.0.0)
gravi2 Jun 4, 2021
7999fc5
Merge pull request #683 from gravi2/upgrade-puppeteer-9
AVGP Jul 10, 2021
b4d42c7
Adds deprecation note to readme
AVGP Oct 6, 2022
ffc2b33
Merge pull request #994 from GoogleChrome/AVGP-patch-2
AVGP Oct 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .clang-format

This file was deleted.

24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"overrides": [
{
"files": "test-resources/**/*",
"env": {
"browser": true
}
}
]
}
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
versioning-strategy: increase
- package-ecosystem: 'npm'
directory: '/middleware/'
schedule:
interval: 'daily'
versioning-strategy: increase
98 changes: 98 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint:
name: Lint

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 14

- run: npm ci

- run: npm run lint

test:
name: Integration tests

runs-on: ubuntu-latest

strategy:
matrix:
node: ['10', '12', '14']

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: npm ci

- run: npm test

test-cache:
name: e2e cache tests

runs-on: ubuntu-latest

strategy:
matrix:
node: ['10', '12', '14']

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: |
npm ci
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
sudo apt-get update && sudo apt-get install google-cloud-sdk google-cloud-sdk-datastore-emulator
mkdir ./tmp
echo '{"cacheConfig": { "snapshotDir": "./tmp/rendertron" } }' > ./config.json

- name: Run the e2e cache tests
run: npm run test-cache

test-middleware:
name: Middleware tests

runs-on: ubuntu-latest

strategy:
matrix:
node: ['10', '12', '14']

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: cd middleware/

- run: npm ci

- run: npm run test
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules/
yarn.lock
build/
node_modules/
test.jpeg
yarn.lock
*.tgz
16 changes: 0 additions & 16 deletions .npmignore

This file was deleted.

21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

72 changes: 58 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,68 @@

<!-- ## Unreleased -->

## [3.1.0] 2020-11-04

### Security improvements

- Prevents rendering of \*.internal URLs, patching an issue with GCE.
- Adds allow-listing option to restrict rendering to a given list of domains or URL patterns.

### Features

- Include Heroku deploy documentation and an interactive "Click to deploy" for Heroku
- Introduces an API endpoint to clear all cache
- Adds timezone support
- Adds optional forced browser restart between renders
- Adds documentation to deploy Rendertron via Docker
- Adds option to add request headers to the rendered pages in Rendertron

### Improvements

- Fixes a bug in the filesystem cache
- Fixes issue with the injected base tag
- Updates all dependencies
- Increased the required node.js version to Node.js 10+
- Updates to the FaQ

## [3.0.0] 2020-07-02

- Introduces new configuration file format for the `config.json` options (see [README.md](./README.md))
- Introduces new cache providers:
- In-memory cache
- File system cache
- Introduces API endpoint to invalidate cache for a URL
- Introduces a number of new configuration options
- Introduces `refreshCache` parameter to force cache update for a URL
- Relaunches browser when the browser disconnects from Puppeteer
- Now includes doctype in rendered output
- Harmonises the configuration options for caches
- Closes page after screenshot
- Fixes security issue with AppEngine deployments
- Fixes issue with specifying host and port

## [2.0.1] 2018-09-18
* Remove testing and other files from NPM package.
* Fix NPM main config.
* Improved restrictions for endpoints.
* Support for structured data by not stripping all script tags.

- Remove testing and other files from NPM package.
- Fix NPM main config.
- Improved restrictions for endpoints.
- Support for structured data by not stripping all script tags.

## [2.0.0] 2018-07-26
* Rebuilt with Puppeteer under the hood
* Rebuilt as Koa server instead of an Express server
* Rebuilt using Typescript
* Removed explicit rendering flag
* Added support for a mobile parameter
* Added more options for screenshots

- Rebuilt with Puppeteer under the hood
- Rebuilt as Koa server instead of an Express server
- Rebuilt using Typescript
- Removed explicit rendering flag
- Added support for a mobile parameter
- Added more options for screenshots

## [1.1.1] 2018-01-05
* Update `debug` flag to log requested URLs to render
* Fix for renderComplete flag
* Minor bug fixes

- Update `debug` flag to log requested URLs to render
- Fix for renderComplete flag
- Minor bug fixes

## [1.1.0] 2017-10-27
* Initial release on NPM

- Initial release on NPM
24 changes: 16 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<!-- gen:toc -->

- [How to Contribute](#how-to-contribute)
* [Contributor License Agreement](#contributor-license-agreement)
* [Getting Code](#getting-code)
* [Code reviews](#code-reviews)
* [Code Style](#code-style)
* [Adding New Dependencies](#adding-new-dependencies)
* [Running & Writing Tests](#running--writing-tests)
<!-- gen:stop -->
- [Contributor License Agreement](#contributor-license-agreement)
- [Getting Code](#getting-code)
- [Code reviews](#code-reviews)
- [Code Style](#code-style)
- [Adding New Dependencies](#adding-new-dependencies)
- [Running & Writing Tests](#running--writing-tests)
<!-- gen:stop -->

# How to Contribute

Expand Down Expand Up @@ -46,6 +47,11 @@ npm install
npm test
```

4. (Optional) when developing cache related stuff you will need `npm run test-cache` commands for tests.
- This requires the Google Cloud SDK, follow the steps described [here](https://cloud.google.com/sdk/docs/#install_the_latest_cloud_tools_version_cloudsdk_current_version) to install
- run `gcloud components install beta cloud-datastore-emulator`
- if you do not have Java 8+ JRE installed, you should install it too, as the Google Cloud Datastore emulator requires it

## Code reviews

All submissions, including submissions by project members, require review. We
Expand All @@ -67,16 +73,18 @@ npm run lint
## Adding New Dependencies

For all dependencies (both installation and development):

- **Do not add** a dependency if the desired functionality is easily implementable.
- If adding a dependency, it should be well-maintained and trustworthy.

A barrier for introducing new installation dependencies is especially high:

- **Do not add** installation dependency unless it's critical to project success.

## Running & Writing Tests

- Every feature should be accompanied by a test.
- Tests should be *hermetic*. Tests should not depend on external services unless absolutely needed.
- Tests should be _hermetic_. Tests should not depend on external services unless absolutely needed.
- Tests should work on all three platforms: Mac, Linux and Windows.

- To run all tests:
Expand Down
Loading