@feathersjs/configuration 5.0.39 → 6.0.0-pre.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 +51 -0
- package/LICENSE +1 -2
- package/README.md +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.js +9 -13
- package/lib/index.js.map +1 -1
- package/package.json +9 -9
- package/src/index.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,57 @@
|
|
|
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
|
+
# 6.0.0-pre.0 (2026-01-31)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
|
|
11
|
+
- **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))
|
|
12
|
+
- **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))
|
|
13
|
+
- **core:** Update to latest feathersjs/hooks ([#3434](https://github.com/feathersjs/feathers/issues/3434)) ([1499ccc](https://github.com/feathersjs/feathers/commit/1499ccc41fb3ebba97b2c84e0cb19bc48ad3c651))
|
|
14
|
+
- **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
|
|
15
|
+
- **dependencies:** Update all dependencies ([#3139](https://github.com/feathersjs/feathers/issues/3139)) ([f24276e](https://github.com/feathersjs/feathers/commit/f24276e9a909e2e58a0730c730258ce1f70f4028))
|
|
16
|
+
- **dependencies:** Update all dependencies ([#3545](https://github.com/feathersjs/feathers/issues/3545)) ([221b92b](https://github.com/feathersjs/feathers/commit/221b92bb0ee5d54fb1036742968797cb02e56da2))
|
|
17
|
+
- **dependencies:** Update all dependencies ([#3625](https://github.com/feathersjs/feathers/issues/3625)) ([2698e4e](https://github.com/feathersjs/feathers/commit/2698e4e2996fbf479d82435938d907bc3d5b583a))
|
|
18
|
+
- **dependencies:** Update dependencies ([#3571](https://github.com/feathersjs/feathers/issues/3571)) ([ad611cb](https://github.com/feathersjs/feathers/commit/ad611cb6ffb1dc31d603ba5817331318c5a23217))
|
|
19
|
+
- **knex:** Update all dependencies and Knex peer ([#3308](https://github.com/feathersjs/feathers/issues/3308)) ([d2f9860](https://github.com/feathersjs/feathers/commit/d2f986036c4741cce2339d8abbcc6b2eb037a12a))
|
|
20
|
+
- **koa:** Use extended query parser for compatibility ([#2397](https://github.com/feathersjs/feathers/issues/2397)) ([b2944ba](https://github.com/feathersjs/feathers/commit/b2944bac3ec6d5ecc80dc518cd4e58093692db74))
|
|
21
|
+
- Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/99748032a6571a792883be31ec955a749629d0da))
|
|
22
|
+
- Make sure all Readme files are up to date ([#3154](https://github.com/feathersjs/feathers/issues/3154)) ([a5f0b38](https://github.com/feathersjs/feathers/commit/a5f0b38bbf2a11486415a39533bcc6c67fb51e3e))
|
|
23
|
+
- **package:** update config to version 3.0.0 ([#1100](https://github.com/feathersjs/feathers/issues/1100)) ([c9f4b42](https://github.com/feathersjs/feathers/commit/c9f4b42035a4aed59da98d63e4f02352a5d689b9))
|
|
24
|
+
- **package:** update debug to version 3.0.0 ([#45](https://github.com/feathersjs/feathers/issues/45)) ([2391434](https://github.com/feathersjs/feathers/commit/2391434dc576839f135bab989487502fd6d05676))
|
|
25
|
+
- **package:** update debug to version 3.0.1 ([#46](https://github.com/feathersjs/feathers/issues/46)) ([f8ada69](https://github.com/feathersjs/feathers/commit/f8ada69e21124a39f0b352e033fb622e1e84533f))
|
|
26
|
+
- Small improvements in dependencies and code sturcture ([#1562](https://github.com/feathersjs/feathers/issues/1562)) ([42c13e2](https://github.com/feathersjs/feathers/commit/42c13e220cac7dc0def1108616f763d5339d524c))
|
|
27
|
+
- **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
|
|
28
|
+
- Update all dependencies ([7d53a00](https://github.com/feathersjs/feathers/commit/7d53a00776f7301d9349e6d652656ee80b1cb556))
|
|
29
|
+
- Update all dependencies ([#3024](https://github.com/feathersjs/feathers/issues/3024)) ([283dc47](https://github.com/feathersjs/feathers/commit/283dc4798d85584bc031e6e54b83b4ea77d1edd0))
|
|
30
|
+
- Update all dependencies ([#3613](https://github.com/feathersjs/feathers/issues/3613)) ([5136bbd](https://github.com/feathersjs/feathers/commit/5136bbd2e2eeb4e6579e07c9e914006629542363))
|
|
31
|
+
- Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f62d0f338fb59bd0d39952d99c2904a0c3f))
|
|
32
|
+
- Update dependencies ([#3584](https://github.com/feathersjs/feathers/issues/3584)) ([119fa4e](https://github.com/feathersjs/feathers/commit/119fa4e1ade8b0078aa235083d566e2538b3a084))
|
|
33
|
+
- Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7ff7b0f9f94aa6fa8e29d0c816469c9b8ab))
|
|
34
|
+
- Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
|
|
35
|
+
|
|
36
|
+
### chore
|
|
37
|
+
|
|
38
|
+
- **configuration:** Remove environment variable substitution ([#1942](https://github.com/feathersjs/feathers/issues/1942)) ([caaa21f](https://github.com/feathersjs/feathers/commit/caaa21ffdc6a8dcac82fb403c91d9d4b781a6c0a))
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
- Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd671301ae0463968ade0f6eb0c82356adcc89d))
|
|
43
|
+
- **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))
|
|
44
|
+
- **core:** Allow to unregister services at runtime ([#2756](https://github.com/feathersjs/feathers/issues/2756)) ([d16601f](https://github.com/feathersjs/feathers/commit/d16601f2277dca5357866ffdefba2a611f6dc7fa))
|
|
45
|
+
- **dependencies:** Remove direct debug dependency ([#2296](https://github.com/feathersjs/feathers/issues/2296)) ([501d416](https://github.com/feathersjs/feathers/commit/501d4164d30c6a126906dc640cdfdc82207ba34a))
|
|
46
|
+
- ES module v5 compatibility layer for v6 ([#3607](https://github.com/feathersjs/feathers/issues/3607)) ([1dfff88](https://github.com/feathersjs/feathers/commit/1dfff8832eedca895eeaafd7f3acf0f8a27be23c))
|
|
47
|
+
- Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
|
|
48
|
+
- **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))
|
|
49
|
+
- **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))
|
|
50
|
+
|
|
51
|
+
### BREAKING CHANGES
|
|
52
|
+
|
|
53
|
+
- All packages are now ES modules only
|
|
54
|
+
- **configuration:** Falls back to node-config instead of adding additional
|
|
55
|
+
functionality like path replacements and automatic environment variable insertion.
|
|
56
|
+
|
|
6
57
|
## [5.0.39](https://github.com/feathersjs/feathers/compare/v5.0.38...v5.0.39) (2026-01-31)
|
|
7
58
|
|
|
8
59
|
**Note:** Version bump only for package @feathersjs/configuration
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 Feathers Contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|
package/README.md
CHANGED
|
@@ -18,6 +18,6 @@ Refer to the [Feathers configuration API documentation](https://feathersjs.com/a
|
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
20
|
|
|
21
|
-
Copyright (c)
|
|
21
|
+
Copyright (c) 2025 [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,5 +1,4 @@
|
|
|
1
|
-
import { Application } from '@feathersjs/feathers';
|
|
2
|
-
import { Schema, Validator } from '@feathersjs/schema';
|
|
1
|
+
import type { Application } from '@feathersjs/feathers';
|
|
2
|
+
import type { Schema, Validator } from '@feathersjs/schema';
|
|
3
3
|
import config from 'config';
|
|
4
|
-
|
|
5
|
-
export = _default;
|
|
4
|
+
export default function init(schema?: Schema<any> | Validator): (app?: Application) => config.IConfig;
|
package/lib/index.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const commons_1 = require("@feathersjs/commons");
|
|
6
|
-
const config_1 = __importDefault(require("config"));
|
|
7
|
-
const debug = (0, commons_1.createDebug)('@feathersjs/configuration');
|
|
8
|
-
module.exports = function init(schema) {
|
|
1
|
+
import { createDebug } from '@feathersjs/commons';
|
|
2
|
+
import config from 'config';
|
|
3
|
+
const debug = createDebug('@feathersjs/configuration');
|
|
4
|
+
export default function init(schema) {
|
|
9
5
|
const validator = typeof schema === 'function' ? schema : schema === null || schema === void 0 ? void 0 : schema.validate.bind(schema);
|
|
10
6
|
return (app) => {
|
|
11
7
|
if (!app) {
|
|
12
|
-
return
|
|
8
|
+
return config;
|
|
13
9
|
}
|
|
14
|
-
const configuration = { ...
|
|
15
|
-
debug(`Initializing configuration for ${
|
|
10
|
+
const configuration = { ...config };
|
|
11
|
+
debug(`Initializing configuration for ${process.env.NODE_ENV} environment`);
|
|
16
12
|
Object.keys(configuration).forEach((name) => {
|
|
17
13
|
const value = configuration[name];
|
|
18
14
|
debug(`Setting ${name} configuration value to`, value);
|
|
@@ -28,7 +24,7 @@ module.exports = function init(schema) {
|
|
|
28
24
|
]
|
|
29
25
|
});
|
|
30
26
|
}
|
|
31
|
-
return
|
|
27
|
+
return config;
|
|
32
28
|
};
|
|
33
|
-
}
|
|
29
|
+
}
|
|
34
30
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,MAAM,MAAM,QAAQ,CAAA;AAE3B,MAAM,KAAK,GAAG,WAAW,CAAC,2BAA2B,CAAC,CAAA;AAEtD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,MAAgC;IAC3D,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,CAAC;YACT,OAAO,MAAM,CAAA;QACf,CAAC;QAED,MAAM,aAAa,GAA+B,EAAE,GAAG,MAAM,EAAE,CAAA;QAE/D,KAAK,CAAC,kCAAkC,OAAO,CAAC,GAAG,CAAC,QAAQ,cAAc,CAAC,CAAA;QAE3E,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,CAAC;YACd,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;QACJ,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/configuration",
|
|
3
3
|
"description": "A small configuration module for your Feathers application.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0-pre.0",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
|
-
"main": "lib/",
|
|
7
|
-
"
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"type": "module",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"feathers",
|
|
10
10
|
"feathers-plugin"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"url": "https://github.com/feathersjs/feathers/issues"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
32
|
+
"node": ">= 20"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"CHANGELOG.md",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@feathersjs/commons": "^
|
|
62
|
-
"@feathersjs/feathers": "^
|
|
63
|
-
"@feathersjs/schema": "^
|
|
61
|
+
"@feathersjs/commons": "^6.0.0-pre.0",
|
|
62
|
+
"@feathersjs/feathers": "^6.0.0-pre.0",
|
|
63
|
+
"@feathersjs/schema": "^6.0.0-pre.0",
|
|
64
64
|
"@types/config": "^3.3.5",
|
|
65
|
-
"config": "
|
|
65
|
+
"config": "^4.2.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/mocha": "^10.0.10",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"ts-node": "^10.9.2",
|
|
73
73
|
"typescript": "^5.9.3"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "8fad4bb3d393794fb98fa5fe7cfc327661fedbd2"
|
|
76
76
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Application, ApplicationHookContext, NextFunction } from '@feathersjs/feathers'
|
|
1
|
+
import type { Application, ApplicationHookContext, NextFunction } from '@feathersjs/feathers'
|
|
2
2
|
import { createDebug } from '@feathersjs/commons'
|
|
3
|
-
import { Schema, Validator } from '@feathersjs/schema'
|
|
3
|
+
import type { Schema, Validator } from '@feathersjs/schema'
|
|
4
4
|
import config from 'config'
|
|
5
5
|
|
|
6
6
|
const debug = createDebug('@feathersjs/configuration')
|
|
7
7
|
|
|
8
|
-
export
|
|
8
|
+
export default function init(schema?: Schema<any> | Validator) {
|
|
9
9
|
const validator: Validator = typeof schema === 'function' ? schema : schema?.validate.bind(schema)
|
|
10
10
|
|
|
11
11
|
return (app?: Application) => {
|
|
@@ -15,7 +15,7 @@ export = function init(schema?: Schema<any> | Validator) {
|
|
|
15
15
|
|
|
16
16
|
const configuration: { [key: string]: unknown } = { ...config }
|
|
17
17
|
|
|
18
|
-
debug(`Initializing configuration for ${
|
|
18
|
+
debug(`Initializing configuration for ${process.env.NODE_ENV} environment`)
|
|
19
19
|
|
|
20
20
|
Object.keys(configuration).forEach((name) => {
|
|
21
21
|
const value = configuration[name]
|