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

fix(deps): update go non-major dependencies #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 15, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
cloud.google.com/go/datastore v1.10.0 -> v1.17.0 age adoption passing confidence
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.11.1 -> v1.23.0 age adoption passing confidence
github.com/gin-contrib/cors v1.4.0 -> v1.7.2 age adoption passing confidence
github.com/gin-gonic/gin v1.8.2 -> v1.10.0 age adoption passing confidence
github.com/golang-jwt/jwt/v4 v4.4.3 -> v4.5.0 age adoption passing confidence
github.com/google/uuid v1.3.0 -> v1.6.0 age adoption passing confidence
github.com/pdfcpu/pdfcpu v0.3.14-0.20221101223428-07d97625e3fa -> v0.8.0 age adoption passing confidence
github.com/stretchr/testify v1.8.1 -> v1.9.0 age adoption passing confidence
github.com/swaggo/files v1.0.0 -> v1.0.1 age adoption passing confidence
github.com/swaggo/gin-swagger v1.5.3 -> v1.6.0 age adoption passing confidence
github.com/swaggo/swag v1.8.10 -> v1.16.3 age adoption passing confidence
go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin v0.39.0 -> v0.52.0 age adoption passing confidence
go.opentelemetry.io/otel v1.13.0 -> v1.27.0 age adoption passing confidence
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.13.0 -> v1.27.0 age adoption passing confidence
go.opentelemetry.io/otel/sdk v1.13.0 -> v1.27.0 age adoption passing confidence
go.opentelemetry.io/otel/trace v1.13.0 -> v1.27.0 age adoption passing confidence
golang.org/x/crypto v0.6.0 -> v0.23.0 age adoption passing confidence

Release Notes

gin-contrib/cors (github.com/gin-contrib/cors)

v1.7.2

Compare Source

Changelog

Enhancements
Build process updates

v1.7.1

Compare Source

Changelog

Enhancements
  • 71a48a2 chore: update third-party dependencies to latest versions
Others
  • 88cbcd0 ci: update GitHub Actions workflows for Go projects
  • 84d0919 test: refactor CORS tests and expand coverage

v1.7.0

Compare Source

Changelog

Bug fixes
  • 7f30a1f fix: improve error handling and test robustness
