diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 57a6a09..f3b67a3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,11 @@ # @dotenv-run/docs +## 0.1.2 + +### Patch Changes + +- feat(angular): add unsecure mode option + ## 0.1.1 ### Patch Changes diff --git a/docs/package.json b/docs/package.json index 7855996..20dbdb2 100644 --- a/docs/package.json +++ b/docs/package.json @@ -2,7 +2,7 @@ "name": "@dotenv-run/docs", "private": true, "type": "module", - "version": "0.1.1", + "version": "0.1.2", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/examples/apps/ng-app-cli/angular.json b/examples/apps/ng-app-cli/angular.json index 9f5e4da..1df494e 100644 --- a/examples/apps/ng-app-cli/angular.json +++ b/examples/apps/ng-app-cli/angular.json @@ -21,7 +21,8 @@ ], "tsConfig": "tsconfig.app.json", "ngxEnv": { - "prefix": "NGX_" + "prefix": "NGX_", + "unsecure": true }, "assets": [ "src/favicon.ico", diff --git a/examples/apps/ng-app-cli/package.json b/examples/apps/ng-app-cli/package.json index ee06a12..434329f 100644 --- a/examples/apps/ng-app-cli/package.json +++ b/examples/apps/ng-app-cli/package.json @@ -4,7 +4,7 @@ "scripts": { "ng": "ng", "watch": "ng build --watch --configuration development", - "start": "NODE_ENV=development ng serve", + "start": "ng serve", "prebuild": "npx ng config projects.ng-app-cli.architect.build.options.ngxEnv.prefix 'NGX_'", "build": "NODE_ENV=production ng build", "pretest": "npx ng config projects.ng-app-cli.architect.test.options.ngxEnv.prefix 'NGX_'", diff --git a/examples/apps/ng-app-webpack/package.json b/examples/apps/ng-app-webpack/package.json index e16fd96..e3201ec 100644 --- a/examples/apps/ng-app-webpack/package.json +++ b/examples/apps/ng-app-webpack/package.json @@ -29,7 +29,7 @@ "@angular/compiler-cli": "^16.0.0", "@types/node": "^16.0.0", "cross-env": "^7.0.3", - "@dotenv-run/webpack": "^1.3.1", + "@dotenv-run/webpack": "^1.3.2", "typescript": "~4.9.3" } } \ No newline at end of file diff --git a/examples/package.json b/examples/package.json index 3489cbc..fc9dd05 100644 --- a/examples/package.json +++ b/examples/package.json @@ -8,10 +8,10 @@ "e2e:all": "nx run-many --target=e2e --all --parallel" }, "devDependencies": { - "@dotenv-run/cli": "^1.3.2", - "@dotenv-run/load": "^1.3.1", - "@dotenv-run/webpack": "^1.3.1", - "@dotenv-run/rollup": "^1.3.1", + "@dotenv-run/cli": "^1.3.3", + "@dotenv-run/load": "^1.3.2", + "@dotenv-run/webpack": "^1.3.2", + "@dotenv-run/rollup": "^1.3.2", "webpack": "^5.0.0", "serve": "^14.2.1", "@playwright/test": "^1.37.1", diff --git a/packages/angular/package.json b/packages/angular/package.json index 75ac54d..e6dc228 100644 --- a/packages/angular/package.json +++ b/packages/angular/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-env/builder", - "version": "17.0.6", + "version": "17.0.7", "description": "Easily inject environment variables into your Angular applications", "author": "chihab ", "homepage": "https://github.com/chihab/ngx-env/tree/main/packages/angular", @@ -29,8 +29,8 @@ "copy-dist": "ts-node tools/schema-dist.ts" }, "dependencies": { - "@dotenv-run/esbuild": "^1.3.0", - "@dotenv-run/webpack": "^1.3.0", + "@dotenv-run/esbuild": "^1.3.2", + "@dotenv-run/webpack": "^1.3.2", "glob": "^10.3.10" }, "devDependencies": { @@ -40,7 +40,7 @@ "@angular-devkit/architect": "^0.1700.8", "@angular-devkit/core": "^17.0.0", "@angular/compiler": "^17.0.2", - "@dotenv-run/core": "^1.3.0", + "@dotenv-run/core": "^1.3.2", "cpy": "^8.1.2", "karma": "^6.4.2", "ts-node": "^10.8.0", diff --git a/packages/angular/src/builders/ngx-env/ngx-env.json b/packages/angular/src/builders/ngx-env/ngx-env.json index f683010..250754c 100644 --- a/packages/angular/src/builders/ngx-env/ngx-env.json +++ b/packages/angular/src/builders/ngx-env/ngx-env.json @@ -12,9 +12,14 @@ "description": "Root directory of the project to find .env files", "default": "." }, + "unsecure": { + "type": "boolean", + "description": "Display environment variables values in the console", + "default": false + }, "verbose": { "type": "boolean", - "description": "Verbose mode, print .env files and variables", + "description": "Display environment files and variables in the console", "default": true } }, diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index b235d9e..6acff3a 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,13 @@ # @dotenv-run/cli +## 1.3.3 + +### Patch Changes + +- feat(angular): add unsecure mode option +- Updated dependencies + - @dotenv-run/core@1.3.2 + ## 1.3.2 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index c24d509..7a9ffec 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@dotenv-run/cli", - "version": "1.3.2", + "version": "1.3.3", "description": "cli to load environment variables with monorepo support", "homepage": "https://github.com/chihab/dotenv-run", "type": "module", @@ -25,7 +25,7 @@ "author": "Chihab Otmani ", "license": "ISC", "dependencies": { - "@dotenv-run/core": "^1.3.1", + "@dotenv-run/core": "^1.3.2", "chalk": "^4.1.0", "cross-spawn": "^7.0.3", "minimist": "^1.2.8" diff --git a/packages/cli/src/index.mts b/packages/cli/src/index.mts index ee64977..57bc258 100644 --- a/packages/cli/src/index.mts +++ b/packages/cli/src/index.mts @@ -29,7 +29,7 @@ function help() { Usage: dotenv-run [options] -- Options: - -d, --debug [regexp] print debug information, filter environment variables by regexp (default: .*) + -d, --debug [regexp] print debug information, display environment variables filtered by regexp if provided -e, --env [environment] environment to load (default: NODE_ENV) -f, --file [.env,.secrets,.env.api] specific .env files to load (default: .env, incompatible with root and prefix options) -r, --root root directory to search for .env files, defaults to current working directory diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 508a571..a6e18bf 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @dotenv-run/core +## 1.3.2 + +### Patch Changes + +- feat(angular): add unsecure mode option + ## 1.3.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 188c431..69d10a2 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@dotenv-run/core", - "version": "1.3.1", + "version": "1.3.2", "description": "core library to load environment variables with monorepo support", "homepage": "https://github.com/chihab/dotenv-run", "main": "dist/cjs/index.js", diff --git a/packages/core/src/env.ts b/packages/core/src/env.ts index 3445606..7990901 100644 --- a/packages/core/src/env.ts +++ b/packages/core/src/env.ts @@ -18,7 +18,7 @@ function print(options: DotenvRunOptions, envPaths: string[], values: Env) { console.log(`${chalk.green("-")} Working directory: `, options.cwd); } if (options.files) { - console.log(`${chalk.green("-")} Files :`, options.files.join(", ")); + console.log(`${chalk.green("-")} Files:`, options.files.join(", ")); } if (envPaths.length === 0) { console.log( diff --git a/packages/esbuild/CHANGELOG.md b/packages/esbuild/CHANGELOG.md index ac219b4..17a74a4 100644 --- a/packages/esbuild/CHANGELOG.md +++ b/packages/esbuild/CHANGELOG.md @@ -1,5 +1,13 @@ # @dotenv-run/esbuild +## 1.3.2 + +### Patch Changes + +- feat(angular): add unsecure mode option +- Updated dependencies + - @dotenv-run/core@1.3.2 + ## 1.3.1 ### Patch Changes diff --git a/packages/esbuild/package.json b/packages/esbuild/package.json index 94922b0..15742ef 100644 --- a/packages/esbuild/package.json +++ b/packages/esbuild/package.json @@ -1,6 +1,6 @@ { "name": "@dotenv-run/esbuild", - "version": "1.3.1", + "version": "1.3.2", "description": "Run your scripts with dotenv variables", "homepage": "https://github.com/chihab/dotenv-run", "main": "dist/cjs/index.js", @@ -26,7 +26,7 @@ "author": "Chihab Otmani ", "license": "ISC", "dependencies": { - "@dotenv-run/core": "^1.3.1" + "@dotenv-run/core": "^1.3.2" }, "peerDependencies": { "esbuild": "0.19.5" diff --git a/packages/load/CHANGELOG.md b/packages/load/CHANGELOG.md index 5730ce0..cf79ecf 100644 --- a/packages/load/CHANGELOG.md +++ b/packages/load/CHANGELOG.md @@ -1,5 +1,13 @@ # @dotenv-run/load +## 1.3.2 + +### Patch Changes + +- feat(angular): add unsecure mode option +- Updated dependencies + - @dotenv-run/core@1.3.2 + ## 1.3.1 ### Patch Changes diff --git a/packages/load/package.json b/packages/load/package.json index 63dfd4f..fe3c5b5 100644 --- a/packages/load/package.json +++ b/packages/load/package.json @@ -1,6 +1,6 @@ { "name": "@dotenv-run/load", - "version": "1.3.1", + "version": "1.3.2", "description": "Perload your scripts with dotenv variables", "homepage": "https://github.com/chihab/dotenv-run", "main": "dist/index.js", @@ -22,7 +22,7 @@ "author": "Chihab Otmani ", "license": "ISC", "dependencies": { - "@dotenv-run/core": "^1.3.1" + "@dotenv-run/core": "^1.3.2" }, "devDependencies": { "@types/node": "^16.0.0" diff --git a/packages/rollup/CHANGELOG.md b/packages/rollup/CHANGELOG.md index 8adfd79..80cd867 100644 --- a/packages/rollup/CHANGELOG.md +++ b/packages/rollup/CHANGELOG.md @@ -1,5 +1,13 @@ # @dotenv-run/rollup +## 1.3.2 + +### Patch Changes + +- feat(angular): add unsecure mode option +- Updated dependencies + - @dotenv-run/core@1.3.2 + ## 1.3.1 ### Patch Changes diff --git a/packages/rollup/package.json b/packages/rollup/package.json index 259be95..0f73647 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -1,6 +1,6 @@ { "name": "@dotenv-run/rollup", - "version": "1.3.1", + "version": "1.3.2", "description": "Run your scripts with dotenv variables", "homepage": "https://github.com/chihab/dotenv-run", "main": "dist/index.js", @@ -22,7 +22,7 @@ "author": "Chihab Otmani ", "license": "ISC", "dependencies": { - "@dotenv-run/core": "^1.3.1", + "@dotenv-run/core": "^1.3.2", "@rollup/plugin-replace": "^5.0.2" }, "peerDependencies": { diff --git a/packages/webpack/CHANGELOG.md b/packages/webpack/CHANGELOG.md index 4ab87e4..5f65fe6 100644 --- a/packages/webpack/CHANGELOG.md +++ b/packages/webpack/CHANGELOG.md @@ -1,5 +1,13 @@ # @dotenv-run/webpack +## 1.3.2 + +### Patch Changes + +- feat(angular): add unsecure mode option +- Updated dependencies + - @dotenv-run/core@1.3.2 + ## 1.3.1 ### Patch Changes diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 05e8a81..477f490 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -1,6 +1,6 @@ { "name": "@dotenv-run/webpack", - "version": "1.3.1", + "version": "1.3.2", "description": "Run your scripts with dotenv variables", "homepage": "https://github.com/chihab/dotenv-run", "main": "dist/cjs/index.js", @@ -25,7 +25,7 @@ "author": "Chihab Otmani ", "license": "ISC", "dependencies": { - "@dotenv-run/core": "^1.3.1" + "@dotenv-run/core": "^1.3.2" }, "peerDependencies": { "webpack": "^5.0.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bc76333..a015c09 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,16 +39,16 @@ importers: examples: devDependencies: '@dotenv-run/cli': - specifier: ^1.3.2 + specifier: ^1.3.3 version: link:../packages/cli '@dotenv-run/load': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../packages/load '@dotenv-run/rollup': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../packages/rollup '@dotenv-run/webpack': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../packages/webpack '@playwright/test': specifier: ^1.37.1 @@ -202,7 +202,7 @@ importers: specifier: ^16.0.0 version: 16.2.12(@angular/compiler@16.2.12)(typescript@4.9.5) '@dotenv-run/webpack': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../../../packages/webpack '@types/node': specifier: ^16.0.0 @@ -221,10 +221,10 @@ importers: packages/angular: dependencies: '@dotenv-run/esbuild': - specifier: ^1.3.0 + specifier: ^1.3.2 version: link:../esbuild '@dotenv-run/webpack': - specifier: ^1.3.0 + specifier: ^1.3.2 version: link:../webpack glob: specifier: ^10.3.10 @@ -249,7 +249,7 @@ importers: specifier: ^17.0.2 version: 17.0.8(@angular/core@17.0.8) '@dotenv-run/core': - specifier: ^1.3.0 + specifier: ^1.3.2 version: link:../core cpy: specifier: ^8.1.2 @@ -273,7 +273,7 @@ importers: packages/cli: dependencies: '@dotenv-run/core': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../core chalk: specifier: ^4.1.0 @@ -314,7 +314,7 @@ importers: packages/esbuild: dependencies: '@dotenv-run/core': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../core devDependencies: '@types/node': @@ -327,7 +327,7 @@ importers: packages/load: dependencies: '@dotenv-run/core': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../core devDependencies: '@types/node': @@ -337,7 +337,7 @@ importers: packages/rollup: dependencies: '@dotenv-run/core': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../core '@rollup/plugin-replace': specifier: ^5.0.2 @@ -353,7 +353,7 @@ importers: packages/webpack: dependencies: '@dotenv-run/core': - specifier: ^1.3.1 + specifier: ^1.3.2 version: link:../core devDependencies: '@types/node':