Skip to content

Releases: yantrajs/yantra

v1.2.195

26 Oct 09:09
9707995
Compare
Choose a tag to compare

What's Changed

  • Fix a EnsureSufficientExecutionStack method for older versions of .NET by @Taritsyn in #92

New Contributors

Full Changelog: v1.2.192...v1.2.195

v1.2.192

21 Oct 14:20
9ef2e77
Compare
Choose a tag to compare

What's Changed

  • Added support for stack overflow by @ackava in #90

Full Changelog: v1.2.188...v1.2.192

v1.2.188

12 Sep 10:18
a7bb507
Compare
Choose a tag to compare

New Features

Explicit Resource Management

  1. Support for Symbol.dispose and Symbol.asyncDisposable.
  2. Support for using constResource = and await using constResource = syntax to enable disposable stack in current scope.
  3. Support for CLR IDisposable and IAsyncDisposable marshaling with automatic mapping for JavaScript's disposable symbols.

Example

Disposable implementation

class File {

    [Symbol.dispose]() {
       // close the file handle...
    }
}

function writeText(filePath, text) {
     using s = new File(filePath);
     s.writeText(text);
}

AsyncDisposable implementation

class File {

    async [Symbol.asyncDispose]() {
       // close the file handle...
    }
}

async function writeText(filePath, text) {
     await using s = new File(filePath);
     s.writeText(text);
}

What's Changed

Full Changelog: v1.2.176...v1.2.188

v1.2.176

18 Jun 13:53
c3fa657
Compare
Choose a tag to compare

What's Changed

  1. Added bigint only operations
  2. Parser for bigint
  3. asUIntN and asIntN methods

Full Changelog: v1.2.171...v1.2.176

v1.2.171

04 Jun 11:30
0eae661
Compare
Choose a tag to compare

What's Changed

  • JSObject moved to generated class by @ackava in #83
  • All classes moved to Generated Source by @ackava in #84

Full Changelog: v1.2.165...v1.2.171

v1.2.165

04 Jun 08:01
e939beb
Compare
Choose a tag to compare

What's Changed

  • JSArray moved to Generated Class by @ackava in #82

Full Changelog: v1.2.162...v1.2.165

v1.2.162

28 May 07:34
Compare
Choose a tag to compare
  1. JSString moved to Generated Class
    Full Changelog: v1.2.161...v1.2.162

v1.2.161

14 May 05:16
Compare
Choose a tag to compare
  1. Bug #80 fixed

Full Changelog: v1.2.160...v1.2.161

v1.2.160

09 Apr 14:35
b097a0c
Compare
Choose a tag to compare

What's Changed

  • Errors moved to Generated Class by @ackava in #75
  • Date moved to Generated Class by @ackava in #76
  • Boolean moved to Generated Class by @ackava in #77
  • Moved Number to Generated Class by @ackava in #78

Full Changelog: v1.2.155...v1.2.160

v1.2.155

08 Apr 14:57
Compare
Choose a tag to compare

Full Changelog: v1.2.146...v1.2.155

  1. Moved Typed Arrays, RegExp classes to Generated Classes