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.36 - 08 Jul 2024
<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-preview.36 -->
What's Changed
🛠 Improvements
- Improve the commit-based version handling in the update tool by @turbolent in https://github.com/onflow/cadence/pull/3440
- Improve update tool by @turbolent in https://github.com/onflow/cadence/pull/3441
- Improve handling of releases in update tool by @turbolent in https://github.com/onflow/cadence/pull/3442
- Allow borrowing of capability with subtype by @turbolent in https://github.com/onflow/cadence/pull/3449
- Simplify subtyping by @turbolent in https://github.com/onflow/cadence/pull/3447
🐞 Bug Fixes
- Fix toConstantSized by @turbolent in https://github.com/onflow/cadence/pull/3446
📖 Documentation
- Remove mention of feature branch by @chasefleming in https://github.com/onflow/cadence/pull/3444
- add 2024-07-03 staged contracts report by @zhangchiqing in https://github.com/onflow/cadence/pull/3450
Other Changes
- Merge
release/v1.0.0-preview.35
to master
by @github-actions in https://github.com/onflow/cadence/pull/3437 - add migrations data for 2024-06-26 by @zhangchiqing in https://github.com/onflow/cadence/pull/3439
- add root block info for migration net by @zhangchiqing in https://github.com/onflow/cadence/pull/3443
- Add root block info for migration 2024-07-03 by @zhangchiqing in https://github.com/onflow/cadence/pull/3451
New Contributors
- @chasefleming made their first contribution in https://github.com/onflow/cadence/pull/3444
Full Changelog: https://github.com/onflow/cadence/compare/v1.0.0-preview.35...v1.0.0-preview.36
[Changes][v1.0.0-preview.36]
<a name="v1.0.0-preview-atree-register-inlining.36"></a>