@tsed/config 8.29.1 → 8.31.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/package.json +5 -5
- package/readme.md +11 -6
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/config",
|
|
3
3
|
"description": "Configuration management for Ts.ED",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.31.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Ts.ED",
|
|
8
8
|
"Configuration",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"tslib": ">=2.7.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@tsed/barrels": "8.
|
|
74
|
-
"@tsed/core": "8.
|
|
75
|
-
"@tsed/di": "8.
|
|
76
|
-
"@tsed/typescript": "8.
|
|
73
|
+
"@tsed/barrels": "8.31.0",
|
|
74
|
+
"@tsed/core": "8.31.0",
|
|
75
|
+
"@tsed/di": "8.31.0",
|
|
76
|
+
"@tsed/typescript": "8.31.0",
|
|
77
77
|
"@types/js-yaml": "4.0.9",
|
|
78
78
|
"dotenv": "^16.5.0",
|
|
79
79
|
"dotenv-expand": "^12.0.2",
|
package/readme.md
CHANGED
|
@@ -39,12 +39,17 @@ npm install --save @tsed/config
|
|
|
39
39
|
|
|
40
40
|
## Supported config sources
|
|
41
41
|
|
|
42
|
-
| Type
|
|
43
|
-
|
|
|
44
|
-
| Envs
|
|
45
|
-
| DotEnv
|
|
46
|
-
| Json
|
|
47
|
-
| YAML
|
|
42
|
+
| Type | Watch mode | Import | Description |
|
|
43
|
+
| -------------------------------------------------------------------------------------- | ------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
44
|
+
| Envs | No | `@tsed/config/envs` | Load environment variables from the process.env object. |
|
|
45
|
+
| DotEnv | Yes | `@tsed/config/dotenv` | Load environment variables from .env files. Supports [dotenv-flow](https://www.npmjs.com/package/dotenv-flow) and [dotenv-expand](https://www.npmjs.com/package/dotenv-expand). |
|
|
46
|
+
| Json | Yes | `@tsed/config/json` | Load configuration from a JSON file. Supports watch mode to reload the configuration when the file changes. |
|
|
47
|
+
| YAML | Yes | `@tsed/config/yaml` | Load configuration from a YAML file. Supports watch mode to reload the configuration when the file changes. |
|
|
48
|
+
| [AWS Secrets Manager](https://tsed.dev/plugins/premium/config-source/aws-secrets.html) | Yes - polling | `@tsedio/config-source-aws-secrets` | Load configuration from a Aws Secrets manager. |
|
|
49
|
+
| [IORedis](/plugins/premium/config-source/ioredis.md) | Yes | `@tsedio/config-ioredis` | Load configuration from a Redis database using ioredis. Supports watch mode to reload the configuration when the database changes. |
|
|
50
|
+
| [Mongo](/plugins/premium/config-source/mongo.md) | Yes | `@tsedio/config-mongo` | Load configuration from a MongoDB collection. Supports watch mode to reload the configuration when the collection changes. |
|
|
51
|
+
| [Vault](/plugins/premium/config-source/vault.md) | Yes - polling | `@tsedio/config-vault` | Load configuration from a HashiCorp Vault. Supports watch mode to reload the configuration when the vault changes. |
|
|
52
|
+
| [Postgres](/plugins/premium/config-source/postgres.md) | Yes | `@tsedio/config-postgres` | Load configuration from a Postgres database. Supports watch mode to reload the configuration when the database changes. |
|
|
48
53
|
|
|
49
54
|
## Usage
|
|
50
55
|
|