Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Tact 1.4.0 #36

Closed
10 tasks
anton-trunov opened this issue Jun 9, 2024 · 7 comments
Closed
10 tasks

Support Tact 1.4.0 #36

anton-trunov opened this issue Jun 9, 2024 · 7 comments
Assignees

Comments

@anton-trunov
Copy link
Member

anton-trunov commented Jun 9, 2024

The following is the list of IDE-relevant changes for Tact v1.4.0 which has been released. The full changelog is here: https://github.com/tact-lang/tact/blob/main/CHANGELOG.md#140---2024-06-21.

New or changed syntax

  • Unary bitwise NOT operation: ~.
  • Augmented assignment bitwise operators: |=, &=, ^=.
  • foreach loop for the Map type now works not only with simple identifiers, but with contract storage and struct fields too: foreach (k, v in self.map) {...} or foreach (k, v in struct.map) {...}.
  • Trailing semicolons in struct/message declarations are optional now: struct Foo {x: Int} is valid syntax now.
  • Trailing semicolon in for the last statement in a block is optional now: { let x: Int = 42 } is valid syntax now.
  • Type annotation for let-statements are optional now: let x = 42 is valid syntax now.

stdlib functions

  • Fixed the return type of skipBits in stdlib/std/cells.tact: extends mutates native skipBits(self: Slice, l: Int) (used to return Int, now it's void).
  • New loadBool method for slices.
  • New fromCell and fromSlice methods for struct parsing.
  • nativeThrowWhen has been renamed to nativeThrowIf.
@anton-trunov
Copy link
Member Author

Tact v1.4.0 has just been released, looking forward to see it supported in VS Code!

@logvik
Copy link
Member

logvik commented Jun 21, 2024

Tact v1.4.0 has just been released, looking forward to see it supported in VS Code!

ok, I will start next week already

@anton-trunov
Copy link
Member Author

Btw, in terms of Marketplace publishing, we should target Tact v1.4.1 bugfix release, which is going to be release early next week.

@logvik
Copy link
Member

logvik commented Jul 1, 2024

Added v1.4.0, I will wait for v1.4.1

@anton-trunov
Copy link
Member Author

Added v1.4.0, I will wait for v1.4.1

We just released 1.4.1 -- https://www.npmjs.com/package/@tact-lang/compiler/v/1.4.1

@logvik
Copy link
Member

logvik commented Aug 9, 2024

The new version for v1.4.1 has been published on the marketplace.

@logvik logvik closed this as completed Aug 9, 2024
@anton-trunov
Copy link
Member Author

Awesome! Thanks so much. I'll open a separate issue to support Tact v1.4.2 which accumulates lots and lots of bug fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants