Skip to content

Releases: traefik/yaegi

v0.16.1

03 Apr 16:29
3fbebb3
Compare
Choose a tag to compare

Changelog

  • 3fbebb3 fix: avoid memory leak in closure
  • 2c92a7c fix: do not panic when assigning to _ (blank) var.

v0.16.0

05 Mar 17:14
0a5b16c
Compare
Choose a tag to compare

Changelog

  • 8de3add extract: escape ~ in package names
  • 0a5b16c feat: support go1.22
  • 6447a67 fix(src): use errors.Is(err, fs.ErrNotExist)
  • da27c4f interp: Add wasip1 to known OS list
  • f5b5481 interp: Record function names in panic
  • d124954 interp: fix computation of array size from constant expression
  • c10e468 interp: fix fieldName method parsing embedded + generic fields
  • 79b7420 interp: fix issue where a var is reused instead of redefined
  • 68a430f interp: fix support of type assert expressions in the global scope
  • d6ad13a interp: improve handling of embedded fields with binary methods
  • dc7c64b interp: improve support of unsafe
  • f4a9cd3 stdlib: remove embed wrapper
  • 1990b96 update to go1.21 (#1598)

v0.15.1

24 Mar 11:04
20c8f5e
Compare
Choose a tag to compare

Changelog

  • ce2bb79 interp: fix equality when nil is used as the left argument of ==
  • f202764 cli: disable race detector if GOFLAGS contains -buildmode=pie
  • 166fff7 interp: add safeguards when searching for vendor root.
  • 20c8f5e interp: correctly init variables assigned from function call
  • 9d65860 interp: fix type assertion issues
  • c4a297c interp: fix use of function as field of a recursive struct.
  • 8efc4f0 interp: improve handling of methods defined on interfaces

What's Changed

  • interp: improve handling of methods defined on interfaces by @mvertes in #1516
  • interp: add safeguards when searching for vendor root. by @dennwc in #1522
  • interp: fix type assertion issues by @ssbeatty in #1524
  • cli: disable race detector if GOFLAGS contains -buildmode=pie by @mvertes in #1526
  • test: use t.TempDir to create temporary test directory by @Juneezee in #1527
  • interp: fix use of function as field of a recursive struct. by @mvertes in #1525
  • Equality is incorrect when nil is used as the left argument of == by @elee1766 in #1500
  • interp: correctly init variables assigned from function call by @mvertes in #1529

New Contributors

Full Changelog: v0.15.0...v0.15.1

v0.15.0

08 Feb 11:30
6aa4f45
Compare
Choose a tag to compare

Changelog

  • 97cf8c4 Expose package name of a compiled source
  • eee72d1 Fix deadlock after parsing directory with no files
  • 9b4ea62 Fix gorountine arguments not copied.
  • 1679870 Suppress http.ErrAbortHandler panics, as in the stdlib
  • f3dbce9 interp: improve handling of generic types
  • 6aa4f45 interp: wrap source functions when used as input parameters.
  • 0e3ea57 update to go1.20

v0.14.3

26 Oct 15:30
v0.14.3
7bb8b46
Compare
Choose a tag to compare

Changelog

  • b8301f1 interp: add missing conversion for non integer array dimension
  • 6b8c94e interp: check that send operate on channel value
  • 9f43170 interp: error instead of panic when assigning to a constant
  • 7865c90 interp: fix case behavior for values converted to empty interface
  • 2e88083 interp: fix default comm clause in select
  • dfeddbe interp: fix handling generic types with multiple type parameters
  • 4a80936 interp: fix handling interface in operators
  • 7bb8b46 interp: fix processing of aliased types
  • 71112db interp: fix return of untyped values for defined types
  • e4e3d11 interp: fix the logic to skip source files based on OS or CPU arch
  • 143e4a4 interp: fix type assertion for wrapped empty interface
  • e003140 interp: improve internal handling of functions
  • 0218249 interp: improve type assertions
  • a5242cb interp: retry type definition if an array size is undefined

v0.14.2

02 Sep 15:06
v0.14.2
79747f3
Compare
Choose a tag to compare

Changelog

  • 79747f3 interp: fix redeclarations containing a blank variable
  • b2aa636 interp: fix spurious variable declaration loop
  • 03ccda1 interp: fix type switch on arbitrary expressions
  • 63825e7 interp: fix use of interfaces in composite types
  • e026215 interp: improve handling of composed interfaces wrappers
  • ab869c8 interp: improve method resolution for embedded interfaces

v0.14.1

05 Aug 16:33
ae725fb
Compare
Choose a tag to compare

Changelog

  • ae725fb interp: fix generic check on nil function

v0.14.0

03 Aug 13:39
14bc3b5
Compare
Choose a tag to compare

Changelog

  • 14bc3b5 interp: add support of Go generics in interpreter
  • 255b1cf interp: do not allow function declaration without body
  • d9c402e interp: fix unit testing for go1.18
  • 09a1617 interp: improve support of alias types
  • cb642c4 interp: improve type checking when comparing aliased types
  • dc082b5 stdlib: support of go1.18 and go1.19, remove go1.16 and go1.17

v0.13.0

14 Jun 15:07
f76db27
Compare
Choose a tag to compare

Changelog

  • 6c74ab7 interp: allow conversions of untyped complex
  • a61a7d5 interp: avoid panic when defining a label in incremental parsing mode
  • 996b1e3 interp: catch mismatched types for other comparisons
  • eaeb445 interp: create interpreter interface value with new
  • 259f64c interp: fix redeclaration of an interface variable
  • f76db27 interp: fix resolution of methods on aliased types
  • 236a0ef interp: improve the behaviour of interface{} function parameters
  • 6933ba2 interp: improve type checking for defined types

v0.12.0

23 May 08:47
d64563e
Compare
Choose a tag to compare

Changelog

  • 1cf9d34 Ignore private methods for binary types during type assertion
  • ad9db37 interp: add a function to get globals (#1387)
  • 4e77fc9 interp: delete incomplete type on pkg import
  • f74d1ea interp: detect invalid uses of _ as value
  • 7be17d3 interp: expose fset to fix CompileAST issue
  • 2248851 interp: fix creation of binary composite types (#1391)
  • 25edcfe interp: fix handling of empty interfaces in map index expressions
  • 606b4c3 interp: fix import of binary type symbols in current scope (#1380)
  • 5665c9a interp: fix redeclaration scope issue
  • 4ed9ccb interp: fix retrieving the string value of an interface
  • 00e3f92 interp: fix the behaviour of goto, continue and break (#1392)
  • 0703926 interp: implements detection of packages with no Go files
  • d183f42 interp: improve handling of empty interface values (#1393)
  • d64563e interp: improve handling values and comparisons in interfaces
  • 821e9ee interp: recover interpreter internal panics in EvalWithContext