check_code
Check NEAR code before you ship it: finds the lines that import, depend on, call or configure something removed, deprecated, changed or superseded in NEAR (archived SDKs, removed protocol actions, deprecated RPC methods, retired endpoints), and dependencies that are yanked or whole breaking lines behind, each with the replacement and the source and date of the claim. Accepts one file: JavaScript/TypeScript, Rust, Cargo.toml, package.json or a JSON config. Use it on code written from memory, or when reviewing NEAR code. NEAR only. For one name rather than a file use check_deprecation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The file contents, up to 100000 characters. | |
| filename | No | The file name, e.g. "contract.ts", "Cargo.toml", "package.json". Picks the language. | |
| language | No | Overrides the language detected from the file name or content. |