Skip to content

Releases: traefik/yaegi

v0.8.0

17 Mar 18:04
ca68c6c
Compare
Choose a tag to compare

Changelog

d29b0a4 Add option "-e"
94e0b58 Update stdlib for go1.14
953b122 fix: avoid infinite recursion in genFunctionWrapper()
1ae2649 fix: correct control flow graph for defer statements
6e33f89 fix: correct control flow graph for some switch statements
0ace924 fix: correctly init variables from index expressions
d8bdc66 fix: detect field names in struct pointer
c7c1bea fix: do not attempt to store data in _ var
78bbcda fix: do not overwrite input for assign operators
cfb7344 fix: handle interface values in map and arrays
2edd18a fix: handle use of functions in struct fields
27520f6 fix: re-apply GTA until all global types/constants are defined
ca68c6c fix: resolve embedded method on pointer types
9b07e73 fix: resolve receiver for binary methods on non interface types
3548c87 interp: weaken panics to errors and return panicked values

v0.7.6

14 Feb 15:53
7037424
Compare
Choose a tag to compare

Changelog

902af47 fix: correct behavior for rune and byte types
0596031 fix: correct type inference in composite literal init
1b971b5 fix: correctly handle arbitrary type of literal array index
681f2f9 fix: correctly handle constant init for further type declarations
7037424 fix: correctly store boolean result for branching operations
812e55b fix: handle conversion of nil to an interface type
6c339ce fix: handle method declaration with forward declared type

v0.7.5

06 Feb 10:23
23dfef0
Compare
Choose a tag to compare

Changelog

b057ada Add an example of yaegi in a shebang line
6d90c5a Case sensitivity fix
712891d fix: allow reuse of _ symbol in the same scope
23dfef0 fix: define a correct zero value for an not initialized interface{}
137b165 fix: handle binary methods where receiver is implicit
92a63db fix: handle out of order type declaration for global var declaration
4fd6a2d fix: handle recursive type definition involving a map object
e434892 fix: import different source packages with same base name

v0.7.4

10 Jan 17:11
Compare
Choose a tag to compare

Changelog

5381ee6 fix: continue statement was not applied correctly

v0.7.3

10 Jan 14:19
Compare
Choose a tag to compare

Changelog

878fcc8 fix: add support for ^ and + as unary operators
f1cde2b fix: apply automatic type conversion to constant expressions (#484)
a1f2d3b fix: isNil was not forwarding result when used in a branch expression
9a8a88d fix: use branch operation in || and && operators, fix storage for ! (#476)

v0.7.2

19 Dec 15:07
Compare
Choose a tag to compare

Changelog

3cd3764 fix: correct isValueUntyped() to handle typed constants
e1ac83f fix: correct type extraction for returned value
7a0c09f fix: detect untyped values when importing from binary packages
4f93be7 fix: emulate struct by interface{} only for recursive struct types

v0.7.1

12 Dec 14:30
Compare
Choose a tag to compare

Changelog

1ff1a50 fix: add method checks for interface types
0d2c39d fix: implicit import package name was not correctly generated
273df8a fix: improve interface type checks using method sets
488e491 fix: improve type switch clause with assign
275391c fix: struct type detection, collision between field and type name

v0.7.0

26 Nov 09:36
Compare
Choose a tag to compare

Changelog

1cf327b Drop go1.11
e193d95 feat: update syscall for go1.12.12
0b4dcbf feature: add support for custom build tags
de5a6e1 feature: rename exported func Repl into REPL
c5ec5e4 fix: assign a literal composite to an interface object
1568687 fix: assign binary func to func type var
ac504a2 fix: assign untyped value to typed var may require type conversion
a6eceba fix: automatic conversion of untyped literal float to int
9f1f312 fix: automatic type conversion when returning untyped value
7d19108 fix: compute type of slice expression globally
e506969 fix: correct handling of dynamic type for interface values
eef5915 fix: detect non boolean condition for IF and FOR statements
7164a23 fix: do not hide receiver type for method with anonymous receiver
4f95c27 fix: generate closures for literal functions in CFG
75a696a fix: goexports performs correct conversion on float32 constants
56bec97 fix: handle index expression on binary string type
786ea36 fix: handle nil function closure
d44e4af fix: handle selector expression in type switch
08a37fc fix: handle type assertion from literal interface type
3969ab1 fix: improve handling of untyped complex numbers
773147e fix: properly align atomic counters
714253c interp: add eval cancelation by semaphore
4bf4aee interp: fix map range handling
398b0e0 interp: use io.Reader and io.Writer for REPL parameters

v0.6.2

01 Oct 10:17
Compare
Choose a tag to compare

Changelog

2c2b471 fix: goexports to convert value type only for untyped constants
4792386 interp: fix array size assignment type inference
bb2921b interp: fix range expression handling

v0.6.1

26 Sep 08:58
Compare
Choose a tag to compare
v0.6.1 Pre-release
Pre-release

Changelog

9abaeeb fix: binary method lookup works for struct field pointer receiver
03596da fix: correct automatic type conversion for untyped constants
35e645c fix: correct handling of types alias of interfaces
effd64c fix: handle forward declaration of alias type
0f46cd5 fix: handle type declaration inside function
8a88a1a fix: range over string iterates on runes instead of bytes
030dd3c fix: support variadic parameters on methods
8db7a81 interp: don't panic for undefined types