Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency zx to v8.3.2 #1202

Merged
merged 1 commit into from
Feb 2, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 29, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zx (source) 8.3.0 -> 8.3.2 age adoption passing confidence

Release Notes

google/zx (zx)

v8.3.2: – Clogged Drain

Compare Source

Restrics unsafe vals usage on dotenv.stringify #​1093 #​1094

v8.3.1: – Perfect Seal

Compare Source

The release essence: introduced full-featured .env support #​461#​1060 #​1052 #​1043 #​1037 #​1032 #​1030 #​1022

API

envapi is a tiny 100 LOC dotenv-inspired parser and serializer that we've integrated into zx.

import { dotenv, fs } from 'zx'

// parse
const env = dotenv.parse('A=A\nFOO=BAR') // { A: 'A', FOO: 'BAR' }

// serialize
const raw = dotenv.stringify(env) // A=A\nFOO=BAR
await fs.writeFile('.env', raw)

// load
dotenv.load('.env') // { A: 'A', FOO: 'BAR' }

// update the process.env
dotenv.config('.env')
process.env.A // A
CLI
zx --env .env script.mjs
zx --env-file .env script.mjs
QnA

— Why not use dotenv directly?
— 1) Size does matter 2) We'd like to avoid internal vaults.

— Why not load .env by default?
— 1) Explicit is better than implicit 2) Runtime itself (like bun) may provide the feature.

Chore


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) January 29, 2025 09:51
Copy link

codesandbox bot commented Jan 29, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@renovate renovate bot force-pushed the renovate/zx-8.x-lockfile branch 3 times, most recently from e44f6f3 to bf55d20 Compare February 1, 2025 13:32
@renovate renovate bot changed the title chore(deps): update dependency zx to v8.3.1 chore(deps): update dependency zx to v8.3.2 Feb 1, 2025
@renovate renovate bot force-pushed the renovate/zx-8.x-lockfile branch 2 times, most recently from f91ffd6 to 42db22b Compare February 1, 2025 21:28
@renovate renovate bot force-pushed the renovate/zx-8.x-lockfile branch from 42db22b to 47e11b5 Compare February 2, 2025 00:21
@renovate renovate bot merged commit 0642bc2 into main Feb 2, 2025
2 checks passed
@renovate renovate bot deleted the renovate/zx-8.x-lockfile branch February 2, 2025 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants