@feathersjs/configuration 5.0.0-pre.6 → 5.0.0
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/CHANGELOG.md +153 -175
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/lib/index.d.ts +2 -1
- package/lib/index.js +16 -4
- package/lib/index.js.map +1 -1
- package/package.json +18 -16
- package/src/index.ts +30 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,432 +3,395 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [5.0.0
|
|
6
|
+
# [5.0.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.38...v5.0.0) (2023-02-24)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
9
9
|
|
|
10
|
+
# [5.0.0-pre.38](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.37...v5.0.0-pre.38) (2023-02-17)
|
|
10
11
|
|
|
12
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
11
13
|
|
|
14
|
+
# [5.0.0-pre.37](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.36...v5.0.0-pre.37) (2023-02-09)
|
|
12
15
|
|
|
16
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
13
17
|
|
|
14
|
-
# [5.0.0-pre.
|
|
15
|
-
|
|
18
|
+
# [5.0.0-pre.36](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.35...v5.0.0-pre.36) (2023-01-29)
|
|
16
19
|
|
|
17
20
|
### Bug Fixes
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
- Update all dependencies ([#3024](https://github.com/feathersjs/feathers/issues/3024)) ([283dc47](https://github.com/feathersjs/feathers/commit/283dc4798d85584bc031e6e54b83b4ea77d1edd0))
|
|
21
23
|
|
|
24
|
+
# [5.0.0-pre.35](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.34...v5.0.0-pre.35) (2023-01-12)
|
|
22
25
|
|
|
26
|
+
### Features
|
|
23
27
|
|
|
28
|
+
- **generators:** Move core code generators to shared generators package ([#2982](https://github.com/feathersjs/feathers/issues/2982)) ([0328d22](https://github.com/feathersjs/feathers/commit/0328d2292153870bc43958f73d2c6f288a8cec17))
|
|
24
29
|
|
|
25
|
-
# [5.0.0-pre.
|
|
30
|
+
# [5.0.0-pre.34](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.33...v5.0.0-pre.34) (2022-12-14)
|
|
26
31
|
|
|
27
32
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
28
33
|
|
|
34
|
+
# [5.0.0-pre.33](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.32...v5.0.0-pre.33) (2022-11-08)
|
|
29
35
|
|
|
36
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
30
37
|
|
|
38
|
+
# [5.0.0-pre.32](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.31...v5.0.0-pre.32) (2022-10-26)
|
|
31
39
|
|
|
40
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
32
41
|
|
|
33
|
-
# [5.0.0-pre.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Bug Fixes
|
|
42
|
+
# [5.0.0-pre.31](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.30...v5.0.0-pre.31) (2022-10-12)
|
|
37
43
|
|
|
38
|
-
|
|
44
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
39
45
|
|
|
46
|
+
# [5.0.0-pre.30](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.29...v5.0.0-pre.30) (2022-10-07)
|
|
40
47
|
|
|
41
48
|
### Features
|
|
42
49
|
|
|
43
|
-
|
|
50
|
+
- **core:** Allow to unregister services at runtime ([#2756](https://github.com/feathersjs/feathers/issues/2756)) ([d16601f](https://github.com/feathersjs/feathers/commit/d16601f2277dca5357866ffdefba2a611f6dc7fa))
|
|
51
|
+
- **schema:** Make schemas validation library independent and add TypeBox support ([#2772](https://github.com/feathersjs/feathers/issues/2772)) ([44172d9](https://github.com/feathersjs/feathers/commit/44172d99b566d11d9ceda04f1d0bf72b6d05ce76))
|
|
44
52
|
|
|
53
|
+
# [5.0.0-pre.29](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.28...v5.0.0-pre.29) (2022-09-16)
|
|
45
54
|
|
|
55
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
56
|
+
|
|
57
|
+
# [5.0.0-pre.28](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.27...v5.0.0-pre.28) (2022-08-03)
|
|
46
58
|
|
|
59
|
+
### Bug Fixes
|
|
47
60
|
|
|
61
|
+
- **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
|
|
48
62
|
|
|
49
|
-
# [5.0.0-pre.
|
|
63
|
+
# [5.0.0-pre.27](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.26...v5.0.0-pre.27) (2022-07-13)
|
|
50
64
|
|
|
51
65
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
52
66
|
|
|
67
|
+
# [5.0.0-pre.26](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.25...v5.0.0-pre.26) (2022-06-22)
|
|
53
68
|
|
|
69
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
54
70
|
|
|
71
|
+
# [5.0.0-pre.25](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.24...v5.0.0-pre.25) (2022-06-22)
|
|
55
72
|
|
|
73
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
56
74
|
|
|
57
|
-
# [5.0.0-
|
|
75
|
+
# [5.0.0-pre.24](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.23...v5.0.0-pre.24) (2022-06-21)
|
|
58
76
|
|
|
59
77
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
60
78
|
|
|
79
|
+
# [5.0.0-pre.23](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.22...v5.0.0-pre.23) (2022-06-06)
|
|
61
80
|
|
|
81
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
62
82
|
|
|
83
|
+
# [5.0.0-pre.22](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.21...v5.0.0-pre.22) (2022-05-24)
|
|
63
84
|
|
|
85
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
64
86
|
|
|
65
|
-
# [5.0.0-
|
|
87
|
+
# [5.0.0-pre.21](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.20...v5.0.0-pre.21) (2022-05-23)
|
|
66
88
|
|
|
89
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
90
|
+
|
|
91
|
+
# [5.0.0-pre.20](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.19...v5.0.0-pre.20) (2022-05-04)
|
|
67
92
|
|
|
68
93
|
### Bug Fixes
|
|
69
94
|
|
|
70
|
-
|
|
95
|
+
- **configuration:** Only validate the initial configuration against the schema ([#2622](https://github.com/feathersjs/feathers/issues/2622)) ([386c5e2](https://github.com/feathersjs/feathers/commit/386c5e2e67bfad4fb4333f2e3e17f7d7e09ac27e))
|
|
96
|
+
- **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
|
|
71
97
|
|
|
98
|
+
# [5.0.0-pre.19](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.18...v5.0.0-pre.19) (2022-05-01)
|
|
72
99
|
|
|
73
|
-
|
|
100
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
74
101
|
|
|
75
|
-
|
|
102
|
+
# [5.0.0-pre.18](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.17...v5.0.0-pre.18) (2022-04-11)
|
|
76
103
|
|
|
104
|
+
### Features
|
|
77
105
|
|
|
106
|
+
- **configuration:** Allow app configuration to be validated against a schema ([#2590](https://github.com/feathersjs/feathers/issues/2590)) ([a268f86](https://github.com/feathersjs/feathers/commit/a268f86da92a8ada14ed11ab456aac0a4bba5bb0))
|
|
78
107
|
|
|
108
|
+
# [5.0.0-pre.17](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.16...v5.0.0-pre.17) (2022-02-15)
|
|
79
109
|
|
|
110
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
80
111
|
|
|
81
|
-
# [5.0.0-pre.
|
|
112
|
+
# [5.0.0-pre.16](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.15...v5.0.0-pre.16) (2022-01-12)
|
|
82
113
|
|
|
114
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
83
115
|
|
|
116
|
+
# [5.0.0-pre.15](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.14...v5.0.0-pre.15) (2021-11-27)
|
|
84
117
|
|
|
85
|
-
|
|
118
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
86
119
|
|
|
120
|
+
# [5.0.0-pre.14](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.13...v5.0.0-pre.14) (2021-10-13)
|
|
87
121
|
|
|
88
|
-
|
|
122
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
89
123
|
|
|
90
|
-
|
|
124
|
+
# [5.0.0-pre.13](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.12...v5.0.0-pre.13) (2021-10-13)
|
|
91
125
|
|
|
126
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
92
127
|
|
|
93
|
-
|
|
128
|
+
# [5.0.0-pre.12](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.11...v5.0.0-pre.12) (2021-10-12)
|
|
94
129
|
|
|
95
|
-
|
|
96
|
-
functionality like path replacements and automatic environment variable insertion.
|
|
130
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
97
131
|
|
|
132
|
+
# [5.0.0-pre.11](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.10...v5.0.0-pre.11) (2021-10-06)
|
|
98
133
|
|
|
134
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
99
135
|
|
|
136
|
+
# [5.0.0-pre.10](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.9...v5.0.0-pre.10) (2021-09-19)
|
|
100
137
|
|
|
138
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
101
139
|
|
|
102
|
-
# [5.0.0-pre.
|
|
140
|
+
# [5.0.0-pre.9](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.8...v5.0.0-pre.9) (2021-08-09)
|
|
103
141
|
|
|
142
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
104
143
|
|
|
105
|
-
|
|
144
|
+
# [5.0.0-pre.8](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.7...v5.0.0-pre.8) (2021-08-09)
|
|
106
145
|
|
|
107
|
-
|
|
146
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
108
147
|
|
|
148
|
+
# [5.0.0-pre.7](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.6...v5.0.0-pre.7) (2021-08-09)
|
|
109
149
|
|
|
110
|
-
|
|
150
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
111
151
|
|
|
112
|
-
|
|
113
|
-
functionality like path replacements and automatic environment variable insertion.
|
|
152
|
+
# [5.0.0-pre.6](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.5...v5.0.0-pre.6) (2021-08-08)
|
|
114
153
|
|
|
154
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
115
155
|
|
|
156
|
+
# [5.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.4...v5.0.0-pre.5) (2021-06-23)
|
|
116
157
|
|
|
158
|
+
### Bug Fixes
|
|
117
159
|
|
|
118
|
-
|
|
160
|
+
- **koa:** Use extended query parser for compatibility ([#2397](https://github.com/feathersjs/feathers/issues/2397)) ([b2944ba](https://github.com/feathersjs/feathers/commit/b2944bac3ec6d5ecc80dc518cd4e58093692db74))
|
|
119
161
|
|
|
162
|
+
# [5.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.3...v5.0.0-pre.4) (2021-05-13)
|
|
120
163
|
|
|
121
|
-
|
|
164
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
122
165
|
|
|
123
|
-
|
|
166
|
+
# [5.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.2...v5.0.0-pre.3) (2021-04-21)
|
|
124
167
|
|
|
168
|
+
### Bug Fixes
|
|
125
169
|
|
|
170
|
+
- **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
|
|
126
171
|
|
|
172
|
+
### Features
|
|
127
173
|
|
|
174
|
+
- **dependencies:** Remove direct debug dependency ([#2296](https://github.com/feathersjs/feathers/issues/2296)) ([501d416](https://github.com/feathersjs/feathers/commit/501d4164d30c6a126906dc640cdfdc82207ba34a))
|
|
128
175
|
|
|
129
|
-
|
|
176
|
+
# [5.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.1...v5.0.0-pre.2) (2021-04-06)
|
|
130
177
|
|
|
131
178
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
132
179
|
|
|
180
|
+
# [5.0.0-beta.1](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-04-03)
|
|
133
181
|
|
|
182
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
134
183
|
|
|
184
|
+
# [5.0.0-beta.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.1...v5.0.0-beta.0) (2021-03-28)
|
|
135
185
|
|
|
186
|
+
### Bug Fixes
|
|
136
187
|
|
|
137
|
-
|
|
188
|
+
- Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
|
|
138
189
|
|
|
139
|
-
|
|
190
|
+
### Features
|
|
140
191
|
|
|
192
|
+
- Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
|
|
141
193
|
|
|
194
|
+
# [5.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)
|
|
142
195
|
|
|
196
|
+
# [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
|
|
143
197
|
|
|
198
|
+
### chore
|
|
144
199
|
|
|
145
|
-
|
|
200
|
+
- **configuration:** Remove environment variable substitution ([#1942](https://github.com/feathersjs/feathers/issues/1942)) ([caaa21f](https://github.com/feathersjs/feathers/commit/caaa21ffdc6a8dcac82fb403c91d9d4b781a6c0a))
|
|
146
201
|
|
|
147
|
-
|
|
202
|
+
### BREAKING CHANGES
|
|
148
203
|
|
|
204
|
+
- **configuration:** Falls back to node-config instead of adding additional
|
|
205
|
+
functionality like path replacements and automatic environment variable insertion.
|
|
149
206
|
|
|
207
|
+
# [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
|
|
150
208
|
|
|
209
|
+
### chore
|
|
151
210
|
|
|
211
|
+
- **configuration:** Remove environment variable substitution ([#1942](https://github.com/feathersjs/feathers/issues/1942)) ([caaa21f](https://github.com/feathersjs/feathers/commit/caaa21ffdc6a8dcac82fb403c91d9d4b781a6c0a))
|
|
152
212
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
**Note:** Version bump only for package @feathersjs/configuration
|
|
213
|
+
### BREAKING CHANGES
|
|
156
214
|
|
|
215
|
+
- **configuration:** Falls back to node-config instead of adding additional
|
|
216
|
+
functionality like path replacements and automatic environment variable insertion.
|
|
157
217
|
|
|
218
|
+
## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
|
|
158
219
|
|
|
220
|
+
### Bug Fixes
|
|
159
221
|
|
|
222
|
+
- **configuration:** Fix handling of config values that start with . or .. but are not actually relative paths; e.g. ".foo" or "..bar" ([#2065](https://github.com/feathersjs/feathers/issues/2065)) ([d07bf59](https://github.com/feathersjs/feathers/commit/d07bf5902e9c8c606f16b9523472972d3d2e9b49))
|
|
160
223
|
|
|
161
|
-
## [4.5.
|
|
224
|
+
## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
|
|
162
225
|
|
|
163
226
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
164
227
|
|
|
228
|
+
## [4.5.7](https://github.com/feathersjs/feathers/compare/v4.5.6...v4.5.7) (2020-07-24)
|
|
165
229
|
|
|
230
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
166
231
|
|
|
232
|
+
## [4.5.5](https://github.com/feathersjs/feathers/compare/v4.5.4...v4.5.5) (2020-07-11)
|
|
167
233
|
|
|
234
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
168
235
|
|
|
169
|
-
## [4.5.
|
|
236
|
+
## [4.5.3](https://github.com/feathersjs/feathers/compare/v4.5.2...v4.5.3) (2020-04-17)
|
|
170
237
|
|
|
171
238
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
172
239
|
|
|
240
|
+
## [4.5.2](https://github.com/feathersjs/feathers/compare/v4.5.1...v4.5.2) (2020-03-04)
|
|
173
241
|
|
|
242
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
174
243
|
|
|
244
|
+
## [4.5.1](https://github.com/feathersjs/feathers/compare/v4.5.0...v4.5.1) (2020-01-24)
|
|
175
245
|
|
|
246
|
+
**Note:** Version bump only for package @feathersjs/configuration
|
|
176
247
|
|
|
177
248
|
# [4.5.0](https://github.com/feathersjs/feathers/compare/v4.4.3...v4.5.0) (2020-01-18)
|
|
178
249
|
|
|
179
250
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
180
251
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
252
|
## [4.4.3](https://github.com/feathersjs/feathers/compare/v4.4.1...v4.4.3) (2019-12-06)
|
|
186
253
|
|
|
187
254
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
188
255
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
256
|
## [4.4.1](https://github.com/feathersjs/feathers/compare/v4.4.0...v4.4.1) (2019-11-27)
|
|
194
257
|
|
|
195
258
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
196
259
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
260
|
# [4.4.0](https://github.com/feathersjs/feathers/compare/v4.3.11...v4.4.0) (2019-11-27)
|
|
202
261
|
|
|
203
262
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
204
263
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
264
|
## [4.3.11](https://github.com/feathersjs/feathers/compare/v4.3.10...v4.3.11) (2019-11-11)
|
|
210
265
|
|
|
211
266
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
212
267
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
268
|
## [4.3.10](https://github.com/feathersjs/feathers/compare/v4.3.9...v4.3.10) (2019-10-26)
|
|
218
269
|
|
|
219
270
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
220
271
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
272
|
## [4.3.9](https://github.com/feathersjs/feathers/compare/v4.3.8...v4.3.9) (2019-10-26)
|
|
226
273
|
|
|
227
274
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
228
275
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
276
|
## [4.3.7](https://github.com/feathersjs/feathers/compare/v4.3.6...v4.3.7) (2019-10-14)
|
|
234
277
|
|
|
235
278
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
236
279
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
280
|
## [4.3.4](https://github.com/feathersjs/feathers/compare/v4.3.3...v4.3.4) (2019-10-03)
|
|
242
281
|
|
|
243
282
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
244
283
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
284
|
## [4.3.3](https://github.com/feathersjs/feathers/compare/v4.3.2...v4.3.3) (2019-09-21)
|
|
250
285
|
|
|
251
|
-
|
|
252
286
|
### Bug Fixes
|
|
253
287
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
288
|
+
- Small improvements in dependencies and code sturcture ([#1562](https://github.com/feathersjs/feathers/issues/1562)) ([42c13e2](https://github.com/feathersjs/feathers/commit/42c13e2))
|
|
259
289
|
|
|
260
290
|
## [4.3.2](https://github.com/feathersjs/feathers/compare/v4.3.1...v4.3.2) (2019-09-16)
|
|
261
291
|
|
|
262
292
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
263
293
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
294
|
## [4.3.1](https://github.com/feathersjs/feathers/compare/v4.3.0...v4.3.1) (2019-09-09)
|
|
269
295
|
|
|
270
296
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
271
297
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
298
|
# [4.3.0](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.4...v4.3.0) (2019-08-27)
|
|
277
299
|
|
|
278
300
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
279
301
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
302
|
# [4.3.0-pre.4](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.3...v4.3.0-pre.4) (2019-08-22)
|
|
285
303
|
|
|
286
304
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
287
305
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
306
|
# [4.3.0-pre.3](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.2...v4.3.0-pre.3) (2019-08-19)
|
|
293
307
|
|
|
294
|
-
|
|
295
308
|
### Bug Fixes
|
|
296
309
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
310
|
+
- Update all dependencies ([7d53a00](https://github.com/feathersjs/feathers/commit/7d53a00))
|
|
302
311
|
|
|
303
312
|
# [4.3.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.1...v4.3.0-pre.2) (2019-08-02)
|
|
304
313
|
|
|
305
314
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
306
315
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
316
|
# [4.3.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.5...v4.3.0-pre.1) (2019-07-11)
|
|
312
317
|
|
|
313
318
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
314
319
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
320
|
# [4.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.4...v4.0.0-pre.5) (2019-07-10)
|
|
320
321
|
|
|
321
322
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
322
323
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
324
|
# [4.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.3...v4.0.0-pre.4) (2019-07-05)
|
|
328
325
|
|
|
329
326
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
330
327
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
328
|
# [4.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.2...v4.0.0-pre.3) (2019-06-01)
|
|
336
329
|
|
|
337
|
-
|
|
338
330
|
### Bug Fixes
|
|
339
331
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
332
|
+
- Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7f))
|
|
345
333
|
|
|
346
334
|
# [4.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.1...v4.0.0-pre.2) (2019-05-15)
|
|
347
335
|
|
|
348
336
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
349
337
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
338
|
# [4.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.0...v4.0.0-pre.1) (2019-05-08)
|
|
355
339
|
|
|
356
340
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
357
341
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
342
|
# [4.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v3.2.0-pre.1...v4.0.0-pre.0) (2019-04-21)
|
|
363
343
|
|
|
364
|
-
|
|
365
344
|
### Bug Fixes
|
|
366
345
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
346
|
+
- Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f6))
|
|
347
|
+
- **package:** update config to version 3.0.0 ([#1100](https://github.com/feathersjs/feathers/issues/1100)) ([c9f4b42](https://github.com/feathersjs/feathers/commit/c9f4b42))
|
|
348
|
+
- Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
|
|
349
|
+
- **package:** update debug to version 3.0.0 ([#45](https://github.com/feathersjs/feathers/issues/45)) ([2391434](https://github.com/feathersjs/feathers/commit/2391434))
|
|
350
|
+
- **package:** update debug to version 3.0.1 ([#46](https://github.com/feathersjs/feathers/issues/46)) ([f8ada69](https://github.com/feathersjs/feathers/commit/f8ada69))
|
|
373
351
|
|
|
374
352
|
### Features
|
|
375
353
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
354
|
+
- Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd6713))
|
|
381
355
|
|
|
382
356
|
## [2.0.6](https://github.com/feathersjs/feathers/compare/@feathersjs/configuration@2.0.5...@feathersjs/configuration@2.0.6) (2019-01-02)
|
|
383
357
|
|
|
384
358
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
385
359
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
360
|
<a name="2.0.5"></a>
|
|
391
|
-
## [2.0.5](https://github.com/feathersjs/feathers/compare/@feathersjs/configuration@2.0.4...@feathersjs/configuration@2.0.5) (2018-12-16)
|
|
392
361
|
|
|
362
|
+
## [2.0.5](https://github.com/feathersjs/feathers/compare/@feathersjs/configuration@2.0.4...@feathersjs/configuration@2.0.5) (2018-12-16)
|
|
393
363
|
|
|
394
364
|
### Bug Fixes
|
|
395
365
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
366
|
+
- Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
|
|
367
|
+
- **package:** update config to version 3.0.0 ([#1100](https://github.com/feathersjs/feathers/issues/1100)) ([c9f4b42](https://github.com/feathersjs/feathers/commit/c9f4b42))
|
|
402
368
|
|
|
403
369
|
<a name="2.0.4"></a>
|
|
370
|
+
|
|
404
371
|
## [2.0.4](https://github.com/feathersjs/feathers/compare/@feathersjs/configuration@2.0.3...@feathersjs/configuration@2.0.4) (2018-09-21)
|
|
405
372
|
|
|
406
373
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
407
374
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
375
|
<a name="2.0.3"></a>
|
|
376
|
+
|
|
413
377
|
## [2.0.3](https://github.com/feathersjs/feathers/compare/@feathersjs/configuration@2.0.2...@feathersjs/configuration@2.0.3) (2018-09-17)
|
|
414
378
|
|
|
415
379
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
416
380
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
381
|
<a name="2.0.2"></a>
|
|
382
|
+
|
|
422
383
|
## [2.0.2](https://github.com/feathersjs/feathers/compare/@feathersjs/configuration@2.0.1...@feathersjs/configuration@2.0.2) (2018-09-02)
|
|
423
384
|
|
|
424
385
|
**Note:** Version bump only for package @feathersjs/configuration
|
|
425
386
|
|
|
426
387
|
<a name="2.0.1"></a>
|
|
388
|
+
|
|
427
389
|
## 2.0.1
|
|
428
390
|
|
|
429
391
|
- Migrate to Monorepo ([feathers#462](https://github.com/feathersjs/feathers/issues/462))
|
|
430
392
|
|
|
431
393
|
## [v2.0.0](https://github.com/feathersjs/configuration/tree/v2.0.0) (2018-07-30)
|
|
394
|
+
|
|
432
395
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v1.0.2...v2.0.0)
|
|
433
396
|
|
|
434
397
|
**Closed issues:**
|
|
@@ -443,13 +406,15 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
443
406
|
- Update mocha to the latest version 🚀 [\#56](https://github.com/feathersjs/configuration/pull/56) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
|
|
444
407
|
|
|
445
408
|
## [v1.0.2](https://github.com/feathersjs/configuration/tree/v1.0.2) (2018-01-02)
|
|
409
|
+
|
|
446
410
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v1.0.1...v1.0.2)
|
|
447
411
|
|
|
448
412
|
**Merged pull requests:**
|
|
449
413
|
|
|
450
|
-
-
|
|
414
|
+
- Remove example and update Readme to point directly to the Feathers docs [\#55](https://github.com/feathersjs/configuration/pull/55) ([daffl](https://github.com/daffl))
|
|
451
415
|
|
|
452
416
|
## [v1.0.1](https://github.com/feathersjs/configuration/tree/v1.0.1) (2017-11-16)
|
|
417
|
+
|
|
453
418
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v1.0.0...v1.0.1)
|
|
454
419
|
|
|
455
420
|
**Merged pull requests:**
|
|
@@ -458,9 +423,11 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
458
423
|
- Update nsp to the latest version 🚀 [\#52](https://github.com/feathersjs/configuration/pull/52) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
|
|
459
424
|
|
|
460
425
|
## [v1.0.0](https://github.com/feathersjs/configuration/tree/v1.0.0) (2017-11-01)
|
|
426
|
+
|
|
461
427
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v1.0.0-pre.1...v1.0.0)
|
|
462
428
|
|
|
463
429
|
## [v1.0.0-pre.1](https://github.com/feathersjs/configuration/tree/v1.0.0-pre.1) (2017-10-23)
|
|
430
|
+
|
|
464
431
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.4.2...v1.0.0-pre.1)
|
|
465
432
|
|
|
466
433
|
**Closed issues:**
|
|
@@ -472,6 +439,7 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
472
439
|
- Update to new plugin infrastructure and npm scopes [\#51](https://github.com/feathersjs/configuration/pull/51) ([daffl](https://github.com/daffl))
|
|
473
440
|
|
|
474
441
|
## [v0.4.2](https://github.com/feathersjs/configuration/tree/v0.4.2) (2017-10-15)
|
|
442
|
+
|
|
475
443
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.4.1...v0.4.2)
|
|
476
444
|
|
|
477
445
|
**Closed issues:**
|
|
@@ -483,7 +451,7 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
483
451
|
- Nested configuration [\#38](https://github.com/feathersjs/configuration/issues/38)
|
|
484
452
|
- Stuck in configuration loophole... [\#37](https://github.com/feathersjs/configuration/issues/37)
|
|
485
453
|
- Docs are wrong [\#36](https://github.com/feathersjs/configuration/issues/36)
|
|
486
|
-
- Why use "
|
|
454
|
+
- Why use "NODE_ENV=development" with default.json? [\#33](https://github.com/feathersjs/configuration/issues/33)
|
|
487
455
|
|
|
488
456
|
**Merged pull requests:**
|
|
489
457
|
|
|
@@ -499,6 +467,7 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
499
467
|
- 👻😱 Node.js 0.10 is unmaintained 😱👻 [\#30](https://github.com/feathersjs/configuration/pull/30) ([greenkeeperio-bot](https://github.com/greenkeeperio-bot))
|
|
500
468
|
|
|
501
469
|
## [v0.4.1](https://github.com/feathersjs/configuration/tree/v0.4.1) (2016-10-24)
|
|
470
|
+
|
|
502
471
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.4.0...v0.4.1)
|
|
503
472
|
|
|
504
473
|
**Closed issues:**
|
|
@@ -511,6 +480,7 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
511
480
|
- jshint —\> semistandard [\#28](https://github.com/feathersjs/configuration/pull/28) ([corymsmith](https://github.com/corymsmith))
|
|
512
481
|
|
|
513
482
|
## [v0.4.0](https://github.com/feathersjs/configuration/tree/v0.4.0) (2016-10-22)
|
|
483
|
+
|
|
514
484
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.3.3...v0.4.0)
|
|
515
485
|
|
|
516
486
|
**Implemented enhancements:**
|
|
@@ -523,9 +493,11 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
523
493
|
- Make this repo more about managing configuration [\#24](https://github.com/feathersjs/configuration/issues/24)
|
|
524
494
|
|
|
525
495
|
## [v0.3.3](https://github.com/feathersjs/configuration/tree/v0.3.3) (2016-09-12)
|
|
496
|
+
|
|
526
497
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.3.2...v0.3.3)
|
|
527
498
|
|
|
528
499
|
## [v0.3.2](https://github.com/feathersjs/configuration/tree/v0.3.2) (2016-09-12)
|
|
500
|
+
|
|
529
501
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.3.1...v0.3.2)
|
|
530
502
|
|
|
531
503
|
**Closed issues:**
|
|
@@ -537,6 +509,7 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
537
509
|
- Remove check for development mode [\#21](https://github.com/feathersjs/configuration/pull/21) ([daffl](https://github.com/daffl))
|
|
538
510
|
|
|
539
511
|
## [v0.3.1](https://github.com/feathersjs/configuration/tree/v0.3.1) (2016-08-15)
|
|
512
|
+
|
|
540
513
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.3.0...v0.3.1)
|
|
541
514
|
|
|
542
515
|
**Merged pull requests:**
|
|
@@ -545,17 +518,19 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
545
518
|
- Update mocha to version 3.0.0 🚀 [\#18](https://github.com/feathersjs/configuration/pull/18) ([greenkeeperio-bot](https://github.com/greenkeeperio-bot))
|
|
546
519
|
|
|
547
520
|
## [v0.3.0](https://github.com/feathersjs/configuration/tree/v0.3.0) (2016-05-22)
|
|
521
|
+
|
|
548
522
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.2.3...v0.3.0)
|
|
549
523
|
|
|
550
524
|
**Closed issues:**
|
|
551
525
|
|
|
552
|
-
- \<
|
|
526
|
+
- \<NODE_ENV\>.json config need deep merge options [\#16](https://github.com/feathersjs/configuration/issues/16)
|
|
553
527
|
|
|
554
528
|
**Merged pull requests:**
|
|
555
529
|
|
|
556
530
|
- Add functionality for deeply extending configuration [\#17](https://github.com/feathersjs/configuration/pull/17) ([daffl](https://github.com/daffl))
|
|
557
531
|
|
|
558
532
|
## [v0.2.3](https://github.com/feathersjs/configuration/tree/v0.2.3) (2016-04-24)
|
|
533
|
+
|
|
559
534
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.2.2...v0.2.3)
|
|
560
535
|
|
|
561
536
|
**Closed issues:**
|
|
@@ -568,6 +543,7 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
568
543
|
- Update all dependencies 🌴 [\#10](https://github.com/feathersjs/configuration/pull/10) ([greenkeeperio-bot](https://github.com/greenkeeperio-bot))
|
|
569
544
|
|
|
570
545
|
## [v0.2.2](https://github.com/feathersjs/configuration/tree/v0.2.2) (2016-03-27)
|
|
546
|
+
|
|
571
547
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.2.1...v0.2.2)
|
|
572
548
|
|
|
573
549
|
**Merged pull requests:**
|
|
@@ -575,6 +551,7 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
575
551
|
- Expanding environment variables in \<env\>.json [\#9](https://github.com/feathersjs/configuration/pull/9) ([derek-watson](https://github.com/derek-watson))
|
|
576
552
|
|
|
577
553
|
## [v0.2.1](https://github.com/feathersjs/configuration/tree/v0.2.1) (2016-03-12)
|
|
554
|
+
|
|
578
555
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.2.0...v0.2.1)
|
|
579
556
|
|
|
580
557
|
**Merged pull requests:**
|
|
@@ -582,6 +559,7 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
582
559
|
- Makes sure that arrays get converted properly [\#7](https://github.com/feathersjs/configuration/pull/7) ([daffl](https://github.com/daffl))
|
|
583
560
|
|
|
584
561
|
## [v0.2.0](https://github.com/feathersjs/configuration/tree/v0.2.0) (2016-03-09)
|
|
562
|
+
|
|
585
563
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.1.1...v0.2.0)
|
|
586
564
|
|
|
587
565
|
**Closed issues:**
|
|
@@ -593,11 +571,12 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
593
571
|
- Implement an escape character [\#6](https://github.com/feathersjs/configuration/pull/6) ([daffl](https://github.com/daffl))
|
|
594
572
|
|
|
595
573
|
## [v0.1.1](https://github.com/feathersjs/configuration/tree/v0.1.1) (2016-03-09)
|
|
574
|
+
|
|
596
575
|
[Full Changelog](https://github.com/feathersjs/configuration/compare/v0.1.0...v0.1.1)
|
|
597
576
|
|
|
598
577
|
**Closed issues:**
|
|
599
578
|
|
|
600
|
-
- Configuration should recursively go through the values
|
|
579
|
+
- Configuration should recursively go through the values [\#2](https://github.com/feathersjs/configuration/issues/2)
|
|
601
580
|
|
|
602
581
|
**Merged pull requests:**
|
|
603
582
|
|
|
@@ -607,5 +586,4 @@ functionality like path replacements and automatic environment variable insertio
|
|
|
607
586
|
|
|
608
587
|
## [v0.1.0](https://github.com/feathersjs/configuration/tree/v0.1.0) (2015-11-14)
|
|
609
588
|
|
|
610
|
-
|
|
611
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
|
589
|
+
\* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @feathersjs/configuration
|
|
2
2
|
|
|
3
3
|
[](https://github.com/feathersjs/feathers/actions?query=workflow%3ACI)
|
|
4
|
-
[](https://david-dm.org/feathersjs/feathers?path=packages/configuration)
|
|
5
4
|
[](https://www.npmjs.com/package/@feathersjs/configuration)
|
|
5
|
+
[](https://discord.gg/qa8kez8QBx)
|
|
6
6
|
|
|
7
7
|
> A small configuration module for your Feathers application.
|
|
8
8
|
|
|
@@ -18,6 +18,6 @@ Refer to the [Feathers configuration API documentation](https://docs.feathersjs.
|
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
20
|
|
|
21
|
-
Copyright (c)
|
|
21
|
+
Copyright (c) 2023 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
|
|
22
22
|
|
|
23
23
|
Licensed under the [MIT license](LICENSE).
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Application } from '@feathersjs/feathers';
|
|
2
|
+
import { Schema, Validator } from '@feathersjs/schema';
|
|
2
3
|
import config from 'config';
|
|
3
|
-
declare const _default: () => (app?: Application) => config.IConfig;
|
|
4
|
+
declare const _default: (schema?: Schema<any> | Validator) => (app?: Application) => config.IConfig;
|
|
4
5
|
export = _default;
|
package/lib/index.js
CHANGED
|
@@ -4,18 +4,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
const commons_1 = require("@feathersjs/commons");
|
|
6
6
|
const config_1 = __importDefault(require("config"));
|
|
7
|
-
const debug = commons_1.createDebug('@feathersjs/configuration');
|
|
8
|
-
module.exports = function init() {
|
|
7
|
+
const debug = (0, commons_1.createDebug)('@feathersjs/configuration');
|
|
8
|
+
module.exports = function init(schema) {
|
|
9
|
+
const validator = typeof schema === 'function' ? schema : schema === null || schema === void 0 ? void 0 : schema.validate.bind(schema);
|
|
9
10
|
return (app) => {
|
|
10
11
|
if (!app) {
|
|
11
12
|
return config_1.default;
|
|
12
13
|
}
|
|
14
|
+
const configuration = { ...config_1.default };
|
|
13
15
|
debug(`Initializing configuration for ${config_1.default.util.getEnv('NODE_ENV')} environment`);
|
|
14
|
-
Object.keys(
|
|
15
|
-
const value =
|
|
16
|
+
Object.keys(configuration).forEach((name) => {
|
|
17
|
+
const value = configuration[name];
|
|
16
18
|
debug(`Setting ${name} configuration value to`, value);
|
|
17
19
|
app.set(name, value);
|
|
18
20
|
});
|
|
21
|
+
if (validator) {
|
|
22
|
+
app.hooks({
|
|
23
|
+
setup: [
|
|
24
|
+
async (_context, next) => {
|
|
25
|
+
await validator(configuration);
|
|
26
|
+
await next();
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
19
31
|
return config_1.default;
|
|
20
32
|
};
|
|
21
33
|
};
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACA,iDAAiD;AAEjD,oDAA2B;AAE3B,MAAM,KAAK,GAAG,IAAA,qBAAW,EAAC,2BAA2B,CAAC,CAAA;AAEtD,iBAAS,SAAS,IAAI,CAAC,MAAgC;IACrD,MAAM,SAAS,GAAc,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAElG,OAAO,CAAC,GAAiB,EAAE,EAAE;QAC3B,IAAI,CAAC,GAAG,EAAE;YACR,OAAO,gBAAM,CAAA;SACd;QAED,MAAM,aAAa,GAA+B,EAAE,GAAG,gBAAM,EAAE,CAAA;QAE/D,KAAK,CAAC,kCAAkC,gBAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;QAErF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC1C,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,CAAA;YACjC,KAAK,CAAC,WAAW,IAAI,yBAAyB,EAAE,KAAK,CAAC,CAAA;YACtD,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QACtB,CAAC,CAAC,CAAA;QAEF,IAAI,SAAS,EAAE;YACb,GAAG,CAAC,KAAK,CAAC;gBACR,KAAK,EAAE;oBACL,KAAK,EAAE,QAAgC,EAAE,IAAkB,EAAE,EAAE;wBAC7D,MAAM,SAAS,CAAC,aAAa,CAAC,CAAA;wBAC9B,MAAM,IAAI,EAAE,CAAA;oBACd,CAAC;iBACF;aACF,CAAC,CAAA;SACH;QAED,OAAO,gBAAM,CAAA;IACf,CAAC,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/configuration",
|
|
3
3
|
"description": "A small configuration module for your Feathers application.",
|
|
4
|
-
"version": "5.0.0
|
|
4
|
+
"version": "5.0.0",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/",
|
|
7
7
|
"types": "lib/",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git://github.com/feathersjs/feathers.git"
|
|
19
|
+
"url": "git://github.com/feathersjs/feathers.git",
|
|
20
|
+
"directory": "packages/configuration"
|
|
20
21
|
},
|
|
21
22
|
"author": {
|
|
22
23
|
"name": "Feathers contributors",
|
|
@@ -41,9 +42,9 @@
|
|
|
41
42
|
],
|
|
42
43
|
"scripts": {
|
|
43
44
|
"prepublish": "npm run compile",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
45
|
+
"pack": "npm pack --pack-destination ../generators/test/build",
|
|
46
|
+
"compile": "shx rm -rf lib/ && tsc && npm run pack",
|
|
47
|
+
"test": "NODE_CONFIG_DIR=./test/config mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
|
|
47
48
|
},
|
|
48
49
|
"semistandard": {
|
|
49
50
|
"env": [
|
|
@@ -57,18 +58,19 @@
|
|
|
57
58
|
"access": "public"
|
|
58
59
|
},
|
|
59
60
|
"dependencies": {
|
|
60
|
-
"@feathersjs/commons": "^5.0.0
|
|
61
|
-
"@feathersjs/feathers": "^5.0.0
|
|
62
|
-
"@
|
|
63
|
-
"config": "^3.3.
|
|
61
|
+
"@feathersjs/commons": "^5.0.0",
|
|
62
|
+
"@feathersjs/feathers": "^5.0.0",
|
|
63
|
+
"@feathersjs/schema": "^5.0.0",
|
|
64
|
+
"@types/config": "^3.3.0",
|
|
65
|
+
"config": "^3.3.9"
|
|
64
66
|
},
|
|
65
67
|
"devDependencies": {
|
|
66
|
-
"@types/mocha": "^
|
|
67
|
-
"@types/node": "^
|
|
68
|
-
"mocha": "^
|
|
69
|
-
"shx": "^0.3.
|
|
70
|
-
"ts-node": "^10.1
|
|
71
|
-
"typescript": "^4.
|
|
68
|
+
"@types/mocha": "^10.0.1",
|
|
69
|
+
"@types/node": "^18.14.1",
|
|
70
|
+
"mocha": "^10.2.0",
|
|
71
|
+
"shx": "^0.3.4",
|
|
72
|
+
"ts-node": "^10.9.1",
|
|
73
|
+
"typescript": "^4.9.5"
|
|
72
74
|
},
|
|
73
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
|
|
74
76
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
|
-
import { Application } from '@feathersjs/feathers'
|
|
2
|
-
import { createDebug } from '@feathersjs/commons'
|
|
3
|
-
import
|
|
1
|
+
import { Application, ApplicationHookContext, NextFunction } from '@feathersjs/feathers'
|
|
2
|
+
import { createDebug } from '@feathersjs/commons'
|
|
3
|
+
import { Schema, Validator } from '@feathersjs/schema'
|
|
4
|
+
import config from 'config'
|
|
4
5
|
|
|
5
|
-
const debug = createDebug('@feathersjs/configuration')
|
|
6
|
+
const debug = createDebug('@feathersjs/configuration')
|
|
7
|
+
|
|
8
|
+
export = function init(schema?: Schema<any> | Validator) {
|
|
9
|
+
const validator: Validator = typeof schema === 'function' ? schema : schema?.validate.bind(schema)
|
|
6
10
|
|
|
7
|
-
export = function init () {
|
|
8
11
|
return (app?: Application) => {
|
|
9
12
|
if (!app) {
|
|
10
|
-
return config
|
|
13
|
+
return config
|
|
11
14
|
}
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
const configuration: { [key: string]: unknown } = { ...config }
|
|
17
|
+
|
|
18
|
+
debug(`Initializing configuration for ${config.util.getEnv('NODE_ENV')} environment`)
|
|
14
19
|
|
|
15
|
-
Object.keys(
|
|
16
|
-
const value =
|
|
17
|
-
debug(`Setting ${name} configuration value to`, value)
|
|
18
|
-
app.set(name, value)
|
|
19
|
-
})
|
|
20
|
+
Object.keys(configuration).forEach((name) => {
|
|
21
|
+
const value = configuration[name]
|
|
22
|
+
debug(`Setting ${name} configuration value to`, value)
|
|
23
|
+
app.set(name, value)
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
if (validator) {
|
|
27
|
+
app.hooks({
|
|
28
|
+
setup: [
|
|
29
|
+
async (_context: ApplicationHookContext, next: NextFunction) => {
|
|
30
|
+
await validator(configuration)
|
|
31
|
+
await next()
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
}
|
|
20
36
|
|
|
21
|
-
return config
|
|
22
|
-
}
|
|
37
|
+
return config
|
|
38
|
+
}
|
|
23
39
|
}
|