Skip to content

Bump github.com/mattn/go-runewidth from 0.0.19 to 0.0.21 - #1

Closed
dependabot[bot] wants to merge 1006 commits into
mainfrom
dependabot/go_modules/github.com/mattn/go-runewidth-0.0.21
Closed

Bump github.com/mattn/go-runewidth from 0.0.19 to 0.0.21#1
dependabot[bot] wants to merge 1006 commits into
mainfrom
dependabot/go_modules/github.com/mattn/go-runewidth-0.0.21

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 7, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/mattn/go-runewidth from 0.0.19 to 0.0.21.

Commits
  • b7b94fb Merge pull request #91 from mattn/add-is-combining-width
  • 2c33cbf Update CI: bump actions and Go versions
  • c6c0a14 Add IsCombiningWidth function
  • 6399b33 Merge pull request #90 from bugwhisperer418/76-zero-width-variation-selections
  • dadc062 fix benchmark test checksums
  • 75db52f update test checksums
  • fb9c1d1 Treat Mn variation selections with EA width "A" as combining with 0 width
  • e24866b Merge pull request #88 from knowledgejunkie/unicode-17.0.0
  • 54b775a Support Unicode 17.0.0
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

mdmcconnell and others added 22 commits December 5, 2025 23:06
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.45.0 to 0.46.0.
- [Commits](golang/crypto@v0.45.0...v0.46.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.46.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
The previous workflow defined a matrix with goos/goarch targets but:
1. Never used those variables (they were completely ignored)
2. Ran all jobs on ubuntu-latest regardless of target OS
3. Tests only ran via goveralls, not explicitly

This meant darwin and windows tests were never actually executed -
all 14 matrix jobs ran identical Linux tests.

Changes:
- Split into three jobs: test, cross-compile, coverage
- test: Runs on actual macOS, Windows, and Linux runners
- cross-compile: Build/vet checks for arm, arm64, wasm (can't test natively)
- coverage: Separate job for goveralls on Linux
- Add explicit `go test -v -race` for visible test output

Co-Authored-By: Claude <noreply@anthropic.com>
Without -coverpkg=./..., coverage is only counted for the package
containing the test file. This excluded 15 packages that have no
internal tests and are only exercised by the integration tests in
pkg/api/test/ and pkg/cli/test/:

  pkg/cli, pkg/pdfcpu/validate, pkg/pdfcpu/primitives,
  pkg/pdfcpu/form, pkg/pdfcpu/create, pkg/pdfcpu/sign,
  pkg/pdfcpu/font, pkg/pdfcpu/color, pkg/pdfcpu/draw,
  pkg/pdfcpu/format, pkg/pdfcpu/matrix, pkg/pdfcpu/scan,
  pkg/font, internal/corefont/metrics, cmd/pdfcpu

Co-Authored-By: Claude <noreply@anthropic.com>
Migrate all error handling from the deprecated github.com/pkg/errors
(unmaintained since 2020) to Go stdlib equivalents:

- errors.New() → errors.New() (stdlib, same API)
- errors.Errorf() → fmt.Errorf()
- errors.Wrap(err, msg) → fmt.Errorf("msg: %w", err)
- errors.Wrapf(err, fmt, args) → fmt.Errorf("fmt: %w", args, err)

Also fixes two pre-existing bugs where error values from errors.Errorf()
were silently discarded (model/dereference.go:436, image.go:329), and
a redundant err argument in write.go:75.

Removes github.com/pkg/errors v0.9.1 from go.mod.

https://claude.ai/code/session_012G7n383dDDPzdDSXVwZTWj
Covers Critical (decompression bombs, unbounded allocations, disabled
signature verification, xref overflow) and High (path traversal, OOB
panics, recursion limits, constant-time crypto) findings.

https://claude.ai/code/session_012G7n383dDDPzdDSXVwZTWj
Addresses 17 security findings from the audit:

Critical:
- Decompression bomb: limit all filter decoders to 250MB max output
- Unbounded stream allocation: cap stream buffer at 250MB
- Timestamp signature verification: re-enable VerifyWithChain
- XRef stream Index: cap object count at 10M entries

High:
- Path traversal: sanitize bookmark titles, font/image names with filepath.Base
- Unbounded buffer growth: add max size checks in readStreamContentBlindly/buffer
- Index OOB panics: add bounds checks in nextStreamOffset, skipTJ, skipBI
- Recursion depth: track parse depth via context, limit to 100 levels
- Constant-time crypto: use subtle.ConstantTimeCompare for password validation
- PKCS#7 padding: validate all padding bytes, not just the last one
- Bounds checks: fix runLengthDecode OOB, parseObjectStream, DecodeLength

https://claude.ai/code/session_012G7n383dDDPzdDSXVwZTWj
Maps all 143 open issues against the current architecture (108k LOC),
identifies structural problems, and proposes a new architecture with:
- Immutable document model (no more mutable Context)
- Lazy loading + streaming I/O (solve memory issues)
- Atomic writes (ACID guarantees)
- Structured logging with trace IDs
- Security-first (no panics, no os.Exit in library)
- LLM-friendly (text extraction, JSON output, schemas)
- Separated lexer/parser with error recovery

https://claude.ai/code/session_012G7n383dDDPzdDSXVwZTWj
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.19 to 0.0.21.
- [Commits](mattn/go-runewidth@v0.0.19...v0.0.21)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  dependency-version: 0.0.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Mar 7, 2026
@hazyhaar hazyhaar closed this Mar 7, 2026
@dependabot @github

dependabot Bot commented on behalf of github Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/mattn/go-runewidth-0.0.21 branch March 7, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.