Cadence Language Server
The Cadence language server compiled to WebAssembly and bundled as an NPM package,
so it can be used in tools written in JavaScript.
Releasing
To release a new version of the Language server NPM package all you need to do is create a release of Langauge server and GitHub action will also publish a new version of WebAssembly built binary to NPM.
That newly build NPM package using the WebAssembly will be published and can be found on NPM https://www.npmjs.com/package/@onflow/cadence-language-server
Development
Updating src/go.js
- Copy
misc/wasm/wasm_exec.js
of appropriate Go version into src/go.js
.
Keep the last line (export const go = new Go();
) - Update the version in the header
- Remove the anonymous function wrapper
- Change
globalThis.Go = class {
to class Go {
- Run
npx prettier -w src/go.js
v1.0.0-preview.13 - 13 Mar 2024
<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-preview.13 -->
What's Changed
💥 Language Breaking Changes
- Allow creating references to nested optionals by @SupunS in https://github.com/onflow/cadence/pull/3132
🛠 Improvements
- Improve update tool by @turbolent in https://github.com/onflow/cadence/pull/3163
- Improve migration by @turbolent in https://github.com/onflow/cadence/pull/3169
🐞 Bug Fixes
- Implicitly track composite reference in attachment iteration by @dsainati1 in https://github.com/onflow/cadence/pull/3168
Other Changes
- Merge
release/v1.0.0-preview.12
to master
by @github-actions in https://github.com/onflow/cadence/pull/3167
Full Changelog: https://github.com/onflow/cadence/compare/v1.0.0-preview.12...v1.0.0-preview.13
[Changes][v1.0.0-preview.13]
<a name="v1.0.0-preview.12"></a>