Skip to content

Commit d867d51

Browse files
[Changesets] Create versioned packages for publishing
1 parent 0b6b2c0 commit d867d51

9 files changed

Lines changed: 47 additions & 51 deletions

.changeset/binary-version-mismatch-check.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/brave-doors-connect.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/fix-git-boundary-lockfile-detection.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/fix-monorepo-binary-resolution.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/fix-typegen-custom-path-env-specific.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/plugins/1password/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# @varlock/1password-plugin
22

3+
## 0.3.3
4+
5+
### Patch Changes
6+
7+
- [#533](https://github.com/dmno-dev/varlock/pull/533) [`0b6b2c0`](https://github.com/dmno-dev/varlock/commit/0b6b2c03ea5170f2ad1fbfa536b1b94ccf1de500) - Add support for 1Password Connect server (self-hosted)
8+
9+
- New auth mode: `connectHost` + `connectToken` parameters in `@initOp()` for connecting to self-hosted 1Password Connect servers
10+
- Direct REST API integration — no `op` CLI or 1Password SDK required for Connect server usage
11+
- New `opConnectToken` data type for Connect server API tokens
12+
- Parses standard `op://vault/item/[section/]field` references and resolves them via the Connect API
13+
- Caches vault and item ID lookups within a session for efficiency
14+
- Clear error when `opLoadEnvironment()` is used with Connect (not supported by the Connect API)
15+
- Updated error messages and tips to include Connect server as an auth option
16+
17+
- Updated dependencies [[`74752a3`](https://github.com/dmno-dev/varlock/commit/74752a3db9459538b8ef7d984737f5bb55de17ae), [`01c9a6a`](https://github.com/dmno-dev/varlock/commit/01c9a6a5398d31d3818953dd757d3263e0cf3a36), [`1a4b0cf`](https://github.com/dmno-dev/varlock/commit/1a4b0cf4185c4152be4b39c70755316f1a8be25d), [`0c27ed1`](https://github.com/dmno-dev/varlock/commit/0c27ed10b3b77571848974a3703d77e1eabb8abd)]:
18+
- varlock@0.7.2
19+
320
## 0.3.2
421

522
### Patch Changes

packages/plugins/1password/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@varlock/1password-plugin",
33
"description": "Varlock plugin to load data from 1Password vaults",
4-
"version": "0.3.2",
4+
"version": "0.3.3",
55
"type": "module",
66
"homepage": "https://varlock.dev/plugins/1password/",
77
"bugs": "https://github.com/dmno-dev/varlock/issues",

packages/varlock/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# varlock
22

3+
## 0.7.2
4+
5+
### Patch Changes
6+
7+
- [#534](https://github.com/dmno-dev/varlock/pull/534) [`74752a3`](https://github.com/dmno-dev/varlock/commit/74752a3db9459538b8ef7d984737f5bb55de17ae) - Add version mismatch detection between standalone binary and local node_modules install
8+
9+
When running the standalone binary (installed via homebrew/curl), varlock now checks if a different version is installed in the project's node_modules. If a version mismatch is detected, a warning is displayed suggesting users update the binary or use the locally installed version instead. This helps prevent confusing errors caused by running mismatched versions.
10+
11+
- [#558](https://github.com/dmno-dev/varlock/pull/558) [`01c9a6a`](https://github.com/dmno-dev/varlock/commit/01c9a6a5398d31d3818953dd757d3263e0cf3a36) - Fix plugin resolution failure in monorepo workspaces where `.git` and the lockfile coexist in the same directory.
12+
13+
`detectWorkspaceInfo()` was checking for a `.git` directory **after** moving to the parent, so in the standard monorepo layout (`monorepo-root/.git` + `monorepo-root/bun.lock`) the root was never scanned and the lockfile was never found. Moving the `.git` boundary check to **before** moving up ensures the git-root directory is always scanned first.
14+
15+
- [#547](https://github.com/dmno-dev/varlock/pull/547) [`1a4b0cf`](https://github.com/dmno-dev/varlock/commit/1a4b0cf4185c4152be4b39c70755316f1a8be25d) - Fix binary resolution in monorepos when `cwd` differs from the package root.
16+
17+
When importing `varlock/auto-load` (e.g. from a `playwright.config.ts` in a monorepo sub-package), VS Code and similar tools may set `process.cwd()` to the workspace root rather than the sub-package directory. This caused `execSyncVarlock` to search for the `varlock` binary starting at the workspace root and fail to find it when it was only installed in a sub-package's `node_modules/.bin`.
18+
19+
Two fixes are applied:
20+
21+
1. `execSyncVarlock` now accepts a `callerDir` option. When provided, the binary search walks up from `callerDir` before falling back to `process.cwd()`. `auto-load.ts` passes `import.meta.dirname` so the search always starts from inside the varlock package itself, which is already in the correct sub-package's `node_modules`.
22+
23+
2. The walk-up logic no longer throws immediately when it finds a `node_modules/.bin` directory that does not contain varlock. It now continues walking up, allowing the search to find varlock installed at a higher or lower level of a monorepo.
24+
25+
- [#550](https://github.com/dmno-dev/varlock/pull/550) [`0c27ed1`](https://github.com/dmno-dev/varlock/commit/0c27ed10b3b77571848974a3703d77e1eabb8abd) - Fix `@generateTypes` not creating variables when using a custom path with `varlock typegen --path <file>`
26+
27+
When a schema file with an environment-qualifier-like name (e.g. `.env.infra.schema`) was passed as the explicit entry point via `--path`, its variables were being excluded from type generation. The filename was parsed such that `infra` was treated as an environment name (`applyForEnv='infra'`), causing the data source to be marked as environment-specific and all its variables to be filtered out.
28+
29+
The fix ensures that a file loaded as the root entry point (no parent data source) is never treated as environment-specific, even if its filename contains an environment qualifier.
30+
331
## 0.7.1
432

533
### Patch Changes

packages/varlock/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "varlock",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "AI-safe .env files: Schemas for agents, Secrets for humans.",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)