Enhancements
  • 9d49f16 chore(cors): Allow a custom validation function which receives the full gin context (#​140)
Others
  • 4447aeb refactor: refactor request handling and improve CORS checks

v1.6.0

Compare Source

Changelog

Features
Bug fixes
Enhancements
  • f41df75 chore: update GitHub actions to latest versions
  • 2451987 chore: update dependencies to latest versions
  • 7d356c2 chore: update dependencies to latest versions
  • 5da0aee chore: update third-party dependencies
  • 8263fce chore: update version of actions/setup-go in GitHub workflows
Others
  • fcbd06f ci: enhance testing matrix and tolerance limits
  • f08c1bc ci: refactor CI workflows and improve tests
  • 30792dc ci: refactor GitHub Actions workflows
  • 0e993b7 ci: update GitHub Actions to Version 3
  • 90a7c66 test(cors): enhance CORS wildcard handling tests (#​145)
  • 85bf9fb test: improve CORS wildcard handling and testing (#​144)
  • d5002f2 test: refactor tests and update CI configurations

v1.5.0

Compare Source

Changelog

Features
Enhancements
  • c1983b2 chore(CI): add go1.20 version
  • 1d5e083 chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#​112)
  • f8b2357 chore(options): Added availability to set 200/204 for OPTIONS request status (#​129)
  • f92a222 chore: Add go 1.19 and upgrade lint version to v1.49
  • 95df7c6 chore: remove depguard linter and rename example file
  • 7ac4445 chore: update GitHub Actions configuration files
  • bbf67cd chore: update Go version and setup-go action
  • b216599 chore: update goreleaser/goreleaser-action to version v4
  • 765e44e chore: update dependencies to latest versions
  • bf2c9df chore: update linter configuration and changelog titles
  • bbb26b0 chore: update supported versions of Go
Others
  • 5914b2f build: update Go version and dependencies
gin-gonic/gin (github.com/gin-gonic/gin)

v1.10.0

Compare Source

Changelog

Features
Bug fixes
Enhancements
Build process updates
Documentation updates
Others

v1.9.1

Compare Source

BUG FIXES
SECURITY
  • fix lack of escaping of filename in Content-Disposition #​3556
ENHANCEMENTS
  • refactor: use bytes.ReplaceAll directly #​3455
  • convert strings and slices using the officially recommended way #​3344
  • improve render code coverage #​3525
DOCS
  • docs: changed documentation link for trusted proxies #​3575
  • chore: improve linting, testing, and GitHub Actions setup #​3583

v1.9.0

Compare Source

BREAK CHANGES
  • Stop useless panicking in context and render #​2150
BUG FIXES
  • fix(router): tree bug where loop index is not decremented. #​3460
  • fix(context): panic on NegotiateFormat - index out of range #​3397
  • Add escape logic for header #​3500 and #​3503
SECURITY
  • Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities #​3333
  • fix(security): vulnerability GO-2023-1571 #​3505
ENHANCEMENTS
  • feat: add sonic json support #​3184
  • chore(file): Creates a directory named path #​3316
  • fix: modify interface check way #​3327
  • remove deprecated of package io/ioutil #​3395
  • refactor: avoid calling strings.ToLower twice #​3343
  • console logger HTTP status code bug fixed #​3453
  • chore(yaml): upgrade dependency to v3 version #​3456
  • chore(router): match method added to routergroup for multiple HTTP methods supporting #​3464
  • chore(http): add support for go1.20 http.rwUnwrapper to gin.responseWriter #​3489
DOCS
  • docs: update markdown format #​3260
  • docs(readme): Add the TOML rendering example #​3400
  • docs(readme): move more example to docs/doc.md #​3449
  • docs: update markdown format #​3446
golang-jwt/jwt (github.com/golang-jwt/jwt/v4)

v4.5.0

Compare Source

What's Changed

Full Changelog: golang-jwt/jwt@v4.4.3...v4.5.0

google/uuid (github.com/google/uuid)

v1.6.0

Compare Source

Features
Bug Fixes

v1.5.0

Compare Source

Features

v1.4.0

Compare Source

Features
  • UUIDs slice type with Strings() convenience method (#​133) (cd5fbbd)
Fixes
  • Clarify that Parse's job is to parse but not necessarily validate strings. (Documents current behavior)

v1.3.1

Compare Source

Bug Fixes
pdfcpu/pdfcpu (github.com/pdfcpu/pdfcpu)

v0.8.0

Compare Source

Maintenance Release

PDF 2.0 Support

PDF 2.0 encryption is now supported and you are free to use the following commands with your PDF 2.0 input files:

  • encrypt
  • decrypt
  • changeopw
  • changeupw
  • permissions

Performance

We can report another 🚀 @​fancycode parser improvement resulting in a significant performance boost and lower memory overhead especially for large files:

Before:

$ time go run test.go 
2024/03/21 09:03:55.874443 Parsing ...
2024/03/21 09:04:07.947987 Done, uses 4244 MiBytes heap memory, 6755 MiBytes system memory
2024/03/21 09:04:07.948013 Parsed 1133 pages

real	0m12,743s
user	0m21,830s
sys	0m2,589s

After:

$ time go run test.go 
2024/03/21 09:04:30.639673 Parsing ...
2024/03/21 09:04:30.899588 Done, uses 12 MiBytes heap memory, 11 MiBytes system memory
2024/03/21 09:04:30.899609 Parsed 1133 pages

real	0m0,568s
user	0m0,881s
sys	0m0,228s

Configuration Changes

We have added options to skip some optimization steps or disable internal optimization alltogether:

If you disable the following option there will be no internal optimization of the cross reference table once it is loaded into memory.
This will only affect commands that do not rely on optimization like e.g. optimize

### toggle optimization
optimize: true

The following will disable the parsing of page content streams in order to detect unused resources like images or fonts.

### optimize page resources via content stream analysis.
optimizeResourceDicts: true

The following option decides if pdfcpu will scan for and remove duplicate content streams.

### optimize duplicate content streams across pages.
optimizeDuplicateContentStreams: false

⚡ Caution is advised and you have to know what you are doing when using these options.
Tuning or turning optimization off can make sense in environments where you deal with large PDF files that usually look the same structure wise so there are no surprises.

Since the pdfcpu configuration has changed you are encouraged to recreate your config.yml:

  1. Locate your config.yml using pdfcpu conf
  2. Remove/backup your config.yml
  3. Create a new config.yml from scratch by executing any pdfcpu cmd on the CLI eg. execute one more time pdfcpu conf
  4. Edit your configuration

Thanks

for all of you test driving pdfcpu and reporting 🐛 s along the way.
Special PR thanks 👍🏻 also to @​adamgreenhall for improving the booklet command and to @​xelan as well.

Changelog

v0.7.0

Compare Source

Hello!

🧑‍🔬 We packed lots of goodies into this release for you..

Performance

You will like this ✨
Thanks to @​fancycode we have improved PDF parsing significantly.
While this is not easily comparable running the pdfcpu testsuite is now 8 seconds faster under MacOS 14.2.1:

Before:

./coverage.sh  67.60s user 13.35s system 119% cpu 1:07.93 total

After:

./coverage.sh  59.64s user 12.55s system 107% cpu 1:07.01 total

PDF 2.0 Support

We now have basic support for writing back PDF 2.0 files.
This means you may start using all pdfcpu operations that update validated PDF 2.0 files.
Basic support means, your mileage may vary, especially when you try to process a file using one of the new 2.0 features.

Since it is hard to get a hand on PDF 2.0 files using a specific new 2.0 feature there is a disclaimer printed on the command line asking for your input and contribution. Please open an issue and share your file in case pdfcpu has a problem digesting your file.
The same applies if you just want to see some specific 2.0 feature supported.

In general, please 🙏🏻 report back any issues - there is no way to fix something that does not get reported!

New Zoom Command

pdfcpu zoom [-p(ages) selectedPages] -- description inFile [outFile]

Zoom in/out of selected pages either by magnification factor or corresponding margin.
When zooming out the unused page content space results into horizontal and vertical margins.
These are different from each other but correspond to a certain factor.

Examples:

Zoom into magnification of 200%

pdfcpu zoom -- "factor: 2"  in.pdf out.pdf

Zoom out to magnification of 50%

pdfcpu zoom -- "factor: .5" in.pdf out.pdf

Zoom out to a magnification equivalent to a horizontal margin of 1 cm

pdfcpu zoom -unit cm -- "hmargin: 1" in.pdf out.pdf

Zoom out to a magnification equivalent to a vertical margin of 30 points.
Draw a border around zoomed out page content and fill unused page space light gray

pdfcpu zoom -- "vmargin: 30, border:true, bgcolor:lightgray" in.pdf out.pdf ... 

Please consult pdfcpu help zoom for more and also the official documentation

Enhanced Booklet command

Thanks to @​adamgreenhall we have an even more powerful booklet command for producing zines:

We now have booklet styles 2, 4, 6 and 8 and you may choose one of the following booklet types, each representing a certain method for arranging pages into a booklet:

booklet, bookletadvanced, perfectbound

Examples:

Arrange pages of in.pdf 2 per sheet side (4 per sheet, back and front) onto out.pdf

pdfcpu booklet -- "formsize:Letter" out.pdf 2 in.pdf

Arrange pages of in.pdf 4 per sheet side (8 per sheet, back and front) onto out.pdf:

pdfcpu booklet -- "formsize:Ledger" out.pdf 4 in.pdf

Arrange pages of in.pdf 6 per sheet side (12 per sheet, back and front) onto out.pdf

pdfcpu booklet -- "formsize:Ledger" out.pdf 6 in.pdf

Arrange pages of in.pdf 8 per sheet side (16 per sheet, back and front) onto out.pdf

pdfcpu booklet -- "formsize:A3" out.pdf 8 in.pdf

Arrange pages of in.pdf 4 per sheet side, with short-edge binding onto out.pdf

pdfcpu booklet -- "formsize:A3, binding:short" out.pdf 4 in.pdf

Arrange pages of in.pdf 2 per sheetside as sequence of folios covering 4*foliosize pages each.

pdfcpu booklet -- "formsize:A4, multifolio:on" hardbackbook.pdf 2 in.pdf

Arrange pages of in.pdf 2 per sheet side, arranged for perfect binding, onto out.pdf

pdfcpu booklet -- "formsize:A4, btype:perfectbound" out.pdf 2 in.pdf

Arrange pages of in.pdf 4 per sheet side, arranged for advanced binding, onto out.pdf

pdfcpu booklet -- "formsize:A3, btype:bookletadvanced" out.pdf 4 in.pdf

Please consult pdfcpu help booklet for more and also the official documentation

Configuration Changes

There are two changes to the configuration:

  1. validationNone was eliminated
  2. postProcessValidate is new and enables safeguard validation

Validation mode ValidationNone has been eliminated for a couple of reasons.
First of all during validation there are a lot of things happening like internalizing and caching needed for command processing,
secondly PDF validation has become quite performant.

We are introducing the new config flag postProcessValidate.
This flag which is turned on by default enables the validation of your processed cross reference table right before writing.
This is considered a useful safeguard, since in cases when writing back a problematic cross reference table without problems,
only the next read/parse/validation attempt will take notice of a problem.
If you disable this you will get an additional performance boost overall but with the caveat described above.

As usual please renew your configuration!

Form filling now expects the user font Roboto-Regular when using eastern european scripts.
You can do this manually or just remove your pdfcpu configuration all together and recreate it like so:

  1. Locate the pdfcpu folder using pdfcpu conf
  2. Remove/backup the pdfcpu folder
  3. Recreate a brand new pdfcpu folder by executing any pdfcpu cmd on the CLI eg. execute one more time pdfcpu conf
  4. Edit your configuration

Samples And Tests

This all is complementing the official documentation

To get a better understanding of pdfcpu's operations please make sure you check out all tests and the corresponding PDF output and all json input where appropriate:

pdfcpu/pkg/samples/* comes loaded with 230 MB worth of PDFs produced by corresponding tests and json input located at:

  • pdfcpu/pkg/api/test
  • pdfcpu/pkg/testdata/json
Screenshot 2024-03-05 at 14 11 56

Thanks

🙏 to all bug reporters and feature requestors.
Special thanks for contributed PRs go to @​adamgreenhall, @​fancycode, @​kalimit, @​sivukhin and @​afh

Little Commercial Break

pdfcpu is in need of more frequent financial supporters!
Please consider becoming a sponsor especially if you are a (small) business 🙏
If you are a developer within a business please go to your superior or team lead and have them compare the benefits/costs vs. commercial solutions. If you prefer to operate in stealth mode that's fine - you can always become a private sponsor.
What's important is to keep the project funded and on a clear, steady path 🚀

Meet The Maintainer

I will be in the San Francisco Bay Area this fall.
If you are a recurring sponsor or not but a business using pdfcpu I would like to get to know you and your pdfcpu use case. I'll be happy to meet also one-on-one possibly over 🍻 for a technical chat/discussion and to get feedback right from the trenches.
Just get in touch with me: hhrutter@gmail.com

Next Steps

Support for PDF 2.0 encryption will be tackled next, after that digital signatures.
A Beta version is within reach 👍🏻

ghstars0324

Have fun 💚 with pdfcpu!

Changelog


Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/go-minor-patch branch from bfdabb8 to 8c3fabf Compare March 17, 2022 01:55
@renovate renovate bot changed the title fix(deps): update module github.com/stretchr/testify to v1.7.1 fix(deps): update go non-major dependencies Mar 17, 2022
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 2 times, most recently from 19aef00 to bf26302 Compare March 22, 2022 19:44
@renovate renovate bot changed the title fix(deps): update go non-major dependencies fix(deps): update module github.com/pdfcpu/pdfcpu to v0.3.13 Mar 22, 2022
@renovate renovate bot force-pushed the renovate/go-minor-patch branch from bf26302 to 7bb61fa Compare March 23, 2022 21:50
@renovate renovate bot changed the title fix(deps): update module github.com/pdfcpu/pdfcpu to v0.3.13 fix(deps): update go non-major dependencies Mar 23, 2022
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 5 times, most recently from be3d0a9 to 8d25d5d Compare March 30, 2022 12:10
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 3 times, most recently from b50a7a3 to aeb7c67 Compare April 12, 2022 18:39
@renovate renovate bot force-pushed the renovate/go-minor-patch branch from aeb7c67 to ed3561e Compare April 16, 2022 10:28
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 4 times, most recently from 31f0a82 to f07f04c Compare May 3, 2022 21:25
@renovate renovate bot force-pushed the renovate/go-minor-patch branch from f07f04c to 0516a46 Compare May 6, 2022 13:45
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 2 times, most recently from 1d3c02e to 9274f95 Compare May 20, 2022 21:24
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 2 times, most recently from a914be7 to 6f94fbf Compare June 3, 2022 13:58
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 4 times, most recently from d4a5708 to 46bff66 Compare June 11, 2022 12:51
@renovate renovate bot force-pushed the renovate/go-minor-patch branch from 46bff66 to 4bb94e9 Compare June 15, 2022 18:00
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 4 times, most recently from 7116517 to c3cb3bc Compare January 23, 2024 22:43
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 3 times, most recently from d1baf7c to 02d1681 Compare February 7, 2024 21:32
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 4 times, most recently from 74c51a4 to 0ee4db8 Compare March 1, 2024 14:35
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 3 times, most recently from 1f4d1a1 to 0e0127e Compare March 10, 2024 09:30
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 2 times, most recently from a8e6638 to 57bdb9f Compare March 26, 2024 21:14
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 2 times, most recently from 7501501 to 0455c14 Compare April 5, 2024 15:59
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 5 times, most recently from 3b103b6 to 1e00e15 Compare May 1, 2024 15:16
@renovate renovate bot force-pushed the renovate/go-minor-patch branch 3 times, most recently from 6f4f507 to 45883f1 Compare May 8, 2024 20:23
@renovate renovate bot force-pushed the renovate/go-minor-patch branch from 45883f1 to a1ea6f9 Compare May 21, 2024 19:28
@renovate renovate bot force-pushed the renovate/go-minor-patch branch from a1ea6f9 to 5c68bb1 Compare May 22, 2024 04:37
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.

None yet

0 participants