Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
e2efa2d
Update dependency css-loader to v4 (#906)
renovate-bot Sep 2, 2020
90cca1e
Update dependency webpack-cli to v3.3.12 (#905)
renovate-bot Sep 2, 2020
640c8fe
Update dependency webpack to v4.44.1 (#904)
renovate-bot Sep 2, 2020
2c37ce5
Update dependency tslint to v6.1.3 (#902)
renovate-bot Sep 2, 2020
c48a64c
Merge branch 'main' of github.com:ampproject/worker-dom into main
kristoferbaxter Sep 3, 2020
641ffe9
Remove esmodule syntax (#927)
kristoferbaxter Sep 3, 2020
b96915d
Merge branch 'main' of github.com:ampproject/worker-dom into main
kristoferbaxter Sep 3, 2020
814255b
Use toUpper utility (#928)
kristoferbaxter Sep 3, 2020
2920779
Merge branch 'main' of github.com:ampproject/worker-dom into main
kristoferbaxter Sep 3, 2020
9a5a317
Update dependency sirv to v1.0.6 (#901)
renovate-bot Sep 3, 2020
1b5cf7a
Update dependency sinon to v9.0.3 (#900)
renovate-bot Sep 3, 2020
34c4db6
Merge branch 'main' of github.com:ampproject/worker-dom into main
kristoferbaxter Sep 4, 2020
570536d
Update dependency rollup to v2.26.11 (#931)
renovate-bot Sep 8, 2020
a70b758
Update dependency css-loader to v4.3.0 (#934)
renovate-bot Sep 8, 2020
70754dd
Refactor output (#929)
kristoferbaxter Sep 8, 2020
3a492fb
Update dependency husky to v4.3.0 (#933)
renovate-bot Sep 8, 2020
cf21d0b
Update Dependencies (#935)
kristoferbaxter Sep 8, 2020
f9208db
Bump version + skip hooks for release (#936)
samouri Sep 8, 2020
dd8e4c2
Update Node.js to v14.10.0 (#930)
renovate-bot Sep 8, 2020
9e649be
Update dependency preact to v10.4.8 (#898)
renovate-bot Sep 8, 2020
ae226c9
Update dependency mini-css-extract-plugin to v0.11.1 (#897)
renovate-bot Sep 8, 2020
0db9098
Update dependency ava to v3.12.1 (#893)
renovate-bot Sep 8, 2020
4901924
Update dependency lint-staged to v10.3.0 (#896)
renovate-bot Sep 8, 2020
297d83c
Update Node.js to v14.10.1 (#939)
renovate-bot Sep 10, 2020
02e0dc7
Update dependency mini-css-extract-plugin to v0.11.2 (#941)
renovate-bot Sep 12, 2020
044bebe
Update dependency @types/node to v14.10.1 (#940)
renovate-bot Sep 14, 2020
3018dc1
remove terser/closure from debug build (#943)
samouri Sep 15, 2020
1fc7951
Update dependency rollup to v2.27.1 (#945)
renovate-bot Sep 18, 2020
4fce048
Update dependency prettier to v2.1.2 (#944)
renovate-bot Sep 18, 2020
2792623
Update Node.js to v14.11.0 (#942)
renovate-bot Sep 18, 2020
1e00ee4
Update dependency lint-staged to v10.4.0 (#946)
renovate-bot Sep 18, 2020
c300cdf
Merge branch 'main' of github.com:ampproject/worker-dom into main
kristoferbaxter Sep 18, 2020
18a5a4e
Update dependency @types/node to v14.11.1 (#950)
renovate-bot Sep 18, 2020
60065cd
Update dependency webpack to v4.44.2 (#949)
renovate-bot Sep 18, 2020
10c3ef8
Merge branch 'main' of github.com:ampproject/worker-dom into main
kristoferbaxter Sep 18, 2020
8b69cd1
decode numeric html entitites (#947)
samouri Sep 18, 2020
790f856
Decode HTML Reserved Characters (>,<,&,"). (#952)
samouri Sep 18, 2020
0b4873d
Bump version with the two releases (#953)
samouri Sep 30, 2020
35a7408
Update dependency rollup to v2.28.2 (#954)
renovate-bot Oct 2, 2020
75355f5
Update Yarn to v1.22.10 (#960)
renovate-bot Oct 2, 2020
c5bdd2b
Update dependency typescript to v4.0.3 (#951)
renovate-bot Oct 2, 2020
56d0494
Update dependency ava to v3.13.0 (#959)
renovate-bot Oct 2, 2020
0109f60
Update Node.js to v14.13.0 (#955)
renovate-bot Oct 5, 2020
7f0d807
Update dependency preact to v10.5.4 (#956)
renovate-bot Oct 5, 2020
c887bd2
Update dependency sinon to v9.1.0 (#957)
renovate-bot Oct 5, 2020
33e5e06
Update dependency acorn to v8.0.4 (#961)
renovate-bot Oct 5, 2020
2f6cb28
Update dependency style-loader to v1.3.0 (#963)
renovate-bot Oct 6, 2020
1d4762a
Update dependency mini-css-extract-plugin to v0.11.3 (#962)
renovate-bot Oct 6, 2020
4f36ae7
Update dependency style-loader to v2 (#968)
renovate-bot Oct 13, 2020
0433bf0
Update dependency lint-staged to v10.4.1 (#974)
renovate-bot Oct 16, 2020
8b445bb
Update dependency css-loader to v5 (#972)
renovate-bot Oct 16, 2020
4f06c71
Update babel monorepo (#890)
renovate-bot Oct 19, 2020
023d0e8
Update dependency mini-css-extract-plugin to v1 (#969)
renovate-bot Oct 20, 2020
2465144
Update react monorepo to v17 (#979)
renovate-bot Oct 20, 2020
3db62ef
Update dependency preact to v10.5.5 (#977)
renovate-bot Oct 20, 2020
86c7992
Update dependency webpack to v5 (#971)
renovate-bot Oct 22, 2020
f07f26b
enable renovate automerge (#980)
samouri Oct 22, 2020
b02a4cd
Update react monorepo to v17.0.1 (#981)
renovate-bot Oct 22, 2020
9c4b94c
Update dependency @types/node to v14.11.5 (#964)
renovate-bot Oct 23, 2020
95626af
Update dependency @types/node to v14.14.3 (#983)
renovate-bot Oct 25, 2020
066c654
Fix race between long task start and end handlers. (#989)
samouri Oct 29, 2020
a50fd42
Update dependency css-loader to v5.0.1 (#995)
renovate-bot Nov 4, 2020
ca93cf3
Update dependency sinon to v9.2.0 (#965)
renovate-bot Nov 5, 2020
cac1a21
Update dependency sinon to v9.2.1 (#996)
renovate-bot Nov 5, 2020
4b2dff3
Update dependency sirv to v1.0.7 (#975)
renovate-bot Nov 5, 2020
bcd2d3c
Update dependency @babel/plugin-transform-react-jsx to v7.12.5 (#994)
renovate-bot Nov 5, 2020
b04f1c3
Update dependency mini-css-extract-plugin to v1.2.1 (#982)
renovate-bot Nov 5, 2020
bb7f062
Update dependency typescript to v4.0.5 (#986)
renovate-bot Nov 5, 2020
c19e528
Update dependency @rollup/plugin-replace to v2.3.4 (#987)
renovate-bot Nov 5, 2020
f7a29a6
Update dependency lint-staged to v10.4.2 (#976)
renovate-bot Nov 5, 2020
53bc08a
Update dependency lint-staged to v10.5.1 (#998)
renovate-bot Nov 5, 2020
7a12794
Update dependency rollup to v2.29.0 (#967)
renovate-bot Nov 5, 2020
7f2b6a8
Update dependency shx to v0.3.3 (#984)
renovate-bot Nov 5, 2020
19a347f
renovate-bot: only once a week, and all package (#997)
samouri Nov 9, 2020
8dd15e0
storage should throw if unsupported (#1006)
samouri Nov 18, 2020
7e44852
Update all (#1002)
renovate-bot Nov 19, 2020
a7d0af6
Update all (#1004)
renovate-bot Nov 19, 2020
bbe0808
v0.27.4 (#1007)
samouri Nov 19, 2020
ac04b5c
Update all (#1008)
renovate-bot Nov 24, 2020
e9305ef
Update dependency babel-loader to v8.2.1 (#1003)
renovate-bot Nov 24, 2020
41be72e
Update all (#1010)
renovate-bot Dec 1, 2020
0b0b233
Update babel monorepo (#1011)
renovate-bot Dec 1, 2020
59a9836
Update all (#1012)
renovate-bot Dec 7, 2020
d101f05
Update all (#1013)
renovate-bot Dec 28, 2020
0eef43f
Update babel monorepo (#1014)
renovate-bot Dec 28, 2020
788096b
s/communiampion/communication (#1018)
honeybadgerdontcare Jan 29, 2021
76fccef
Update workflows to use Node 14.x. (#1022)
samouri Feb 18, 2021
d3b6459
Update all (#1020)
renovate-bot Feb 18, 2021
db11b2d
Update babel monorepo (#1021)
renovate-bot Feb 18, 2021
a18de3c
Update all (#1024)
renovate-bot Mar 9, 2021
cc40abb
Update all (#1026)
renovate-bot Mar 9, 2021
5aa1579
Update babel monorepo (#1025)
renovate-bot Mar 9, 2021
9cc1569
Merge branch 'main' of github.com:ampproject/worker-dom into main
kristoferbaxter Mar 12, 2021
abdd0d3
Add Node.replaceWith capability (#1028)
kristoferbaxter Mar 12, 2021
dbc8e26
Update Vue.js (#1001)
niutech Mar 12, 2021
c552553
Update all (#1029)
renovate-bot Mar 15, 2021
5b9386b
Merge branch 'main' of github.com:ampproject/worker-dom into main
kristoferbaxter Mar 16, 2021
b7c11b3
Update warnings from replacement
kristoferbaxter Mar 16, 2021
f5da1e6
Update all (#1032)
renovate-bot Mar 23, 2021
11e2979
Demo fixtures: update amp binary path (#1034)
samouri Mar 24, 2021
0e0bc12
Added partial support for Element.scrollIntoView() (#1033)
andrei0x309 Mar 24, 2021
4dbdfa6
Update all (#1037)
renovate-bot Mar 29, 2021
146bece
Update babel monorepo (#1038)
renovate-bot Mar 29, 2021
f2df595
Run prettier over all src files (#1041)
samouri Mar 30, 2021
cdf65e9
storage fixes (#1035)
samouri Apr 1, 2021
6e9de16
Update all (#1040)
renovate-bot Apr 1, 2021
bce0b83
Introduce sandboxed iframe mode. (#1042)
samouri Apr 2, 2021
702529b
Update react monorepo to v17.0.2 (#1039)
renovate-bot Apr 4, 2021
513a72b
Bump version number to 0.29.0
samouri Apr 7, 2021
d6e51d9
v0.29.0
samouri Apr 7, 2021
bff2183
Update all (#1043)
renovate-bot Apr 9, 2021
3c4341b
Remove errant 'await' that slipped in. (#1044)
samouri Apr 9, 2021
f05f16a
v0.29.1
samouri Apr 9, 2021
6005206
Update all (#1045)
renovate-bot Apr 12, 2021
253e7b0
Update babel monorepo to v7.13.15 (#1046)
renovate-bot Apr 12, 2021
24de85f
extra wiggleroom
samouri Apr 20, 2021
77add80
Revert "extra wiggleroom"
samouri Apr 20, 2021
1472534
WorkerDOM.upgrade should wait for Worker init. (#1047)
samouri Apr 20, 2021
6d2844f
Add forgotten demo file (#1048)
samouri Apr 20, 2021
6aa504e
v0.29.2
samouri Apr 20, 2021
3efa121
Update all (#1049)
renovate-bot Apr 26, 2021
fd862e5
Update dependency @types/sinon to v10 (#1051)
renovate-bot Apr 26, 2021
e08c069
Update babel monorepo to v7.13.16 (#1050)
renovate-bot Apr 26, 2021
3bdf0d2
create new server-build, for server side use cases (#1055)
samouri May 5, 2021
4dfaa1c
v0.29.3
samouri May 5, 2021
92eed67
Update all (#1053)
renovate-bot May 11, 2021
471afef
Update babel monorepo (#1054)
renovate-bot May 11, 2021
8fe7039
Update dependency lint-staged to v11 (#1057)
renovate-bot May 11, 2021
b4a1b33
Update babel monorepo (#1062)
renovate[bot] Jun 7, 2021
f627793
Update dependency sinon to v11 (#1063)
renovate[bot] Jun 9, 2021
1f7faa0
Update babel monorepo (#1065)
renovate[bot] Jun 15, 2021
af09257
Consolidate prettier (#1066)
samouri Jun 16, 2021
f5df3c3
Update all (#1061)
renovate[bot] Jun 17, 2021
b1f1658
Separate out all type-only imports (#1067)
samouri Jun 18, 2021
5d4d4c9
nodom: support storage (#1064)
samouri Jun 23, 2021
747023e
v0.30.0
samouri Jun 30, 2021
35139ef
worker: fix faulty import type (#1072)
samouri Jul 2, 2021
95bb805
Remove all "import type" after discovery of a TS bug (#1073)
samouri Jul 2, 2021
a275492
v0.30.1
samouri Jul 2, 2021
5401ef6
Update all (#1071)
renovate[bot] Jul 12, 2021
c1d49b1
Update babel monorepo to v7.14.7 (#1070)
renovate[bot] Jul 12, 2021
d2baf04
Babel plugins: remove outdated proposals (#1074)
samouri Jul 13, 2021
4f94f2c
Update all (#1069)
renovate[bot] Jul 20, 2021
0dbc94e
Update all (#1077)
renovate[bot] Jul 21, 2021
1803335
Update babel monorepo to v7.14.8 (#1080)
renovate[bot] Jul 27, 2021
42ebf34
Update all (#1079)
renovate[bot] Jul 28, 2021
be74f37
Update all (#1081)
renovate[bot] Aug 2, 2021
0f632ba
Update babel monorepo to v7.14.9 (#1082)
renovate[bot] Aug 2, 2021
701be54
Update dependency jsdom to v17 (#1085)
renovate[bot] Aug 19, 2021
11ff429
Update babel monorepo to v7.15.0 (#1084)
renovate[bot] Aug 19, 2021
b2363aa
nodom: workerDOM should be document.defaultView (#1091)
samouri Sep 9, 2021
7b60849
Use Object.assign (#1092)
rcebulko Sep 9, 2021
9e81e04
v0.31.0
samouri Sep 10, 2021
5d3cdab
Update all (#1083)
renovate[bot] Sep 14, 2021
0388c01
Update babel monorepo (#1089)
renovate[bot] Sep 18, 2021
1cf1404
Update all (#1094)
renovate[bot] Sep 20, 2021
da975ce
Remove copyright header (#1097)
samouri Sep 23, 2021
cc71f9c
Update all (#1098)
renovate[bot] Sep 27, 2021
b9ffedd
Benchmark + optimize (#1096)
samouri Sep 28, 2021
95ba4b8
v0.32.0
samouri Sep 28, 2021
7c54163
server-lib bugfix: need scopingRoot (#1100)
samouri Sep 28, 2021
e460e5f
v0.32.1
samouri Sep 28, 2021
718accd
Update all (#1102)
renovate[bot] Oct 4, 2021
4ade289
Update all (#1103)
renovate[bot] Oct 11, 2021
3cf6f4e
Update babel monorepo to v7.15.8 (#1104)
renovate[bot] Oct 11, 2021
d54c650
Update all (#1105)
renovate[bot] Oct 26, 2021
79ed3f7
more descriptive type signature for tuples (#1107)
cometkim Oct 30, 2021
d90e684
Added a flag to selectively use shadow dom (#1101)
cometkim Nov 1, 2021
098aba3
Update all (#1109)
renovate[bot] Nov 3, 2021
6a80c79
Update all (#1108)
renovate[bot] Nov 4, 2021
52cff6d
Update babel monorepo (#1106)
renovate[bot] Nov 4, 2021
ea7a243
Update all (#1110)
renovate[bot] Nov 9, 2021
fa58c7a
Update dependency lint-staged to v12 (#1112)
renovate[bot] Nov 15, 2021
d506dbb
Update all (#1111)
renovate[bot] Nov 15, 2021
9a9846e
Update all (#1113)
renovate[bot] Nov 29, 2021
94b2c5f
Update dependency @babel/preset-env to v7.16.4 (#1114)
renovate[bot] Nov 30, 2021
45ebdcc
Update all (#1115)
renovate[bot] Dec 10, 2021
edb2f34
Update dependency jsdom to v19 (#1116)
renovate[bot] Dec 13, 2021
7fb5d5b
Update all (#1118)
renovate[bot] Dec 13, 2021
5f56425
Update all (#1119)
renovate[bot] Dec 25, 2021
18de540
Update babel monorepo to v7.16.5 (#1120)
renovate[bot] Dec 25, 2021
69207e4
Update all (#1122)
renovate[bot] Jan 3, 2022
3f3f7b4
Update babel monorepo to v7.16.7 (#1123)
renovate[bot] Jan 3, 2022
808c786
Update all (#1124)
renovate[bot] Jan 12, 2022
7168469
Update all (#1127)
renovate[bot] Jan 18, 2022
972bbc7
Update all (#1129)
renovate[bot] Jan 24, 2022
ad6093d
Update all (#1130)
renovate[bot] Jan 31, 2022
d418048
babel loose mode compat: dont spread Set (#1133)
samouri Feb 11, 2022
c906bfc
Add support for nextElementSibling and previousElementSibling (#1132)
samouri Feb 11, 2022
15fa042
v0.33.0
samouri Feb 11, 2022
9cff888
Update all (#1131)
renovate[bot] Feb 17, 2022
a6bcd6f
Storage: fix clear and removeItem (#1136)
samouri Feb 28, 2022
d27b429
Update all (#1135)
renovate[bot] Mar 3, 2022
928c0fd
0.34.0
samouri Mar 3, 2022
0e85916
Update all (#1137)
renovate[bot] Mar 8, 2022
6da9f65
Update babel monorepo (#1126)
renovate[bot] Mar 8, 2022
9357699
Update all (major) (#1125)
renovate[bot] Apr 25, 2022
f224511
Fix off-by-1 index bug in amp state (#1146)
powerivq Jun 20, 2023
c6234b7
Upgrade dependencies (#1147)
erwinmombay Jun 21, 2023
49a2897
Update dependency webpack to v5.76.0 [SECURITY] (#1145)
renovate[bot] Jun 28, 2023
ecf1c3a
Update devDependency (#1153)
powerivq Aug 9, 2023
45d6094
Update all (#1138)
renovate[bot] Aug 9, 2023
37bd087
Update babel monorepo (#1139)
renovate[bot] Aug 9, 2023
1a75cbd
Update react monorepo to v18 (#1140)
renovate[bot] Aug 9, 2023
b70c5ba
Update size restraints (#1154)
powerivq Aug 15, 2023
fb49dda
Update nodejs to 18.x (LTS) (#1157)
powerivq Aug 15, 2023
9e5d3bd
Update all (#1155)
renovate[bot] Aug 15, 2023
441861f
Update all (major) (#1156)
renovate[bot] Aug 15, 2023
1ff9ace
Update all (#1159)
renovate[bot] Aug 21, 2023
36ed6a9
Unsubscription/removing "on" listener must not cause an error on next…
ddenisyuk Aug 22, 2023
7b77b55
Update all (major) (#1160)
renovate[bot] Aug 22, 2023
98e3039
Update all (#1161)
renovate[bot] Aug 28, 2023
7f4927f
Update dependency @babel/core to v7.22.11 (#1162)
renovate[bot] Aug 28, 2023
0fb9941
Update all (#1164)
renovate[bot] Sep 6, 2023
a7b75eb
Update babel monorepo to v7.22.15 (#1165)
renovate[bot] Sep 6, 2023
74a04a7
Update dependency @babel/core to v7.22.17 (#1167)
renovate[bot] Sep 11, 2023
dde22b4
Update all (#1166)
renovate[bot] Sep 11, 2023
a0fe681
Update babel monorepo to v7.22.20 (#1170)
renovate[bot] Sep 19, 2023
6323c70
Update all (#1169)
renovate[bot] Sep 19, 2023
dd6967b
Update all (#1171)
renovate[bot] Oct 12, 2023
7072134
Update babel monorepo (#1172)
renovate[bot] Oct 12, 2023
1ae808e
Update all (#1173)
renovate[bot] Oct 19, 2023
d9cbb19
Update all (#1174)
renovate[bot] Nov 3, 2023
1efbd11
Update all (#1175)
renovate[bot] Nov 13, 2023
deaf753
Update babel monorepo to v7.23.3 (#1176)
renovate[bot] Nov 13, 2023
a9f8488
Update all (#1177)
renovate[bot] Nov 20, 2023
886157b
Update all (#1178)
renovate[bot] Nov 27, 2023
ca1166b
Update babel monorepo to v7.23.4 (#1179)
renovate[bot] Nov 27, 2023
b24823d
Update babel monorepo to v7.23.5 (#1180)
renovate[bot] Dec 4, 2023
c5f4d90
Update all (#1181)
renovate[bot] Dec 5, 2023
37e3a48
Update babel monorepo to v7.23.6 (#1183)
renovate[bot] Dec 22, 2023
c5d6860
Update babel monorepo (#1184)
renovate[bot] Jan 9, 2024
1d9a67c
Update all (#1182)
renovate[bot] Jan 10, 2024
7f2d69a
Update all (#1185)
renovate[bot] Jan 17, 2024
6d1602d
Update dependency css-loader to v6.9.1 (#1186)
renovate[bot] Jan 22, 2024
1641ad2
Update all (#1188)
renovate[bot] Feb 15, 2024
b3e6d78
Update all (#1190)
renovate[bot] Mar 7, 2024
37cb2c3
Update babel monorepo (#1189)
renovate[bot] Mar 7, 2024
3d581a2
Update Yarn to v1.22.22 (#1191)
renovate[bot] Mar 11, 2024
c38e27e
Update babel monorepo (#1193)
renovate[bot] Apr 4, 2024
2006157
Update babel monorepo to v7.24.6 (#1197)
renovate[bot] May 24, 2024
6f71a7c
Fix rollup incompatibility, fix test failure (#1208)
powerivq Jun 23, 2025
f705f19
Upgrade dependency versions for node 18 (#1209)
powerivq Jun 24, 2025
7f4e534
Fix tsc compilation issues (#1210)
powerivq Jun 24, 2025
b2c869f
Fix error message format to be a valid message (#1211)
powerivq Jun 25, 2025
22b993a
Fix various linter errors, ignore third_party (#1212)
powerivq Jun 26, 2025
4a3e919
Upgrade to nodejs 22 (#1213)
powerivq Jun 26, 2025
c832a64
Upgrade version to 0.35 (#1214)
powerivq Jun 26, 2025
e61b115
0.36.0
powerivq Jun 27, 2025
52b619e
Update babel monorepo (#1216)
renovate[bot] Jun 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint
6 changes: 3 additions & 3 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [22.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x]
node-version: [22.x]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ package-lock.json
demo/build/
demo/example/
demo/test/
dist/*
dist/*
.husky/
2 changes: 1 addition & 1 deletion config/.prettierrc → .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"trailingComma": "all",
"parser": "typescript",
"singleQuote": true
}
}
8 changes: 4 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communiampion sent
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communiampion on electronic mailing lists, source code control systems,
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communiampion that is conspicuously marked or otherwise
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
Expand Down Expand Up @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
15 changes: 15 additions & 0 deletions benchmark.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Benchmark from 'benchmark';

import { createDocument } from './dist/server-lib.mjs';
const doc = createDocument();

var suite = new Benchmark.Suite();
suite
.add('createElement', function () {
doc.createElement('test-elem');
})
.on('complete', function () {
const results = Array.from(this);
console.log(results.join('\n'));
})
.run();
10 changes: 0 additions & 10 deletions config/dist-packaging/amp/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/dist-packaging/amp/worker/package.json

This file was deleted.

10 changes: 0 additions & 10 deletions config/dist-packaging/debug/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/dist-packaging/debug/worker/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/dist-packaging/worker/package.json

This file was deleted.

20 changes: 0 additions & 20 deletions config/rollup.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions config/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import MainThreadBuilds from './rollup.main-thread.mjs';
import WorkerThreadBuilds from './rollup.worker-thread.mjs';

export default [...MainThreadBuilds, ...WorkerThreadBuilds];
77 changes: 26 additions & 51 deletions config/rollup.main-thread.js → config/rollup.main-thread.mjs
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import compiler from '@ampproject/rollup-plugin-closure-compiler';
import { terser } from 'rollup-plugin-terser';
import replace from '@rollup/plugin-replace';
import copy from 'rollup-plugin-copy';
import { babelPlugin, removeDebugCommandExecutors, removeWorkerWhitespace } from './rollup.plugins.js';
import terser from '@rollup/plugin-terser';
import { babelPlugin, removeDebugCommandExecutors, removeWorkerWhitespace, replacePlugin } from './rollup.plugins.mjs';

const ESModules = [
{
Expand All @@ -31,9 +13,7 @@ const ESModules = [
plugins: [
removeWorkerWhitespace(),
removeDebugCommandExecutors(),
replace({
WORKER_DOM_DEBUG: false,
}),
replacePlugin(),
babelPlugin({
transpileToES5: false,
allowConsole: false,
Expand All @@ -51,17 +31,7 @@ const ESModules = [
},
plugins: [
removeWorkerWhitespace(),
copy({
targets: [
{
src: 'config/dist-packaging/debug/package.json',
dest: 'dist/debug',
},
],
}),
replace({
WORKER_DOM_DEBUG: true,
}),
replacePlugin({ debug: true }),
babelPlugin({
transpileToES5: false,
allowConsole: true,
Expand All @@ -71,21 +41,32 @@ const ESModules = [
{
input: 'output/main-thread/index.amp.js',
output: {
file: 'dist/amp/main.mjs',
file: 'dist/amp-production/main.mjs',
format: 'es',
sourcemap: true,
banner: 'var WORKER_DOM_DEBUG = /log|development/i.test(location.hash);',
},
plugins: [
removeWorkerWhitespace(),
copy({
targets: [
{
src: 'config/dist-packaging/amp/package.json',
dest: 'dist/amp',
},
],
removeDebugCommandExecutors(),
replacePlugin({ amp: true }),
babelPlugin({
transpileToES5: false,
allowConsole: false,
}),
compiler(),
terser(),
],
},
{
input: 'output/main-thread/index.amp.js',
output: {
file: 'dist/amp-debug/main.mjs',
format: 'es',
sourcemap: true,
},
plugins: [
removeWorkerWhitespace(),
replacePlugin({ debug: true, amp: true }),
babelPlugin({
transpileToES5: false,
allowConsole: true,
Expand All @@ -106,9 +87,7 @@ const IIFEModules = [
plugins: [
removeWorkerWhitespace(),
removeDebugCommandExecutors(),
replace({
WORKER_DOM_DEBUG: false,
}),
replacePlugin(),
babelPlugin({
transpileToES5: true,
allowConsole: false,
Expand All @@ -127,15 +106,11 @@ const IIFEModules = [
},
plugins: [
removeWorkerWhitespace(),
replace({
WORKER_DOM_DEBUG: true,
}),
replacePlugin({ debug: true, amp: true }),
babelPlugin({
transpileToES5: true,
allowConsole: true,
}),
compiler(),
terser(),
],
},
];
Expand Down
Loading