Commit 21b7472
Use Pa11y 7, require Node 18, fix issues (#149)
* Using `npm@10` upgrade `lockfileVersion` to `3` from `1`
* Increase `package.engines.node` to `>=18` from `>=12`, and introduce `package.engines.npm` as `10`
* Use npm for scripts for linting, testing, loading fixtures
* Consistently use `npm start` to start the service
* Make linter config export slightly more straightforward
* Remove overrides which are no longer required
* Use `const` and remove override of `prefer-const` rule
* Remove object shorthand override, since it only produces a warning
* Move the final override `prefer-arrow-callback` into the tests, where it's more relevant; fix two inconsistencies in the app
* Upgrade to `hapi@~21.3` from `20.3.2`
* Start working against `pa11y@7` candidate
* Return to `node index.js &` for now
* Replace `ubuntu-20.04` with `ubuntu-latest` now that `pa11y` is upgraded
* When testing, use Node.js `18, 20` instead of `12, 14, 16`
* When publishing, use Node.js `18` instead of `12`
* Use property shorthand to placate linter
* Remove unnecessary leniency for `id-length`
* Resolve shadowing issues with different names
* Remove comments where they echoed adjacent naming
* Refer to `NODE_ENV` as `mode` instead of `environment`
* Update `ecmaVersion` to `2020` from `2017`
* Improve logging at startup
* More logging; remove unused linting override
* Use npm 10 when testing and publishing
* Test with MongoDB `7`, up from `3`
* Replace `underscore` with `lodash.groupby`
* Narrow eslint-override
* Use more method shorthand for linter
* Fix/narrow `camelcase` issues
* Reorganise routes for brevity and to resolve a couple more linter warnings
* Resolve line length warning
* Use `Array.find` for invalid action check
* Pick required values from requests and tighten id names
* Decompose and pick
* Strip out obsolete dependency `request`, replacing with `fetch`; move towards promises
* Fix typo in `.editorconfig`
* Document use of nektos/act
* Dim MongoDB chatter
* Use `throw` instead of `process.exit`
* Rewrite fixtures script as `async` and allow error to bubble
* Rename `this.last` to `this.response`
* Fix `lockfile-version` to `2`, and remove `npm` fixing/bumps
* Add `.nvmrc` as `18`
* Return to using `ubuntu-latest`, replacing `ubuntu-20.04`
* Run Mongo version tests on Node `18`, up from `12`, and fix matrix typo
* Use `pa11y@7` in place of the preview version
* Run linter on Node `18`, up from `12`
* Update copyright to `2024` from `2023`, and fix some markdown linter complaints
* Update `actions/setup-node` to `4` from `3`
* Add link to Docker Desktop
Co-authored-by: Hollie Kay <1948361+hollsk@users.noreply.github.com>
* Add link to `nektosact.com` and mention other ways to install `act`
Co-authored-by: Hollie Kay <1948361+hollsk@users.noreply.github.com>
* Be clearer that `act` is for locally testing GitHub Actions
Co-authored-by: Hollie Kay <1948361+hollsk@users.noreply.github.com>
* Mention installation options across both Docker Desktop and `act`; use shortlinks for consistency
Co-Authored-By: Hollie Kay <1948361+hollsk@users.noreply.github.com>
---------
Co-authored-by: Hollie Kay <1948361+hollsk@users.noreply.github.com>1 parent 848216d commit 21b7472
File tree
32 files changed
+2787
-2066
lines changed- .github/workflows
- data/fixture
- model
- route
- script
- task
- test
- integration
- helper
32 files changed
+2787
-2066
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
140 | | - | |
| 137 | + | |
| 138 | + | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
| 145 | + | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| 151 | + | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
157 | 186 | | |
158 | 187 | | |
159 | 188 | | |
160 | 189 | | |
161 | 190 | | |
162 | | - | |
| 191 | + | |
163 | 192 | | |
164 | 193 | | |
165 | 194 | | |
166 | | - | |
| 195 | + | |
167 | 196 | | |
168 | 197 | | |
169 | 198 | | |
| |||
185 | 214 | | |
186 | 215 | | |
187 | 216 | | |
188 | | - | |
| 217 | + | |
189 | 218 | | |
190 | 219 | | |
191 | 220 | | |
192 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
193 | 225 | | |
194 | 226 | | |
195 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 22 | | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| |||
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
34 | | - | |
| 31 | + | |
35 | 32 | | |
36 | 33 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | | - | |
44 | | - | |
45 | 42 | | |
46 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
95 | 102 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
112 | 106 | | |
| 107 | + | |
| 108 | + | |
0 commit comments