CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 07:01:12 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"39c938f84a06777edba2abc553e88366"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=sqVDUpYEN1I3erPdVM%2Bhz0BUSnHDcBWO20%2B4qZXkNepBOoeLir3e5EZ4FpyQUwfseQjy2IhC%2BZ4asU6eMuTUQjD4d6Tz0Rv5qIINH08aqWkBcS9v25Y%2FmStdMRsax5jesb1Odz9uzH4xoMKG7C6%2Ba7rzTXDp5iRwOzJ%2F%2FkXOI%2FTVMAj1n0l2AWs54FizZjW2ZAv%2FmUrVkWcnQBM0cmEOGZfKXX6AQttsPqfavKx%2BhPKihcioMhpoIb6z8U%2FrtzM0ngdmXtn0HT6Xd7UROvLFFQ%3D%3D--Lz1Q%2Fw81rN1o%2FE6c--TUE2ig0ty8M4TlapdsrQPQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1944119524.1753254072; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 07:01:12 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 07:01:12 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D5E2:941DF:5B4269:741795:688088B8
Release v2.7.0 Β· fxamacker/cbor Β· GitHub
Loading
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 70
v2.7.0
Compare
·
170 commits
to master
since this release
02b69db
This commit was created on GitHub.com and signed with GitHubβs verified signature.
v2.7.0 (June 23, 2024)
v2.7.0 adds features and improvements that help large projects (e.g. Kubernetes) use CBOR as an alternative to JSON and Protocol Buffers. Other improvements include speedups, improved memory use, bug fixes, decoding/encoding options, etc. Passed 5+ billion execs fuzzing.
Special thanks to @benluddy for contributing features, optimizations, improvements, bug fixes, and discussions! π
β Features and Optimizations
- Add decoding option TimeTagToAny to produce RFC3339 when decoding time into interface{} by @ssuriyan7 in #506
- Bypass sorting overhead for single-entry maps. by @benluddy in #516
- Add decode option to allow rejecting inputs that contain certain simple values. by @benluddy in #481
- Allow rejection of NaN and Inf float values on encode and decode. by @benluddy in #513
- Add SortMode to encode struct fields in a less predictable order. by @benluddy in #515
- Add a decoding option to allow decoding byte string into time.Time. by @benluddy in #524
- Encode structs directly to output buffer. by @benluddy in #519
- Support automatic conversion between text and binary string representations by @benluddy in #476
- Add a method for marshaling directly into a user-provided buffer. by @benluddy in #521
- Add options to disable BinaryMarshaler/BinaryUnmarshaler support. by @benluddy in #526
- Add option to reject decoding bignum tags and encoding big.Int. by @benluddy in #527
- Improve speed & memory use for Diagnose() and DiagnoseFirst() by @benluddy in #533
- Refactor sorted map encode to use fewer buffers for nested maps. by @benluddy in #537
- Allow user to specify buffer by adding
cbor.MarshalToBuffer()
,UserBufferEncMode
interface, etc. by @fxamacker in #553
π Improvements
Most improvements focused on fixing or updating new features. See π Bug Fixes section for fixes to features already released.
- Refactor to reuse functions and improve code coverage by @fxamacker in #531
- Fix invalid RFC 3339 in TimeTagToAny (unreleased new feature) by @benluddy in #540
- Refactor and improve code by @fxamacker in #542
- Use "cbor:" prefixed error msg when decoding with non-default TimeTagToAnyMode setting by @fxamacker in #544
- Disable conflicting encode options when marshaling cbor.Tag. by @benluddy in #546
- Improve byte string format decoding options by @fxamacker in #550
- Replace
*errors.errorString
withInadmissibleTagContentTypeError
by @fxamacker in #552 - Rename ByteSliceMode to ByteSliceLaterFormatMode, etc by @fxamacker in #554
- Fix panic using SortFastShuffle (unreleased new feaure) to encode a struct with no fields. by @benluddy in #556
π Bug Fixes
- Check well-formedness of data from MarshalCBOR by @fxamacker in #485
- Treat map keys matching the same struct field as duplicates. by @benluddy in #492
- Decouple time.Time parsing from empty interface behavior. by @benluddy in #503
Other changes
Details
- Bump govulncheck from v1.0.1 to v1.0.4 by @fxamacker in #493
- Remove OpenSSF Scorecard until scorecard bug is fixed by @x448 in #495
- Bump github/codeql-action from 3.24.0 to 3.24.5 by @dependabot in #498
- Bump github/codeql-action from 3.24.5 to 3.24.6 by @dependabot in #502
- Enable more linters in .golangci.yml by @fxamacker in #504
- Bump actions/checkout from 4.1.1 to 4.1.2 by @dependabot in #509
- Bump github/codeql-action from 3.24.6 to 3.24.7 by @dependabot in #510
- Bump github/codeql-action from 3.24.7 to 3.24.9 by @dependabot in #511
- Bump github/codeql-action from 3.24.9 to 3.24.10 by @dependabot in #518
- Bump actions/checkout from 4.1.2 to 4.1.3 by @dependabot in #522
- Bump github/codeql-action from 3.24.10 to 3.25.1 by @dependabot in #523
- Bump github/codeql-action from 3.25.1 to 3.25.3 by @dependabot in #529
- Bump actions/checkout from 4.1.3 to 4.1.4 by @dependabot in #530
- Bump actions/setup-go from 4.1.0 to 5.0.1 by @dependabot in #532
- Bump github/codeql-action from 3.25.3 to 3.25.4 by @dependabot in #534
- Bump actions/checkout from 4.1.4 to 4.1.5 by @dependabot in #535
- Bump actions/checkout from 4.1.5 to 4.1.6 by @dependabot in #538
- Bump github/codeql-action from 3.25.4 to 3.25.5 by @dependabot in #539
- Bump golangci-lint from 1.53.3 to 1.54.2 by @fxamacker in #543
- Bump github/codeql-action from 3.25.5 to 3.25.6 by @dependabot in #541
- Bump github/codeql-action from 3.25.6 to 3.25.7 by @dependabot in #547
- Bump golangci-lint to 1.56.2 by @fxamacker in #548
- Bump actions/checkout from 4.1.6 to 4.1.7 by @dependabot in #557
- Bump github/codeql-action from 3.25.7 to 3.25.10 by @dependabot in #559
- Update README.md for v2.7.0 release by @fxamacker in #560
Full Changelog
Full Changelog: v2.6.0...v2.7.0
Assets 2
6 people reacted
You canβt perform that action at this time.