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
v5.3.1
This release contains improvements and bug fixes.
- US-2138 Faster text extraction on tagged PDFs:
extractor.Newno 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
PdfFontbelongs to one document at a time: concurrent creators each need their own font
- 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
cidrangeandbfrangesections: range expansion is now bounded and counts toward the per-pageMaxDecodedPageSizelimit,bfrangeentries above 0xFFFF are kept instead of clamped, andcidrangeentries with a bad start are rejected - US-2099 Fixed chained or failing stream
/Lengthreferences multiplying the parse work - US-2124 Fixed panics on annotation appearance streams with missing or indirect
/Resourcesduring text extraction withIncludeAnnotations, and on readers whose structure failed to load after decryption:GetNumPagesandGetPagenow return an error for such a reader - US-1937 Fixed indirect objects referenced by the encryption dictionary, such as public-key
/Recipientsstrings, being decrypted after authentication and written back corrupted by the writer or appender - US-2123 Fixed DocMDP validation being skipped for certifications whose
/Referencearray 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
RequireRevocationStatusthe 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.IsUTF16BEreports whether a string is UTF-16BE text - US-2068 Fixed
GetAttachedFilesnot reading attachments from an EmbeddedFiles name tree split into/Kids, and failing on a filespec without/Descor an embedded file without/Params - US-2008 Fixed template pages named by the
/Templatesname tree being written as null; the/Templatestree is now written back - US-2017 Fixed the table of contents being left untagged when
DrawTaggedis 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
greenandgraywere written out of range, andrgb(),rgba(), opacity andcurrentColorare now parsed consistently and inherited through the SVG tree - US-2087 Fixed gradients on a rotated
StyledParagraphbeing painted in the wrong place - US-2085 Fixed justified
StyledParagraphlines 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
SetMaxLinesand left out of the paragraph height, and grid rows holding paragraphs not being padded like table rows - US-2081 Fixed
ParseTemplatemodifying and keeping the caller'sTemplateOptions, which made concurrentDrawTemplatecalls sharing one options value race
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.
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.
v5.4.0
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).
MapClaimswithexpset to0is now treated as expired, not as a missing claim (#509).- An
audclaim of an invalid type inMapClaimsnow returnsErrInvalidType(#511).
- Constants for registered header parameter names, such as
HeaderAlgorithmandHeaderKeyID(#535).
- The token expired error now says how long ago the token expired (#510).
- @TarasHots made their first contribution in https://github.com/golang-jwt/jwt/pull/510
- @c-tonneslan made their first contribution in https://github.com/golang-jwt/jwt/pull/509
- @ultramcu made their first contribution in https://github.com/golang-jwt/jwt/pull/511
Full Changelog: https://github.com/golang-jwt/jwt/compare/v5.3.1...v5.4.0
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.
- 35e266037604491fa829a5eb6270e225095982fb dreamhost: use API v1 (#3416)
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.
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.
- 9c0e12bec0b4fb5ebad622532acfd1c3d753769c fix(gandiv5): clean up when existing TXT records (#3412)
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.
- 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)
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).
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.
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.
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.
HotKeysStart: nil options returnErrHotKeysNoMetricsinstead of panicking (fixes #4434) (#4437) by @Dazhou-delJSONDebugMemory: implemented with anIntCmd; it panicked before. The key position is set, so a cluster client routes it by key. For JSONPath queries, which return an array, useDo(fixes #4433) (#4436) by @Dazhou-del- TimeSeries range filters: empty
FilterByTSandFilterByValueslices are omitted like nil inTS.RANGE,TS.REVRANGE,TS.MRANGEandTS.MREVRANGE, instead of sending an empty clause (fixes #4432) (#4435) by @Dazhou-del - TimeSeries selected labels: an empty
SelectedLabelsslice no longer sends a bareSELECTED_LABELSinTS.MGET,TS.MRANGEandTS.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:
VoidProcessorreturns aReadReplyerror in the middle of a frame, likeProcessor, 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-doneagain. An earlier rename to+replica-reconf-donemeant 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
ClusterSlotsfunction: 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,UnusableandPendingRequests, likeClient.PoolStats(#4413) by @ruziba3vich - Maintenance notifications: the delay for a
MOVINGnotification without an endpoint keeps the half second for an oddtimeS(#4393) by @ruziba3vich redisoteltracing: 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 inOnNewNodeis removed (#4412) by @ruziba3vichredisotel-nativeerror types: only a Redis server error is classified by its prefix. Errors such asio.EOFare reported as internal, and a server error wrapped by a hook keeps its prefix (#4395) by @ruziba3vichrediscmd:CmdStringredacts thesentinel-passvalue ofSENTINEL CONFIG SET(#4382) by @ruziba3vich
- Command metadata without CSC: a standalone client with
CommandMetadataPreferLiveand no client-side caching no longer starts a metadata worker or sendsCOMMANDin the background. The metadata store is built only when CSC attaches (#4424) by @wozhenbang2004
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