9 hours ago
go-cad

go-cad v0.1.0

首个版本

Go 模块首次发布版本,提供 DWG/DXF 解析、PNG/SVG 渲染、图框拆分、文字提取和 DWG/DXF 写出。

本次新增

  • 支持单页及按图框拆分的多页矢量 PDF,支持图名书签。
  • 支持将部分二维 CAD 图元导出为 GeoJSON Point/LineString,保留图层和源实体信息,提供 Go API 与 dwg2geojson 命令。
  • 增加图元跳过、块展开和曲线近似的诊断与完整性统计。

使用注意

  • 标准 GeoJSON 的 WGS 84 转换由调用方提供;CLI 的 -wgs84 要求输入坐标本身已经是 WGS 84,-cad-local 则输出本地平面坐标。
  • GeoJSON 首版不会自动将闭合轮廓转成面,也不导出文字、填充或三维高程等内容;不完整导出会提供诊断,CLI 写出部分结果时返回非零状态。
  • MINSERT 阵列不支持以 DWG/DXF 写出;写出到普通 writer 发生错误时可能已写入部分内容,建议使用临时文件并在成功后替换。
  • PDF 文本以路径输出,不能直接选中复制;中文渲染需可用字体。

安装:go get github.com/unitedrhino/go-cad@v0.1.0

13 hours ago
unipdf

v5.3.1

Release notes - UniPDF v5.3.1

This release contains improvements and bug fixes.

Improvements

  • US-2138 Faster text extraction on tagged PDFs: extractor.New no longer loads the whole structure tree for every page, and ActualText is looked up from an index of the ParentTree, which now also finds ActualText in ParentTree number trees, nested structure elements and form or appearance streams
  • US-2075 Signature validation judges the signer's certificate chain at the time of a covering trusted document timestamp when the signature has no timestamp of its own, so PAdES-LTA documents signed at level B keep validating after the signer certificate expires
  • US-2142 Predefined CMaps are parsed once per process and shared between fonts, and the PDF/A font check no longer keeps every font of the document loaded at once
  • US-2074 Documented that a PdfFont belongs to one document at a time: concurrent creators each need their own font

Bug Fixes

  • US-2165 Fixed UniPDF v5.3.0 failing to build for Windows and js/wasm
  • US-2098 US-2136 US-2139 Fixed cyclic, shared and deeply nested page trees, form fields and structure trees hanging the reader, multiplying load and write work, or crashing it with a stack overflow: cycles and repeated subtrees are cut, the page tree is walked without recursion, and form field and structure tree walks stop at 1024 levels
  • US-2140 US-2143 Fixed a small ToUnicode or CMap stream being able to allocate without limit or never finish through large cidrange and bfrange sections: range expansion is now bounded and counts toward the per-page MaxDecodedPageSize limit, bfrange entries above 0xFFFF are kept instead of clamped, and cidrange entries with a bad start are rejected
  • US-2099 Fixed chained or failing stream /Length references multiplying the parse work
  • US-2124 Fixed panics on annotation appearance streams with missing or indirect /Resources during text extraction with IncludeAnnotations, and on readers whose structure failed to load after decryption: GetNumPages and GetPage now return an error for such a reader
  • US-1937 Fixed indirect objects referenced by the encryption dictionary, such as public-key /Recipients strings, being decrypted after authentication and written back corrupted by the writer or appender
  • US-2123 Fixed DocMDP validation being skipped for certifications whose /Reference array also holds FieldMDP or UR3, for a missing /P, and for a certifying field nested under /Kids; validation now also reports objects freed in a later revision
  • US-2084 Fixed a signature timestamp signed by a TSA certificate that is itself a trust root being reported as revocation status good without any check; it is now reported as unknown, so with RequireRevocationStatus the token is ignored
  • US-1921 Fixed form fill values being decoded differently depending on the field type and data source: values are decoded uniformly as PDF text strings, raw UTF-8 in FDF files is read as UTF-8, and the new core.PdfObjectString.IsUTF16BE reports whether a string is UTF-16BE text
  • US-2068 Fixed GetAttachedFiles not reading attachments from an EmbeddedFiles name tree split into /Kids, and failing on a filespec without /Desc or an embedded file without /Params
  • US-2008 Fixed template pages named by the /Templates name tree being written as null; the /Templates tree is now written back
  • US-2017 Fixed the table of contents being left untagged when DrawTagged is first called from a page callback, header or footer
  • US-2086 Fixed creator SVGs being blank in MuPDF and the UniPDF renderer
  • US-2073 Fixed SVG fill, stroke and text colors: named colors such as green and gray were written out of range, and rgb(), rgba(), opacity and currentColor are now parsed consistently and inherited through the SVG tree
  • US-2087 Fixed gradients on a rotated StyledParagraph being painted in the wrong place
  • US-2085 Fixed justified StyledParagraph lines that end in a line break, such as <br/> or lines in <pre>, being stretched across the page
  • US-2062 Fixed drop caps being lost with SetMaxLines and left out of the paragraph height, and grid rows holding paragraphs not being padded like table rows
  • US-2081 Fixed ParseTemplate modifying and keeping the caller's TemplateOptions, which made concurrent DrawTemplate calls sharing one options value race
