fix: add ECMAScript Explicit Resource Management to Resource - #14103
Conversation
Package Changes Through 6dc9d1fThere are 14 changes which include tauri with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-build with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri-bundler with minor, tauri-macos-sign with minor, @tauri-apps/api with minor, tauri-codegen with minor, tauri-macros with minor, tauri-plugin with minor, tauri-driver with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
Thanks for bring this up! I have one question though, I believe
|
|
Not only older browsers but webkit as a whole as well which means this is a Windows only change. |
Technically it's a coming soon https://webkit.org/blog/16993/news-from-wwdc25-web-technology-coming-this-fall-in-safari-26-beta/ but yeah, this is still useful for people using the transpiler/polyfill themselves though |
|
hmm true but having macos 26 as a minimum version sounds a bit problematic (and who knows when/if linux follows) |
Legend-Master
left a comment
There was a problem hiding this comment.
Thanks and sorry for the long waits!
I think we should also looking into provide a guide on how to use this awesome feature! The symbol polyfill should not be needed in the tauri lib code, it stays undefined in unsupported browsers if you don't use using at all. If you do want to opt-in, use a compiler (e.g. tsc 5.2+)/bundler (e.g. rollup) that supports that syntax + defining
Symbol.dispose ??= Symbol("Symbol.dispose");
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");to support old browsers.
Add ECMAScript Explicit Resource Management to Resource.
This makes the await using work: