Skip to content

Commit 50089bf

Browse files
build(deps): use Vis SDK 0.7.0 (v0.2.9)
Vis-Session: 1a92b08f-e39e-40ed-b3d2-94d7db1de688
1 parent 7104e18 commit 50089bf

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

‎docs/toolchain.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ by itself, and Bun starts with `--no-env-file`. `env_file` names a dotenv file,
5757
are `NAME=value`, optionally after `export`, and variables are not expanded. `NODE_OPTIONS` and
5858
`BUN_OPTIONS` from the file are skipped, because they would load other code into the REPL.
5959

60-
The variables that a `before` op hook on `js.repl_start` adds with `vis.with_env` win over the
60+
The variables that a `before` op hook on `js.repl_start` adds with `vis.hook.env` win over the
6161
file. A live REPL with other variables is refused.
6262

6363
### Evaluation

‎extension.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _bind(
2424
setattr(
2525
JavaScriptTools,
2626
name,
27-
vis.method(
27+
vis.extension.method(
2828
tag=tag,
2929
activity=presentation.activity(
3030
label, build, show_start=show_start, describe=describe
@@ -101,14 +101,16 @@ def _home(program):
101101
if home is not None and home.is_dir()
102102
]
103103

104-
vis.register_extension(
104+
vis.extension.register(
105105
vis.Extension(
106106
name="vis-lang-javascript",
107107
description="JavaScript and TypeScript tools on Node.js and Bun: test runs and a managed REPL.",
108-
version="0.2.8",
108+
version="0.2.9",
109109
alias="js",
110110
symbols=[
111-
vis.Symbol(JavaScriptTools(workspace_root=vis.workspace_root), name="js")
111+
vis.Symbol(
112+
JavaScriptTools(workspace_root=vis.ctx.workspace.root), name="js"
113+
)
112114
],
113115
prompt=PROMPT,
114116
grants=GRANTS,

‎pyproject.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[project]
22
name = "vis-lang-javascript"
3-
version = "0.2.8"
3+
version = "0.2.9"
44
description = "JavaScript and TypeScript tools for Vis on Node.js and Bun: test runs and a managed REPL."
55
keywords = ["javascript", "typescript"]
66
requires-python = ">=3.12"
77
dependencies = [
8-
"vis-agent>=0.6.0",
9-
"vis-lang-interface @ git+https://github.com/Blockether/vis-lang-interface@v4.3.2",
8+
"vis-agent>=0.7.0",
9+
"vis-lang-interface @ git+https://github.com/Blockether/vis-lang-interface@v4.3.3",
1010
]
1111

1212
[dependency-groups]

‎src/vis_lang_javascript/tools.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def repl_start(
143143
A live REPL is never replaced, because its state is the work: "auto"
144144
keeps it, and a live REPL on another named runtime is refused. It gets
145145
the variables that a `before` op hook on `js.repl_start` adds with
146-
`vis.with_env`, over those of env_file; NODE_OPTIONS and BUN_OPTIONS
146+
`vis.hook.env`, over those of env_file; NODE_OPTIONS and BUN_OPTIONS
147147
from the file are skipped. A live REPL with other variables is refused.
148148
149149
With nest, the REPL loads the built app (build it first) up to its

‎tests/test_runtimes.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,6 @@ def test_test_tools_and_their_children_use_the_pinned_node(tmp_path, nvm, name):
178178

179179
def test_extension_grants_the_nvm_installations(nvm, monkeypatch):
180180
[entrypoint] = Path(__file__).resolve().parents[1].glob("extension.py")
181-
monkeypatch.setattr(vis, "register_extension", lambda extension: None)
181+
monkeypatch.setattr(vis.extension, "register", lambda extension: None)
182182
grants = runpy.run_path(str(entrypoint))["GRANTS"]
183183
assert nvm / "versions" / "node" in {Path(grant.path) for grant in grants}

0 commit comments

Comments
 (0)