dependabot[bot]
d6d3196163
build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 ( #794 )
2022-06-24 12:49:56 -04:00
dependabot[bot]
41718a6db3
build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 ( #793 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.2 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.4 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 08:32:13 -04:00
Thomas Pelletier
216628222f
Build arm + arm64 binaries for linux and windows ( #790 )
...
* Build arm + arm64 binaries for linux and windows
* Type MaxInt64 to avoid overflow on 32 bits arch
On a 32 bits arch, math.MaxIn64 is interpreted as an int, and therefore
overflows. This causes compilation to build on those platforms.
v2.0.2
2022-06-08 18:05:42 -04:00
dependabot[bot]
322e0b15d2
build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 ( #788 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 17:44:59 -04:00
Thomas Pelletier
85bfc0ed51
Encode: add bound check for uint64 > math.Int64 ( #785 )
...
As brought up on #782 , there is an asymetry between numbers go-toml can encode
and decode. Specifically, unsigned numbers larger than `math.Int64` could be
encoded but not decoded.
We considered two options: allow decoding of those numbers, or prevent those
numbers to be decoded.
Ultimately we decided to narrow the range of numbers to be encoded. The TOML
specification only requires parsers to support at least the 64 bits integer
range. Allowing larger numbers would create non-standard TOML documents, which
may not be readable (at best) by other implementations. It is a safer default to
generate documents valid by default. People who wish to deal with larger numbers
can provide a custom type implementing `encoding.TextMarshaler`.
Refs #781
2022-05-31 22:10:41 -04:00
dependabot[bot]
295a720dfb
build(deps): bump goreleaser/goreleaser-action from 2 to 3 ( #783 )
...
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action ) from 2 to 3.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases )
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-23 15:05:00 +02:00
Thomas Pelletier
0a422e3dbd
Decoder: check max uint on 32 bit platforms ( #778 )
...
Fixes #777
v2.0.1
2022-05-10 15:43:26 +02:00
Thomas Pelletier
627dade0c7
Encode: support comment on array tables ( #776 )
...
Fixes #774
2022-05-10 15:17:36 +02:00
Thomas Pelletier
b2e0231cc9
Encode: fix multiline comment ( #775 )
...
Fixes #768
2022-05-10 14:53:26 +02:00
dependabot[bot]
ba95863cd3
build(deps): bump docker/login-action from 1 to 2 ( #771 )
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-09 18:59:02 +02:00
Erik Hartwig
db679df765
Typo in README.md fix ( #770 )
...
Change "document was not prevent in the target structure" to "document was not present in the target structure".
2022-05-09 18:46:46 +02:00
Thomas Pelletier
c5ca2c682b
Fix embedded struct with explicit field name ( #773 )
...
Fixes #772
2022-05-09 18:45:02 +02:00
Thomas Pelletier
ed80712cb4
Copy version policy from v1
2022-04-28 11:55:39 -04:00
dependabot[bot]
b24772942d
build(deps): bump github/codeql-action from 1 to 2 ( #764 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 08:24:14 -04:00
dependabot[bot]
9501a05ed7
build(deps): bump actions/checkout from 2 to 3 ( #765 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 08:23:56 -04:00
Thomas Pelletier
171a592663
Prepare repository for v2.0.0 ( #762 )
v2.0.0
2022-04-27 21:29:16 -04:00
Thomas Pelletier
5aaf5ef13b
Fix internal entry size test ( #761 )
...
The test meant to assert that the size of entry does not grow beyond
what it is today. 48 is the current size in bytes on x64. On 32-bit
platform that value should be less. As written the test was doing the
opposite comparison.
Fixes #760
2022-04-24 18:50:54 -04:00
Thomas Pelletier
adacebd8c7
Update benchmarks in README ( #756 )
v2.0.0-beta.8
2022-04-10 22:24:19 -04:00
Thomas Pelletier
8bbb673431
Fuzzing setup and fixes ( #755 )
...
* encode: fix localdate formatting
* encode: fix empty key marshaling
* encode: fix invalid quotation of time.Time
* encode: ensure control chars are escaped
* decode: always use UTC for zero tz
* encode: check for invalid characters in keys
* encode: always construct map for empty array tables
* fuzz: add go 1.18 fuzz test
* encode: handle NaNs
* encode: allow new lines in quoted keys
* encode: never emit table inside array
* encode: don't capitalize inf
2022-04-10 21:37:12 -04:00
Thomas Pelletier
2377ac4bc0
encode: fix embedded interfaces ( #753 )
...
Resolve marshaling regression when handling an embedded interface in a
struct.
Fixes #752
2022-04-08 09:25:54 -04:00
Thomas Pelletier
f5cc8c49eb
decoder: remove mention of UnmarshalText in errors ( #751 )
...
Fixes #737
v2.0.0-beta.7
2022-04-07 21:58:19 -04:00
Thomas Pelletier
89d7b412d8
decode: allow subtables to be defined later ( #750 )
...
Fixes #739
2022-04-07 21:49:16 -04:00
Thomas Pelletier
88a8aecdd4
tools: display error context when it exists ( #749 )
...
For example when failing to decode toml, display the context around the
error and the location of the problem.
2022-04-07 20:33:09 -04:00
Thomas Pelletier
9804fc57e0
decoder: support \e escape sequence ( #748 )
2022-04-07 20:18:30 -04:00
Thomas Pelletier
068279f13b
encode: respect stdlib rules for embedded structs ( #747 )
v2.0.0-beta.6
2022-04-07 19:51:09 -04:00
Thomas Pelletier
b9edbeb611
Update testify dependency ( #746 )
2022-03-30 15:10:57 -04:00
Thomas Pelletier
a97c9317d4
Go 1.18 ( #745 )
2022-03-23 10:26:12 -04:00
Gregory Oschwald
3229a0abfb
Decode: convert table key to correct type ( #741 )
...
Fixes #740 .
2022-03-02 09:24:01 -05:00
Thomas Pelletier
3f5d8a6b06
Mention removal of go-toml/query ( #736 )
...
Fixes #722
2022-01-07 18:58:33 -05:00
Cameron Moore
146f70ea8a
Decode: use cleaned byte slice throughout parseFloat ( #735 )
...
Fixes #734
2022-01-06 14:34:27 -05:00
Thomas Pelletier
e83cf535f5
Decoder: rename SetStrict to DisallowUnknownFields ( #731 )
2022-01-02 14:32:34 -05:00
Thomas Pelletier
c3ba3ef97a
readme: add docker image
2022-01-01 09:53:14 -05:00
Thomas Pelletier
7ee3c8ff25
build: login to github repository
2022-01-01 09:24:52 -05:00
Thomas Pelletier
1e85aa6d78
build: add contents permissions
2021-12-31 20:47:50 -05:00
Thomas Pelletier
46fa3225e2
build: allows the token to write packages
2021-12-31 20:25:11 -05:00
Thomas Pelletier
4d51831dab
build: replace grc.io with ghcr.io
2021-12-31 20:10:36 -05:00
Thomas Pelletier
5a1a96cb2d
build: pass the github token to goreleaser
2021-12-31 20:03:18 -05:00
Thomas Pelletier
ea9040ae83
build: change workflow reference to v2
2021-12-31 19:57:41 -05:00
Thomas Pelletier
2373685f1e
Docker + goreleaser ( #729 )
2021-12-31 19:55:31 -05:00
Thomas Pelletier
f1391952d4
Update and move testsuite to internal package ( #730 )
...
* Regenerate test suite
* Move test suite to /internal
2021-12-31 18:52:26 -05:00
Thomas Pelletier
4a73a200ed
Clean up tools godoc
2021-12-31 15:56:40 -05:00
Thomas Pelletier
4807229e94
tomll: port to v2 ( #727 )
...
Fixes #721
2021-12-31 15:40:18 -05:00
Thomas Pelletier
d8ddc00c61
jsontoml: port to v2 ( #726 )
...
Fixes #719
2021-12-31 14:40:20 -05:00
Thomas Pelletier
82f8dad811
tomljson: port to v2 ( #725 )
2021-12-31 13:25:53 -05:00
Thomas Pelletier
75db1016e8
Remove extra words from CONTRIBUTING
2021-12-29 10:26:22 -05:00
Thomas Pelletier
de6d715bd2
Update CONTRIBUTING.md
2021-12-29 10:25:28 -05:00
Thomas Pelletier
3ab2fc2b87
Update release proces documentation
2021-12-29 10:24:01 -05:00
Thomas Pelletier
1b1dd3d6d5
Exclude testing PRs from release notes
v2.0.0-beta.5
2021-12-29 09:53:43 -05:00
Cameron Moore
128b7a8bfb
Decode: check buffer length before parsing simple key ( #717 )
...
Fixes #714
2021-12-29 08:58:42 -05:00
Cameron Moore
892df5c28e
Decode: fix index out of range bug ( #716 )
...
Fixes #715
2021-12-29 08:49:33 -05:00