22 hours ago
chromedp

v0.24.3

Fix: the errors of remote still showed the address of the browser, with its token, in two cases. An address that did not parse gave the error of url.Parse, which quotes the whole address. A dial that failed wrapped the error of net/http, which quoted the address with its query and user, in its message and in the URL of the *url.Error. Now the dialer hides the user, the query and the fragment of the address in every error that it returns or wraps, and an address that does not parse gives its reason with no quoted text. errors.Is and errors.As still find the cause. Onsi Fakhouri found the cases and sent the fix in discussion #1651.

2 days ago
chromedp

v0.24.2

Change: remote.NewAllocator rewrites only a bare address of the debugging port of Chrome, such as ws://127.0.0.1:9222/. It asks /json/version only when the address has no query and a path of "", "/", "/json" or "/json/version". It asks over https for wss, and sends no query. If the answer is not 200 OK, it connects to the address as it is. Any other address, such as the complete address of a hosted service with a path or a query of its own, is used as it is. A wss address keeps its host name, so TLS works. A missing webSocketDebuggerUrl is now an error and not a panic, and the error of a failed dial no longer shows the query of the address, which can hold a token. Discussion #1650 reported the case.

Removed: remote.NoModifyURL. No address needs it. Remove it from the call of remote.NewAllocator.

3 days ago
jwt

v5.4.0

Behavior changes

This release tightens parsing and validation. Tokens that were accepted before may now be rejected:

  • Tokens with line breaks (CR or LF) in any segment are now rejected as malformed (#553).
  • MapClaims with exp set to 0 is now treated as expired, not as a missing claim (#509).
  • An aud claim of an invalid type in MapClaims now returns ErrInvalidType (#511).

New API

  • Constants for registered header parameter names, such as HeaderAlgorithm and HeaderKeyID (#535).

Other changes

  • The token expired error now says how long ago the token expired (#510).

New Contributors

Full Changelog: https://github.com/golang-jwt/jwt/compare/v5.3.1...v5.4.0

3 days ago
lego

v5.8.2

lego is an independent, free, and open-source project, if you value it, consider supporting it! ❤️

Everybody thinks that the others will donate, but in the end, nobody does.

So if you think that lego is worth it, please consider donating.

For key updates, see the changelog.

Changelog

  • 35e266037604491fa829a5eb6270e225095982fb dreamhost: use API v1 (#3416)
4 days ago
chromedp

v0.24.1

Fix: an attach to a target that exists, with WithTargetID, raced with the DOM events of the page. newTarget loaded the document into the nodes of the frame on the goroutine of the caller, while the target read the nodes on its own goroutine without the lock of the frame. The target now reads the nodes only under the lock. arthurdls reported it in discussion #1649, with a test that needs no browser.

Update cdproto to v0.160.12.

5 days ago
lego

v5.8.1

lego is an independent, free, and open-source project, if you value it, consider supporting it! ❤️

Everybody thinks that the others will donate, but in the end, nobody does.

So if you think that lego is worth it, please consider donating.

For key updates, see the changelog.

Changelog

  • 9c0e12bec0b4fb5ebad622532acfd1c3d753769c fix(gandiv5): clean up when existing TXT records (#3412)
6 days ago
lego

v5.8.0

lego is an independent, free, and open-source project, if you value it, consider supporting it! ❤️

Everybody thinks that the others will donate, but in the end, nobody does.

So if you think that lego is worth it, please consider donating.

For key updates, see the changelog.

Changelog

  • 79bdf5f21c503542fb5c344a358b944eb1288143 Add DNS provider for Shellrent v3 (#3407)
  • d693115a8b8433441877f441c7568d65db716c4b feat: follow order processing Retry-After (#3399)
  • 12e462120738adc0195ef00552abb3cdba03a0d1 fix: RegisterWithExternalAccountBinding error (#3403)
  • c9a9246f15b6b41b057e6c35cce91d60bfa5d398 tests: more real data (#3400)
6 days ago
redis

9.24.1

This is a patch release with bug fixes. It also adds one option to redisotel-native (WithClosedPoolSeriesRetention), which has a default and needs no change. Upgrading from 9.24.0 is a drop-in replacement. Note the behavior change of ScanIterator.Vals below (due to a bugfix).

🚀 Highlights

Large reply announcements no longer allocate up front

The RESP reader allocated a bulk reply with the length announced in its header. A server or proxy that announced a large length could make the client allocate that much memory before any data arrived. Replies up to 32 MiB are read as before. A larger reply now grows with the data that actually arrives. Above 32 MiB this costs more memory and time than a single allocation (fixes #4324) (#4343) by @PerryLink.

Closed pools are dropped from the connection metrics

In redisotel-native, the db.client.connection.count and db.client.connection.pending_requests series of a closed client were observed at 0 until the next Shutdown. With clients created and closed over the process lifetime, the observer and each collection grew without limit. A closed pool's series is now observed at 0 for a retention window, so every reader that collects in that window gets the final decrement, and is then dropped. The default window is 5 minutes. Set it with Config.WithClosedPoolSeriesRetention, above your longest export or scrape interval (#4442) by @ndyakov.

ScanIterator.Vals resumes from the iterator position

Vals started at the first value of the current page each time, so after Next/Val or after a break out of a range over Vals, a new Vals loop returned values again. Vals now shares its position with Next and Val and returns only the remaining values. Code that ranged over Vals a second time to read the same page again now gets nothing for the values already returned (fixes #4427) (#4428) by @xixi-box.

🐛 Bug Fixes

  • HotKeysStart: nil options return ErrHotKeysNoMetrics instead of panicking (fixes #4434) (#4437) by @Dazhou-del
  • JSONDebugMemory: implemented with an IntCmd; it panicked before. The key position is set, so a cluster client routes it by key. For JSONPath queries, which return an array, use Do (fixes #4433) (#4436) by @Dazhou-del
  • TimeSeries range filters: empty FilterByTS and FilterByValue slices are omitted like nil in TS.RANGE, TS.REVRANGE, TS.MRANGE and TS.MREVRANGE, instead of sending an empty clause (fixes #4432) (#4435) by @Dazhou-del
  • TimeSeries selected labels: an empty SelectedLabels slice no longer sends a bare SELECTED_LABELS in TS.MGET, TS.MRANGE and TS.MREVRANGE (#4425) by @pcbeingused333
  • Connection state machine: a transition to the closed state wakes every waiter with ErrStateMachineClosed, instead of leaving it blocked until its context expires (#4430) by @xgbtxy
  • Push notifications: VoidProcessor returns a ReadReply error in the middle of a frame, like Processor, so the connection is discarded instead of reading the rest of the frame as a reply (#4431) by @xgbtxy
  • Sentinel: the failover client subscribes to +slave-reconf-done again. An earlier rename to +replica-reconf-done meant it never received the event, because Sentinel still publishes the old name (#4387) by @ruziba3vich
  • Cluster replica reads: the replica picker is called once per read and then every replica is tried, so a repeated index can no longer hide a healthy replica (#4394) by @ruziba3vich
  • Cluster with a ClusterSlots function: loopback node addresses are kept as given and no longer rewritten to :port (#4411) by @ruziba3vich
  • RoundRobinPicker: the index stays in range on 32-bit platforms (#4409) by @ruziba3vich
  • Cluster and Ring PoolStats: include the per-node Pub/Sub stats, Unusable and PendingRequests, like Client.PoolStats (#4413) by @ruziba3vich
  • Maintenance notifications: the delay for a MOVING notification without an endpoint keeps the half second for an odd timeS (#4393) by @ruziba3vich
  • redisotel tracing: each cluster node gets its own copy of the tracing options, so its spans no longer carry the server attributes of other nodes, and a data race in OnNewNode is removed (#4412) by @ruziba3vich
  • redisotel-native error types: only a Redis server error is classified by its prefix. Errors such as io.EOF are reported as internal, and a server error wrapped by a hook keeps its prefix (#4395) by @ruziba3vich
  • rediscmd: CmdString redacts the sentinel-pass value of SENTINEL CONFIG SET (#4382) by @ruziba3vich

⚡ Performance

  • Command metadata without CSC: a standalone client with CommandMetadataPreferLive and no client-side caching no longer starts a metadata worker or sends COMMAND in the background. The metadata store is built only when CSC attaches (#4424) by @wozhenbang2004

👥 Contributors

We'd like to thank all the contributors who worked on this release!

@Dazhou-del, @ndyakov, @pcbeingused333, @PerryLink, @ruziba3vich, @wozhenbang2004, @xgbtxy, @xixi-box


Full Changelog: https://github.com/redis/go-redis/compare/v9.24.0...v9.24.1