Skip to content

fix(varlock): land pending type, import, and leak-scan fixes - #17

Merged
WalksWithASwagger merged 2 commits into
mainfrom
cursor/land-pending-fixes-6586
Sep 3, 2026
Merged

fix(varlock): land pending type, import, and leak-scan fixes#17
WalksWithASwagger merged 2 commits into
mainfrom
cursor/land-pending-fixes-6586

Conversation

@WalksWithASwagger

@WalksWithASwagger WalksWithASwagger commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Rebases the still-valid WalksWithASwagger expedition fixes onto current dmno-dev/varlock main, plus the two upstream bugs those earlier PRs never actually landed.

What landed

  • @type=enum: coerce string process.env / overrideValues to numeric and boolean members
  • @type=url: treat allowedDomains comma-strings as host lists (no substring match); allow root / with noTrailingSlash=true
  • @type=ip: accept IPv4-mapped IPv6 (::ffff:192.168.1.1)
  • @type=md5: accept uppercase hex and normalize to lowercase
  • @type=port: reject non-integers (including unquoted 80.5)
  • #428: @currentEnv=$FLAG may reference a key brought in via @import
  • #897: ServerResponse.end finishes the response (500 / destroy) when leak detection throws

Not included (already on main or superseded)

Test plan

  • cd packages/varlock && bunx vitest run src/env-graph/test/data-types.test.ts src/env-graph/test/environments.test.ts src/runtime/test/patch-server-response.test.ts (237 passed, 1 skipped)

Docs for the changed behavior are updated in the same PR (data-types, root-decorators, import, secrets).

Compare for upstream: https://github.com/dmno-dev/varlock/compare/main...WalksWithASwagger:varlock:cursor/land-pending-fixes-6586?expand=1

Open in Web Open in Cursor 

Rebase still-valid fork fixes onto current main: enum env-string
coerce, url allowedDomains/noTrailingSlash, IPv6-mapped, md5 case,
port integers, imported @currentEnv (dmno-dev#428), and finish
ServerResponse.end on leak (dmno-dev#897).
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

bumpy-frog

The changes in this PR will be included in the next version bump.

minor Minor releases

  • @varlock/aws-sigv4-plugin 0.0.0 → 0.1.0
  • @varlock/native-helper-darwin 1.18.0 → 1.19.0
  • @varlock/native-helper-linux-arm64 1.18.0 → 1.19.0
  • @varlock/native-helper-linux-x64 1.18.0 → 1.19.0
  • @varlock/native-helper-win32-x64 1.18.0 → 1.19.0
  • varlock 1.18.0 → 1.19.0

patch Patch releases

  • env-spec-language 0.4.0 → 0.4.1

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@WalksWithASwagger
WalksWithASwagger marked this pull request as ready for review September 3, 2026 04:21
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

📦 Bundle size

✅ shrinks the bundle by 467.6 KB (−9.5%)

Metric main This PR Δ
Total dist 4922.2 KB 4454.5 KB −467.6 KB (−9.5%)
JS 1692.0 KB 1693.3 KB +1.3 KB (+0.1%)
Sourcemaps 3154.2 KB 2653.1 KB −501.1 KB (−15.9%)
Type defs 76.0 KB 108.2 KB +32.2 KB (+42.3%)
Other 0.0 KB 0.0 KB

dist/ only; native binaries are versioned separately and not counted here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment