mustardscript 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -38,9 +38,9 @@ The current implementation already supports:
38
38
  - `Map` and `Set` with supported iterable constructors, SameValueZero key and
39
39
  membership semantics, insertion-order-preserving storage, and iterator
40
40
  helpers
41
- - `async` functions, `await`, guest promises, `new Promise(...)`, Promise
42
- combinators and instance methods, basic thenable adoption, and internal
43
- microtask scheduling for the supported subset
41
+ - `async` functions, top-level `await`, guest promises, `new Promise(...)`,
42
+ Promise combinators and instance methods, basic thenable adoption, and
43
+ internal microtask scheduling for the supported subset
44
44
  - guest-internal `BigInt` literals with exact-integer arithmetic,
45
45
  comparison, keyed-collection membership, and string/property-key coercion
46
46
  - conservative array, string, object, and Math helper methods, including
@@ -348,7 +348,7 @@ JavaScript.
348
348
  - Arrays, plain objects, `Map`, and `Set`
349
349
  - `let` and `const`
350
350
  - Functions and closures
351
- - `async` functions and `await`
351
+ - `async` functions and `await`, including top-level `await`
352
352
  - Arrow functions
353
353
  - `if`, `switch`, loops, `break`, and `continue`
354
354
  - `throw`, `try`, `catch`, and `finally`
@@ -432,7 +432,7 @@ Currently implemented built-ins:
432
432
 
433
433
  Current Promise support is intentionally narrow:
434
434
 
435
- - async functions return internal guest promises
435
+ - async functions and top-level `await` return through internal guest promises
436
436
  - `new Promise(executor)` is supported when `executor` is callable and
437
437
  completes synchronously from the runtime's perspective
438
438
  - `Promise.resolve(...)`, `Promise.reject(...)`, `Promise.all(...)`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mustardscript",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "Sandboxed, subset JavaScript runtime for Node services.",
5
5
  "main": "dist/index.js",
6
6
  "types": "mustard.d.ts",
@@ -28,10 +28,10 @@
28
28
  ]
29
29
  },
30
30
  "optionalDependencies": {
31
- "@mustardscript/binding-darwin-arm64": "0.1.3",
32
- "@mustardscript/binding-darwin-x64": "0.1.3",
33
- "@mustardscript/binding-linux-x64-gnu": "0.1.3",
34
- "@mustardscript/binding-win32-x64-msvc": "0.1.3"
31
+ "@mustardscript/binding-darwin-arm64": "0.2.0",
32
+ "@mustardscript/binding-darwin-x64": "0.2.0",
33
+ "@mustardscript/binding-linux-x64-gnu": "0.2.0",
34
+ "@mustardscript/binding-win32-x64-msvc": "0.2.0"
35
35
  },
36
36
  "scripts": {
37
37
  "prepack": "node scripts/build-ts-dist.ts",