Skip to content

Commit 93dce90

Browse files
committed
chore: update dependencies and engine version
- Bump cuffscript-wasm from 5.1.0 to 5.2.0 in package.json and package-lock.json - Update @eslint/config-array from 0.23.5 to 0.23.6 in package-lock.json - Upgrade minimatch from 10.2.6 to 11.0.5 in package-lock.json - Add @isaacs/nonrecursive-glob-match version 1.1.0 in package-lock.json - Update eslint from 10.14.0 to 10.15.0 in package-lock.json - Update postcss from 8.5.32 to 8.5.33 in package-lock.json - Change engineVersion from 5.1.0 to 5.2.0 in engine-meta.json
1 parent c9ac9b4 commit 93dce90

9 files changed

Lines changed: 534 additions & 134 deletions

File tree

‎content/guide/01-start.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ make
8282
./cuffc hello.cuff
8383
```
8484

85-
`cuffc --ast file.cuff` prints the tokens and the syntax tree instead of running the program. `--max-steps` and `--timeout` set an execution budget that stops a runaway program, `--root` sets the folder that modules and files must stay inside, and `--no-network` and `--no-filesystem` switch those two libraries off. A program that ends with an error exits with a non-zero status. To run CuffScript from a JavaScript or TypeScript project, install the `cuffscript-wasm` package.
85+
`cuffc --ast file.cuff` prints the tokens and the syntax tree instead of running the program, and `cuffc --bytecode file.cuff` runs it and prints the bytecode that each piece of the program is compiled into. `--max-steps` and `--timeout` set an execution budget that stops a runaway program, `--root` sets the folder that modules and files must stay inside, and `--no-network` and `--no-filesystem` switch those two libraries off. A program that ends with an error exits with a non-zero status. To run CuffScript from a JavaScript or TypeScript project, install the `cuffscript-wasm` package.

‎content/guide/09-embedding.md‎

Lines changed: 376 additions & 0 deletions
Large diffs are not rendered by default.
File renamed without changes.

‎content/home/07-highlights.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Rex says woof
8989

9090
### Runs anywhere
9191

92-
The same engine runs in your browser as WebAssembly (the IDE on this site), as the command-line tool `cuffc`, and inside your own JavaScript or TypeScript project.
92+
The same engine runs in your browser as WebAssembly (the IDE on this site), as the command-line tool `cuffc`, and inside your own JavaScript, TypeScript or C++ project.
9393

9494
```bash
9595
npm install cuffscript-wasm

‎content/home/60-start.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The IDE on this site runs the CuffScript engine itself, compiled to WebAssembly,
1515

1616
### 2. Embed in a JS/TS project
1717

18-
With the `cuffscript-wasm` package you can run CuffScript anywhere, in Node or in the browser.
18+
With the `cuffscript-wasm` package you can run CuffScript from any web page or bundler-based project, and from Node with a small loader. The [embedding guide](/guide/#embedding) also covers C++ and other languages.
1919

2020
```
2121
npm install cuffscript-wasm

‎content/home/65-faq.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ DLC is the name for the built-in libraries: {{engine.dlcNames}}. You switch one
5555

5656
### Can I use it inside my own application?
5757

58-
Yes. The engine is a library: use the `cuffscript-wasm` package from JavaScript or TypeScript, or the `CuffEngine` class from C++. The host decides what a program may touch. For example `cuffc` can switch the network and file libraries off (`--no-network`, `--no-filesystem`) and give a program a step or time budget (`--max-steps`, `--timeout`).
58+
Yes. The engine is a library: use the `cuffscript-wasm` package from JavaScript or TypeScript, or the `CuffEngine` class from C++. The [embedding guide](/guide/#embedding) walks through both, with complete examples. The host decides what a program may touch. For example `cuffc` can switch the network and file libraries off (`--no-network`, `--no-filesystem`) and give a program a step or time budget (`--max-steps`, `--timeout`).
5959

6060
### Is it safe to run a program I did not write?
6161

‎package-lock.json‎

Lines changed: 152 additions & 128 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@codemirror/view": "^6.34.0",
2424
"@eslint/js": "^10.0.1",
2525
"@lezer/highlight": "^1.2.0",
26-
"cuffscript-wasm": "^5.1.0",
26+
"cuffscript-wasm": "^5.2.0",
2727
"lenis": "^1.3.27",
2828
"typescript-eslint": "^8.70.0"
2929
},

‎src/generated/engine-meta.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$comment": "Generated by scripts/sync-engine.mjs from the engine source. Do not edit by hand.",
3-
"engineVersion": "5.1.0",
3+
"engineVersion": "5.2.0",
44
"keywords": [
55
"constant",
66
"global",

0 commit comments

Comments
 (0)