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
. - Run
npx prettier -w src/go.js
- Restore the first line (adopted from header) and 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 {
v1.0.0-preview.51 - 29 Aug 2024
<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-preview.51 -->
What's Changed
⭐ Features
- Add sema.Access.QualifiedKeyword by @turbolent in https://github.com/onflow/cadence/pull/3552
🐞 Bug Fixes
- Fix Cadence Parser NPM Package by @bluesign in https://github.com/onflow/cadence/pull/3551
- Fix contract update error when old program has errors by @turbolent in https://github.com/onflow/cadence/pull/3554
🧪 Testing
- Add regression tests for nil-coalescing bug by @turbolent in https://github.com/onflow/cadence/pull/3553
- Smoke test update of enum key in dictionary by @turbolent in https://github.com/onflow/cadence/pull/3556
📖 Documentation
- Staged contracts report Aug 27 by @j1010001 in https://github.com/onflow/cadence/pull/3557
Other Changes
- Merge
release/v1.0.0-preview.50
to master
by @github-actions in https://github.com/onflow/cadence/pull/3549
Full Changelog: https://github.com/onflow/cadence/compare/v1.0.0-preview.50...v1.0.0-preview.51
[Changes][v1.0.0-preview.51]
<a name="v1.0.0-preview.50"></a>