Skip to content

Tags: reteps/dockerfmt

Tags

v0.5.4

Toggle v0.5.4's commit message
fix(release): include the binary in platform package tarballs

Each platform package had a bin/.gitignore ('*') to keep the built binary
out of git. But npm honors .gitignore as .npmignore at pack time, so it
excluded bin/dockerfmt from the published tarball — the packages shipped
only package.json and the .gitignore, so the launcher's require.resolve of
<pkg>/bin/dockerfmt failed at runtime ("does not ship a prebuilt binary").

Keep the binaries out of git via the parent js/.gitignore instead, track
the dirs with bin/.gitkeep, and let npm pack the binary. Verified with
npm pack --dry-run: bin/dockerfmt (7.2MB) is now included.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.5.3

Toggle v0.5.3's commit message
ci(release): make npm publish idempotent

Skip any package version already on the registry so a re-run after a
partial publish failure only publishes what's missing, instead of dying
when npm rejects republishing an existing version. Consolidate the two
publish steps into one so the helper is shared.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.5.2

Toggle v0.5.2's commit message

Verified

This commit was signed with the committer’s verified signature.
feat: add dockerfmt-ignore directive and EditorConfig support

Add `# dockerfmt-ignore` comment to skip formatting for the next
directive — useful as an escape hatch for grouping expressions,
unescaped semicolons, or any case where the formatter produces
unwanted output.

Add EditorConfig support: indent_size, insert_final_newline, and
custom space_redirects property are read from .editorconfig files.
CLI flags take precedence over EditorConfig values.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.5.1

Toggle v0.5.1's commit message

Verified

This commit was signed with the committer’s verified signature.
fix: scope Go WASM constructor to avoid clobbering globalThis.Go

Other Go WASM packages (e.g. sh-syntax) that share the same process
rely on their own wasm_exec.js setting globalThis.Go. Our import of
wasm_exec.js was overwriting it, breaking packages that depend on
features like wasi_snapshot_preview1 support.

Save the previous globalThis.Go before our wasm_exec.js runs and
restore it afterward, stashing our Go class under the namespaced
globalThis.__dockerfmt_Go. Also change the package.json version to
a dev placeholder since CI already sets it from the release tag.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.5.0

Toggle v0.5.0's commit message

Verified

This commit was signed with the committer’s verified signature.
use Node 24.x for npm publish (ships with npm 11.x for OIDC support)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.4.0

Toggle v0.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #48 from reteps/claude-cleanup-passes

v0.3.9

Toggle v0.3.9's commit message
bump version

v0.3.8

Toggle v0.3.8's commit message
fix bug

v0.3.7

Toggle v0.3.7's commit message
Update release

v0.3.7-alpha

Toggle v0.3.7-alpha's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #26 from reteps/stengerp/docker

Docker image