@apolitical/server 2.10.0 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -3
- package/CHANGELOG.md +0 -250
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/server",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"description": "Node.js module to encapsulate Apolitical's express server setup",
|
|
5
5
|
"author": "Apolitical Group Limited <engineering@apolitical.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"format": "prettier --write 'src/**/*.+(js|json)'",
|
|
17
17
|
"lint-format": "lint-staged",
|
|
18
18
|
"audit": "audit-ci -h",
|
|
19
|
-
"prepare": "husky install"
|
|
19
|
+
"prepare": "cd ../../../ && husky install modules/v1/apolitical-server/.husky"
|
|
20
20
|
},
|
|
21
21
|
"keywords": [
|
|
22
22
|
"Backend",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"morgan": "1.10.0",
|
|
44
44
|
"passport": "0.6.0",
|
|
45
45
|
"passport-jwt": "4.0.1",
|
|
46
|
-
"prerender-node": "3.
|
|
46
|
+
"prerender-node": "3.7.0",
|
|
47
47
|
"qs": "6.11.0",
|
|
48
48
|
"swagger-ui-express": "4.6.0",
|
|
49
49
|
"xss": "1.0.14"
|
package/CHANGELOG.md
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [2.10.0] - 2023-04-24
|
|
9
|
-
### Added
|
|
10
|
-
- `sanitiseInput` method to request helpers
|
|
11
|
-
- XSS package
|
|
12
|
-
|
|
13
|
-
## [2.9.1] - 2023-01-31
|
|
14
|
-
### Added
|
|
15
|
-
- Renovate config file
|
|
16
|
-
|
|
17
|
-
## [2.9.0] - 2023-01-10
|
|
18
|
-
### Changed
|
|
19
|
-
- Bump dependencies to keep the project up-to-date
|
|
20
|
-
### Removed
|
|
21
|
-
- Unnecessary use of `.debug` logs
|
|
22
|
-
|
|
23
|
-
## [2.8.2] - 2022-11-17
|
|
24
|
-
### Removed
|
|
25
|
-
- ETag header on static files to avoid cache mismatching
|
|
26
|
-
|
|
27
|
-
## [2.8.1] - 2022-11-15
|
|
28
|
-
### Fixed
|
|
29
|
-
- Cache control types
|
|
30
|
-
|
|
31
|
-
## [2.8.0] - 2022-11-14
|
|
32
|
-
### Added
|
|
33
|
-
- Cache control for static files
|
|
34
|
-
|
|
35
|
-
## [2.7.0] - 2022-08-22
|
|
36
|
-
### Added
|
|
37
|
-
- Strict routing parameter to allow treating "/foo" and "/foo/" as different
|
|
38
|
-
- New `buildQueryString` function to the `request` helper
|
|
39
|
-
|
|
40
|
-
## [2.6.0] - 2022-07-25
|
|
41
|
-
### Updated
|
|
42
|
-
- `buildOptions` helper: use sessionSecret from argument if not in process.env
|
|
43
|
-
|
|
44
|
-
## [2.5.5] - 2022-07-19
|
|
45
|
-
### Added
|
|
46
|
-
- Unit tests for `buildOptions` helper
|
|
47
|
-
|
|
48
|
-
## [2.5.4] - 2022-07-08
|
|
49
|
-
### Added
|
|
50
|
-
- Generating apolitical-auth token function
|
|
51
|
-
|
|
52
|
-
## [2.5.3] - 2022-06-29
|
|
53
|
-
### Changed
|
|
54
|
-
- Pipelines ref
|
|
55
|
-
|
|
56
|
-
## [2.5.2] - 2022-06-08
|
|
57
|
-
### Added
|
|
58
|
-
- Probes prefix to support custom path
|
|
59
|
-
|
|
60
|
-
## [2.5.1] - 2022-06-01
|
|
61
|
-
### Added
|
|
62
|
-
- Cache to `readinessCheck` and `livenessCheck` checks to avoid overload
|
|
63
|
-
|
|
64
|
-
## [2.5.0] - 2022-05-06
|
|
65
|
-
### Added
|
|
66
|
-
- Custom `readinessCheck` and `livenessCheck` to define probes externally
|
|
67
|
-
- New probe `/health` endpoint to combine readiness and liveness
|
|
68
|
-
|
|
69
|
-
## [2.4.2] - 2022-03-03
|
|
70
|
-
### Bumped
|
|
71
|
-
- Version number for testing
|
|
72
|
-
|
|
73
|
-
## [2.4.1] - 2022-03-02
|
|
74
|
-
### Changed
|
|
75
|
-
- Update authorisation middleware to include req.user check in cases where we would like to protect endpoints
|
|
76
|
-
|
|
77
|
-
## [2.4.0] - 2022-02-22
|
|
78
|
-
### Added
|
|
79
|
-
- User slug to error logs as metadata
|
|
80
|
-
### Changed
|
|
81
|
-
- Transition to new logger middleware format
|
|
82
|
-
|
|
83
|
-
## [2.3.3] - 2022-02-21
|
|
84
|
-
### Changed
|
|
85
|
-
- maging sure index.html is not considered as a static asset by the middleware loader
|
|
86
|
-
|
|
87
|
-
## [2.3.2] - 2022-02-21
|
|
88
|
-
### Changed
|
|
89
|
-
- loading static files middleware after the app has been loaded
|
|
90
|
-
|
|
91
|
-
## [2.3.1] - 2022-02-15
|
|
92
|
-
### Changed
|
|
93
|
-
- Body parser types
|
|
94
|
-
|
|
95
|
-
## [2.3.0] - 2022-02-14
|
|
96
|
-
### Added
|
|
97
|
-
- fallbackController
|
|
98
|
-
|
|
99
|
-
## [2.2.0] - 2022-02-07
|
|
100
|
-
### Changed
|
|
101
|
-
- Pipeline uses `Node-Publish` template
|
|
102
|
-
|
|
103
|
-
## [2.1.1] - 2022-01-31
|
|
104
|
-
### Fixed
|
|
105
|
-
- Authorisation logic
|
|
106
|
-
|
|
107
|
-
## [2.1.0] - 2022-01-21
|
|
108
|
-
### Added
|
|
109
|
-
- Prerender middleware
|
|
110
|
-
### Fixed
|
|
111
|
-
- Node.js version
|
|
112
|
-
|
|
113
|
-
## [2.0.1] - 2022-01-21
|
|
114
|
-
### Added
|
|
115
|
-
- Correlation when logging from error middleware
|
|
116
|
-
|
|
117
|
-
## [2.0.0] - 2022-01-20
|
|
118
|
-
### Added
|
|
119
|
-
- Authorisation middleware
|
|
120
|
-
- New logging middleware for production (based on Google Winston)
|
|
121
|
-
### Changed
|
|
122
|
-
- Updated dependencies
|
|
123
|
-
- Upgraded Node.js version
|
|
124
|
-
- Revamped GitLab pipelines
|
|
125
|
-
### Removed
|
|
126
|
-
- Unused logger helper
|
|
127
|
-
|
|
128
|
-
## [1.5.2] - 2021-10-18
|
|
129
|
-
### Changed
|
|
130
|
-
- Allow cors options to be passed in as params on start
|
|
131
|
-
|
|
132
|
-
## [1.5.1] - 2021-09-15
|
|
133
|
-
### Added
|
|
134
|
-
- Extend error class to handle too many request error
|
|
135
|
-
|
|
136
|
-
## [1.5.0] - 2021-09-06
|
|
137
|
-
### Added
|
|
138
|
-
- Documentation
|
|
139
|
-
|
|
140
|
-
## [1.4.0] - 2021-08-24
|
|
141
|
-
### Added
|
|
142
|
-
- Testing helper `@apolitical/testing`
|
|
143
|
-
- Auth middleware
|
|
144
|
-
### Fixed
|
|
145
|
-
- Static loader
|
|
146
|
-
|
|
147
|
-
## [1.3.1] - 2021-07-08
|
|
148
|
-
### Fixed
|
|
149
|
-
- Documantion not exposed on production
|
|
150
|
-
|
|
151
|
-
## [1.3.0] - 2021-06-28
|
|
152
|
-
### Added
|
|
153
|
-
- Support for on error redirection URL
|
|
154
|
-
### Fixed
|
|
155
|
-
- Swagger document redirection
|
|
156
|
-
|
|
157
|
-
## [1.2.4] - 2021-06-15
|
|
158
|
-
### Changed
|
|
159
|
-
- Auth0 request per minute config value
|
|
160
|
-
|
|
161
|
-
## [1.2.3] - 2021-06-15
|
|
162
|
-
### Added
|
|
163
|
-
- Auth0 JWT middleware error handling
|
|
164
|
-
|
|
165
|
-
## [1.2.2] - 2021-05-25
|
|
166
|
-
### Added
|
|
167
|
-
- Admin property to default JWT payload
|
|
168
|
-
|
|
169
|
-
## [1.2.1] - 2021-03-22
|
|
170
|
-
### Added
|
|
171
|
-
- External static loader (minor refactor)
|
|
172
|
-
|
|
173
|
-
## [1.2.0] - 2021-03-19
|
|
174
|
-
### Added
|
|
175
|
-
- External static loader
|
|
176
|
-
|
|
177
|
-
## [1.1.0] - 2021-03-18
|
|
178
|
-
### Added
|
|
179
|
-
- Auth0 JWT authorisation logic
|
|
180
|
-
- JWT decoder
|
|
181
|
-
|
|
182
|
-
## [1.0.0] - 2021-02-08
|
|
183
|
-
### Bumped
|
|
184
|
-
- First version under `@apolitical`
|
|
185
|
-
### Added
|
|
186
|
-
- Cloud native health connect
|
|
187
|
-
- Static files serving
|
|
188
|
-
- Compression
|
|
189
|
-
### Updated
|
|
190
|
-
- Apolitical Logger
|
|
191
|
-
### Fixed
|
|
192
|
-
- Error logs to make use of service name
|
|
193
|
-
### Renamed
|
|
194
|
-
- Generic app loader
|
|
195
|
-
|
|
196
|
-
## [0.0.13] - 2020-11-16
|
|
197
|
-
### Added
|
|
198
|
-
- External service name
|
|
199
|
-
|
|
200
|
-
## [0.0.12] - 2020-10-12
|
|
201
|
-
### Added
|
|
202
|
-
- User slug token to Morgan logger
|
|
203
|
-
### Fixed
|
|
204
|
-
- Swagger documentation (under JWT protection)
|
|
205
|
-
|
|
206
|
-
## [0.0.11] - 2020-09-30
|
|
207
|
-
### Added
|
|
208
|
-
- Swagger documentation
|
|
209
|
-
|
|
210
|
-
## [0.0.10] - 2020-09-18
|
|
211
|
-
### Updated
|
|
212
|
-
- JWT generate with custom payload
|
|
213
|
-
|
|
214
|
-
## [0.0.9] - 2020-09-07
|
|
215
|
-
### Added
|
|
216
|
-
- Errors and error middleware
|
|
217
|
-
- JWT helper
|
|
218
|
-
|
|
219
|
-
## [0.0.8] - 2020-09-03
|
|
220
|
-
### Fixed
|
|
221
|
-
- Service name taken from env variable
|
|
222
|
-
|
|
223
|
-
## [0.0.7] - 2020-09-02
|
|
224
|
-
### Updated
|
|
225
|
-
- Testing and linting configurations
|
|
226
|
-
|
|
227
|
-
## [0.0.6] - 2020-07-30
|
|
228
|
-
### Fixed
|
|
229
|
-
- JWT naming convention
|
|
230
|
-
|
|
231
|
-
## [0.0.5] - 2020-07-30
|
|
232
|
-
### Fixed
|
|
233
|
-
- Auth middleware
|
|
234
|
-
|
|
235
|
-
## [0.0.4] - 2020-07-30
|
|
236
|
-
### Added
|
|
237
|
-
- Auth middleware
|
|
238
|
-
|
|
239
|
-
## [0.0.3] - 2020-07-30
|
|
240
|
-
### Fixed
|
|
241
|
-
- Secret or key as parameter to JWT helper
|
|
242
|
-
|
|
243
|
-
## [0.0.2] - 2020-07-30
|
|
244
|
-
### Added
|
|
245
|
-
- Added API loader
|
|
246
|
-
- Exported Apolitical JWT function
|
|
247
|
-
|
|
248
|
-
## [0.0.1] - 2020-07-30
|
|
249
|
-
### Added
|
|
250
|
-
- Initial setup
|