Skip to content

Commit

Permalink
Fixing bug in polyglot.Write, updating version and changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Vij <[email protected]>
  • Loading branch information
ShivanshVij committed Mar 27, 2024
1 parent 0aca116 commit f003b73
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 19 deletions.
34 changes: 21 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,24 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v1.2.2] - 2024-03-26

### Fixes

- Fixed a bug in Polyglot Go where the capacity of the buffer would not grow properly resulting in silent short writes and corrupted data

## [v1.2.1] - 2024-03-12

### Changes

- Made Buffer.Grow() in the Polyglot Go library public

## [v1.2.0] - 2024-03-14

### Changes

- Significant performance improvements for the Golang implementation
- Updated the names of error values in Go to fit with Go's standard code-style conventions
- Significant performance improvements for the Golang implementation

## [v1.1.4] - 2023-10-12

Expand Down Expand Up @@ -49,19 +64,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

- Merging Typescript, Golang, and Rust implementations into a single repository

[unreleased]: https://github.com/loopholelabs/scale/compare/v1.1.4...HEAD
[unreleased]: https://github.com/loopholelabs/scale/compare/v1.2.2...HEAD
[v1.2.2]: https://github.com/loopholelabs/scale/compare/v1.2.2
[v1.2.1]: https://github.com/loopholelabs/scale/compare/v1.2.1
[v1.2.0]: https://github.com/loopholelabs/scale/compare/v1.2.0
[v1.1.4]: https://github.com/loopholelabs/scale/compare/v1.1.4
[v1.1.3]: https://github.com/loopholelabs/scale/compare/v1.1.3
[v1.1.2]: https://github.com/loopholelabs/scale/compare/v1.1.2
[v1.1.1]: https://github.com/loopholelabs/scale/compare/v1.1.1
[v1.1.0]: https://github.com/loopholelabs/scale/compare/v1.1.0

## [v1.2.0] - 2024-03-14

### Changes

- Updated the names of error values in Go to fit with Go's standard code-style conventions

## [v1.2.1] - 2024-03-04

- Made Buffer.grow() in the Polyglot Go library public to allow for better usage patterns with stream readers
[v1.1.0]: https://github.com/loopholelabs/scale/compare/v1.1.0
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polyglot_rs"
version = "1.2.1"
version = "1.2.2"
edition = "2021"
description="A high-performance serialization framework used for encoding and decoding arbitrary datastructures across languages."
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
replace github.com/loopholelabs/polyglot => ../

require (
github.com/loopholelabs/polyglot v1.2.1
github.com/loopholelabs/polyglot v1.2.2
google.golang.org/grpc v1.59.0
google.golang.org/protobuf v1.33.0
)
Expand Down
2 changes: 1 addition & 1 deletion buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (buf *Buffer) Grow(n int) {

func (buf *Buffer) Write(b []byte) int {
buf.Grow(len(b))
buf.offset += copy(buf.b[buf.offset:], b)
buf.offset += copy(buf.b[buf.offset:cap(buf.b)], b)
return len(b)
}

Expand Down
2 changes: 1 addition & 1 deletion c_bindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "c_bindings"
version = "1.2.1"
version = "1.2.2"
edition = "2021"
description="A high-performance serialization framework used for encoding and decoding arbitrary datastructures across languages."
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@loopholelabs/polyglot",
"version": "1.2.1",
"version": "1.2.2",
"license": "Apache-2.0",
"description": "A high-performance serialization framework used for encoding and decoding arbitrary datastructures across languages.",
"homepage": "https://github.com/loopholelabs/polyglot",
Expand Down
2 changes: 1 addition & 1 deletion version/current_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.1
v1.2.2

0 comments on commit f003b73

Please sign in to comment.